@nebula.js/stardust 5.0.0-alpha.2 → 5.0.0-alpha4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/stardust.js CHANGED
@@ -1,10 +1,10 @@
1
1
  /*
2
- * @nebula.js/stardust v5.0.0-alpha.2
2
+ * @nebula.js/stardust v5.0.0-alpha4
3
3
  * Copyright (c) 2024 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
6
6
 
7
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).stardust={})}(this,(function(e){"use strict";function t(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}!function(e){var t=function(e){var t,n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var a=t&&t.prototype instanceof v?t:v,i=Object.create(a.prototype),l=new _(r||[]);return o(i,"_invoke",{value:R(e,n,l)}),i}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var p="suspendedStart",f="suspendedYield",h="executing",m="completed",g={};function v(){}function b(){}function y(){}var x={};c(x,i,(function(){return this}));var S=Object.getPrototypeOf,w=S&&S(S(T([])));w&&w!==n&&r.call(w,i)&&(x=w);var E=y.prototype=v.prototype=Object.create(x);function C(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(o,a,i,l){var s=d(e[o],e,a);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,i,l)}),(function(e){n("throw",e,i,l)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return n("throw",e,i,l)}))}l(s.arg)}var a;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function R(e,n,r){var o=p;return function(a,i){if(o===h)throw new Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var l=r.delegate;if(l){var s=L(l,r);if(s){if(s===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(e,n,r);if("normal"===c.type){if(o=r.done?m:f,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=d(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function T(e){if(null!=e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return b.prototype=y,o(E,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:b,configurable:!0}),b.displayName=c(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,s,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},C(k.prototype),c(k.prototype,l,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new k(u(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},C(E),c(E,s,"Generator"),c(E,i,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=T,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return l.type="throw",l.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;I(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}({exports:{}});var c={exports:{}},u={},d=Symbol.for("react.element"),p=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),v=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),w=Symbol.iterator;var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,k={};function R(e,t,n){this.props=e,this.context=t,this.refs=k,this.updater=n||E}function L(){}function O(e,t,n){this.props=e,this.context=t,this.refs=k,this.updater=n||E}R.prototype.isReactComponent={},R.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},R.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},L.prototype=R.prototype;var I=O.prototype=new L;I.constructor=O,C(I,R.prototype),I.isPureReactComponent=!0;var _=Array.isArray,T=Object.prototype.hasOwnProperty,P={current:null},M={key:!0,ref:!0,__self:!0,__source:!0};function N(e,t,n){var r,o={},a=null,i=null;if(null!=t)for(r in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(a=""+t.key),t)T.call(t,r)&&!M.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var s=Array(l),c=0;c<l;c++)s[c]=arguments[c+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:d,type:e,key:a,ref:i,props:o,_owner:P.current}}function q(e){return"object"==typeof e&&null!==e&&e.$$typeof===d}var A=/\/+/g;function z(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function D(e,t,n,r,o){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var i=!1;if(null===e)i=!0;else switch(a){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case d:case p:i=!0}}if(i)return o=o(i=e),e=""===r?"."+z(i,0):r,_(o)?(n="",null!=e&&(n=e.replace(A,"$&/")+"/"),D(o,t,n,"",(function(e){return e}))):null!=o&&(q(o)&&(o=function(e,t){return{$$typeof:d,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(A,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=""===r?".":r+":",_(e))for(var l=0;l<e.length;l++){var s=r+z(a=e[l],l);i+=D(a,t,n,s,o)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=w&&e[w]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),l=0;!(a=e.next()).done;)i+=D(a=a.value,t,n,s=r+z(a,l++),o);else if("object"===a)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function j(e,t,n){if(null==e)return e;var r=[],o=0;return D(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function F(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}var B={current:null},$={transition:null},W={ReactCurrentDispatcher:B,ReactCurrentBatchConfig:$,ReactCurrentOwner:P};u.Children={map:j,forEach:function(e,t,n){j(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return j(e,(function(){t++})),t},toArray:function(e){return j(e,(function(e){return e}))||[]},only:function(e){if(!q(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},u.Component=R,u.Fragment=f,u.Profiler=m,u.PureComponent=O,u.StrictMode=h,u.Suspense=y,u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W,u.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=C({},e.props),o=e.key,a=e.ref,i=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,i=P.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)T.call(t,s)&&!M.hasOwnProperty(s)&&(r[s]=void 0===t[s]&&void 0!==l?l[s]:t[s])}var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){l=Array(s);for(var c=0;c<s;c++)l[c]=arguments[c+2];r.children=l}return{$$typeof:d,type:e.type,key:o,ref:a,props:r,_owner:i}},u.createContext=function(e){return(e={$$typeof:v,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:g,_context:e},e.Consumer=e},u.createElement=N,u.createFactory=function(e){var t=N.bind(null,e);return t.type=e,t},u.createRef=function(){return{current:null}},u.forwardRef=function(e){return{$$typeof:b,render:e}},u.isValidElement=q,u.lazy=function(e){return{$$typeof:S,_payload:{_status:-1,_result:e},_init:F}},u.memo=function(e,t){return{$$typeof:x,type:e,compare:void 0===t?null:t}},u.startTransition=function(e){var t=$.transition;$.transition={};try{e()}finally{$.transition=t}},u.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},u.useCallback=function(e,t){return B.current.useCallback(e,t)},u.useContext=function(e){return B.current.useContext(e)},u.useDebugValue=function(){},u.useDeferredValue=function(e){return B.current.useDeferredValue(e)},u.useEffect=function(e,t){return B.current.useEffect(e,t)},u.useId=function(){return B.current.useId()},u.useImperativeHandle=function(e,t,n){return B.current.useImperativeHandle(e,t,n)},u.useInsertionEffect=function(e,t){return B.current.useInsertionEffect(e,t)},u.useLayoutEffect=function(e,t){return B.current.useLayoutEffect(e,t)},u.useMemo=function(e,t){return B.current.useMemo(e,t)},u.useReducer=function(e,t,n){return B.current.useReducer(e,t,n)},u.useRef=function(e){return B.current.useRef(e)},u.useState=function(e){return B.current.useState(e)},u.useSyncExternalStore=function(e,t,n){return B.current.useSyncExternalStore(e,t,n)},u.useTransition=function(){return B.current.useTransition()},u.version="18.2.0",c.exports=u;var H=c.exports,U=n(H),V=t({__proto__:null,default:U},[H]);const G=function(){let{initial:e="en-US",fallback:t="en-US"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=function(){let{initial:e="en-US",fallback:t="en-US"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n={};let r=e;const o={language:e=>(e&&(r=e),r),add:e=>{const{id:t,locale:r}=e;Object.keys(r).forEach((e=>{n[e]||(n[e]={}),n[e][t]=r[e]}))},get(e,o){let a;return a=n[r]&&void 0!==n[r][e]?n[r][e]:n[t]&&void 0!==n[t][e]?n[t][e]:e,void 0!==o?function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const t="string"==typeof e||"number"==typeof e?[e]:e;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/\{(\d+)\}/g,((e,n)=>void 0!==t[n]?t[n]:e))}(a,o):a}};return o}({initial:e,fallback:t});return{translator:n}};var K={Cancel:{id:"Cancel",locale:{"de-DE":"Abbrechen","en-US":"Cancel","es-ES":"Cancelar","fr-FR":"Annuler","it-IT":"Annulla","ja-JP":"キャンセル","ko-KR":"취소","nl-NL":"Annuleren","pl-PL":"Anuluj","pt-BR":"Cancelar","ru-RU":"Отмена","sv-SE":"Avbryt","tr-TR":"İptal","zh-CN":"取消","zh-TW":"取消"}},CurrentSelections_All:{id:"CurrentSelections.All",locale:{"de-DE":"ALLES","en-US":"ALL","es-ES":"TODOS","fr-FR":"TOUS","it-IT":"TUTTI","ja-JP":"すべて","ko-KR":"모두","nl-NL":"ALLE","pl-PL":"WSZYSTKO","pt-BR":"TODOS","ru-RU":"ВСЕ","sv-SE":"ALLA","tr-TR":"TÜMÜ","zh-CN":"全部","zh-TW":"全部"}},CurrentSelections_Of:{id:"CurrentSelections.Of",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0}/ {1}","ko-KR":"{0} / {1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0}/ {1}","zh-TW":"{0}/ {1}"}},Listbox_Dismiss:{id:"Listbox.Dismiss",locale:{"de-DE":"Schließen","en-US":"Dismiss","es-ES":"Descartar","fr-FR":"Ignorer","it-IT":"Ignora","ja-JP":"却下","ko-KR":"해제","nl-NL":"Overslaan","pl-PL":"Zamknij","pt-BR":"Ignorar","ru-RU":"Пропустить","sv-SE":"Hoppa över","tr-TR":"Kapat","zh-CN":"离开","zh-TW":"解除"}},Listbox_DrillDown:{id:"Listbox.DrillDown",locale:{"de-DE":"Drilldown-Dimension","en-US":"Drill-down dimension","es-ES":"Dimensión jerárquica","fr-FR":"Dimension hiérarchique","it-IT":"Dimensione drill-down","ja-JP":"軸のドリルダウン","ko-KR":"드릴다운 차원","nl-NL":"Drill-downdimensie","pl-PL":"Wymiar hierarchiczny","pt-BR":"Dimensão de detalhamento","ru-RU":"Детализированное измерение","sv-SE":"Hierarkisk dimension","tr-TR":"Detaya inme boyutu","zh-CN":"钻取维度","zh-TW":"向下探查維度"}},Listbox_ItemsOverflow:{id:"Listbox.ItemsOverflow",locale:{"de-DE":"Derzeit wird ein eingeschränkter Datensatz angezeigt, verwenden Sie die Suche, um die Größe zu reduzieren","en-US":"Currently showing a limited data set, use search to reduce the size","es-ES":"Actualmente se muestra un conjunto de datos limitado, utilice la búsqueda para reducir el tamaño","fr-FR":"Ensemble de données limité actuellement affiché. Utilisez la rechercher pour réduire la taille.","it-IT":"Attualmente visualizzato un set di dati limitato; utilizzare la ricerca per ridurre le dimensioni","ja-JP":"現在表示されているデータ セットは制限されているため、検索を使ってサイズを縮小してください","ko-KR":"현재 제한된 데이터 집합이 표시되고 있습니다. 검색을 사용하여 크기를 줄이십시오.","nl-NL":"Er wordt momenteel een beperkte gegevensverzameling getoond, gebruik Zoeken om de omvang te verkleinen","pl-PL":"Wyświetlany jest ograniczony zestaw danych. Użyj wyszukiwania, aby zmniejszyć rozmiar.","pt-BR":"Atualmente mostrando um conjunto de dados limitado, use a pesquisa para reduzir o tamanho","ru-RU":"Сейчас отображается ограниченный набор данных. Используйте поиск, чтобы уменьшить размер.","sv-SE":"En begränsad datauppsättning visas. Använd sök för att minska storleken","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor. Boyutu azaltmak için arama işlevini kullanın","zh-CN":"目前显示有限的数据集,使用搜索来减少大小","zh-TW":"目前顯示有限資料集,請使用搜尋減少大小"}},Listbox_Lock:{id:"Listbox.Lock",locale:{"de-DE":"Auswahlen sperren","en-US":"Lock selections","es-ES":"Bloquear selecciones","fr-FR":"Verrouiller les sélections","it-IT":"Blocca selezioni","ja-JP":"選択をロック","ko-KR":"선택 내용 잠금","nl-NL":"Selecties vergrendelen","pl-PL":"Zablokuj wybory","pt-BR":"Bloquear seleções","ru-RU":"Заблокировать выборки","sv-SE":"Lås urval","tr-TR":"Seçimleri kilitle","zh-CN":"锁定选择项","zh-TW":"鎖定選項"}},Listbox_NoMatchesForYourTerms:{id:"Listbox.NoMatchesForYourTerms",locale:{"de-DE":"Für Ihre Suche wurden keine Übereinstimmungen gefunden.","en-US":"There are no matches for your search.","es-ES":"No hay resultados para su búsqueda.","fr-FR":"Aucun résultat ne correspond à votre recherche.","it-IT":"Non è stata trovata alcuna corrispondenza per questa ricerca.","ja-JP":"検索に一致するものがありません。","ko-KR":"검색에 대해 일치하는 항목이 없습니다.","nl-NL":"Er zijn geen overeenkomsten voor uw zoekopdracht.","pl-PL":"Brak dopasowań dla tego wyszukiwania.","pt-BR":"Não há correspondências para sua pesquisa.","ru-RU":"Нет совпадений по вашему поисковому запросу.","sv-SE":"Det finns inga matchningar för din sökning.","tr-TR":"Aramanızla eşleşen sonuç yok.","zh-CN":"您的搜索条件没有任何匹配结果。","zh-TW":"沒有與您搜尋相符的項目。"}},Listbox_ResultFilterLabel:{id:"Listbox.ResultFilterLabel",locale:{"de-DE":"Suchergebnisfilter","en-US":"Search Results Filter","es-ES":"Filtro de resultados de búsqueda","fr-FR":"Filtre de résultats de recherche","it-IT":"Filtro risultati Ricerca","ja-JP":"検索結果フィルター","ko-KR":"검색 결과 필터","nl-NL":"Filter voor zoekresultaten","pl-PL":"Filtr wyników wyszukiwania","pt-BR":"Filtro de resultados da pesquisa","ru-RU":"Фильтр результатов поиска","sv-SE":"Filter för sökresultat","tr-TR":"Arama Sonuçları Filtresi","zh-CN":"搜索结果筛选器","zh-TW":"搜尋結果篩選"}},Listbox_ScreenReader_SearchThenSelectionsMenu_WithAccSelMenu:{id:"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu",locale:{"de-DE":"Drücken Sie die Umschalttaste zusammen mit der Tabulatortaste, um den Fokus in die Suchleiste zu setzen, und dann erneut beide Tasten, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the search bar, then Shift plus Tab again to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en la barra de búsqueda, luego Mayús + Tabulador nuevamente para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur la barre de recherche, puis de nouveau sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere MAIUSC+TAB per impostare lo stato attivo sulla barra di ricerca, quindi premere nuovamente MAIUSC+TAB per impostare lo stato attivo sul menu selezioni.","ja-JP":"Shift + Tab を押して検索バーにフォーカスを設定し、Shift + Tab をもう一度押して選択メニューにフォーカスを設定します。","ko-KR":"Shift+Tab을 눌러 검색 막대에 초점을 맞춘 다음 Shift+Tab을 다시 눌러 선택 메뉴에 초점을 맞추십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op de zoekbalk, druk vervolgens nogmaals op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na pasku wyszukiwania. Następnie ponownie użyj tej kombinacji klawiszy, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco na barra de pesquisa e Shift + Tab novamente para definir o foco no menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на строку поиска. Затем снова нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb för att ställa in fokus på sökfältet, sedan Skift plus Tabb igen för att ställa in fokus på urvalsmenyn.","tr-TR":"Odağı arama çubuğuna ayarlamak için Shift ve Sekme tuşlarına birlikte basın, ardından bu tuşlara birlikte tekrar basarak odağı seçim menüsüne ayarlayın.","zh-CN":"按 Shift+Tab 在搜索栏上设置焦点,然后再次按 Shift+Tab 在“选择”菜单上设置焦点。","zh-TW":"按下 Shift 加 Tab 鍵以設定搜尋列上的焦點,然後再次按下 Shift 加 Tab 鍵,以設定選項功能表上的焦點。"}},Listbox_ScreenReader_SelectionMenu_WithAccSelMenu:{id:"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",locale:{"de-DE":"Drücken Sie gleichzeitig die Umschalt- und die Tabulatortaste, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere i tasti MAIUSC+TAB per evidenziare il menu di selezione.","ja-JP":"Shift キー + Tab キーを押して選択メニューにフォーカスを設定します。","ko-KR":"선택 메뉴에 초점을 설정하려면 Shift+Tab을 누르십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco sobre o menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb när du vill ställa in fokus på urvalsmenyn.","tr-TR":"Odağı seçim menüsüne ayarlamak için Shift ve Sekme tuşlarına birlikte basın.","zh-CN":"按下 Shift 加 Tab 以将焦点设置在选择菜单上。","zh-TW":"按下 Shift 加 Tab 以在選項功能表上設定焦點。"}},Listbox_ScreenReaderInstructions:{id:"Listbox.ScreenReaderInstructions",locale:{"de-DE":"Bei Aktivierung der Elemente unten wird der Seiteninhalt aktualisiert","en-US":"Activating the elements below will cause content on the page to be updated","es-ES":"La activación de los elementos siguientes hará que se actualice el contenido en la página","fr-FR":"L'activation des éléments ci-dessous actualisera le contenu de la page.","it-IT":"L'attivazione degli elementi sottostanti causerà l'aggiornamento del contenuto della pagina","ja-JP":"下記の要素をアクティブ化すると、ページのコンテンツが更新されます","ko-KR":"아래 요소를 활성화하면 페이지의 콘텐츠가 업데이트됩니다.","nl-NL":"Door de onderstaande elementen te activeren wordt de inhoud op de pagina bijgewerkt","pl-PL":"Aktywacja poniższych elementów spowoduje aktualizację zawartości na stronie","pt-BR":"A ativação dos elementos abaixo fará com que o conteúdo da página seja atualizado","ru-RU":"Активация приведенных ниже элементов приведет к обновлению содержимого страницы","sv-SE":"Om du aktiverar elementen nedan kommer innehåll på sidan att uppdateras","tr-TR":"Aşağıdaki öğeleri etkinleştirmek sayfadaki içeriğin güncellenmesine neden olur","zh-CN":"激活下面的元素将导致页面上的内容更新","zh-TW":"啟用以下元素將會造成更新頁面上的內容"}},Listbox_Search:{id:"Listbox.Search",locale:{"de-DE":"In Listenfeld suchen","en-US":"Search in listbox","es-ES":"Buscar en cuadro de lista","fr-FR":"Rechercher dans la liste de sélection","it-IT":"Cerca nella casella di elenco","ja-JP":"リストボックス内を検索","ko-KR":"목록 상자에서 검색","nl-NL":"Zoeken in keuzelijst","pl-PL":"Wyszukaj w liście wartości","pt-BR":"Pesquisar na caixa de listagem","ru-RU":"Поиск в списке","sv-SE":"Sök i listruta","tr-TR":"Liste kutusunda ara","zh-CN":"在列表框中搜索","zh-TW":"在清單方塊中搜尋"}},Listbox_Search_ScreenReaderInstructions:{id:"Listbox.Search.ScreenReaderInstructions",locale:{"de-DE":"Über das folgende Suchfeld werden Ergebnisse während der Eingabe gefiltert","en-US":"The following search field filters results below as you type","es-ES":"El siguiente campo de búsqueda filtra los resultados siguientes a medida que escribe","fr-FR":"Le champ de recherche suivant filtrer les résultats ci-dessous à mesure de votre saisie.","it-IT":"Il seguente campo di ricerca filtra i risultati man mano che vengono digitati","ja-JP":"次の検索フィールドは、入力と同時に下記の結果をフィルターします","ko-KR":"다음 검색 필드는 입력할 때 아래의 결과를 필터링합니다.","nl-NL":"Het volgende zoekveld filtert resultaten terwijl u typt","pl-PL":"Następujące pole wyszukiwania filtruje wyniki poniżej w miarę pisania","pt-BR":"O campo de pesquisa a seguir filtra os resultados abaixo conforme você digita","ru-RU":"Следующее поле поиска фильтрует результаты ниже по мере ввода текста","sv-SE":"Följande sökfält filtrerar resultaten nedan medan du skriver","tr-TR":"Aşağıdaki arama alanı siz yazarken aşağıdaki sonuçları filtreler","zh-CN":"键入时,以下搜索字段筛选结果如下","zh-TW":"下列搜尋欄位在您輸入時篩選以下結果"}},Listbox_Unlock:{id:"Listbox.Unlock",locale:{"de-DE":"Auswahlen entsperren","en-US":"Unlock selections","es-ES":"Desbloquear selecciones","fr-FR":"Déverrouiller les sélections","it-IT":"Sblocca selezioni","ja-JP":"選択をロック解除","ko-KR":"선택 내용 잠금 해제","nl-NL":"Selecties ontgrendelen","pl-PL":"Odblokuj wybory","pt-BR":"Desbloquear seleções","ru-RU":"Разблокировать выборки","sv-SE":"Lås upp urval","tr-TR":"Seçimlerin kilidini aç","zh-CN":"将选择项解锁","zh-TW":"解鎖選項"}},Menu_More:{id:"Menu.More",locale:{"de-DE":"Mehr","en-US":"More","es-ES":"Más","fr-FR":"Plus","it-IT":"Altro","ja-JP":"詳細","ko-KR":"자세히","nl-NL":"Meer","pl-PL":"Więcej","pt-BR":"Mais","ru-RU":"Дополнительно","sv-SE":"Mer","tr-TR":"Daha fazla","zh-CN":"更多","zh-TW":"更多"}},Navigate_Back:{id:"Navigate.Back",locale:{"de-DE":"Schritt zurück","en-US":"Step back","es-ES":"Atrás","fr-FR":"Retour en arrière","it-IT":"Torna indietro","ja-JP":"1 段階戻る","ko-KR":"이전 단계","nl-NL":"Stap terug","pl-PL":"Krok do tyłu","pt-BR":"Voltar uma etapa","ru-RU":"Шаг назад","sv-SE":"Gå bakåt","tr-TR":"Bir adım geri","zh-CN":"后退","zh-TW":"倒退"}},Navigate_Forward:{id:"Navigate.Forward",locale:{"de-DE":"Schritt vor","en-US":"Step forward","es-ES":"Avanzar","fr-FR":"Étape suivante","it-IT":"Vai avanti","ja-JP":"1段階進む","ko-KR":"다음 단계","nl-NL":"Stap vooruit","pl-PL":"Krok do przodu","pt-BR":"Avançar uma etapa","ru-RU":"Шаг вперед","sv-SE":"Gå framåt","tr-TR":"Bir adım ileri","zh-CN":"前进","zh-TW":"前進"}},OK:{id:"OK",locale:{"de-DE":"OK","en-US":"OK","es-ES":"Aceptar","fr-FR":"OK","it-IT":"OK","ja-JP":"OK","ko-KR":"확인","nl-NL":"OK","pl-PL":"OK","pt-BR":"OK","ru-RU":"ОК","sv-SE":"OK","tr-TR":"Tamam","zh-CN":"确定","zh-TW":"確定"}},Object_Listbox_Alternative:{id:"Object.Listbox.Alternative",locale:{"de-DE":"Alternative","en-US":"Alternative","es-ES":"Alternativo","fr-FR":"Alternatif","it-IT":"Alternativo","ja-JP":"代替","ko-KR":"대체 항목","nl-NL":"Alternatief","pl-PL":"Alternatywne","pt-BR":"Alternativo","ru-RU":"Альтернативные","sv-SE":"Alternativ","tr-TR":"Alternatif","zh-CN":"可选","zh-TW":"替代選項"}},Object_Listbox_Excluded:{id:"Object.Listbox.Excluded",locale:{"de-DE":"Ausgeschlossen","en-US":"Excluded","es-ES":"Excluido","fr-FR":"Exclu","it-IT":"Escluso","ja-JP":"除外済み","ko-KR":"제외됨","nl-NL":"Uitgesloten","pl-PL":"Wykluczone","pt-BR":"Excluído","ru-RU":"Исключенные","sv-SE":"Uteslutet","tr-TR":"Hariç tutulan","zh-CN":"已排除","zh-TW":"已排除"}},Object_Listbox_ExcludedLock:{id:"Object.Listbox.ExcludedLock",locale:{"de-DE":"Ausgeschlossene Sperre","en-US":"Excluded lock","es-ES":"Bloqueo excluido","fr-FR":"Exclu verrouillé","it-IT":"Blocco escluso","ja-JP":"除外されたロック","ko-KR":"제외된 잠금","nl-NL":"Uitsluitingsvergrendeling","pl-PL":"Wykluczone zablokowane","pt-BR":"Bloqueado excluído","ru-RU":"Блокировать исключенные элементы","sv-SE":"Uteslutet låst","tr-TR":"Hariç tutulan kilit","zh-CN":"已排除锁定","zh-TW":"已排除鎖定"}},Object_Listbox_Locked:{id:"Object.Listbox.Locked",locale:{"de-DE":"Gesperrt","en-US":"Locked","es-ES":"Bloqueado","fr-FR":"Verrouillé","it-IT":"Bloccato","ja-JP":"ロック済み","ko-KR":"잠김","nl-NL":"Vergrendeld","pl-PL":"Zablokowane","pt-BR":"Bloqueado","ru-RU":"Заблокированные","sv-SE":"Låst","tr-TR":"Kilitli","zh-CN":"已锁定","zh-TW":"已鎖定"}},Object_Listbox_Optional:{id:"Object.Listbox.Optional",locale:{"de-DE":"Optional","en-US":"Optional","es-ES":"Opcional","fr-FR":"Facultatif","it-IT":"Opzionale","ja-JP":"オプション","ko-KR":"선택 사항","nl-NL":"Optioneel","pl-PL":"Opcjonalne","pt-BR":"Opcional","ru-RU":"Дополнительные","sv-SE":"Valfritt","tr-TR":"İsteğe bağlı","zh-CN":"可选","zh-TW":"選用"}},Object_Listbox_Selected:{id:"Object.Listbox.Selected",locale:{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбранные","sv-SE":"Urval","tr-TR":"Seçilen","zh-CN":"已选择","zh-TW":"已選取"}},Object_Listbox_SelectedExcluded:{id:"Object.Listbox.SelectedExcluded",locale:{"de-DE":"Ausgeschlossen ausgewählt","en-US":"Selected excluded","es-ES":"Seleccionado excluido","fr-FR":"Sélectionné exclu","it-IT":"Selezionato escluso","ja-JP":"選択された除外値","ko-KR":"제외 항목 선택됨","nl-NL":"Geselecteerde uitgesloten","pl-PL":"Wybrane wykluczone","pt-BR":"Excluído selecionado","ru-RU":"Выбранные исключенные элементы","sv-SE":"Urval uteslutet","tr-TR":"Seçili hariç tutulan","zh-CN":"已排除选择","zh-TW":"已選取排除值"}},Object_Update_Active:{id:"Object.Update.Active",locale:{"de-DE":"Laden von Daten","en-US":"Updating data","es-ES":"Cargando datos","fr-FR":"Chargement de données en cours","it-IT":"Caricamento dati in corso","ja-JP":"データのロード中","ko-KR":"데이터 로드 중","nl-NL":"Gegevens worden geladen","pl-PL":"Ładowanie danych","pt-BR":"Carregando dados","ru-RU":"Загрузка данных","sv-SE":"Laddar data","tr-TR":"Veriler yükleniyor","zh-CN":"加载数据","zh-TW":"正在載入資料"}},Object_Update_Cancelled:{id:"Object.Update.Cancelled",locale:{"de-DE":"Datenaktualisierung wurde abgebrochen","en-US":"Data update was cancelled","es-ES":"Se ha cancelado la actualización de datos","fr-FR":"Mise à jour des données annulée","it-IT":"Aggiornamento dati annullato","ja-JP":"データの更新がキャンセルされました","ko-KR":"데이터 업데이트가 취소되었습니다.","nl-NL":"Gegevensupdate is geannuleerd","pl-PL":"Aktualizacja danych została anulowana","pt-BR":"A atualização de dados foi cancelada","ru-RU":"Обновление данных отменено","sv-SE":"Datauppdateringen avbröts.","tr-TR":"Veri güncelleştirme iptal edildi","zh-CN":"数据更新已取消","zh-TW":"資料更新已取消"}},Retry:{id:"Retry",locale:{"de-DE":"Wiederholen","en-US":"Retry","es-ES":"Intentar de nuevo","fr-FR":"Réessayer","it-IT":"Riprova","ja-JP":"再試行","ko-KR":"다시 시도","nl-NL":"Opnieuw","pl-PL":"Ponów próbę","pt-BR":"Tentar novamente","ru-RU":"Повторить попытку","sv-SE":"Försök igen","tr-TR":"Yeniden dene","zh-CN":"重试","zh-TW":"重試"}},ScreenReader_ManySearchResults:{id:"ScreenReader.ManySearchResults",locale:{"de-DE":"Es sind {0} Ergebnisse verfügbar","en-US":"There are {0} available results","es-ES":"Hay {0} resultados disponibles","fr-FR":"Il existe {0} résultats disponibles.","it-IT":"{0} risultati disponibili","ja-JP":"利用可能な結果が {0} つあります","ko-KR":"{0}개의 결과를 사용할 수 있음","nl-NL":"Er zijn {0} beschikbare resultaten","pl-PL":"Liczba dostępnych wyników: {0}","pt-BR":"Há {0} resultados disponíveis","ru-RU":"Имеются доступные результаты: {0}","sv-SE":"Det finns {0} tillgängliga resultat","tr-TR":"Kullanılabilir {0} sonuç mevcut","zh-CN":"有 {0} 个可用结果","zh-TW":"有 {0} 個可用的結果"}},ScreenReader_ManySelected:{id:"ScreenReader.ManySelected",locale:{"de-DE":"Es sind {0} Werte ausgewählt.","en-US":"There are {0} selected values.","es-ES":"Hay {0} valores seleccionados.","fr-FR":"{0} valeurs sont sélectionnées.","it-IT":"Sono presenti {0} valori selezionati.","ja-JP":"値が {0} 個選択されています。","ko-KR":"{0}개의 값이 선택되었습니다.","nl-NL":"Er zijn {0} geselecteerde waarden.","pl-PL":"Wybranych wartości: {0}","pt-BR":"Há {0} valores selecionados.","ru-RU":"Выбраны {0} значений(я).","sv-SE":"{0} värden är valda.","tr-TR":"Seçilen {0} değer var.","zh-CN":"存在 {0} 个已选择的值。","zh-TW":"有 {0} 個選取的值。"}},ScreenReader_OneSearchResult:{id:"ScreenReader.OneSearchResult",locale:{"de-DE":"Es ist ein Ergebnis verfügbar","en-US":"There is one available result","es-ES":"Hay un resultado disponible","fr-FR":"Il existe un résultat disponible.","it-IT":"Un risultato disponibile","ja-JP":"利用可能な結果が 1 つあります","ko-KR":"하나의 결과를 사용할 수 있음","nl-NL":"Er is één beschikbaar resultaat","pl-PL":"Jest jeden dostępny wynik","pt-BR":"Há um resultado disponível","ru-RU":"Имеется один доступный результат","sv-SE":"Det finns ett tillgängligt resultat","tr-TR":"Kullanılabilir bir sonuç mevcut","zh-CN":"有一个可用结果","zh-TW":"有一個可用的結果"}},ScreenReader_OneSelected:{id:"ScreenReader.OneSelected",locale:{"de-DE":"Es ist ein Wert ausgewählt.","en-US":"There is one selected value.","es-ES":"Hay un valor seleccionado.","fr-FR":"Une valeur est sélectionnée.","it-IT":"È presente un valore selezionato.","ja-JP":"値が 1 つ選択されています。","ko-KR":"하나의 값이 선택되었습니다.","nl-NL":"Er is één waarde geselecteerd.","pl-PL":"Istnieje jedna wybrana wartość.","pt-BR":"Há um valor selecionado.","ru-RU":"Выбрано одно значение.","sv-SE":"Ett värde är valt.","tr-TR":"Seçilen bir değer var.","zh-CN":"存在一个已选择的值。","zh-TW":"有一個選取的值。"}},ScreenReader_ZeroSelected:{id:"ScreenReader.ZeroSelected",locale:{"de-DE":"Es sind keine Werte ausgewählt.","en-US":"No values are selected.","es-ES":"No se ha seleccionado ningún valor.","fr-FR":"Aucune valeur n'est sélectionnée.","it-IT":"Nessun valore selezionato.","ja-JP":"値が選択されていません。","ko-KR":"선택된 값이 없습니다.","nl-NL":"Geen waarden geselecteerd.","pl-PL":"Brak wybranych wartości.","pt-BR":"Nenhum valor selecionado.","ru-RU":"Значения не выбраны.","sv-SE":"Inga värden är valda.","tr-TR":"Seçilen değer yok.","zh-CN":"未选择值。","zh-TW":"沒有選取任何值。"}},Selection_Cancel:{id:"Selection.Cancel",locale:{"de-DE":"Auswahl abbrechen","en-US":"Cancel selection","es-ES":"Cancelar selección","fr-FR":"Annuler la sélection","it-IT":"Annulla selezione","ja-JP":"選択のキャンセル","ko-KR":"선택 취소","nl-NL":"Selectie annuleren","pl-PL":"Anuluj selekcję","pt-BR":"Cancelar seleção","ru-RU":"Отменить выборку","sv-SE":"Avbryt urval","tr-TR":"Seçimi iptal et","zh-CN":"取消选择","zh-TW":"取消選取"}},Selection_Clear:{id:"Selection.Clear",locale:{"de-DE":"Auswahl löschen","en-US":"Clear selection","es-ES":"Borrar selección","fr-FR":"Effacer la sélection","it-IT":"Cancella selezione","ja-JP":"選択をクリア","ko-KR":"선택 해제","nl-NL":"Selectie wissen","pl-PL":"Wyczyść selekcję","pt-BR":"Limpar seleção","ru-RU":"Очистить выбор","sv-SE":"Rensa urval","tr-TR":"Seçimi temizle","zh-CN":"清除选择","zh-TW":"清除選項"}},Selection_ClearAll:{id:"Selection.ClearAll",locale:{"de-DE":"Alle Auswahlen löschen","en-US":"Clear all selections","es-ES":"Borrar todas las selecciones","fr-FR":"Effacer toutes les sélections","it-IT":"Cancella tutte le selezioni","ja-JP":"選択をすべてクリアする","ko-KR":"모든 선택 해제","nl-NL":"Alle selecties wissen","pl-PL":"Wyczyść wszystkie selekcje","pt-BR":"Limpar todas as seleções","ru-RU":"Очистить от всех выборок","sv-SE":"Radera alla urval","tr-TR":"Tüm seçimleri temizle","zh-CN":"清除所有选择项","zh-TW":"清除所有選項"}},Selection_ClearAllStates:{id:"Selection.ClearAllStates",locale:{"de-DE":"Alle Status löschen","en-US":"Clear all states","es-ES":"Borrar todos los estados","fr-FR":"Effacer tous les états","it-IT":"Cancella tutti gli stati","ja-JP":"全ステートをクリア","ko-KR":"모든 상태 지우기","nl-NL":"Alle states wissen","pl-PL":"Wyczyść wszystkie stany","pt-BR":"Limpar todos os estados","ru-RU":"Очистить все состояния","sv-SE":"Rensa alla tillstånd","tr-TR":"Tüm durumları temizle","zh-CN":"清除所有状态","zh-TW":"清除所有狀態"}},Selection_Confirm:{id:"Selection.Confirm",locale:{"de-DE":"Auswahl bestätigen","en-US":"Confirm selection","es-ES":"Confirmar selección","fr-FR":"Confirmer la sélection","it-IT":"Conferma selezione","ja-JP":"選択の確認","ko-KR":"선택 확인","nl-NL":"Selectie bevestigen","pl-PL":"Potwierdź selekcję","pt-BR":"Confirmar seleção","ru-RU":"Подтвердить выборку","sv-SE":"Bekräfta urval","tr-TR":"Seçimi onayla","zh-CN":"确认选择","zh-TW":"確認選取"}},Selection_Menu:{id:"Selection.Menu",locale:{"de-DE":"Auswahlmenü","en-US":"Selection menu","es-ES":"Menú de selección","fr-FR":"Menu Sélection","it-IT":"Menu Selezione","ja-JP":"選択メニュー","ko-KR":"선택 메뉴","nl-NL":"Selectiemenu","pl-PL":"Menu selekcji","pt-BR":"Menu de seleção","ru-RU":'Меню "Выборка"',"sv-SE":"Urvalsmeny","tr-TR":"Seçim menüsü","zh-CN":"选择菜单","zh-TW":"選項功能表"}},Selection_SelectAll:{id:"Selection.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutto","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar todos","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},Selection_SelectAlternative:{id:"Selection.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替値を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},Selection_SelectExcluded:{id:"Selection.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外値を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluído","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},Selection_SelectPossible:{id:"Selection.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込値を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possível","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olasıyı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},SelectionToolbar_ClickToUnlock:{id:"SelectionToolbar.ClickToUnlock",locale:{"de-DE":"Zum Entsperren klicken","en-US":"Click to unlock","es-ES":"Haga clic para desbloquearla","fr-FR":"Cliquez pour déverrouiller","it-IT":"Fare clic per sbloccare","ja-JP":"クリックしてロック解除","ko-KR":"잠금을 해제하려면 클릭하십시오.","nl-NL":"Klik om te ontgrendelen","pl-PL":"Aby odblokować, kliknij","pt-BR":"Clique para destravar","ru-RU":"Щелкните, чтобы разблокировать","sv-SE":"Klicka för att låsa upp","tr-TR":"Kilidi kaldırmak için tıklayın","zh-CN":"单击以解锁","zh-TW":"按一下以解除鎖定"}},Visualization_Incomplete:{id:"Visualization.Incomplete",locale:{"de-DE":"Unvollständige Visualisierung","en-US":"Incomplete visualization","es-ES":"Visualización incompleta","fr-FR":"Visualisation incomplète","it-IT":"Visualizzazione incompleta","ja-JP":"未完了のビジュアライゼーション","ko-KR":"완료되지 않은 시각화","nl-NL":"Onvolledige visualisatie","pl-PL":"Niekompletna wizualizacja","pt-BR":"Visualização incompleta","ru-RU":"Незавершенная визуализация","sv-SE":"Ofullständig visualisering","tr-TR":"Tamamlanmamış görselleştirme","zh-CN":"不完整的可视化","zh-TW":"視覺化未完成"}},Visualization_Incomplete_Dimensions:{id:"Visualization.Incomplete.Dimensions",locale:{"de-DE":"{0} von {1} Dimensionen","en-US":"{0} of {1} dimensions","es-ES":"{0} de {1} dimensiones","fr-FR":"{0} dimensions sur {1}","it-IT":"{0} di {1} dimensioni","ja-JP":"{0} / {1} 軸","ko-KR":"{1} 차원의 {0}","nl-NL":"{0} van {1} dimensies","pl-PL":"{0} z {1} wymiarów","pt-BR":"{0} de {1} dimensões","ru-RU":"Измерения: {0} из {1}","sv-SE":"{0} av {1} dimensioner","tr-TR":"{0}/{1} boyut","zh-CN":"{0} / {1} 个维度","zh-TW":"{1} 個維度中的 {0} 個"}},Visualization_Incomplete_Measures:{id:"Visualization.Incomplete.Measures",locale:{"de-DE":"{0} von {1} Kennzahlen","en-US":"{0} of {1} measures","es-ES":"{0} de {1} medidas","fr-FR":"{0} mesures sur {1}","it-IT":"{0} di {1} misure","ja-JP":"{0} / {1} メジャー","ko-KR":"{1} 측정값의 {0}","nl-NL":"{0} van {1} metingen","pl-PL":"{0} z {1} miar","pt-BR":"{0} de {1} medidas","ru-RU":"Меры: {0} из {1}","sv-SE":"{0} av {1} mått","tr-TR":"{0}/{1} hesaplama","zh-CN":"{0} / {1} 个度量","zh-TW":"{1} 個量值中的 {0} 個"}},Visualization_Invalid_Dimension:{id:"Visualization.Invalid.Dimension",locale:{"de-DE":"Ungültige Dimension","en-US":"Invalid dimension","es-ES":"Dimensión no válida","fr-FR":"Dimension non valide","it-IT":"Dimensione non valida","ja-JP":"無効な軸です","ko-KR":"잘못된 차원","nl-NL":"Ongeldige dimensie","pl-PL":"Nieprawidłowy wymiar","pt-BR":"Dimensão inválida","ru-RU":"Недопустимое измерение","sv-SE":"Ogiltig dimension","tr-TR":"Geçersiz boyut","zh-CN":"无效维度","zh-TW":"維度無效"}},Visualization_Invalid_Measure:{id:"Visualization.Invalid.Measure",locale:{"de-DE":"Ungültige Kennzahl","en-US":"Invalid measure","es-ES":"Medida no válida","fr-FR":"Mesure non valide","it-IT":"Misura non valida","ja-JP":"無効なメジャーです","ko-KR":"잘못된 측정값","nl-NL":"Ongeldige meting","pl-PL":"Nieprawidłowa miara","pt-BR":"Medida inválida","ru-RU":"Недопустимая мера","sv-SE":"Ogiltigt mått","tr-TR":"Geçersiz hesaplama","zh-CN":"无效度量项","zh-TW":"量值無效"}},Visualization_LayoutError:{id:"Visualization.LayoutError",locale:{"de-DE":"Fehler","en-US":"Error","es-ES":"Error","fr-FR":"Erreur","it-IT":"Errore","ja-JP":"エラー","ko-KR":"오류","nl-NL":"Fout","pl-PL":"Błąd","pt-BR":"Erro","ru-RU":"Ошибка","sv-SE":"Fel","tr-TR":"Hata","zh-CN":"错误","zh-TW":"錯誤"}},Visualization_UnfulfilledCalculationCondition:{id:"Visualization.UnfulfilledCalculationCondition",locale:{"de-DE":"Die Berechnungsbedingung ist nicht erfüllt","en-US":"The calculation condition is not fulfilled","es-ES":"La condición de cálculo no se cumple","fr-FR":"Condition de calcul non remplie","it-IT":"La condizione di calcolo non è soddisfatta","ja-JP":"演算実行条件が満たされていません","ko-KR":"계산 조건이 충족되지 않았습니다.","nl-NL":"Er is niet aan de berekeningsvoorwaarde voldaan","pl-PL":"Warunek obliczenia nie jest spełniony","pt-BR":"A condição de cálculo não foi atendida","ru-RU":"Условие вычисления не выполнено","sv-SE":"Beräkningsvillkoret uppfylls inte","tr-TR":"Hesaplama koşulu yerine getirilmedi","zh-CN":"不满足计算条件","zh-TW":"不符計算條件"}}};function Z(e){const t=G({initial:e});return Object.keys(K).forEach((e=>{t.translator.add(K[e])})),{translator:t.translator}}var X={};function Q(){Q.init.call(this)}X.isObject=function(e){return"object"==typeof e&&null!==e},X.isNumber=function(e){return"number"==typeof e},X.isUndefined=function(e){return void 0===e},X.isFunction=function(e){return"function"==typeof e};var J=Q;Q.EventEmitter=Q,Q.prototype._events=void 0,Q.prototype._maxListeners=void 0,Q.defaultMaxListeners=10,Q.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},Q.prototype.setMaxListeners=function(e){if(!X.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},Q.prototype.emit=function(e){var t,n,r,o,a,i;if(this._events||(this._events={}),"error"===e&&!this._events.error)throw(t=arguments[1])instanceof Error?t:Error('Uncaught, unspecified "error" event.');if(n=this._events[e],X.isUndefined(n))return!1;if(X.isFunction(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,o=new Array(r-1),a=1;a<r;a++)o[a-1]=arguments[a];n.apply(this,o)}else if(X.isObject(n)){for(r=arguments.length,o=new Array(r-1),a=1;a<r;a++)o[a-1]=arguments[a];for(r=(i=n.slice()).length,a=0;a<r;a++)i[a].apply(this,o)}return!0},Q.prototype.addListener=function(e,t){var n;if(!X.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,X.isFunction(t.listener)?t.listener:t),this._events[e]?X.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,X.isObject(this._events[e])&&!this._events[e].warned)&&((n=X.isUndefined(this._maxListeners)?Q.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,X.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),X.isFunction(console.trace)&&console.trace()));return this},Q.prototype.on=Q.prototype.addListener,Q.prototype.once=function(e,t){if(!X.isFunction(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},Q.prototype.removeListener=function(e,t){var n,r,o,a;if(!X.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(o=(n=this._events[e]).length,r=-1,n===t||X.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(X.isObject(n)){for(a=o;a-- >0;)if(n[a]===t||n[a].listener&&n[a].listener===t){r=a;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},Q.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],X.isFunction(n))this.removeListener(e,n);else if(Array.isArray(n))for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},Q.prototype.listeners=function(e){return this._events&&this._events[e]?X.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},Q.listenerCount=function(e,t){return e._events&&e._events[t]?X.isFunction(e._events[t])?1:e._events[t].length:0};var Y=n(J);function ee(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function te(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ne(){}var re=.7,oe=1/re,ae="\\s*([+-]?\\d+)\\s*",ie="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",le="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",se=/^#([0-9a-f]{3,8})$/,ce=new RegExp(`^rgb\\(${ae},${ae},${ae}\\)$`),ue=new RegExp(`^rgb\\(${le},${le},${le}\\)$`),de=new RegExp(`^rgba\\(${ae},${ae},${ae},${ie}\\)$`),pe=new RegExp(`^rgba\\(${le},${le},${le},${ie}\\)$`),fe=new RegExp(`^hsl\\(${ie},${le},${le}\\)$`),he=new RegExp(`^hsla\\(${ie},${le},${le},${ie}\\)$`),me={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function ge(){return this.rgb().formatHex()}function ve(){return this.rgb().formatRgb()}function be(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=se.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?ye(t):3===n?new we(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?xe(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?xe(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=ce.exec(e))?new we(t[1],t[2],t[3],1):(t=ue.exec(e))?new we(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=de.exec(e))?xe(t[1],t[2],t[3],t[4]):(t=pe.exec(e))?xe(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=fe.exec(e))?Oe(t[1],t[2]/100,t[3]/100,1):(t=he.exec(e))?Oe(t[1],t[2]/100,t[3]/100,t[4]):me.hasOwnProperty(e)?ye(me[e]):"transparent"===e?new we(NaN,NaN,NaN,0):null}function ye(e){return new we(e>>16&255,e>>8&255,255&e,1)}function xe(e,t,n,r){return r<=0&&(e=t=n=NaN),new we(e,t,n,r)}function Se(e,t,n,r){return 1===arguments.length?((o=e)instanceof ne||(o=be(o)),o?new we((o=o.rgb()).r,o.g,o.b,o.opacity):new we):new we(e,t,n,null==r?1:r);var o}function we(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Ee(){return`#${Le(this.r)}${Le(this.g)}${Le(this.b)}`}function Ce(){const e=ke(this.opacity);return`${1===e?"rgb(":"rgba("}${Re(this.r)}, ${Re(this.g)}, ${Re(this.b)}${1===e?")":`, ${e})`}`}function ke(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Re(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Le(e){return((e=Re(e))<16?"0":"")+e.toString(16)}function Oe(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new _e(e,t,n,r)}function Ie(e){if(e instanceof _e)return new _e(e.h,e.s,e.l,e.opacity);if(e instanceof ne||(e=be(e)),!e)return new _e;if(e instanceof _e)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),i=NaN,l=a-o,s=(a+o)/2;return l?(i=t===a?(n-r)/l+6*(n<r):n===a?(r-t)/l+2:(t-n)/l+4,l/=s<.5?a+o:2-a-o,i*=60):l=s>0&&s<1?0:i,new _e(i,l,s,e.opacity)}function _e(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Te(e){return(e=(e||0)%360)<0?e+360:e}function Pe(e){return Math.max(0,Math.min(1,e||0))}function Me(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}ee(ne,be,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ge,formatHex:ge,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ie(this).formatHsl()},formatRgb:ve,toString:ve}),ee(we,Se,te(ne,{brighter(e){return e=null==e?oe:Math.pow(oe,e),new we(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?re:Math.pow(re,e),new we(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new we(Re(this.r),Re(this.g),Re(this.b),ke(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ee,formatHex:Ee,formatHex8:function(){return`#${Le(this.r)}${Le(this.g)}${Le(this.b)}${Le(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ce,toString:Ce})),ee(_e,(function(e,t,n,r){return 1===arguments.length?Ie(e):new _e(e,t,n,null==r?1:r)}),te(ne,{brighter(e){return e=null==e?oe:Math.pow(oe,e),new _e(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?re:Math.pow(re,e),new _e(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new we(Me(e>=240?e-240:e+120,o,r),Me(e,o,r),Me(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new _e(Te(this.h),Pe(this.s),Pe(this.l),ke(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ke(this.opacity);return`${1===e?"hsl(":"hsla("}${Te(this.h)}, ${100*Pe(this.s)}%, ${100*Pe(this.l)}%${1===e?")":`, ${e})`}`}}));var Ne=Object.prototype.hasOwnProperty,qe=Object.prototype.toString,Ae=Object.defineProperty,ze=Object.getOwnPropertyDescriptor,De=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===qe.call(e)},je=function(e){if(!e||"[object Object]"!==qe.call(e))return!1;var t,n=Ne.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Ne.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Ne.call(e,t)},Fe=function(e,t){Ae&&"__proto__"===t.name?Ae(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Be=function(e,t){if("__proto__"===t){if(!Ne.call(e,t))return;if(ze)return ze(e,t).value}return e[t]},$e=function e(){var t,n,r,o,a,i,l=arguments[0],s=1,c=arguments.length,u=!1;for("boolean"==typeof l&&(u=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<c;++s)if(null!=(t=arguments[s]))for(n in t)r=Be(l,n),l!==(o=Be(t,n))&&(u&&o&&(je(o)||(a=De(o)))?(a?(a=!1,i=r&&De(r)?r:[]):i=r&&je(r)?r:{},Fe(l,{name:n,newValue:e(u,i,o)})):void 0!==o&&Fe(l,{name:n,newValue:o}));return l},We=n($e),He={fontSize:"12px",fontFamily:"'Source Sans Pro', 'Arial', 'sans-serif'",backgroundColor:"transparent",dataColors:{primaryColor:"#26a0a7",othersColor:"#a5a5a5",errorColor:"#ff4444",nullColor:"#d2d2d2"},scales:[{name:"Sequential Gradient",translation:"properties.colorScheme.sequential",type:"gradient",propertyValue:"sg",scale:["#26a0a7","#c7ea8b"]},{name:"Sequential Classes",translation:"properties.colorScheme.sequentialC",propertyValue:"sc",type:"class",scale:["#26a0a7","#c7ea8b"]},{name:"Diverging gradient",translation:"properties.colorScheme.diverging",propertyValue:"dg",type:"gradient",scale:["#26a0a7","#c3ea8c","#ec983d"]},{name:"Diverging Classes",translation:"properties.colorScheme.divergingC",propertyValue:"dc",type:"class",scale:["#26a0a7","#c3ea8c","#ec983d"]}],palettes:{data:[{name:"12 Colors",translation:"properties.colorNumberOfColors.12",propertyValue:"12",type:"pyramid",scale:[["#26A0A7"],["#26A0A7","#EC983D"],["#26A0A7","#CBE989","#EC983D"],["#26A0A7","#79D69F","#F9EC86","#EC983D"],["#26A0A7","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D","#D76C6C"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"],["#138185","#26A0A7","#65D3DA","#79D69F","#70BA6E","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"]]}],ui:[{name:"Palette",colors:["#b0afae","#7b7a78","#a54343","#d76c6c","#ec983d","#ecc43d","#f9ec86","#cbe989","#70ba6e","#578b60","#79d69f","#26a0a7","#138185","#65d3da","#ffffff","#000000"]}]}},Ue={_variables:{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},type:"light",color:"@B35"},Ve={_variables:{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},type:"dark",color:"@B98"},Ge={object:{listBox:{backgroundColor:"#ffffff",title:{main:{color:"#404040",fontSize:"14px",fontWeight:"bold"}},content:{color:"#404040",fontSize:"12px"}}}};class Ke{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=be(e)}addColorPart(e,t,n){n=n||0,this.startLevel=Math.max(n,this.startLevel),this.colorParts[n]||(this.colorParts[n]=[]),this.colorParts[n].push([be(e),be(t)])}getColor(e,t){const n=e-this.min;if(Number.isNaN(+e)||Number.isNaN(+n))return this.nanColor;t=function(e,t){return Math.min(t||e.startLevel,e.colorParts.length-1)}(this,t);const r=function(e,t){return t-(e=Math.min(Math.max(e,1e-12),.999999999999))*t}(n,this.colorParts[t].length);let o=Math.floor(r);o=o===r?o-1:o;const a=this.colorParts[t][o],i=a[0],l=a[1];if(e===this.min)return l;if(e===this.max)return i;const s=function(e,t,n){return Se(Math.floor(e.r+(t.r-e.r)*n),Math.floor(e.g+(t.g-e.g)*n),Math.floor(e.b+(t.b-e.b)*n),Math.floor(e.opacity+(t.opacity-e.opacity)*n))}(i,l,r-o);return s}}function Ze(e,t,n){const r=.25+(t+1)/n*.25,o=.5-r;return o+e/1*(.5+r-o)}function Xe(e,t,n){const r=[],o=new Ke(t);r.push(e[0]),n||r.push(e[0]);let a=1;for(;a<e.length-1;a++)r.push(e[a]),r.push(e[a]);r.push(e[a]),n||r.push(e[a]);for(let e=0;e<r.length;e+=2)o.addColorPart(r[e],r[e+1]);return o}function Qe(e,t,n){const r=[];for(let o=0;o<t+1;o++){let a;switch(t){case 0:a=e.getColor(.5);break;default:{const r=Ze(1/t*o,t,n);a=e.getColor(r);break}}r.push(be(a).formatHex())}return r}function Je(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#d2d2d2";e.forEach((e=>{if("class"===e.type){const n=function(e,t,n){const r=Xe(e,n,!0),o=Xe(Qe(r,t-1,t),n,!1),a=[null];for(let e=0;e<t;e++)a.push(Qe(o,e,t));return a}(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}}))}function Ye(e,t){const n=[];let r,o;if(e){let a=e.length;for(;a>=0;){for(r=t.slice(),o=r.length;o>=0;)n.push(r.concat(e)),r.pop(),o--;e.pop(),a--}}else for(r=t.slice(),o=r.length;o>=0;)n.push(r.concat()),r.pop(),o--;return n}function et(e,t){let n=e;for(let e=0;e<t.length;e++){if(!n[t[e]])return;n=n[t[e]]}return n}function tt(e,t,n,r){let o;if(""===e)o=Ye(null,n);else{o=Ye(e.split("."),n)}return function(e,t,n){const r=t.split(".");for(let t=0;t<e.length;t++){const o=et(n,[...e[t],...r]);if(void 0!==o)return o}}(o,t,r)}function nt(e,t){const n=e.split(".");return{getStyle:(e,r)=>tt(e,r,n.concat(),t)}}function rt(e,t){Object.keys(e).forEach((n=>{"object"==typeof e[n]&&null!==e[n]?rt(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])}))}function ot(e){const t=be(e).rgb(),{r:n,g:r,b:o}=t,[a,i,l]=[n,r,o].map((e=>e/255)),[s,c,u]=[a,i,l].map((e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4));return+(.2126*s+.7152*c+.0722*u).toFixed(5)}nt.resolveRawTheme=e=>{const t=We(!0,{},e);return rt(t,t._variables),t.scales&&Je(t.scales,t.dataColors&&t.dataColors.nullColor),t};const at=1e3;function it(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["#333333","#ffffff"],t={},n=0;const r=e.map(ot);return{getBestContrastColor(o){if(!t[o]){n>at&&(t={},n=0);const a=ot(o),i=r.map((e=>{return t=a,n=e,+((Math.max(t,n)+.05)/(Math.min(t,n)+.05)).toFixed(5);var t,n})),l=e[i.indexOf(Math.max(...i))];t[o]=l,n++}return t[o]}}}function lt(){let e,t,n,r={};const o={getDataColorScales:()=>t.dataScales(),getDataColorPalettes:()=>t.dataPalettes(),getDataColorPickerPalettes:()=>t.uiPalettes(),getDataColorSpecials:()=>t.dataColors(),getColorPickerColor(){return t.uiColor(...arguments)},getContrastingColorTo:e=>n.getBestContrastColor(e),getStyle:(t,n,o)=>(r[t]||(r[t]=nt(t,e)),r[t].getStyle(n,o)),validateColor(){const e=arguments.length<=0?void 0:arguments[0];let t;if("string"==typeof e&&(t=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))){const e=parseInt(t[1],10)/255,n=parseInt(t[2],10),r=parseInt(t[3],10),o=parseInt(t[4],10);return"rgba(".concat(n,",").concat(r,",").concat(o,",").concat(e,")")}const n=be(...arguments);return n?n.toString():void 0}},a={setTheme(a,i){e=function(e,t){const n="dark"===e.type?Ve:Ue;let r=Ge;!1!==e._inherit&&"false"!==e._inherit||(r={});const o=We(!0,{},He,n,r),a=We(!0,{},o,{scales:null,palettes:{data:null,ui:null}},e);return a.palettes.data&&a.palettes.data.length||(a.palettes.data=o.palettes.data),a.palettes.ui&&a.palettes.ui.length||(a.palettes.ui=o.palettes.ui),a.scales&&a.scales.length||(a.scales=o.scales),t(a)}(a,nt.resolveRawTheme),r={},t=function(e){let t;return{dataScales(){const t=[];return e.scales.forEach((e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,scheme:!0,type:e.type,colors:e.scale})})),t},dataPalettes(){const t=[];return e.palettes.data.forEach((e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,type:e.type,colors:e.scale})})),t},uiPalettes(){const t=[];return e.palettes.ui.forEach((e=>{t.push({key:"ui",name:e.name,translation:e.translation,type:"row",colors:e.colors})})),t},dataColors:()=>({primary:e.dataColors.primaryColor,nil:e.dataColors.nullColor,others:e.dataColors.othersColor}),uiColor(e,n){return n=!!n,e.index<0||void 0===e.index?e.color:(void 0===t&&(t=this.uiPalettes()[0]||!1),t?void 0===t.colors[e.index-n]?e.color:t.colors[e.index-n]:e.color)}}}(e);const l=o.getStyle("","","color"),s=ot(l);n=it([l,s<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>i}};return Object.keys(Y.prototype).forEach((e=>{o[e]=Y.prototype[e]})),Y.init(o),a.setTheme({},"light"),{externalAPI:o,internalAPI:a}}const st=(e,t)=>new Promise((n=>{setTimeout((()=>n(t)),e)})),ct=5e3;function ut(e){return"auto"!==e?e:function(){let e=!1;return window.PointerEvent&&"maxTouchPoints"in navigator?navigator.maxTouchPoints>0&&(e=!0):(window.matchMedia&&window.matchMedia("(any-pointer:coarse)").matches||window.TouchEvent||"ontouchstart"in window)&&(e=!0),e}()?"touch":"desktop"}var dt={},pt={exports:{}},ft={},ht={exports:{}},mt={};
7
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).stardust={})}(this,(function(e){"use strict";function t(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function l(e,t,n){return(t=i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}!function(e){var t=function(e){var t,n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var a=t&&t.prototype instanceof v?t:v,i=Object.create(a.prototype),l=new I(r||[]);return o(i,"_invoke",{value:L(e,n,l)}),i}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var p="suspendedStart",f="suspendedYield",h="executing",m="completed",g={};function v(){}function b(){}function y(){}var x={};c(x,i,(function(){return this}));var S=Object.getPrototypeOf,w=S&&S(S(T([])));w&&w!==n&&r.call(w,i)&&(x=w);var E=y.prototype=v.prototype=Object.create(x);function C(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(o,a,i,l){var s=d(e[o],e,a);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,i,l)}),(function(e){n("throw",e,i,l)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return n("throw",e,i,l)}))}l(s.arg)}var a;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function L(e,n,r){var o=p;return function(a,i){if(o===h)throw new Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var l=r.delegate;if(l){var s=R(l,r);if(s){if(s===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(e,n,r);if("normal"===c.type){if(o=r.done?m:f,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function R(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,R(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=d(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function T(e){if(null!=e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return b.prototype=y,o(E,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:b,configurable:!0}),b.displayName=c(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,s,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},C(k.prototype),c(k.prototype,l,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new k(u(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},C(E),c(E,s,"Generator"),c(E,i,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=T,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(_),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return l.type="throw",l.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}({exports:{}});var u={exports:{}},d={},p=Symbol.for("react.element"),f=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),v=Symbol.for("react.provider"),b=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),S=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),E=Symbol.iterator;var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,L={};function R(e,t,n){this.props=e,this.context=t,this.refs=L,this.updater=n||C}function O(){}function _(e,t,n){this.props=e,this.context=t,this.refs=L,this.updater=n||C}R.prototype.isReactComponent={},R.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},R.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},O.prototype=R.prototype;var I=_.prototype=new O;I.constructor=_,k(I,R.prototype),I.isPureReactComponent=!0;var T=Array.isArray,P=Object.prototype.hasOwnProperty,M={current:null},N={key:!0,ref:!0,__self:!0,__source:!0};function q(e,t,n){var r,o={},a=null,i=null;if(null!=t)for(r in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(a=""+t.key),t)P.call(t,r)&&!N.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var s=Array(l),c=0;c<l;c++)s[c]=arguments[c+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:p,type:e,key:a,ref:i,props:o,_owner:M.current}}function A(e){return"object"==typeof e&&null!==e&&e.$$typeof===p}var D=/\/+/g;function z(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function j(e,t,n,r,o){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var i=!1;if(null===e)i=!0;else switch(a){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case p:case f:i=!0}}if(i)return o=o(i=e),e=""===r?"."+z(i,0):r,T(o)?(n="",null!=e&&(n=e.replace(D,"$&/")+"/"),j(o,t,n,"",(function(e){return e}))):null!=o&&(A(o)&&(o=function(e,t){return{$$typeof:p,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(D,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=""===r?".":r+":",T(e))for(var l=0;l<e.length;l++){var s=r+z(a=e[l],l);i+=j(a,t,n,s,o)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=E&&e[E]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),l=0;!(a=e.next()).done;)i+=j(a=a.value,t,n,s=r+z(a,l++),o);else if("object"===a)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function F(e,t,n){if(null==e)return e;var r=[],o=0;return j(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}var $={current:null},W={transition:null},H={ReactCurrentDispatcher:$,ReactCurrentBatchConfig:W,ReactCurrentOwner:M};d.Children={map:F,forEach:function(e,t,n){F(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return F(e,(function(){t++})),t},toArray:function(e){return F(e,(function(e){return e}))||[]},only:function(e){if(!A(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},d.Component=R,d.Fragment=h,d.Profiler=g,d.PureComponent=_,d.StrictMode=m,d.Suspense=x,d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=H,d.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=k({},e.props),o=e.key,a=e.ref,i=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,i=M.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)P.call(t,s)&&!N.hasOwnProperty(s)&&(r[s]=void 0===t[s]&&void 0!==l?l[s]:t[s])}var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){l=Array(s);for(var c=0;c<s;c++)l[c]=arguments[c+2];r.children=l}return{$$typeof:p,type:e.type,key:o,ref:a,props:r,_owner:i}},d.createContext=function(e){return(e={$$typeof:b,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:v,_context:e},e.Consumer=e},d.createElement=q,d.createFactory=function(e){var t=q.bind(null,e);return t.type=e,t},d.createRef=function(){return{current:null}},d.forwardRef=function(e){return{$$typeof:y,render:e}},d.isValidElement=A,d.lazy=function(e){return{$$typeof:w,_payload:{_status:-1,_result:e},_init:B}},d.memo=function(e,t){return{$$typeof:S,type:e,compare:void 0===t?null:t}},d.startTransition=function(e){var t=W.transition;W.transition={};try{e()}finally{W.transition=t}},d.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},d.useCallback=function(e,t){return $.current.useCallback(e,t)},d.useContext=function(e){return $.current.useContext(e)},d.useDebugValue=function(){},d.useDeferredValue=function(e){return $.current.useDeferredValue(e)},d.useEffect=function(e,t){return $.current.useEffect(e,t)},d.useId=function(){return $.current.useId()},d.useImperativeHandle=function(e,t,n){return $.current.useImperativeHandle(e,t,n)},d.useInsertionEffect=function(e,t){return $.current.useInsertionEffect(e,t)},d.useLayoutEffect=function(e,t){return $.current.useLayoutEffect(e,t)},d.useMemo=function(e,t){return $.current.useMemo(e,t)},d.useReducer=function(e,t,n){return $.current.useReducer(e,t,n)},d.useRef=function(e){return $.current.useRef(e)},d.useState=function(e){return $.current.useState(e)},d.useSyncExternalStore=function(e,t,n){return $.current.useSyncExternalStore(e,t,n)},d.useTransition=function(){return $.current.useTransition()},d.version="18.2.0",u.exports=d;var U=u.exports,V=n(U),G=t({__proto__:null,default:V},[U]);const K=function(){let{initial:e="en-US",fallback:t="en-US"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=function(){let{initial:e="en-US",fallback:t="en-US"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n={};let r=e;const o={language:e=>(e&&(r=e),r),add:e=>{const{id:t,locale:r}=e;Object.keys(r).forEach((e=>{n[e]||(n[e]={}),n[e][t]=r[e]}))},get(e,o){let a;return a=n[r]&&void 0!==n[r][e]?n[r][e]:n[t]&&void 0!==n[t][e]?n[t][e]:e,void 0!==o?function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const t="string"==typeof e||"number"==typeof e?[e]:e;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/\{(\d+)\}/g,((e,n)=>void 0!==t[n]?t[n]:e))}(a,o):a}};return o}({initial:e,fallback:t});return{translator:n}};var Z={Cancel:{id:"Cancel",locale:{"de-DE":"Abbrechen","en-US":"Cancel","es-ES":"Cancelar","fr-FR":"Annuler","it-IT":"Annulla","ja-JP":"キャンセル","ko-KR":"취소","nl-NL":"Annuleren","pl-PL":"Anuluj","pt-BR":"Cancelar","ru-RU":"Отмена","sv-SE":"Avbryt","tr-TR":"İptal","zh-CN":"取消","zh-TW":"取消"}},CurrentSelections_All:{id:"CurrentSelections.All",locale:{"de-DE":"ALLES","en-US":"ALL","es-ES":"TODOS","fr-FR":"TOUS","it-IT":"TUTTI","ja-JP":"すべて","ko-KR":"모두","nl-NL":"ALLE","pl-PL":"WSZYSTKO","pt-BR":"TODOS","ru-RU":"ВСЕ","sv-SE":"ALLA","tr-TR":"TÜMÜ","zh-CN":"全部","zh-TW":"全部"}},CurrentSelections_Of:{id:"CurrentSelections.Of",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0}/ {1}","ko-KR":"{0} / {1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0}/ {1}","zh-TW":"{0}/ {1}"}},Listbox_Dismiss:{id:"Listbox.Dismiss",locale:{"de-DE":"Schließen","en-US":"Dismiss","es-ES":"Descartar","fr-FR":"Ignorer","it-IT":"Ignora","ja-JP":"却下","ko-KR":"해제","nl-NL":"Overslaan","pl-PL":"Zamknij","pt-BR":"Ignorar","ru-RU":"Пропустить","sv-SE":"Hoppa över","tr-TR":"Kapat","zh-CN":"离开","zh-TW":"解除"}},Listbox_DrillDown:{id:"Listbox.DrillDown",locale:{"de-DE":"Drilldown-Dimension","en-US":"Drill-down dimension","es-ES":"Dimensión jerárquica","fr-FR":"Dimension hiérarchique","it-IT":"Dimensione drill-down","ja-JP":"軸のドリルダウン","ko-KR":"드릴다운 차원","nl-NL":"Drill-downdimensie","pl-PL":"Wymiar hierarchiczny","pt-BR":"Dimensão de detalhamento","ru-RU":"Детализированное измерение","sv-SE":"Hierarkisk dimension","tr-TR":"Detaya inme boyutu","zh-CN":"钻取维度","zh-TW":"向下探查維度"}},Listbox_ItemsOverflow:{id:"Listbox.ItemsOverflow",locale:{"de-DE":"Derzeit wird ein eingeschränkter Datensatz angezeigt, verwenden Sie die Suche, um die Größe zu reduzieren","en-US":"Currently showing a limited data set, use search to reduce the size","es-ES":"Actualmente se muestra un conjunto de datos limitado, utilice la búsqueda para reducir el tamaño","fr-FR":"Ensemble de données limité actuellement affiché. Utilisez la rechercher pour réduire la taille.","it-IT":"Attualmente visualizzato un set di dati limitato; utilizzare la ricerca per ridurre le dimensioni","ja-JP":"現在表示されているデータ セットは制限されているため、検索を使ってサイズを縮小してください","ko-KR":"현재 제한된 데이터 집합이 표시되고 있습니다. 검색을 사용하여 크기를 줄이십시오.","nl-NL":"Er wordt momenteel een beperkte gegevensverzameling getoond, gebruik Zoeken om de omvang te verkleinen","pl-PL":"Wyświetlany jest ograniczony zestaw danych. Użyj wyszukiwania, aby zmniejszyć rozmiar.","pt-BR":"Atualmente mostrando um conjunto de dados limitado, use a pesquisa para reduzir o tamanho","ru-RU":"Сейчас отображается ограниченный набор данных. Используйте поиск, чтобы уменьшить размер.","sv-SE":"En begränsad datauppsättning visas. Använd sök för att minska storleken","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor. Boyutu azaltmak için arama işlevini kullanın","zh-CN":"目前显示有限的数据集,使用搜索来减少大小","zh-TW":"目前顯示有限資料集,請使用搜尋減少大小"}},Listbox_Lock:{id:"Listbox.Lock",locale:{"de-DE":"Auswahlen sperren","en-US":"Lock selections","es-ES":"Bloquear selecciones","fr-FR":"Verrouiller les sélections","it-IT":"Blocca selezioni","ja-JP":"選択をロック","ko-KR":"선택 내용 잠금","nl-NL":"Selecties vergrendelen","pl-PL":"Zablokuj wybory","pt-BR":"Bloquear seleções","ru-RU":"Заблокировать выборки","sv-SE":"Lås urval","tr-TR":"Seçimleri kilitle","zh-CN":"锁定选择项","zh-TW":"鎖定選項"}},Listbox_NoMatchesForYourTerms:{id:"Listbox.NoMatchesForYourTerms",locale:{"de-DE":"Für Ihre Suche wurden keine Übereinstimmungen gefunden.","en-US":"There are no matches for your search.","es-ES":"No hay resultados para su búsqueda.","fr-FR":"Aucun résultat ne correspond à votre recherche.","it-IT":"Non è stata trovata alcuna corrispondenza per questa ricerca.","ja-JP":"検索に一致するものがありません。","ko-KR":"검색에 대해 일치하는 항목이 없습니다.","nl-NL":"Er zijn geen overeenkomsten voor uw zoekopdracht.","pl-PL":"Brak dopasowań dla tego wyszukiwania.","pt-BR":"Não há correspondências para sua pesquisa.","ru-RU":"Нет совпадений по вашему поисковому запросу.","sv-SE":"Det finns inga matchningar för din sökning.","tr-TR":"Aramanızla eşleşen sonuç yok.","zh-CN":"您的搜索条件没有任何匹配结果。","zh-TW":"沒有與您搜尋相符的項目。"}},Listbox_ResultFilterLabel:{id:"Listbox.ResultFilterLabel",locale:{"de-DE":"Suchergebnisfilter","en-US":"Search Results Filter","es-ES":"Filtro de resultados de búsqueda","fr-FR":"Filtre de résultats de recherche","it-IT":"Filtro risultati Ricerca","ja-JP":"検索結果フィルター","ko-KR":"검색 결과 필터","nl-NL":"Filter voor zoekresultaten","pl-PL":"Filtr wyników wyszukiwania","pt-BR":"Filtro de resultados da pesquisa","ru-RU":"Фильтр результатов поиска","sv-SE":"Filter för sökresultat","tr-TR":"Arama Sonuçları Filtresi","zh-CN":"搜索结果筛选器","zh-TW":"搜尋結果篩選"}},Listbox_ScreenReader_SearchThenSelectionsMenu_WithAccSelMenu:{id:"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu",locale:{"de-DE":"Drücken Sie die Umschalttaste zusammen mit der Tabulatortaste, um den Fokus in die Suchleiste zu setzen, und dann erneut beide Tasten, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the search bar, then Shift plus Tab again to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en la barra de búsqueda, luego Mayús + Tabulador nuevamente para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur la barre de recherche, puis de nouveau sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere MAIUSC+TAB per impostare lo stato attivo sulla barra di ricerca, quindi premere nuovamente MAIUSC+TAB per impostare lo stato attivo sul menu selezioni.","ja-JP":"Shift + Tab を押して検索バーにフォーカスを設定し、Shift + Tab をもう一度押して選択メニューにフォーカスを設定します。","ko-KR":"Shift+Tab을 눌러 검색 막대에 초점을 맞춘 다음 Shift+Tab을 다시 눌러 선택 메뉴에 초점을 맞추십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op de zoekbalk, druk vervolgens nogmaals op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na pasku wyszukiwania. Następnie ponownie użyj tej kombinacji klawiszy, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco na barra de pesquisa e Shift + Tab novamente para definir o foco no menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на строку поиска. Затем снова нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb för att ställa in fokus på sökfältet, sedan Skift plus Tabb igen för att ställa in fokus på urvalsmenyn.","tr-TR":"Odağı arama çubuğuna ayarlamak için Shift ve Sekme tuşlarına birlikte basın, ardından bu tuşlara birlikte tekrar basarak odağı seçim menüsüne ayarlayın.","zh-CN":"按 Shift+Tab 在搜索栏上设置焦点,然后再次按 Shift+Tab 在“选择”菜单上设置焦点。","zh-TW":"按下 Shift 加 Tab 鍵以設定搜尋列上的焦點,然後再次按下 Shift 加 Tab 鍵,以設定選項功能表上的焦點。"}},Listbox_ScreenReader_SelectionMenu_WithAccSelMenu:{id:"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",locale:{"de-DE":"Drücken Sie gleichzeitig die Umschalt- und die Tabulatortaste, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere i tasti MAIUSC+TAB per evidenziare il menu di selezione.","ja-JP":"Shift キー + Tab キーを押して選択メニューにフォーカスを設定します。","ko-KR":"선택 메뉴에 초점을 설정하려면 Shift+Tab을 누르십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco sobre o menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb när du vill ställa in fokus på urvalsmenyn.","tr-TR":"Odağı seçim menüsüne ayarlamak için Shift ve Sekme tuşlarına birlikte basın.","zh-CN":"按下 Shift 加 Tab 以将焦点设置在选择菜单上。","zh-TW":"按下 Shift 加 Tab 以在選項功能表上設定焦點。"}},Listbox_ScreenReaderInstructions:{id:"Listbox.ScreenReaderInstructions",locale:{"de-DE":"Bei Aktivierung der Elemente unten wird der Seiteninhalt aktualisiert","en-US":"Activating the elements below will cause content on the page to be updated","es-ES":"La activación de los elementos siguientes hará que se actualice el contenido en la página","fr-FR":"L'activation des éléments ci-dessous actualisera le contenu de la page.","it-IT":"L'attivazione degli elementi sottostanti causerà l'aggiornamento del contenuto della pagina","ja-JP":"下記の要素をアクティブ化すると、ページのコンテンツが更新されます","ko-KR":"아래 요소를 활성화하면 페이지의 콘텐츠가 업데이트됩니다.","nl-NL":"Door de onderstaande elementen te activeren wordt de inhoud op de pagina bijgewerkt","pl-PL":"Aktywacja poniższych elementów spowoduje aktualizację zawartości na stronie","pt-BR":"A ativação dos elementos abaixo fará com que o conteúdo da página seja atualizado","ru-RU":"Активация приведенных ниже элементов приведет к обновлению содержимого страницы","sv-SE":"Om du aktiverar elementen nedan kommer innehåll på sidan att uppdateras","tr-TR":"Aşağıdaki öğeleri etkinleştirmek sayfadaki içeriğin güncellenmesine neden olur","zh-CN":"激活下面的元素将导致页面上的内容更新","zh-TW":"啟用以下元素將會造成更新頁面上的內容"}},Listbox_Search:{id:"Listbox.Search",locale:{"de-DE":"In Listenfeld suchen","en-US":"Search in listbox","es-ES":"Buscar en cuadro de lista","fr-FR":"Rechercher dans la liste de sélection","it-IT":"Cerca nella casella di elenco","ja-JP":"リストボックス内を検索","ko-KR":"목록 상자에서 검색","nl-NL":"Zoeken in keuzelijst","pl-PL":"Wyszukaj w liście wartości","pt-BR":"Pesquisar na caixa de listagem","ru-RU":"Поиск в списке","sv-SE":"Sök i listruta","tr-TR":"Liste kutusunda ara","zh-CN":"在列表框中搜索","zh-TW":"在清單方塊中搜尋"}},Listbox_Search_ScreenReaderInstructions:{id:"Listbox.Search.ScreenReaderInstructions",locale:{"de-DE":"Über das folgende Suchfeld werden Ergebnisse während der Eingabe gefiltert","en-US":"The following search field filters results below as you type","es-ES":"El siguiente campo de búsqueda filtra los resultados siguientes a medida que escribe","fr-FR":"Le champ de recherche suivant filtrer les résultats ci-dessous à mesure de votre saisie.","it-IT":"Il seguente campo di ricerca filtra i risultati man mano che vengono digitati","ja-JP":"次の検索フィールドは、入力と同時に下記の結果をフィルターします","ko-KR":"다음 검색 필드는 입력할 때 아래의 결과를 필터링합니다.","nl-NL":"Het volgende zoekveld filtert resultaten terwijl u typt","pl-PL":"Następujące pole wyszukiwania filtruje wyniki poniżej w miarę pisania","pt-BR":"O campo de pesquisa a seguir filtra os resultados abaixo conforme você digita","ru-RU":"Следующее поле поиска фильтрует результаты ниже по мере ввода текста","sv-SE":"Följande sökfält filtrerar resultaten nedan medan du skriver","tr-TR":"Aşağıdaki arama alanı siz yazarken aşağıdaki sonuçları filtreler","zh-CN":"键入时,以下搜索字段筛选结果如下","zh-TW":"下列搜尋欄位在您輸入時篩選以下結果"}},Listbox_Unlock:{id:"Listbox.Unlock",locale:{"de-DE":"Auswahlen entsperren","en-US":"Unlock selections","es-ES":"Desbloquear selecciones","fr-FR":"Déverrouiller les sélections","it-IT":"Sblocca selezioni","ja-JP":"選択をロック解除","ko-KR":"선택 내용 잠금 해제","nl-NL":"Selecties ontgrendelen","pl-PL":"Odblokuj wybory","pt-BR":"Desbloquear seleções","ru-RU":"Разблокировать выборки","sv-SE":"Lås upp urval","tr-TR":"Seçimlerin kilidini aç","zh-CN":"将选择项解锁","zh-TW":"解鎖選項"}},Menu_More:{id:"Menu.More",locale:{"de-DE":"Mehr","en-US":"More","es-ES":"Más","fr-FR":"Plus","it-IT":"Altro","ja-JP":"詳細","ko-KR":"자세히","nl-NL":"Meer","pl-PL":"Więcej","pt-BR":"Mais","ru-RU":"Дополнительно","sv-SE":"Mer","tr-TR":"Daha fazla","zh-CN":"更多","zh-TW":"更多"}},Navigate_Back:{id:"Navigate.Back",locale:{"de-DE":"Schritt zurück","en-US":"Step back","es-ES":"Atrás","fr-FR":"Retour en arrière","it-IT":"Torna indietro","ja-JP":"1 段階戻る","ko-KR":"이전 단계","nl-NL":"Stap terug","pl-PL":"Krok do tyłu","pt-BR":"Voltar uma etapa","ru-RU":"Шаг назад","sv-SE":"Gå bakåt","tr-TR":"Bir adım geri","zh-CN":"后退","zh-TW":"倒退"}},Navigate_Forward:{id:"Navigate.Forward",locale:{"de-DE":"Schritt vor","en-US":"Step forward","es-ES":"Avanzar","fr-FR":"Étape suivante","it-IT":"Vai avanti","ja-JP":"1段階進む","ko-KR":"다음 단계","nl-NL":"Stap vooruit","pl-PL":"Krok do przodu","pt-BR":"Avançar uma etapa","ru-RU":"Шаг вперед","sv-SE":"Gå framåt","tr-TR":"Bir adım ileri","zh-CN":"前进","zh-TW":"前進"}},OK:{id:"OK",locale:{"de-DE":"OK","en-US":"OK","es-ES":"Aceptar","fr-FR":"OK","it-IT":"OK","ja-JP":"OK","ko-KR":"확인","nl-NL":"OK","pl-PL":"OK","pt-BR":"OK","ru-RU":"ОК","sv-SE":"OK","tr-TR":"Tamam","zh-CN":"确定","zh-TW":"確定"}},Object_Listbox_Alternative:{id:"Object.Listbox.Alternative",locale:{"de-DE":"Alternative","en-US":"Alternative","es-ES":"Alternativo","fr-FR":"Alternatif","it-IT":"Alternativo","ja-JP":"代替","ko-KR":"대체 항목","nl-NL":"Alternatief","pl-PL":"Alternatywne","pt-BR":"Alternativo","ru-RU":"Альтернативные","sv-SE":"Alternativ","tr-TR":"Alternatif","zh-CN":"可选","zh-TW":"替代選項"}},Object_Listbox_Excluded:{id:"Object.Listbox.Excluded",locale:{"de-DE":"Ausgeschlossen","en-US":"Excluded","es-ES":"Excluido","fr-FR":"Exclu","it-IT":"Escluso","ja-JP":"除外済み","ko-KR":"제외됨","nl-NL":"Uitgesloten","pl-PL":"Wykluczone","pt-BR":"Excluído","ru-RU":"Исключенные","sv-SE":"Uteslutet","tr-TR":"Hariç tutulan","zh-CN":"已排除","zh-TW":"已排除"}},Object_Listbox_ExcludedLock:{id:"Object.Listbox.ExcludedLock",locale:{"de-DE":"Ausgeschlossene Sperre","en-US":"Excluded lock","es-ES":"Bloqueo excluido","fr-FR":"Exclu verrouillé","it-IT":"Blocco escluso","ja-JP":"除外されたロック","ko-KR":"제외된 잠금","nl-NL":"Uitsluitingsvergrendeling","pl-PL":"Wykluczone zablokowane","pt-BR":"Bloqueado excluído","ru-RU":"Блокировать исключенные элементы","sv-SE":"Uteslutet låst","tr-TR":"Hariç tutulan kilit","zh-CN":"已排除锁定","zh-TW":"已排除鎖定"}},Object_Listbox_Locked:{id:"Object.Listbox.Locked",locale:{"de-DE":"Gesperrt","en-US":"Locked","es-ES":"Bloqueado","fr-FR":"Verrouillé","it-IT":"Bloccato","ja-JP":"ロック済み","ko-KR":"잠김","nl-NL":"Vergrendeld","pl-PL":"Zablokowane","pt-BR":"Bloqueado","ru-RU":"Заблокированные","sv-SE":"Låst","tr-TR":"Kilitli","zh-CN":"已锁定","zh-TW":"已鎖定"}},Object_Listbox_Optional:{id:"Object.Listbox.Optional",locale:{"de-DE":"Optional","en-US":"Optional","es-ES":"Opcional","fr-FR":"Facultatif","it-IT":"Opzionale","ja-JP":"オプション","ko-KR":"선택 사항","nl-NL":"Optioneel","pl-PL":"Opcjonalne","pt-BR":"Opcional","ru-RU":"Дополнительные","sv-SE":"Valfritt","tr-TR":"İsteğe bağlı","zh-CN":"可选","zh-TW":"選用"}},Object_Listbox_Selected:{id:"Object.Listbox.Selected",locale:{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбранные","sv-SE":"Urval","tr-TR":"Seçilen","zh-CN":"已选择","zh-TW":"已選取"}},Object_Listbox_SelectedExcluded:{id:"Object.Listbox.SelectedExcluded",locale:{"de-DE":"Ausgeschlossen ausgewählt","en-US":"Selected excluded","es-ES":"Seleccionado excluido","fr-FR":"Sélectionné exclu","it-IT":"Selezionato escluso","ja-JP":"選択された除外値","ko-KR":"제외 항목 선택됨","nl-NL":"Geselecteerde uitgesloten","pl-PL":"Wybrane wykluczone","pt-BR":"Excluído selecionado","ru-RU":"Выбранные исключенные элементы","sv-SE":"Urval uteslutet","tr-TR":"Seçili hariç tutulan","zh-CN":"已排除选择","zh-TW":"已選取排除值"}},Object_Update_Active:{id:"Object.Update.Active",locale:{"de-DE":"Laden von Daten","en-US":"Updating data","es-ES":"Cargando datos","fr-FR":"Chargement de données en cours","it-IT":"Caricamento dati in corso","ja-JP":"データのロード中","ko-KR":"데이터 로드 중","nl-NL":"Gegevens worden geladen","pl-PL":"Ładowanie danych","pt-BR":"Carregando dados","ru-RU":"Загрузка данных","sv-SE":"Laddar data","tr-TR":"Veriler yükleniyor","zh-CN":"加载数据","zh-TW":"正在載入資料"}},Object_Update_Cancelled:{id:"Object.Update.Cancelled",locale:{"de-DE":"Datenaktualisierung wurde abgebrochen","en-US":"Data update was cancelled","es-ES":"Se ha cancelado la actualización de datos","fr-FR":"Mise à jour des données annulée","it-IT":"Aggiornamento dati annullato","ja-JP":"データの更新がキャンセルされました","ko-KR":"데이터 업데이트가 취소되었습니다.","nl-NL":"Gegevensupdate is geannuleerd","pl-PL":"Aktualizacja danych została anulowana","pt-BR":"A atualização de dados foi cancelada","ru-RU":"Обновление данных отменено","sv-SE":"Datauppdateringen avbröts.","tr-TR":"Veri güncelleştirme iptal edildi","zh-CN":"数据更新已取消","zh-TW":"資料更新已取消"}},Retry:{id:"Retry",locale:{"de-DE":"Wiederholen","en-US":"Retry","es-ES":"Intentar de nuevo","fr-FR":"Réessayer","it-IT":"Riprova","ja-JP":"再試行","ko-KR":"다시 시도","nl-NL":"Opnieuw","pl-PL":"Ponów próbę","pt-BR":"Tentar novamente","ru-RU":"Повторить попытку","sv-SE":"Försök igen","tr-TR":"Yeniden dene","zh-CN":"重试","zh-TW":"重試"}},ScreenReader_ManySearchResults:{id:"ScreenReader.ManySearchResults",locale:{"de-DE":"Es sind {0} Ergebnisse verfügbar","en-US":"There are {0} available results","es-ES":"Hay {0} resultados disponibles","fr-FR":"Il existe {0} résultats disponibles.","it-IT":"{0} risultati disponibili","ja-JP":"利用可能な結果が {0} つあります","ko-KR":"{0}개의 결과를 사용할 수 있음","nl-NL":"Er zijn {0} beschikbare resultaten","pl-PL":"Liczba dostępnych wyników: {0}","pt-BR":"Há {0} resultados disponíveis","ru-RU":"Имеются доступные результаты: {0}","sv-SE":"Det finns {0} tillgängliga resultat","tr-TR":"Kullanılabilir {0} sonuç mevcut","zh-CN":"有 {0} 个可用结果","zh-TW":"有 {0} 個可用的結果"}},ScreenReader_ManySelected:{id:"ScreenReader.ManySelected",locale:{"de-DE":"Es sind {0} Werte ausgewählt.","en-US":"There are {0} selected values.","es-ES":"Hay {0} valores seleccionados.","fr-FR":"{0} valeurs sont sélectionnées.","it-IT":"Sono presenti {0} valori selezionati.","ja-JP":"値が {0} 個選択されています。","ko-KR":"{0}개의 값이 선택되었습니다.","nl-NL":"Er zijn {0} geselecteerde waarden.","pl-PL":"Wybranych wartości: {0}","pt-BR":"Há {0} valores selecionados.","ru-RU":"Выбраны {0} значений(я).","sv-SE":"{0} värden är valda.","tr-TR":"Seçilen {0} değer var.","zh-CN":"存在 {0} 个已选择的值。","zh-TW":"有 {0} 個選取的值。"}},ScreenReader_OneSearchResult:{id:"ScreenReader.OneSearchResult",locale:{"de-DE":"Es ist ein Ergebnis verfügbar","en-US":"There is one available result","es-ES":"Hay un resultado disponible","fr-FR":"Il existe un résultat disponible.","it-IT":"Un risultato disponibile","ja-JP":"利用可能な結果が 1 つあります","ko-KR":"하나의 결과를 사용할 수 있음","nl-NL":"Er is één beschikbaar resultaat","pl-PL":"Jest jeden dostępny wynik","pt-BR":"Há um resultado disponível","ru-RU":"Имеется один доступный результат","sv-SE":"Det finns ett tillgängligt resultat","tr-TR":"Kullanılabilir bir sonuç mevcut","zh-CN":"有一个可用结果","zh-TW":"有一個可用的結果"}},ScreenReader_OneSelected:{id:"ScreenReader.OneSelected",locale:{"de-DE":"Es ist ein Wert ausgewählt.","en-US":"There is one selected value.","es-ES":"Hay un valor seleccionado.","fr-FR":"Une valeur est sélectionnée.","it-IT":"È presente un valore selezionato.","ja-JP":"値が 1 つ選択されています。","ko-KR":"하나의 값이 선택되었습니다.","nl-NL":"Er is één waarde geselecteerd.","pl-PL":"Istnieje jedna wybrana wartość.","pt-BR":"Há um valor selecionado.","ru-RU":"Выбрано одно значение.","sv-SE":"Ett värde är valt.","tr-TR":"Seçilen bir değer var.","zh-CN":"存在一个已选择的值。","zh-TW":"有一個選取的值。"}},ScreenReader_ZeroSelected:{id:"ScreenReader.ZeroSelected",locale:{"de-DE":"Es sind keine Werte ausgewählt.","en-US":"No values are selected.","es-ES":"No se ha seleccionado ningún valor.","fr-FR":"Aucune valeur n'est sélectionnée.","it-IT":"Nessun valore selezionato.","ja-JP":"値が選択されていません。","ko-KR":"선택된 값이 없습니다.","nl-NL":"Geen waarden geselecteerd.","pl-PL":"Brak wybranych wartości.","pt-BR":"Nenhum valor selecionado.","ru-RU":"Значения не выбраны.","sv-SE":"Inga värden är valda.","tr-TR":"Seçilen değer yok.","zh-CN":"未选择值。","zh-TW":"沒有選取任何值。"}},Selection_Cancel:{id:"Selection.Cancel",locale:{"de-DE":"Auswahl abbrechen","en-US":"Cancel selection","es-ES":"Cancelar selección","fr-FR":"Annuler la sélection","it-IT":"Annulla selezione","ja-JP":"選択のキャンセル","ko-KR":"선택 취소","nl-NL":"Selectie annuleren","pl-PL":"Anuluj selekcję","pt-BR":"Cancelar seleção","ru-RU":"Отменить выборку","sv-SE":"Avbryt urval","tr-TR":"Seçimi iptal et","zh-CN":"取消选择","zh-TW":"取消選取"}},Selection_Clear:{id:"Selection.Clear",locale:{"de-DE":"Auswahl löschen","en-US":"Clear selection","es-ES":"Borrar selección","fr-FR":"Effacer la sélection","it-IT":"Cancella selezione","ja-JP":"選択をクリア","ko-KR":"선택 해제","nl-NL":"Selectie wissen","pl-PL":"Wyczyść selekcję","pt-BR":"Limpar seleção","ru-RU":"Очистить выбор","sv-SE":"Rensa urval","tr-TR":"Seçimi temizle","zh-CN":"清除选择","zh-TW":"清除選項"}},Selection_ClearAll:{id:"Selection.ClearAll",locale:{"de-DE":"Alle Auswahlen löschen","en-US":"Clear all selections","es-ES":"Borrar todas las selecciones","fr-FR":"Effacer toutes les sélections","it-IT":"Cancella tutte le selezioni","ja-JP":"選択をすべてクリアする","ko-KR":"모든 선택 해제","nl-NL":"Alle selecties wissen","pl-PL":"Wyczyść wszystkie selekcje","pt-BR":"Limpar todas as seleções","ru-RU":"Очистить от всех выборок","sv-SE":"Radera alla urval","tr-TR":"Tüm seçimleri temizle","zh-CN":"清除所有选择项","zh-TW":"清除所有選項"}},Selection_ClearAllStates:{id:"Selection.ClearAllStates",locale:{"de-DE":"Alle Status löschen","en-US":"Clear all states","es-ES":"Borrar todos los estados","fr-FR":"Effacer tous les états","it-IT":"Cancella tutti gli stati","ja-JP":"全ステートをクリア","ko-KR":"모든 상태 지우기","nl-NL":"Alle states wissen","pl-PL":"Wyczyść wszystkie stany","pt-BR":"Limpar todos os estados","ru-RU":"Очистить все состояния","sv-SE":"Rensa alla tillstånd","tr-TR":"Tüm durumları temizle","zh-CN":"清除所有状态","zh-TW":"清除所有狀態"}},Selection_Confirm:{id:"Selection.Confirm",locale:{"de-DE":"Auswahl bestätigen","en-US":"Confirm selection","es-ES":"Confirmar selección","fr-FR":"Confirmer la sélection","it-IT":"Conferma selezione","ja-JP":"選択の確認","ko-KR":"선택 확인","nl-NL":"Selectie bevestigen","pl-PL":"Potwierdź selekcję","pt-BR":"Confirmar seleção","ru-RU":"Подтвердить выборку","sv-SE":"Bekräfta urval","tr-TR":"Seçimi onayla","zh-CN":"确认选择","zh-TW":"確認選取"}},Selection_Menu:{id:"Selection.Menu",locale:{"de-DE":"Auswahlmenü","en-US":"Selection menu","es-ES":"Menú de selección","fr-FR":"Menu Sélection","it-IT":"Menu Selezione","ja-JP":"選択メニュー","ko-KR":"선택 메뉴","nl-NL":"Selectiemenu","pl-PL":"Menu selekcji","pt-BR":"Menu de seleção","ru-RU":'Меню "Выборка"',"sv-SE":"Urvalsmeny","tr-TR":"Seçim menüsü","zh-CN":"选择菜单","zh-TW":"選項功能表"}},Selection_SelectAll:{id:"Selection.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutto","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar todos","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},Selection_SelectAlternative:{id:"Selection.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替値を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},Selection_SelectExcluded:{id:"Selection.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外値を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluído","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},Selection_SelectPossible:{id:"Selection.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込値を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possível","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olasıyı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},SelectionToolbar_ClickToLock:{id:"SelectionToolbar.ClickToLock",locale:{"de-DE":"Klicken zum Sperren","en-US":"Click to lock","es-ES":"Haga clic para bloquearla","fr-FR":"Cliquez pour verrouiller","it-IT":"Fare clic per bloccare","ja-JP":"クリックしてロック","ko-KR":"클릭하여 잠금","nl-NL":"Klik om te vergrendelen","pl-PL":"Kliknij, aby zablokować","pt-BR":"Clique para bloquear","ru-RU":"Щелкните, чтобы заблокировать","sv-SE":"Klicka för att låsa","tr-TR":"Kilitlemek için tıklayın","zh-CN":"单击以锁定","zh-TW":"按一下以鎖定"}},SelectionToolbar_ClickToUnlock:{id:"SelectionToolbar.ClickToUnlock",locale:{"de-DE":"Zum Entsperren klicken","en-US":"Click to unlock","es-ES":"Haga clic para desbloquearla","fr-FR":"Cliquez pour déverrouiller","it-IT":"Fare clic per sbloccare","ja-JP":"クリックしてロック解除","ko-KR":"잠금을 해제하려면 클릭하십시오.","nl-NL":"Klik om te ontgrendelen","pl-PL":"Aby odblokować, kliknij","pt-BR":"Clique para destravar","ru-RU":"Щелкните, чтобы разблокировать","sv-SE":"Klicka för att låsa upp","tr-TR":"Kilidi kaldırmak için tıklayın","zh-CN":"单击以解锁","zh-TW":"按一下以解除鎖定"}},Visualization_Incomplete:{id:"Visualization.Incomplete",locale:{"de-DE":"Unvollständige Visualisierung","en-US":"Incomplete visualization","es-ES":"Visualización incompleta","fr-FR":"Visualisation incomplète","it-IT":"Visualizzazione incompleta","ja-JP":"未完了のビジュアライゼーション","ko-KR":"완료되지 않은 시각화","nl-NL":"Onvolledige visualisatie","pl-PL":"Niekompletna wizualizacja","pt-BR":"Visualização incompleta","ru-RU":"Незавершенная визуализация","sv-SE":"Ofullständig visualisering","tr-TR":"Tamamlanmamış görselleştirme","zh-CN":"不完整的可视化","zh-TW":"視覺化未完成"}},Visualization_Incomplete_Dimensions:{id:"Visualization.Incomplete.Dimensions",locale:{"de-DE":"{0} von {1} Dimensionen","en-US":"{0} of {1} dimensions","es-ES":"{0} de {1} dimensiones","fr-FR":"{0} dimensions sur {1}","it-IT":"{0} di {1} dimensioni","ja-JP":"{0} / {1} 軸","ko-KR":"{1} 차원의 {0}","nl-NL":"{0} van {1} dimensies","pl-PL":"{0} z {1} wymiarów","pt-BR":"{0} de {1} dimensões","ru-RU":"Измерения: {0} из {1}","sv-SE":"{0} av {1} dimensioner","tr-TR":"{0}/{1} boyut","zh-CN":"{0} / {1} 个维度","zh-TW":"{1} 個維度中的 {0} 個"}},Visualization_Incomplete_Measures:{id:"Visualization.Incomplete.Measures",locale:{"de-DE":"{0} von {1} Kennzahlen","en-US":"{0} of {1} measures","es-ES":"{0} de {1} medidas","fr-FR":"{0} mesures sur {1}","it-IT":"{0} di {1} misure","ja-JP":"{0} / {1} メジャー","ko-KR":"{1} 측정값의 {0}","nl-NL":"{0} van {1} metingen","pl-PL":"{0} z {1} miar","pt-BR":"{0} de {1} medidas","ru-RU":"Меры: {0} из {1}","sv-SE":"{0} av {1} mått","tr-TR":"{0}/{1} hesaplama","zh-CN":"{0} / {1} 个度量","zh-TW":"{1} 個量值中的 {0} 個"}},Visualization_Invalid_Dimension:{id:"Visualization.Invalid.Dimension",locale:{"de-DE":"Ungültige Dimension","en-US":"Invalid dimension","es-ES":"Dimensión no válida","fr-FR":"Dimension non valide","it-IT":"Dimensione non valida","ja-JP":"無効な軸です","ko-KR":"잘못된 차원","nl-NL":"Ongeldige dimensie","pl-PL":"Nieprawidłowy wymiar","pt-BR":"Dimensão inválida","ru-RU":"Недопустимое измерение","sv-SE":"Ogiltig dimension","tr-TR":"Geçersiz boyut","zh-CN":"无效维度","zh-TW":"維度無效"}},Visualization_Invalid_Measure:{id:"Visualization.Invalid.Measure",locale:{"de-DE":"Ungültige Kennzahl","en-US":"Invalid measure","es-ES":"Medida no válida","fr-FR":"Mesure non valide","it-IT":"Misura non valida","ja-JP":"無効なメジャーです","ko-KR":"잘못된 측정값","nl-NL":"Ongeldige meting","pl-PL":"Nieprawidłowa miara","pt-BR":"Medida inválida","ru-RU":"Недопустимая мера","sv-SE":"Ogiltigt mått","tr-TR":"Geçersiz hesaplama","zh-CN":"无效度量项","zh-TW":"量值無效"}},Visualization_LayoutError:{id:"Visualization.LayoutError",locale:{"de-DE":"Fehler","en-US":"Error","es-ES":"Error","fr-FR":"Erreur","it-IT":"Errore","ja-JP":"エラー","ko-KR":"오류","nl-NL":"Fout","pl-PL":"Błąd","pt-BR":"Erro","ru-RU":"Ошибка","sv-SE":"Fel","tr-TR":"Hata","zh-CN":"错误","zh-TW":"錯誤"}},Visualization_UnfulfilledCalculationCondition:{id:"Visualization.UnfulfilledCalculationCondition",locale:{"de-DE":"Die Berechnungsbedingung ist nicht erfüllt","en-US":"The calculation condition is not fulfilled","es-ES":"La condición de cálculo no se cumple","fr-FR":"Condition de calcul non remplie","it-IT":"La condizione di calcolo non è soddisfatta","ja-JP":"演算実行条件が満たされていません","ko-KR":"계산 조건이 충족되지 않았습니다.","nl-NL":"Er is niet aan de berekeningsvoorwaarde voldaan","pl-PL":"Warunek obliczenia nie jest spełniony","pt-BR":"A condição de cálculo não foi atendida","ru-RU":"Условие вычисления не выполнено","sv-SE":"Beräkningsvillkoret uppfylls inte","tr-TR":"Hesaplama koşulu yerine getirilmedi","zh-CN":"不满足计算条件","zh-TW":"不符計算條件"}}};function X(e){const t=K({initial:e});return Object.keys(Z).forEach((e=>{t.translator.add(Z[e])})),{translator:t.translator}}var Q={};function J(){J.init.call(this)}Q.isObject=function(e){return"object"==typeof e&&null!==e},Q.isNumber=function(e){return"number"==typeof e},Q.isUndefined=function(e){return void 0===e},Q.isFunction=function(e){return"function"==typeof e};var Y=J;J.EventEmitter=J,J.prototype._events=void 0,J.prototype._maxListeners=void 0,J.defaultMaxListeners=10,J.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},J.prototype.setMaxListeners=function(e){if(!Q.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},J.prototype.emit=function(e){var t,n,r,o,a,i;if(this._events||(this._events={}),"error"===e&&!this._events.error)throw(t=arguments[1])instanceof Error?t:Error('Uncaught, unspecified "error" event.');if(n=this._events[e],Q.isUndefined(n))return!1;if(Q.isFunction(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,o=new Array(r-1),a=1;a<r;a++)o[a-1]=arguments[a];n.apply(this,o)}else if(Q.isObject(n)){for(r=arguments.length,o=new Array(r-1),a=1;a<r;a++)o[a-1]=arguments[a];for(r=(i=n.slice()).length,a=0;a<r;a++)i[a].apply(this,o)}return!0},J.prototype.addListener=function(e,t){var n;if(!Q.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,Q.isFunction(t.listener)?t.listener:t),this._events[e]?Q.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,Q.isObject(this._events[e])&&!this._events[e].warned)&&((n=Q.isUndefined(this._maxListeners)?J.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,Q.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),Q.isFunction(console.trace)&&console.trace()));return this},J.prototype.on=J.prototype.addListener,J.prototype.once=function(e,t){if(!Q.isFunction(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},J.prototype.removeListener=function(e,t){var n,r,o,a;if(!Q.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(o=(n=this._events[e]).length,r=-1,n===t||Q.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(Q.isObject(n)){for(a=o;a-- >0;)if(n[a]===t||n[a].listener&&n[a].listener===t){r=a;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},J.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],Q.isFunction(n))this.removeListener(e,n);else if(Array.isArray(n))for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},J.prototype.listeners=function(e){return this._events&&this._events[e]?Q.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},J.listenerCount=function(e,t){return e._events&&e._events[t]?Q.isFunction(e._events[t])?1:e._events[t].length:0};var ee=n(Y);function te(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ne(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function re(){}var oe=.7,ae=1/oe,ie="\\s*([+-]?\\d+)\\s*",le="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",se="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ce=/^#([0-9a-f]{3,8})$/,ue=new RegExp(`^rgb\\(${ie},${ie},${ie}\\)$`),de=new RegExp(`^rgb\\(${se},${se},${se}\\)$`),pe=new RegExp(`^rgba\\(${ie},${ie},${ie},${le}\\)$`),fe=new RegExp(`^rgba\\(${se},${se},${se},${le}\\)$`),he=new RegExp(`^hsl\\(${le},${se},${se}\\)$`),me=new RegExp(`^hsla\\(${le},${se},${se},${le}\\)$`),ge={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function ve(){return this.rgb().formatHex()}function be(){return this.rgb().formatRgb()}function ye(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ce.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?xe(t):3===n?new Ee(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Se(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Se(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=ue.exec(e))?new Ee(t[1],t[2],t[3],1):(t=de.exec(e))?new Ee(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=pe.exec(e))?Se(t[1],t[2],t[3],t[4]):(t=fe.exec(e))?Se(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=he.exec(e))?_e(t[1],t[2]/100,t[3]/100,1):(t=me.exec(e))?_e(t[1],t[2]/100,t[3]/100,t[4]):ge.hasOwnProperty(e)?xe(ge[e]):"transparent"===e?new Ee(NaN,NaN,NaN,0):null}function xe(e){return new Ee(e>>16&255,e>>8&255,255&e,1)}function Se(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ee(e,t,n,r)}function we(e,t,n,r){return 1===arguments.length?((o=e)instanceof re||(o=ye(o)),o?new Ee((o=o.rgb()).r,o.g,o.b,o.opacity):new Ee):new Ee(e,t,n,null==r?1:r);var o}function Ee(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Ce(){return`#${Oe(this.r)}${Oe(this.g)}${Oe(this.b)}`}function ke(){const e=Le(this.opacity);return`${1===e?"rgb(":"rgba("}${Re(this.r)}, ${Re(this.g)}, ${Re(this.b)}${1===e?")":`, ${e})`}`}function Le(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Re(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Oe(e){return((e=Re(e))<16?"0":"")+e.toString(16)}function _e(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Te(e,t,n,r)}function Ie(e){if(e instanceof Te)return new Te(e.h,e.s,e.l,e.opacity);if(e instanceof re||(e=ye(e)),!e)return new Te;if(e instanceof Te)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),i=NaN,l=a-o,s=(a+o)/2;return l?(i=t===a?(n-r)/l+6*(n<r):n===a?(r-t)/l+2:(t-n)/l+4,l/=s<.5?a+o:2-a-o,i*=60):l=s>0&&s<1?0:i,new Te(i,l,s,e.opacity)}function Te(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Pe(e){return(e=(e||0)%360)<0?e+360:e}function Me(e){return Math.max(0,Math.min(1,e||0))}function Ne(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}te(re,ye,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ve,formatHex:ve,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ie(this).formatHsl()},formatRgb:be,toString:be}),te(Ee,we,ne(re,{brighter(e){return e=null==e?ae:Math.pow(ae,e),new Ee(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?oe:Math.pow(oe,e),new Ee(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ee(Re(this.r),Re(this.g),Re(this.b),Le(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ce,formatHex:Ce,formatHex8:function(){return`#${Oe(this.r)}${Oe(this.g)}${Oe(this.b)}${Oe(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ke,toString:ke})),te(Te,(function(e,t,n,r){return 1===arguments.length?Ie(e):new Te(e,t,n,null==r?1:r)}),ne(re,{brighter(e){return e=null==e?ae:Math.pow(ae,e),new Te(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?oe:Math.pow(oe,e),new Te(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Ee(Ne(e>=240?e-240:e+120,o,r),Ne(e,o,r),Ne(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Te(Pe(this.h),Me(this.s),Me(this.l),Le(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Le(this.opacity);return`${1===e?"hsl(":"hsla("}${Pe(this.h)}, ${100*Me(this.s)}%, ${100*Me(this.l)}%${1===e?")":`, ${e})`}`}}));var qe=Object.prototype.hasOwnProperty,Ae=Object.prototype.toString,De=Object.defineProperty,ze=Object.getOwnPropertyDescriptor,je=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Ae.call(e)},Fe=function(e){if(!e||"[object Object]"!==Ae.call(e))return!1;var t,n=qe.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&qe.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||qe.call(e,t)},Be=function(e,t){De&&"__proto__"===t.name?De(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},$e=function(e,t){if("__proto__"===t){if(!qe.call(e,t))return;if(ze)return ze(e,t).value}return e[t]},We=function e(){var t,n,r,o,a,i,l=arguments[0],s=1,c=arguments.length,u=!1;for("boolean"==typeof l&&(u=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<c;++s)if(null!=(t=arguments[s]))for(n in t)r=$e(l,n),l!==(o=$e(t,n))&&(u&&o&&(Fe(o)||(a=je(o)))?(a?(a=!1,i=r&&je(r)?r:[]):i=r&&Fe(r)?r:{},Be(l,{name:n,newValue:e(u,i,o)})):void 0!==o&&Be(l,{name:n,newValue:o}));return l},He=n(We),Ue={fontSize:"12px",fontFamily:"'Source Sans Pro', 'Arial', 'sans-serif'",backgroundColor:"transparent",dataColors:{primaryColor:"#26a0a7",othersColor:"#a5a5a5",errorColor:"#ff4444",nullColor:"#d2d2d2"},object:{title:{main:{color:"@B50",fontSize:"15px"},subTitle:{color:"@B50",fontSize:"12px"},footer:{color:"@B50",fontSize:"12px",backgroundColor:"transparent"}}},scales:[{name:"Sequential Gradient",translation:"properties.colorScheme.sequential",type:"gradient",propertyValue:"sg",scale:["#26a0a7","#c7ea8b"]},{name:"Sequential Classes",translation:"properties.colorScheme.sequentialC",propertyValue:"sc",type:"class",scale:["#26a0a7","#c7ea8b"]},{name:"Diverging gradient",translation:"properties.colorScheme.diverging",propertyValue:"dg",type:"gradient",scale:["#26a0a7","#c3ea8c","#ec983d"]},{name:"Diverging Classes",translation:"properties.colorScheme.divergingC",propertyValue:"dc",type:"class",scale:["#26a0a7","#c3ea8c","#ec983d"]}],palettes:{data:[{name:"12 Colors",translation:"properties.colorNumberOfColors.12",propertyValue:"12",type:"pyramid",scale:[["#26A0A7"],["#26A0A7","#EC983D"],["#26A0A7","#CBE989","#EC983D"],["#26A0A7","#79D69F","#F9EC86","#EC983D"],["#26A0A7","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D","#D76C6C"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"],["#138185","#26A0A7","#65D3DA","#79D69F","#70BA6E","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"]]}],ui:[{name:"Palette",colors:["#b0afae","#7b7a78","#a54343","#d76c6c","#ec983d","#ecc43d","#f9ec86","#cbe989","#70ba6e","#578b60","#79d69f","#26a0a7","#138185","#65d3da","#ffffff","#000000"]}]}},Ve={_variables:{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},type:"light",color:"@B35"},Ge={_variables:{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},type:"dark",color:"@B98",object:{listBox:{backgroundColor:"@B20",title:{main:{color:"@B98",fontSize:"14px",fontWeight:"bold"}},content:{color:"#@B98",fontSize:"12px"}}}},Ke={object:{listBox:{backgroundColor:"#ffffff",title:{main:{color:"#404040",fontSize:"14px",fontWeight:"bold"}},content:{color:"#404040",fontSize:"12px"}}}};class Ze{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=ye(e)}addColorPart(e,t,n){n=n||0,this.startLevel=Math.max(n,this.startLevel),this.colorParts[n]||(this.colorParts[n]=[]),this.colorParts[n].push([ye(e),ye(t)])}getColor(e,t){const n=e-this.min;if(Number.isNaN(+e)||Number.isNaN(+n))return this.nanColor;t=function(e,t){return Math.min(t||e.startLevel,e.colorParts.length-1)}(this,t);const r=function(e,t){return t-(e=Math.min(Math.max(e,1e-12),.999999999999))*t}(n,this.colorParts[t].length);let o=Math.floor(r);o=o===r?o-1:o;const a=this.colorParts[t][o],i=a[0],l=a[1];if(e===this.min)return l;if(e===this.max)return i;const s=function(e,t,n){return we(Math.floor(e.r+(t.r-e.r)*n),Math.floor(e.g+(t.g-e.g)*n),Math.floor(e.b+(t.b-e.b)*n),Math.floor(e.opacity+(t.opacity-e.opacity)*n))}(i,l,r-o);return s}}function Xe(e,t,n){const r=.25+(t+1)/n*.25,o=.5-r;return o+e/1*(.5+r-o)}function Qe(e,t,n){const r=[],o=new Ze(t);r.push(e[0]),n||r.push(e[0]);let a=1;for(;a<e.length-1;a++)r.push(e[a]),r.push(e[a]);r.push(e[a]),n||r.push(e[a]);for(let e=0;e<r.length;e+=2)o.addColorPart(r[e],r[e+1]);return o}function Je(e,t,n){const r=[];for(let o=0;o<t+1;o++){let a;switch(t){case 0:a=e.getColor(.5);break;default:{const r=Xe(1/t*o,t,n);a=e.getColor(r);break}}r.push(ye(a).formatHex())}return r}function Ye(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#d2d2d2";e.forEach((e=>{if("class"===e.type){const n=function(e,t,n){const r=Qe(e,n,!0),o=Qe(Je(r,t-1,t),n,!1),a=[null];for(let e=0;e<t;e++)a.push(Je(o,e,t));return a}(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}}))}function et(e,t){const n=[];let r,o;if(e){let a=e.length;for(;a>=0;){for(r=t.slice(),o=r.length;o>=0;)n.push(r.concat(e)),r.pop(),o--;e.pop(),a--}}else for(r=t.slice(),o=r.length;o>=0;)n.push(r.concat()),r.pop(),o--;return n}function tt(e,t){let n=e;for(let e=0;e<t.length;e++){if(!n[t[e]])return;n=n[t[e]]}return n}function nt(e,t,n,r){let o;if(""===e)o=et(null,n);else{o=et(e.split("."),n)}return function(e,t,n){const r=t.split(".");for(let t=0;t<e.length;t++){const o=tt(n,[...e[t],...r]);if(void 0!==o)return o}}(o,t,r)}function rt(e,t){const n=e.split(".");return{getStyle:(e,r)=>nt(e,r,n.concat(),t)}}function ot(e,t){Object.keys(e).forEach((n=>{"object"==typeof e[n]&&null!==e[n]?ot(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])}))}function at(e){const t=ye(e).rgb(),{r:n,g:r,b:o}=t,[a,i,l]=[n,r,o].map((e=>e/255)),[s,c,u]=[a,i,l].map((e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4));return+(.2126*s+.7152*c+.0722*u).toFixed(5)}rt.resolveRawTheme=e=>{const t=He(!0,{},e);return ot(t,t._variables),t.scales&&Ye(t.scales,t.dataColors&&t.dataColors.nullColor),t};const it=1e3;function lt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["#333333","#ffffff"],t={},n=0;const r=e.map(at);return{getBestContrastColor(o){if(!t[o]){n>it&&(t={},n=0);const a=at(o),i=r.map((e=>{return t=a,n=e,+((Math.max(t,n)+.05)/(Math.min(t,n)+.05)).toFixed(5);var t,n})),l=e[i.indexOf(Math.max(...i))];t[o]=l,n++}return t[o]}}}function st(){let e,t,n,r={};const o={getDataColorScales:()=>t.dataScales(),getDataColorPalettes:()=>t.dataPalettes(),getDataColorPickerPalettes:()=>t.uiPalettes(),getDataColorSpecials:()=>t.dataColors(),getColorPickerColor(){return t.uiColor(...arguments)},getContrastingColorTo:e=>n.getBestContrastColor(e),getStyle:(t,n,o)=>(r[t]||(r[t]=rt(t,e)),r[t].getStyle(n,o)),validateColor(){const e=arguments.length<=0?void 0:arguments[0];let t;if("string"==typeof e&&(t=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))){const e=parseInt(t[1],10)/255,n=parseInt(t[2],10),r=parseInt(t[3],10),o=parseInt(t[4],10);return"rgba(".concat(n,",").concat(r,",").concat(o,",").concat(e,")")}const n=ye(...arguments);return n?n.toString():void 0}},a={setTheme(a,i){e=function(e,t){const n="dark"===e.type?Ge:Ve;let r=Ke;!1!==e._inherit&&"false"!==e._inherit||(r={});const o=He(!0,{},Ue,r,n),a=He(!0,{},o,{scales:null,palettes:{data:null,ui:null}},e);return a.palettes.data&&a.palettes.data.length||(a.palettes.data=o.palettes.data),a.palettes.ui&&a.palettes.ui.length||(a.palettes.ui=o.palettes.ui),a.scales&&a.scales.length||(a.scales=o.scales),t(a)}(a,rt.resolveRawTheme),r={},t=function(e){let t;return{dataScales(){const t=[];return e.scales.forEach((e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,scheme:!0,type:e.type,colors:e.scale})})),t},dataPalettes(){const t=[];return e.palettes.data.forEach((e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,type:e.type,colors:e.scale})})),t},uiPalettes(){const t=[];return e.palettes.ui.forEach((e=>{t.push({key:"ui",name:e.name,translation:e.translation,type:"row",colors:e.colors})})),t},dataColors:()=>({primary:e.dataColors.primaryColor,nil:e.dataColors.nullColor,others:e.dataColors.othersColor}),uiColor(e,n){return n=!!n,e.index<0||void 0===e.index?e.color:(void 0===t&&(t=this.uiPalettes()[0]||!1),t?void 0===t.colors[e.index-n]?e.color:t.colors[e.index-n]:e.color)}}}(e);const l=o.getStyle("","","color"),s=at(l);n=lt([l,s<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>i}};return Object.keys(ee.prototype).forEach((e=>{o[e]=ee.prototype[e]})),ee.init(o),a.setTheme({},"light"),{externalAPI:o,internalAPI:a}}const ct=(e,t)=>new Promise((n=>{setTimeout((()=>n(t)),e)})),ut=5e3;function dt(e){return"auto"!==e?e:function(){let e=!1;return window.PointerEvent&&"maxTouchPoints"in navigator?navigator.maxTouchPoints>0&&(e=!0):(window.matchMedia&&window.matchMedia("(any-pointer:coarse)").matches||window.TouchEvent||"ontouchstart"in window)&&(e=!0),e}()?"touch":"desktop"}var pt={},ft={exports:{}},ht={},mt={exports:{}},gt={};
8
8
  /**
9
9
  * @license React
10
10
  * scheduler.production.min.js
@@ -14,7 +14,7 @@
14
14
  * This source code is licensed under the MIT license found in the
15
15
  * LICENSE file in the root directory of this source tree.
16
16
  */
17
- !function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,a=e[r];if(!(0<o(a,t)))break e;e[r]=t,e[n]=a,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,a=e.length,i=a>>>1;r<i;){var l=2*(r+1)-1,s=e[l],c=l+1,u=e[c];if(0>o(s,n))c<a&&0>o(u,s)?(e[r]=u,e[c]=n,r=c):(e[r]=s,e[l]=n,r=l);else{if(!(c<a&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var s=[],c=[],u=1,d=null,p=3,f=!1,h=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function y(e){for(var o=n(c);null!==o;){if(null===o.callback)r(c);else{if(!(o.startTime<=e))break;r(c),o.sortIndex=o.expirationTime,t(s,o)}o=n(c)}}function x(e){if(m=!1,y(e),!h)if(null!==n(s))h=!0,P(S);else{var t=n(c);null!==t&&M(x,t.startTime-e)}}function S(t,o){h=!1,m&&(m=!1,v(k),k=-1),f=!0;var a=p;try{for(y(o),d=n(s);null!==d&&(!(d.expirationTime>o)||t&&!O());){var i=d.callback;if("function"==typeof i){d.callback=null,p=d.priorityLevel;var l=i(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof l?d.callback=l:d===n(s)&&r(s),y(o)}else r(s);d=n(s)}if(null!==d)var u=!0;else{var g=n(c);null!==g&&M(x,g.startTime-o),u=!1}return u}finally{d=null,p=a,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var w,E=!1,C=null,k=-1,R=5,L=-1;function O(){return!(e.unstable_now()-L<R)}function I(){if(null!==C){var t=e.unstable_now();L=t;var n=!0;try{n=C(!0,t)}finally{n?w():(E=!1,C=null)}}else E=!1}if("function"==typeof b)w=function(){b(I)};else if("undefined"!=typeof MessageChannel){var _=new MessageChannel,T=_.port2;_.port1.onmessage=I,w=function(){T.postMessage(null)}}else w=function(){g(I,0)};function P(e){C=e,E||(E=!0,w())}function M(t,n){k=g((function(){t(e.unstable_now())}),n)}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_continueExecution=function(){h||f||(h=!0,P(S))},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"):R=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},e.unstable_scheduleCallback=function(r,o,a){var i=e.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?i+a:i:a=i,r){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return r={id:u++,callback:o,priorityLevel:r,startTime:a,expirationTime:l=a+l,sortIndex:-1},a>i?(r.sortIndex=a,t(c,r),null===n(s)&&r===n(c)&&(m?(v(k),k=-1):m=!0,M(x,a-i))):(r.sortIndex=l,t(s,r),h||f||(h=!0,P(S))),r},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}(mt),ht.exports=mt;var gt=ht.exports,vt=H,bt=gt;
17
+ !function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,a=e[r];if(!(0<o(a,t)))break e;e[r]=t,e[n]=a,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,a=e.length,i=a>>>1;r<i;){var l=2*(r+1)-1,s=e[l],c=l+1,u=e[c];if(0>o(s,n))c<a&&0>o(u,s)?(e[r]=u,e[c]=n,r=c):(e[r]=s,e[l]=n,r=l);else{if(!(c<a&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var s=[],c=[],u=1,d=null,p=3,f=!1,h=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function y(e){for(var o=n(c);null!==o;){if(null===o.callback)r(c);else{if(!(o.startTime<=e))break;r(c),o.sortIndex=o.expirationTime,t(s,o)}o=n(c)}}function x(e){if(m=!1,y(e),!h)if(null!==n(s))h=!0,P(S);else{var t=n(c);null!==t&&M(x,t.startTime-e)}}function S(t,o){h=!1,m&&(m=!1,v(k),k=-1),f=!0;var a=p;try{for(y(o),d=n(s);null!==d&&(!(d.expirationTime>o)||t&&!O());){var i=d.callback;if("function"==typeof i){d.callback=null,p=d.priorityLevel;var l=i(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof l?d.callback=l:d===n(s)&&r(s),y(o)}else r(s);d=n(s)}if(null!==d)var u=!0;else{var g=n(c);null!==g&&M(x,g.startTime-o),u=!1}return u}finally{d=null,p=a,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var w,E=!1,C=null,k=-1,L=5,R=-1;function O(){return!(e.unstable_now()-R<L)}function _(){if(null!==C){var t=e.unstable_now();R=t;var n=!0;try{n=C(!0,t)}finally{n?w():(E=!1,C=null)}}else E=!1}if("function"==typeof b)w=function(){b(_)};else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,T=I.port2;I.port1.onmessage=_,w=function(){T.postMessage(null)}}else w=function(){g(_,0)};function P(e){C=e,E||(E=!0,w())}function M(t,n){k=g((function(){t(e.unstable_now())}),n)}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_continueExecution=function(){h||f||(h=!0,P(S))},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"):L=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},e.unstable_scheduleCallback=function(r,o,a){var i=e.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?i+a:i:a=i,r){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return r={id:u++,callback:o,priorityLevel:r,startTime:a,expirationTime:l=a+l,sortIndex:-1},a>i?(r.sortIndex=a,t(c,r),null===n(s)&&r===n(c)&&(m?(v(k),k=-1):m=!0,M(x,a-i))):(r.sortIndex=l,t(s,r),h||f||(h=!0,P(S))),r},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}(gt),mt.exports=gt;var vt=mt.exports,bt=U,yt=vt;
18
18
  /**
19
19
  * @license React
20
20
  * react-dom.production.min.js
@@ -23,14 +23,14 @@
23
23
  *
24
24
  * This source code is licensed under the MIT license found in the
25
25
  * LICENSE file in the root directory of this source tree.
26
- */function yt(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var xt=new Set,St={};function wt(e,t){Et(e,t),Et(e+"Capture",t)}function Et(e,t){for(St[e]=t,e=0;e<t.length;e++)xt.add(t[e])}var Ct=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),kt=Object.prototype.hasOwnProperty,Rt=/^[: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]*$/,Lt={},Ot={};function It(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var _t={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){_t[e]=new It(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];_t[t]=new It(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){_t[e]=new It(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){_t[e]=new It(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){_t[e]=new It(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){_t[e]=new It(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){_t[e]=new It(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){_t[e]=new It(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){_t[e]=new It(e,5,!1,e.toLowerCase(),null,!1,!1)}));var Tt=/[\-:]([a-z])/g;function Pt(e){return e[1].toUpperCase()}function Mt(e,t,n,r){var o=_t.hasOwnProperty(t)?_t[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!kt.call(Ot,e)||!kt.call(Lt,e)&&(Rt.test(e)?Ot[e]=!0:(Lt[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(Tt,Pt);_t[t]=new It(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(Tt,Pt);_t[t]=new It(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(Tt,Pt);_t[t]=new It(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){_t[e]=new It(e,1,!1,e.toLowerCase(),null,!1,!1)})),_t.xlinkHref=new It("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){_t[e]=new It(e,1,!1,e.toLowerCase(),null,!0,!0)}));var Nt=vt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,qt=Symbol.for("react.element"),At=Symbol.for("react.portal"),zt=Symbol.for("react.fragment"),Dt=Symbol.for("react.strict_mode"),jt=Symbol.for("react.profiler"),Ft=Symbol.for("react.provider"),Bt=Symbol.for("react.context"),$t=Symbol.for("react.forward_ref"),Wt=Symbol.for("react.suspense"),Ht=Symbol.for("react.suspense_list"),Ut=Symbol.for("react.memo"),Vt=Symbol.for("react.lazy"),Gt=Symbol.for("react.offscreen"),Kt=Symbol.iterator;function Zt(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Kt&&e[Kt]||e["@@iterator"])?e:null}var Xt,Qt=Object.assign;function Jt(e){if(void 0===Xt)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Xt=t&&t[1]||""}return"\n"+Xt+e}var Yt=!1;function en(e,t){if(!e||Yt)return"";Yt=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),a=r.stack.split("\n"),i=o.length-1,l=a.length-1;1<=i&&0<=l&&o[i]!==a[l];)l--;for(;1<=i&&0<=l;i--,l--)if(o[i]!==a[l]){if(1!==i||1!==l)do{if(i--,0>--l||o[i]!==a[l]){var s="\n"+o[i].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=i&&0<=l);break}}}finally{Yt=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Jt(e):""}function tn(e){switch(e.tag){case 5:return Jt(e.type);case 16:return Jt("Lazy");case 13:return Jt("Suspense");case 19:return Jt("SuspenseList");case 0:case 2:case 15:return e=en(e.type,!1);case 11:return e=en(e.type.render,!1);case 1:return e=en(e.type,!0);default:return""}}function nn(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case zt:return"Fragment";case At:return"Portal";case jt:return"Profiler";case Dt:return"StrictMode";case Wt:return"Suspense";case Ht:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Bt:return(e.displayName||"Context")+".Consumer";case Ft:return(e._context.displayName||"Context")+".Provider";case $t:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Ut:return null!==(t=e.displayName||null)?t:nn(e.type)||"Memo";case Vt:t=e._payload,e=e._init;try{return nn(e(t))}catch(e){}}return null}function rn(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return nn(t);case 8:return t===Dt?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function on(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function an(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function ln(e){e._valueTracker||(e._valueTracker=function(e){var t=an(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function sn(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=an(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function cn(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}}function un(e,t){var n=t.checked;return Qt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function dn(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=on(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function pn(e,t){null!=(t=t.checked)&&Mt(e,"checked",t,!1)}function fn(e,t){pn(e,t);var n=on(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?mn(e,t.type,n):t.hasOwnProperty("defaultValue")&&mn(e,t.type,on(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function hn(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function mn(e,t,n){"number"===t&&cn(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var gn=Array.isArray;function vn(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=""+on(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 bn(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(yt(91));return Qt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function yn(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(yt(92));if(gn(n)){if(1<n.length)throw Error(yt(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:on(n)}}function xn(e,t){var n=on(t.value),r=on(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Sn(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function wn(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function En(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?wn(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Cn,kn,Rn=(kn=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((Cn=Cn||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Cn.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return kn(e,t)}))}:kn);function Ln(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var On={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},In=["Webkit","ms","Moz","O"];function _n(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||On.hasOwnProperty(e)&&On[e]?(""+t).trim():t+"px"}function Tn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=_n(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(On).forEach((function(e){In.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),On[t]=On[e]}))}));var Pn=Qt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Mn(e,t){if(t){if(Pn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(yt(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(yt(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(yt(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(yt(62))}}function Nn(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var qn=null;function An(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var zn=null,Dn=null,jn=null;function Fn(e){if(e=Ni(e)){if("function"!=typeof zn)throw Error(yt(280));var t=e.stateNode;t&&(t=Ai(t),zn(e.stateNode,e.type,t))}}function Bn(e){Dn?jn?jn.push(e):jn=[e]:Dn=e}function $n(){if(Dn){var e=Dn,t=jn;if(jn=Dn=null,Fn(e),t)for(e=0;e<t.length;e++)Fn(t[e])}}function Wn(e,t){return e(t)}function Hn(){}var Un=!1;function Vn(e,t,n){if(Un)return e(t,n);Un=!0;try{return Wn(e,t,n)}finally{Un=!1,(null!==Dn||null!==jn)&&(Hn(),$n())}}function Gn(e,t){var n=e.stateNode;if(null===n)return null;var r=Ai(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(yt(231,t,typeof n));return n}var Kn=!1;if(Ct)try{var Zn={};Object.defineProperty(Zn,"passive",{get:function(){Kn=!0}}),window.addEventListener("test",Zn,Zn),window.removeEventListener("test",Zn,Zn)}catch(kn){Kn=!1}function Xn(e,t,n,r,o,a,i,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var Qn=!1,Jn=null,Yn=!1,er=null,tr={onError:function(e){Qn=!0,Jn=e}};function nr(e,t,n,r,o,a,i,l,s){Qn=!1,Jn=null,Xn.apply(tr,arguments)}function rr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function or(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 ar(e){if(rr(e)!==e)throw Error(yt(188))}function ir(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=rr(e)))throw Error(yt(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return ar(o),e;if(a===r)return ar(o),t;a=a.sibling}throw Error(yt(188))}if(n.return!==r.return)n=o,r=a;else{for(var i=!1,l=o.child;l;){if(l===n){i=!0,n=o,r=a;break}if(l===r){i=!0,r=o,n=a;break}l=l.sibling}if(!i){for(l=a.child;l;){if(l===n){i=!0,n=a,r=o;break}if(l===r){i=!0,r=a,n=o;break}l=l.sibling}if(!i)throw Error(yt(189))}}if(n.alternate!==r)throw Error(yt(190))}if(3!==n.tag)throw Error(yt(188));return n.stateNode.current===n?e:t}(e),null!==e?lr(e):null}function lr(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=lr(e);if(null!==t)return t;e=e.sibling}return null}var sr=bt.unstable_scheduleCallback,cr=bt.unstable_cancelCallback,ur=bt.unstable_shouldYield,dr=bt.unstable_requestPaint,pr=bt.unstable_now,fr=bt.unstable_getCurrentPriorityLevel,hr=bt.unstable_ImmediatePriority,mr=bt.unstable_UserBlockingPriority,gr=bt.unstable_NormalPriority,vr=bt.unstable_LowPriority,br=bt.unstable_IdlePriority,yr=null,xr=null;var Sr=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(wr(e)/Er|0)|0},wr=Math.log,Er=Math.LN2;var Cr=64,kr=4194304;function Rr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Lr(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&n;if(0!==i){var l=i&~o;0!==l?r=Rr(l):0!==(a&=i)&&(r=Rr(a))}else 0!==(i=n&~o)?r=Rr(i):0!==a&&(r=Rr(a));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(a=t&-t)||16===o&&0!=(4194240&a)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-Sr(t)),r|=e[n],t&=~o;return r}function Or(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function Ir(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function _r(){var e=Cr;return 0==(4194240&(Cr<<=1))&&(Cr=64),e}function Tr(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Pr(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-Sr(t)]=n}function Mr(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Sr(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var Nr=0;function qr(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var Ar,zr,Dr,jr,Fr,Br=!1,$r=[],Wr=null,Hr=null,Ur=null,Vr=new Map,Gr=new Map,Kr=[],Zr="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Xr(e,t){switch(e){case"focusin":case"focusout":Wr=null;break;case"dragenter":case"dragleave":Hr=null;break;case"mouseover":case"mouseout":Ur=null;break;case"pointerover":case"pointerout":Vr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Gr.delete(t.pointerId)}}function Qr(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},null!==t&&(null!==(t=Ni(t))&&zr(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Jr(e){var t=Mi(e.target);if(null!==t){var n=rr(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=or(n)))return e.blockedOn=t,void Fr(e.priority,(function(){Dr(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 Yr(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=uo(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Ni(n))&&zr(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);qn=r,n.target.dispatchEvent(r),qn=null,t.shift()}return!0}function eo(e,t,n){Yr(e)&&n.delete(t)}function to(){Br=!1,null!==Wr&&Yr(Wr)&&(Wr=null),null!==Hr&&Yr(Hr)&&(Hr=null),null!==Ur&&Yr(Ur)&&(Ur=null),Vr.forEach(eo),Gr.forEach(eo)}function no(e,t){e.blockedOn===t&&(e.blockedOn=null,Br||(Br=!0,bt.unstable_scheduleCallback(bt.unstable_NormalPriority,to)))}function ro(e){function t(t){return no(t,e)}if(0<$r.length){no($r[0],e);for(var n=1;n<$r.length;n++){var r=$r[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Wr&&no(Wr,e),null!==Hr&&no(Hr,e),null!==Ur&&no(Ur,e),Vr.forEach(t),Gr.forEach(t),n=0;n<Kr.length;n++)(r=Kr[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Kr.length&&null===(n=Kr[0]).blockedOn;)Jr(n),null===n.blockedOn&&Kr.shift()}var oo=Nt.ReactCurrentBatchConfig,ao=!0;function io(e,t,n,r){var o=Nr,a=oo.transition;oo.transition=null;try{Nr=1,so(e,t,n,r)}finally{Nr=o,oo.transition=a}}function lo(e,t,n,r){var o=Nr,a=oo.transition;oo.transition=null;try{Nr=4,so(e,t,n,r)}finally{Nr=o,oo.transition=a}}function so(e,t,n,r){if(ao){var o=uo(e,t,n,r);if(null===o)ai(e,t,r,co,n),Xr(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Wr=Qr(Wr,e,t,n,r,o),!0;case"dragenter":return Hr=Qr(Hr,e,t,n,r,o),!0;case"mouseover":return Ur=Qr(Ur,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return Vr.set(a,Qr(Vr.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,Gr.set(a,Qr(Gr.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Xr(e,r),4&t&&-1<Zr.indexOf(e)){for(;null!==o;){var a=Ni(o);if(null!==a&&Ar(a),null===(a=uo(e,t,n,r))&&ai(e,t,r,co,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else ai(e,t,r,null,n)}}var co=null;function uo(e,t,n,r){if(co=null,null!==(e=Mi(e=An(r))))if(null===(t=rr(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=or(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 co=e,null}function po(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(fr()){case hr:return 1;case mr:return 4;case gr:case vr:return 16;case br:return 536870912;default:return 16}default:return 16}}var fo=null,ho=null,mo=null;function go(){if(mo)return mo;var e,t,n=ho,r=n.length,o="value"in fo?fo.value:fo.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return mo=o.slice(e,1<t?1-t:void 0)}function vo(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 bo(){return!0}function yo(){return!1}function xo(e){function t(t,n,r,o,a){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?bo:yo,this.isPropagationStopped=yo,this}return Qt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=bo)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=bo)},persist:function(){},isPersistent:bo}),t}var So,wo,Eo,Co={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ko=xo(Co),Ro=Qt({},Co,{view:0,detail:0}),Lo=xo(Ro),Oo=Qt({},Ro,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fo,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Eo&&(Eo&&"mousemove"===e.type?(So=e.screenX-Eo.screenX,wo=e.screenY-Eo.screenY):wo=So=0,Eo=e),So)},movementY:function(e){return"movementY"in e?e.movementY:wo}}),Io=xo(Oo),_o=xo(Qt({},Oo,{dataTransfer:0})),To=xo(Qt({},Ro,{relatedTarget:0})),Po=xo(Qt({},Co,{animationName:0,elapsedTime:0,pseudoElement:0})),Mo=Qt({},Co,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),No=xo(Mo),qo=xo(Qt({},Co,{data:0})),Ao={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zo={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"},Do={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jo(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Do[e])&&!!t[e]}function Fo(){return jo}var Bo=Qt({},Ro,{key:function(e){if(e.key){var t=Ao[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=vo(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?zo[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fo,charCode:function(e){return"keypress"===e.type?vo(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?vo(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),$o=xo(Bo),Wo=xo(Qt({},Oo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Ho=xo(Qt({},Ro,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fo})),Uo=xo(Qt({},Co,{propertyName:0,elapsedTime:0,pseudoElement:0})),Vo=Qt({},Oo,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Go=xo(Vo),Ko=[9,13,27,32],Zo=Ct&&"CompositionEvent"in window,Xo=null;Ct&&"documentMode"in document&&(Xo=document.documentMode);var Qo=Ct&&"TextEvent"in window&&!Xo,Jo=Ct&&(!Zo||Xo&&8<Xo&&11>=Xo),Yo=String.fromCharCode(32),ea=!1;function ta(e,t){switch(e){case"keyup":return-1!==Ko.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function na(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var ra=!1;var oa={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 aa(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!oa[e.type]:"textarea"===t}function ia(e,t,n,r){Bn(r),0<(t=li(t,"onChange")).length&&(n=new ko("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var la=null,sa=null;function ca(e){Ya(e,0)}function ua(e){if(sn(qi(e)))return e}function da(e,t){if("change"===e)return t}var pa=!1;if(Ct){var fa;if(Ct){var ha="oninput"in document;if(!ha){var ma=document.createElement("div");ma.setAttribute("oninput","return;"),ha="function"==typeof ma.oninput}fa=ha}else fa=!1;pa=fa&&(!document.documentMode||9<document.documentMode)}function ga(){la&&(la.detachEvent("onpropertychange",va),sa=la=null)}function va(e){if("value"===e.propertyName&&ua(sa)){var t=[];ia(t,sa,e,An(e)),Vn(ca,t)}}function ba(e,t,n){"focusin"===e?(ga(),sa=n,(la=t).attachEvent("onpropertychange",va)):"focusout"===e&&ga()}function ya(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return ua(sa)}function xa(e,t){if("click"===e)return ua(t)}function Sa(e,t){if("input"===e||"change"===e)return ua(t)}var wa="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Ea(e,t){if(wa(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(!kt.call(t,o)||!wa(e[o],t[o]))return!1}return!0}function Ca(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ka(e,t){var n,r=Ca(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=Ca(r)}}function Ra(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Ra(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function La(){for(var e=window,t=cn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=cn((e=t.contentWindow).document)}return t}function Oa(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)}function Ia(e){var t=La(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ra(n.ownerDocument.documentElement,n)){if(null!==r&&Oa(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=void 0===r.end?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=ka(n,a);var i=ka(n,r);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var _a=Ct&&"documentMode"in document&&11>=document.documentMode,Ta=null,Pa=null,Ma=null,Na=!1;function qa(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Na||null==Ta||Ta!==cn(r)||("selectionStart"in(r=Ta)&&Oa(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},Ma&&Ea(Ma,r)||(Ma=r,0<(r=li(Pa,"onSelect")).length&&(t=new ko("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ta)))}function Aa(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var za={animationend:Aa("Animation","AnimationEnd"),animationiteration:Aa("Animation","AnimationIteration"),animationstart:Aa("Animation","AnimationStart"),transitionend:Aa("Transition","TransitionEnd")},Da={},ja={};function Fa(e){if(Da[e])return Da[e];if(!za[e])return e;var t,n=za[e];for(t in n)if(n.hasOwnProperty(t)&&t in ja)return Da[e]=n[t];return e}Ct&&(ja=document.createElement("div").style,"AnimationEvent"in window||(delete za.animationend.animation,delete za.animationiteration.animation,delete za.animationstart.animation),"TransitionEvent"in window||delete za.transitionend.transition);var Ba=Fa("animationend"),$a=Fa("animationiteration"),Wa=Fa("animationstart"),Ha=Fa("transitionend"),Ua=new Map,Va="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ga(e,t){Ua.set(e,t),wt(t,[e])}for(var Ka=0;Ka<Va.length;Ka++){var Za=Va[Ka];Ga(Za.toLowerCase(),"on"+(Za[0].toUpperCase()+Za.slice(1)))}Ga(Ba,"onAnimationEnd"),Ga($a,"onAnimationIteration"),Ga(Wa,"onAnimationStart"),Ga("dblclick","onDoubleClick"),Ga("focusin","onFocus"),Ga("focusout","onBlur"),Ga(Ha,"onTransitionEnd"),Et("onMouseEnter",["mouseout","mouseover"]),Et("onMouseLeave",["mouseout","mouseover"]),Et("onPointerEnter",["pointerout","pointerover"]),Et("onPointerLeave",["pointerout","pointerover"]),wt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),wt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),wt("onBeforeInput",["compositionend","keypress","textInput","paste"]),wt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),wt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),wt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xa="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(" "),Qa=new Set("cancel close invalid load scroll toggle".split(" ").concat(Xa));function Ja(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,i,l,s){if(nr.apply(this,arguments),Qn){if(!Qn)throw Error(yt(198));var c=Jn;Qn=!1,Jn=null,Yn||(Yn=!0,er=c)}}(r,t,void 0,e),e.currentTarget=null}function Ya(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==a&&o.isPropagationStopped())break e;Ja(o,l,c),a=s}else for(i=0;i<r.length;i++){if(s=(l=r[i]).instance,c=l.currentTarget,l=l.listener,s!==a&&o.isPropagationStopped())break e;Ja(o,l,c),a=s}}}if(Yn)throw e=er,Yn=!1,er=null,e}function ei(e,t){var n=t[_i];void 0===n&&(n=t[_i]=new Set);var r=e+"__bubble";n.has(r)||(oi(t,e,2,!1),n.add(r))}function ti(e,t,n){var r=0;t&&(r|=4),oi(n,e,r,t)}var ni="_reactListening"+Math.random().toString(36).slice(2);function ri(e){if(!e[ni]){e[ni]=!0,xt.forEach((function(t){"selectionchange"!==t&&(Qa.has(t)||ti(t,!1,e),ti(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[ni]||(t[ni]=!0,ti("selectionchange",!1,t))}}function oi(e,t,n,r){switch(po(t)){case 1:var o=io;break;case 4:o=lo;break;default:o=so}n=o.bind(null,t,n,e),o=void 0,!Kn||"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 ai(e,t,n,r,o){var a=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===i)for(i=r.return;null!==i;){var s=i.tag;if((3===s||4===s)&&((s=i.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;i=i.return}for(;null!==l;){if(null===(i=Mi(l)))return;if(5===(s=i.tag)||6===s){r=a=i;continue e}l=l.parentNode}}r=r.return}Vn((function(){var r=a,o=An(n),i=[];e:{var l=Ua.get(e);if(void 0!==l){var s=ko,c=e;switch(e){case"keypress":if(0===vo(n))break e;case"keydown":case"keyup":s=$o;break;case"focusin":c="focus",s=To;break;case"focusout":c="blur",s=To;break;case"beforeblur":case"afterblur":s=To;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":s=Io;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=_o;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Ho;break;case Ba:case $a:case Wa:s=Po;break;case Ha:s=Uo;break;case"scroll":s=Lo;break;case"wheel":s=Go;break;case"copy":case"cut":case"paste":s=No;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Wo}var u=0!=(4&t),d=!u&&"scroll"===e,p=u?null!==l?l+"Capture":null:l;u=[];for(var f,h=r;null!==h;){var m=(f=h).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==p&&(null!=(m=Gn(h,p))&&u.push(ii(h,m,f)))),d)break;h=h.return}0<u.length&&(l=new s(l,c,null,n,o),i.push({event:l,listeners:u}))}}if(0==(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===qn||!(c=n.relatedTarget||n.fromElement)||!Mi(c)&&!c[Ii])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(c=(c=n.relatedTarget||n.toElement)?Mi(c):null)&&(c!==(d=rr(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(s=null,c=r),s!==c)){if(u=Io,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=Wo,m="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==s?l:qi(s),f=null==c?l:qi(c),(l=new u(m,h+"leave",s,n,o)).target=d,l.relatedTarget=f,m=null,Mi(o)===r&&((u=new u(p,h+"enter",c,n,o)).target=f,u.relatedTarget=d,m=u),d=m,s&&c)e:{for(p=c,h=0,f=u=s;f;f=si(f))h++;for(f=0,m=p;m;m=si(m))f++;for(;0<h-f;)u=si(u),h--;for(;0<f-h;)p=si(p),f--;for(;h--;){if(u===p||null!==p&&u===p.alternate)break e;u=si(u),p=si(p)}u=null}else u=null;null!==s&&ci(i,l,s,u,!1),null!==c&&null!==d&&ci(i,d,c,u,!0)}if("select"===(s=(l=r?qi(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=da;else if(aa(l))if(pa)g=Sa;else{g=ya;var v=ba}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=xa);switch(g&&(g=g(e,r))?ia(i,g,n,o):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&mn(l,"number",l.value)),v=r?qi(r):window,e){case"focusin":(aa(v)||"true"===v.contentEditable)&&(Ta=v,Pa=r,Ma=null);break;case"focusout":Ma=Pa=Ta=null;break;case"mousedown":Na=!0;break;case"contextmenu":case"mouseup":case"dragend":Na=!1,qa(i,n,o);break;case"selectionchange":if(_a)break;case"keydown":case"keyup":qa(i,n,o)}var b;if(Zo)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else ra?ta(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Jo&&"ko"!==n.locale&&(ra||"onCompositionStart"!==y?"onCompositionEnd"===y&&ra&&(b=go()):(ho="value"in(fo=o)?fo.value:fo.textContent,ra=!0)),0<(v=li(r,y)).length&&(y=new qo(y,e,null,n,o),i.push({event:y,listeners:v}),b?y.data=b:null!==(b=na(n))&&(y.data=b))),(b=Qo?function(e,t){switch(e){case"compositionend":return na(t);case"keypress":return 32!==t.which?null:(ea=!0,Yo);case"textInput":return(e=t.data)===Yo&&ea?null:e;default:return null}}(e,n):function(e,t){if(ra)return"compositionend"===e||!Zo&&ta(e,t)?(e=go(),mo=ho=fo=null,ra=!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 Jo&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=li(r,"onBeforeInput")).length&&(o=new qo("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=b))}Ya(i,t)}))}function ii(e,t,n){return{instance:e,listener:t,currentTarget:n}}function li(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=Gn(e,n))&&r.unshift(ii(e,a,o)),null!=(a=Gn(e,t))&&r.push(ii(e,a,o))),e=e.return}return r}function si(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function ci(e,t,n,r,o){for(var a=t._reactName,i=[];null!==n&&n!==r;){var l=n,s=l.alternate,c=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==c&&(l=c,o?null!=(s=Gn(n,a))&&i.unshift(ii(n,s,l)):o||null!=(s=Gn(n,a))&&i.push(ii(n,s,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var ui=/\r\n?/g,di=/\u0000|\uFFFD/g;function pi(e){return("string"==typeof e?e:""+e).replace(ui,"\n").replace(di,"")}function fi(e,t,n){if(t=pi(t),pi(e)!==t&&n)throw Error(yt(425))}function hi(){}var mi=null,gi=null;function vi(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var bi="function"==typeof setTimeout?setTimeout:void 0,yi="function"==typeof clearTimeout?clearTimeout:void 0,xi="function"==typeof Promise?Promise:void 0,Si="function"==typeof queueMicrotask?queueMicrotask:void 0!==xi?function(e){return xi.resolve(null).then(e).catch(wi)}:bi;function wi(e){setTimeout((function(){throw e}))}function Ei(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void ro(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);ro(t)}function Ci(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)break;if("/$"===t)return null}}return e}function ki(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Ri=Math.random().toString(36).slice(2),Li="__reactFiber$"+Ri,Oi="__reactProps$"+Ri,Ii="__reactContainer$"+Ri,_i="__reactEvents$"+Ri,Ti="__reactListeners$"+Ri,Pi="__reactHandles$"+Ri;function Mi(e){var t=e[Li];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ii]||n[Li]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ki(e);null!==e;){if(n=e[Li])return n;e=ki(e)}return t}n=(e=n).parentNode}return null}function Ni(e){return!(e=e[Li]||e[Ii])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function qi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(yt(33))}function Ai(e){return e[Oi]||null}var zi=[],Di=-1;function ji(e){return{current:e}}function Fi(e){0>Di||(e.current=zi[Di],zi[Di]=null,Di--)}function Bi(e,t){Di++,zi[Di]=e.current,e.current=t}var $i={},Wi=ji($i),Hi=ji(!1),Ui=$i;function Vi(e,t){var n=e.type.contextTypes;if(!n)return $i;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Gi(e){return null!=(e=e.childContextTypes)}function Ki(){Fi(Hi),Fi(Wi)}function Zi(e,t,n){if(Wi.current!==$i)throw Error(yt(168));Bi(Wi,t),Bi(Hi,n)}function Xi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(yt(108,rn(e)||"Unknown",o));return Qt({},n,r)}function Qi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||$i,Ui=Wi.current,Bi(Wi,e),Bi(Hi,Hi.current),!0}function Ji(e,t,n){var r=e.stateNode;if(!r)throw Error(yt(169));n?(e=Xi(e,t,Ui),r.__reactInternalMemoizedMergedChildContext=e,Fi(Hi),Fi(Wi),Bi(Wi,e)):Fi(Hi),Bi(Hi,n)}var Yi=null,el=!1,tl=!1;function nl(e){null===Yi?Yi=[e]:Yi.push(e)}function rl(){if(!tl&&null!==Yi){tl=!0;var e=0,t=Nr;try{var n=Yi;for(Nr=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Yi=null,el=!1}catch(t){throw null!==Yi&&(Yi=Yi.slice(e+1)),sr(hr,rl),t}finally{Nr=t,tl=!1}}return null}var ol=[],al=0,il=null,ll=0,sl=[],cl=0,ul=null,dl=1,pl="";function fl(e,t){ol[al++]=ll,ol[al++]=il,il=e,ll=t}function hl(e,t,n){sl[cl++]=dl,sl[cl++]=pl,sl[cl++]=ul,ul=e;var r=dl;e=pl;var o=32-Sr(r)-1;r&=~(1<<o),n+=1;var a=32-Sr(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,dl=1<<32-Sr(t)+o|n<<o|r,pl=a+e}else dl=1<<a|n<<o|r,pl=e}function ml(e){null!==e.return&&(fl(e,1),hl(e,1,0))}function gl(e){for(;e===il;)il=ol[--al],ol[al]=null,ll=ol[--al],ol[al]=null;for(;e===ul;)ul=sl[--cl],sl[cl]=null,pl=sl[--cl],sl[cl]=null,dl=sl[--cl],sl[cl]=null}var vl=null,bl=null,yl=!1,xl=null;function Sl(e,t){var n=Vd(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function wl(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,vl=e,bl=Ci(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,vl=e,bl=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==ul?{id:dl,overflow:pl}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Vd(18,null,null,0)).stateNode=t,n.return=e,e.child=n,vl=e,bl=null,!0);default:return!1}}function El(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function Cl(e){if(yl){var t=bl;if(t){var n=t;if(!wl(e,t)){if(El(e))throw Error(yt(418));t=Ci(n.nextSibling);var r=vl;t&&wl(e,t)?Sl(r,n):(e.flags=-4097&e.flags|2,yl=!1,vl=e)}}else{if(El(e))throw Error(yt(418));e.flags=-4097&e.flags|2,yl=!1,vl=e}}}function kl(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;vl=e}function Rl(e){if(e!==vl)return!1;if(!yl)return kl(e),yl=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!vi(e.type,e.memoizedProps)),t&&(t=bl)){if(El(e))throw Ll(),Error(yt(418));for(;t;)Sl(e,t),t=Ci(t.nextSibling)}if(kl(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(yt(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){bl=Ci(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}bl=null}}else bl=vl?Ci(e.stateNode.nextSibling):null;return!0}function Ll(){for(var e=bl;e;)e=Ci(e.nextSibling)}function Ol(){bl=vl=null,yl=!1}function Il(e){null===xl?xl=[e]:xl.push(e)}var _l=Nt.ReactCurrentBatchConfig;function Tl(e,t){if(e&&e.defaultProps){for(var n in t=Qt({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Pl=ji(null),Ml=null,Nl=null,ql=null;function Al(){ql=Nl=Ml=null}function zl(e){var t=Pl.current;Fi(Pl),e._currentValue=t}function Dl(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 jl(e,t){Ml=e,ql=Nl=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Nc=!0),e.firstContext=null)}function Fl(e){var t=e._currentValue;if(ql!==e)if(e={context:e,memoizedValue:t,next:null},null===Nl){if(null===Ml)throw Error(yt(308));Nl=e,Ml.dependencies={lanes:0,firstContext:e}}else Nl=Nl.next=e;return t}var Bl=null;function $l(e){null===Bl?Bl=[e]:Bl.push(e)}function Wl(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,$l(t)):(n.next=o.next,o.next=n),t.interleaved=n,Hl(e,r)}function Hl(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ul=!1;function Vl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Gl(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Kl(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Zl(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Wu)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Hl(e,n)}return null===(o=r.interleaved)?(t.next=t,$l(r)):(t.next=o.next,o.next=t),r.interleaved=t,Hl(e,n)}function Xl(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Mr(e,n)}}function Ql(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?o=a=i:a=a.next=i,n=n.next}while(null!==n);null===a?o=a=t:a=a.next=t}else o=a=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Jl(e,t,n,r){var o=e.updateQueue;Ul=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,c=s.next;s.next=null,null===i?a=c:i.next=c,i=s;var u=e.alternate;null!==u&&((l=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===l?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=s))}if(null!==a){var d=o.baseState;for(i=0,u=c=s=null,l=a;;){var p=l.lane,f=l.eventTime;if((r&p)===p){null!==u&&(u=u.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,m=l;switch(p=t,f=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(f,d,p);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(p="function"==typeof(h=m.payload)?h.call(f,d,p):h))break e;d=Qt({},d,p);break e;case 2:Ul=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[l]:p.push(l))}else f={eventTime:f,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===u?(c=u=f,s=d):u=u.next=f,i|=p;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(p=l).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===u&&(s=d),o.baseState=s,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{i|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);Qu|=i,e.lanes=i,e.memoizedState=d}}function Yl(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(yt(191,o));o.call(r)}}}var es=(new vt.Component).refs;function ts(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:Qt({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ns={isMounted:function(e){return!!(e=e._reactInternals)&&rr(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=md(),o=gd(e),a=Kl(r,o);a.payload=t,null!=n&&(a.callback=n),null!==(t=Zl(e,a,o))&&(vd(t,e,o,r),Xl(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=md(),o=gd(e),a=Kl(r,o);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=Zl(e,a,o))&&(vd(t,e,o,r),Xl(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=md(),r=gd(e),o=Kl(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Zl(e,o,r))&&(vd(t,e,r,n),Xl(t,e,r))}};function rs(e,t,n,r,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!Ea(n,r)||!Ea(o,a))}function os(e,t,n){var r=!1,o=$i,a=t.contextType;return"object"==typeof a&&null!==a?a=Fl(a):(o=Gi(t)?Ui:Wi.current,a=(r=null!=(r=t.contextTypes))?Vi(e,o):$i),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ns,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function as(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&&ns.enqueueReplaceState(t,t.state,null)}function is(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=es,Vl(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=Fl(a):(a=Gi(t)?Ui:Wi.current,o.context=Vi(e,a)),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(ts(e,t,a,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&ns.enqueueReplaceState(o,o.state,null),Jl(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function ls(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(yt(309));var r=n.stateNode}if(!r)throw Error(yt(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;t===es&&(t=o.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(yt(284));if(!n._owner)throw Error(yt(290,e))}return e}function ss(e,t){throw e=Object.prototype.toString.call(t),Error(yt(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function cs(e){return(0,e._init)(e._payload)}function us(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 r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Kd(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function i(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Jd(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){var a=n.type;return a===zt?u(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===Vt&&cs(a)===t.type)?((r=o(t,n.props)).ref=ls(e,t,n),r.return=e,r):((r=Zd(n.type,n.key,n.props,null,e.mode,r)).ref=ls(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Yd(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function u(e,t,n,r,a){return null===t||7!==t.tag?((t=Xd(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Jd(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case qt:return(n=Zd(t.type,t.key,t.props,null,e.mode,n)).ref=ls(e,null,t),n.return=e,n;case At:return(t=Yd(t,e.mode,n)).return=e,t;case Vt:return d(e,(0,t._init)(t._payload),n)}if(gn(t)||Zt(t))return(t=Xd(t,e.mode,n,null)).return=e,t;ss(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case qt:return n.key===o?s(e,t,n,r):null;case At:return n.key===o?c(e,t,n,r):null;case Vt:return p(e,t,(o=n._init)(n._payload),r)}if(gn(n)||Zt(n))return null!==o?null:u(e,t,n,r,null);ss(e,n)}return null}function f(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case qt:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case At:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Vt:return f(e,t,n,(0,r._init)(r._payload),o)}if(gn(r)||Zt(r))return u(t,e=e.get(n)||null,r,o,null);ss(t,r)}return null}function h(o,i,l,s){for(var c=null,u=null,h=i,m=i=0,g=null;null!==h&&m<l.length;m++){h.index>m?(g=h,h=null):g=h.sibling;var v=p(o,h,l[m],s);if(null===v){null===h&&(h=g);break}e&&h&&null===v.alternate&&t(o,h),i=a(v,i,m),null===u?c=v:u.sibling=v,u=v,h=g}if(m===l.length)return n(o,h),yl&&fl(o,m),c;if(null===h){for(;m<l.length;m++)null!==(h=d(o,l[m],s))&&(i=a(h,i,m),null===u?c=h:u.sibling=h,u=h);return yl&&fl(o,m),c}for(h=r(o,h);m<l.length;m++)null!==(g=f(h,o,m,l[m],s))&&(e&&null!==g.alternate&&h.delete(null===g.key?m:g.key),i=a(g,i,m),null===u?c=g:u.sibling=g,u=g);return e&&h.forEach((function(e){return t(o,e)})),yl&&fl(o,m),c}function m(o,i,l,s){var c=Zt(l);if("function"!=typeof c)throw Error(yt(150));if(null==(l=c.call(l)))throw Error(yt(151));for(var u=c=null,h=i,m=i=0,g=null,v=l.next();null!==h&&!v.done;m++,v=l.next()){h.index>m?(g=h,h=null):g=h.sibling;var b=p(o,h,v.value,s);if(null===b){null===h&&(h=g);break}e&&h&&null===b.alternate&&t(o,h),i=a(b,i,m),null===u?c=b:u.sibling=b,u=b,h=g}if(v.done)return n(o,h),yl&&fl(o,m),c;if(null===h){for(;!v.done;m++,v=l.next())null!==(v=d(o,v.value,s))&&(i=a(v,i,m),null===u?c=v:u.sibling=v,u=v);return yl&&fl(o,m),c}for(h=r(o,h);!v.done;m++,v=l.next())null!==(v=f(h,o,m,v.value,s))&&(e&&null!==v.alternate&&h.delete(null===v.key?m:v.key),i=a(v,i,m),null===u?c=v:u.sibling=v,u=v);return e&&h.forEach((function(e){return t(o,e)})),yl&&fl(o,m),c}return function e(r,a,l,s){if("object"==typeof l&&null!==l&&l.type===zt&&null===l.key&&(l=l.props.children),"object"==typeof l&&null!==l){switch(l.$$typeof){case qt:e:{for(var c=l.key,u=a;null!==u;){if(u.key===c){if((c=l.type)===zt){if(7===u.tag){n(r,u.sibling),(a=o(u,l.props.children)).return=r,r=a;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===Vt&&cs(c)===u.type){n(r,u.sibling),(a=o(u,l.props)).ref=ls(r,u,l),a.return=r,r=a;break e}n(r,u);break}t(r,u),u=u.sibling}l.type===zt?((a=Xd(l.props.children,r.mode,s,l.key)).return=r,r=a):((s=Zd(l.type,l.key,l.props,null,r.mode,s)).ref=ls(r,a,l),s.return=r,r=s)}return i(r);case At:e:{for(u=l.key;null!==a;){if(a.key===u){if(4===a.tag&&a.stateNode.containerInfo===l.containerInfo&&a.stateNode.implementation===l.implementation){n(r,a.sibling),(a=o(a,l.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=Yd(l,r.mode,s)).return=r,r=a}return i(r);case Vt:return e(r,a,(u=l._init)(l._payload),s)}if(gn(l))return h(r,a,l,s);if(Zt(l))return m(r,a,l,s);ss(r,l)}return"string"==typeof l&&""!==l||"number"==typeof l?(l=""+l,null!==a&&6===a.tag?(n(r,a.sibling),(a=o(a,l)).return=r,r=a):(n(r,a),(a=Jd(l,r.mode,s)).return=r,r=a),i(r)):n(r,a)}}var ds=us(!0),ps=us(!1),fs={},hs=ji(fs),ms=ji(fs),gs=ji(fs);function vs(e){if(e===fs)throw Error(yt(174));return e}function bs(e,t){switch(Bi(gs,t),Bi(ms,e),Bi(hs,fs),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:En(null,"");break;default:t=En(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Fi(hs),Bi(hs,t)}function ys(){Fi(hs),Fi(ms),Fi(gs)}function xs(e){vs(gs.current);var t=vs(hs.current),n=En(t,e.type);t!==n&&(Bi(ms,e),Bi(hs,n))}function Ss(e){ms.current===e&&(Fi(hs),Fi(ms))}var ws=ji(0);function Es(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}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}var Cs=[];function ks(){for(var e=0;e<Cs.length;e++)Cs[e]._workInProgressVersionPrimary=null;Cs.length=0}var Rs=Nt.ReactCurrentDispatcher,Ls=Nt.ReactCurrentBatchConfig,Os=0,Is=null,_s=null,Ts=null,Ps=!1,Ms=!1,Ns=0,qs=0;function As(){throw Error(yt(321))}function zs(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!wa(e[n],t[n]))return!1;return!0}function Ds(e,t,n,r,o,a){if(Os=a,Is=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Rs.current=null===e||null===e.memoizedState?Sc:wc,e=n(r,o),Ms){a=0;do{if(Ms=!1,Ns=0,25<=a)throw Error(yt(301));a+=1,Ts=_s=null,t.updateQueue=null,Rs.current=Ec,e=n(r,o)}while(Ms)}if(Rs.current=xc,t=null!==_s&&null!==_s.next,Os=0,Ts=_s=Is=null,Ps=!1,t)throw Error(yt(300));return e}function js(){var e=0!==Ns;return Ns=0,e}function Fs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ts?Is.memoizedState=Ts=e:Ts=Ts.next=e,Ts}function Bs(){if(null===_s){var e=Is.alternate;e=null!==e?e.memoizedState:null}else e=_s.next;var t=null===Ts?Is.memoizedState:Ts.next;if(null!==t)Ts=t,_s=e;else{if(null===e)throw Error(yt(310));e={memoizedState:(_s=e).memoizedState,baseState:_s.baseState,baseQueue:_s.baseQueue,queue:_s.queue,next:null},null===Ts?Is.memoizedState=Ts=e:Ts=Ts.next=e}return Ts}function $s(e,t){return"function"==typeof t?t(e):t}function Ws(e){var t=Bs(),n=t.queue;if(null===n)throw Error(yt(311));n.lastRenderedReducer=e;var r=_s,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var i=o.next;o.next=a.next,a.next=i}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var l=i=null,s=null,c=a;do{var u=c.lane;if((Os&u)===u)null!==s&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===s?(l=s=d,i=r):s=s.next=d,Is.lanes|=u,Qu|=u}c=c.next}while(null!==c&&c!==a);null===s?i=r:s.next=l,wa(r,t.memoizedState)||(Nc=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,Is.lanes|=a,Qu|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Hs(e){var t=Bs(),n=t.queue;if(null===n)throw Error(yt(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var i=o=o.next;do{a=e(a,i.action),i=i.next}while(i!==o);wa(a,t.memoizedState)||(Nc=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Us(){}function Vs(e,t){var n=Is,r=Bs(),o=t(),a=!wa(r.memoizedState,o);if(a&&(r.memoizedState=o,Nc=!0),r=r.queue,oc(Zs.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==Ts&&1&Ts.memoizedState.tag){if(n.flags|=2048,Ys(9,Ks.bind(null,n,r,o,t),void 0,null),null===Hu)throw Error(yt(349));0!=(30&Os)||Gs(n,t,o)}return o}function Gs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Is.updateQueue)?(t={lastEffect:null,stores:null},Is.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ks(e,t,n,r){t.value=n,t.getSnapshot=r,Xs(t)&&Qs(e)}function Zs(e,t,n){return n((function(){Xs(t)&&Qs(e)}))}function Xs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!wa(e,n)}catch(e){return!0}}function Qs(e){var t=Hl(e,1);null!==t&&vd(t,e,1,-1)}function Js(e){var t=Fs();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:$s,lastRenderedState:e},t.queue=e,e=e.dispatch=gc.bind(null,Is,e),[t.memoizedState,e]}function Ys(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Is.updateQueue)?(t={lastEffect:null,stores:null},Is.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ec(){return Bs().memoizedState}function tc(e,t,n,r){var o=Fs();Is.flags|=e,o.memoizedState=Ys(1|t,n,void 0,void 0===r?null:r)}function nc(e,t,n,r){var o=Bs();r=void 0===r?null:r;var a=void 0;if(null!==_s){var i=_s.memoizedState;if(a=i.destroy,null!==r&&zs(r,i.deps))return void(o.memoizedState=Ys(t,n,a,r))}Is.flags|=e,o.memoizedState=Ys(1|t,n,a,r)}function rc(e,t){return tc(8390656,8,e,t)}function oc(e,t){return nc(2048,8,e,t)}function ac(e,t){return nc(4,2,e,t)}function ic(e,t){return nc(4,4,e,t)}function lc(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function sc(e,t,n){return n=null!=n?n.concat([e]):null,nc(4,4,lc.bind(null,t,e),n)}function cc(){}function uc(e,t){var n=Bs();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&zs(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function dc(e,t){var n=Bs();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&zs(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function pc(e,t,n){return 0==(21&Os)?(e.baseState&&(e.baseState=!1,Nc=!0),e.memoizedState=n):(wa(n,t)||(n=_r(),Is.lanes|=n,Qu|=n,e.baseState=!0),t)}function fc(e,t){var n=Nr;Nr=0!==n&&4>n?n:4,e(!0);var r=Ls.transition;Ls.transition={};try{e(!1),t()}finally{Nr=n,Ls.transition=r}}function hc(){return Bs().memoizedState}function mc(e,t,n){var r=gd(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},vc(e))bc(t,n);else if(null!==(n=Wl(e,t,n,r))){vd(n,e,r,md()),yc(n,t,r)}}function gc(e,t,n){var r=gd(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(vc(e))bc(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,l=a(i,n);if(o.hasEagerState=!0,o.eagerState=l,wa(l,i)){var s=t.interleaved;return null===s?(o.next=o,$l(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Wl(e,t,o,r))&&(vd(n,e,r,o=md()),yc(n,t,r))}}function vc(e){var t=e.alternate;return e===Is||null!==t&&t===Is}function bc(e,t){Ms=Ps=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function yc(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Mr(e,n)}}var xc={readContext:Fl,useCallback:As,useContext:As,useEffect:As,useImperativeHandle:As,useInsertionEffect:As,useLayoutEffect:As,useMemo:As,useReducer:As,useRef:As,useState:As,useDebugValue:As,useDeferredValue:As,useTransition:As,useMutableSource:As,useSyncExternalStore:As,useId:As,unstable_isNewReconciler:!1},Sc={readContext:Fl,useCallback:function(e,t){return Fs().memoizedState=[e,void 0===t?null:t],e},useContext:Fl,useEffect:rc,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,tc(4194308,4,lc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return tc(4194308,4,e,t)},useInsertionEffect:function(e,t){return tc(4,2,e,t)},useMemo:function(e,t){var n=Fs();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Fs();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=mc.bind(null,Is,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Fs().memoizedState=e},useState:Js,useDebugValue:cc,useDeferredValue:function(e){return Fs().memoizedState=e},useTransition:function(){var e=Js(!1),t=e[0];return e=fc.bind(null,e[1]),Fs().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Is,o=Fs();if(yl){if(void 0===n)throw Error(yt(407));n=n()}else{if(n=t(),null===Hu)throw Error(yt(349));0!=(30&Os)||Gs(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,rc(Zs.bind(null,r,a,e),[e]),r.flags|=2048,Ys(9,Ks.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Fs(),t=Hu.identifierPrefix;if(yl){var n=pl;t=":"+t+"R"+(n=(dl&~(1<<32-Sr(dl)-1)).toString(32)+n),0<(n=Ns++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=qs++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},wc={readContext:Fl,useCallback:uc,useContext:Fl,useEffect:oc,useImperativeHandle:sc,useInsertionEffect:ac,useLayoutEffect:ic,useMemo:dc,useReducer:Ws,useRef:ec,useState:function(){return Ws($s)},useDebugValue:cc,useDeferredValue:function(e){return pc(Bs(),_s.memoizedState,e)},useTransition:function(){return[Ws($s)[0],Bs().memoizedState]},useMutableSource:Us,useSyncExternalStore:Vs,useId:hc,unstable_isNewReconciler:!1},Ec={readContext:Fl,useCallback:uc,useContext:Fl,useEffect:oc,useImperativeHandle:sc,useInsertionEffect:ac,useLayoutEffect:ic,useMemo:dc,useReducer:Hs,useRef:ec,useState:function(){return Hs($s)},useDebugValue:cc,useDeferredValue:function(e){var t=Bs();return null===_s?t.memoizedState=e:pc(t,_s.memoizedState,e)},useTransition:function(){return[Hs($s)[0],Bs().memoizedState]},useMutableSource:Us,useSyncExternalStore:Vs,useId:hc,unstable_isNewReconciler:!1};function Cc(e,t){try{var n="",r=t;do{n+=tn(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function kc(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function Rc(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var Lc="function"==typeof WeakMap?WeakMap:Map;function Oc(e,t,n){(n=Kl(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ad||(ad=!0,id=r),Rc(0,t)},n}function Ic(e,t,n){(n=Kl(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Rc(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){Rc(0,t),"function"!=typeof r&&(null===ld?ld=new Set([this]):ld.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function _c(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new Lc;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)||(o.add(n),e=Fd.bind(null,e,t,n),t.then(e,e))}function Tc(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function Pc(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Kl(-1,1)).tag=2,Zl(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var Mc=Nt.ReactCurrentOwner,Nc=!1;function qc(e,t,n,r){t.child=null===e?ps(t,null,n,r):ds(t,e.child,n,r)}function Ac(e,t,n,r,o){n=n.render;var a=t.ref;return jl(t,o),r=Ds(e,t,n,r,a,o),n=js(),null===e||Nc?(yl&&n&&ml(t),t.flags|=1,qc(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,au(e,t,o))}function zc(e,t,n,r,o){if(null===e){var a=n.type;return"function"!=typeof a||Gd(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Zd(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Dc(e,t,a,r,o))}if(a=e.child,0==(e.lanes&o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:Ea)(i,r)&&e.ref===t.ref)return au(e,t,o)}return t.flags|=1,(e=Kd(a,r)).ref=t.ref,e.return=t,t.child=e}function Dc(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(Ea(a,r)&&e.ref===t.ref){if(Nc=!1,t.pendingProps=r=a,0==(e.lanes&o))return t.lanes=e.lanes,au(e,t,o);0!=(131072&e.flags)&&(Nc=!0)}}return Bc(e,t,n,r,o)}function jc(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Bi(Ku,Gu),Gu|=n;else{if(0==(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Bi(Ku,Gu),Gu|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,Bi(Ku,Gu),Gu|=r}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Bi(Ku,Gu),Gu|=r;return qc(e,t,o,n),t.child}function Fc(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Bc(e,t,n,r,o){var a=Gi(n)?Ui:Wi.current;return a=Vi(t,a),jl(t,o),n=Ds(e,t,n,r,a,o),r=js(),null===e||Nc?(yl&&r&&ml(t),t.flags|=1,qc(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,au(e,t,o))}function $c(e,t,n,r,o){if(Gi(n)){var a=!0;Qi(t)}else a=!1;if(jl(t,o),null===t.stateNode)ou(e,t),os(t,n,r),is(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,l=t.memoizedProps;i.props=l;var s=i.context,c=n.contextType;"object"==typeof c&&null!==c?c=Fl(c):c=Vi(t,c=Gi(n)?Ui:Wi.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==r||s!==c)&&as(t,i,r,c),Ul=!1;var p=t.memoizedState;i.state=p,Jl(t,r,i,o),s=t.memoizedState,l!==r||p!==s||Hi.current||Ul?("function"==typeof u&&(ts(t,n,u,r),s=t.memoizedState),(l=Ul||rs(t,n,l,r,p,s,c))?(d||"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=s),i.props=r,i.state=s,i.context=c,r=l):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Gl(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:Tl(t.type,l),i.props=c,d=t.pendingProps,p=i.context,"object"==typeof(s=n.contextType)&&null!==s?s=Fl(s):s=Vi(t,s=Gi(n)?Ui:Wi.current);var f=n.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==d||p!==s)&&as(t,i,r,s),Ul=!1,p=t.memoizedState,i.state=p,Jl(t,r,i,o);var h=t.memoizedState;l!==d||p!==h||Hi.current||Ul?("function"==typeof f&&(ts(t,n,f,r),h=t.memoizedState),(c=Ul||rs(t,n,c,r,p,h,s)||!1)?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,s),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=s,r=c):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Wc(e,t,n,r,a,o)}function Wc(e,t,n,r,o,a){Fc(e,t);var i=0!=(128&t.flags);if(!r&&!i)return o&&Ji(t,n,!1),au(e,t,a);r=t.stateNode,Mc.current=t;var l=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=ds(t,e.child,null,a),t.child=ds(t,null,l,a)):qc(e,t,l,a),t.memoizedState=r.state,o&&Ji(t,n,!0),t.child}function Hc(e){var t=e.stateNode;t.pendingContext?Zi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Zi(0,t.context,!1),bs(e,t.containerInfo)}function Uc(e,t,n,r,o){return Ol(),Il(o),t.flags|=256,qc(e,t,n,r),t.child}var Vc,Gc,Kc,Zc,Xc={dehydrated:null,treeContext:null,retryLane:0};function Qc(e){return{baseLanes:e,cachePool:null,transitions:null}}function Jc(e,t,n){var r,o=t.pendingProps,a=ws.current,i=!1,l=0!=(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(i=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Bi(ws,1&a),null===e)return Cl(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=o.children,e=o.fallback,i?(o=t.mode,i=t.child,l={mode:"hidden",children:l},0==(1&o)&&null!==i?(i.childLanes=0,i.pendingProps=l):i=Qd(l,o,0,null),e=Xd(e,o,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Qc(n),t.memoizedState=Xc,e):Yc(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,i){if(n)return 256&t.flags?(t.flags&=-257,eu(e,t,i,r=kc(Error(yt(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Qd({mode:"visible",children:r.children},o,0,null),(a=Xd(a,o,i,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!=(1&t.mode)&&ds(t,e.child,null,i),t.child.memoizedState=Qc(i),t.memoizedState=Xc,a);if(0==(1&t.mode))return eu(e,t,i,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,eu(e,t,i,r=kc(a=Error(yt(419)),r,void 0))}if(l=0!=(i&e.childLanes),Nc||l){if(null!==(r=Hu)){switch(i&-i){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|i))?0:o)&&o!==a.retryLane&&(a.retryLane=o,Hl(e,o),vd(r,e,o,-1))}return _d(),eu(e,t,i,r=kc(Error(yt(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=$d.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,bl=Ci(o.nextSibling),vl=t,yl=!0,xl=null,null!==e&&(sl[cl++]=dl,sl[cl++]=pl,sl[cl++]=ul,dl=e.id,pl=e.overflow,ul=t),t=Yc(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,a,n);if(i){i=o.fallback,l=t.mode,r=(a=e.child).sibling;var s={mode:"hidden",children:o.children};return 0==(1&l)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null):(o=Kd(a,s)).subtreeFlags=14680064&a.subtreeFlags,null!==r?i=Kd(r,i):(i=Xd(i,l,n,null)).flags|=2,i.return=t,o.return=t,o.sibling=i,t.child=o,o=i,i=t.child,l=null===(l=e.child.memoizedState)?Qc(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=Xc,o}return e=(i=e.child).sibling,o=Kd(i,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Yc(e,t){return(t=Qd({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function eu(e,t,n,r){return null!==r&&Il(r),ds(t,e.child,null,n),(e=Yc(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function tu(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Dl(e.return,t,n)}function nu(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function ru(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(qc(e,t,r.children,n),0!=(2&(r=ws.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&tu(e,n,t);else if(19===e.tag)tu(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}r&=1}if(Bi(ws,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Es(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),nu(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Es(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}nu(t,!0,n,null,a);break;case"together":nu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ou(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function au(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Qu|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(yt(153));if(null!==t.child){for(n=Kd(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Kd(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function iu(e,t){if(!yl)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 lu(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|=14680064&o.subtreeFlags,r|=14680064&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 su(e,t,n){var r=t.pendingProps;switch(gl(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lu(t),null;case 1:case 17:return Gi(t.type)&&Ki(),lu(t),null;case 3:return r=t.stateNode,ys(),Fi(Hi),Fi(Wi),ks(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Rl(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==xl&&(Sd(xl),xl=null))),Gc(e,t),lu(t),null;case 5:Ss(t);var o=vs(gs.current);if(n=t.type,null!==e&&null!=t.stateNode)Kc(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(yt(166));return lu(t),null}if(e=vs(hs.current),Rl(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[Li]=t,r[Oi]=a,e=0!=(1&t.mode),n){case"dialog":ei("cancel",r),ei("close",r);break;case"iframe":case"object":case"embed":ei("load",r);break;case"video":case"audio":for(o=0;o<Xa.length;o++)ei(Xa[o],r);break;case"source":ei("error",r);break;case"img":case"image":case"link":ei("error",r),ei("load",r);break;case"details":ei("toggle",r);break;case"input":dn(r,a),ei("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},ei("invalid",r);break;case"textarea":yn(r,a),ei("invalid",r)}for(var i in Mn(n,a),o=null,a)if(a.hasOwnProperty(i)){var l=a[i];"children"===i?"string"==typeof l?r.textContent!==l&&(!0!==a.suppressHydrationWarning&&fi(r.textContent,l,e),o=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(!0!==a.suppressHydrationWarning&&fi(r.textContent,l,e),o=["children",""+l]):St.hasOwnProperty(i)&&null!=l&&"onScroll"===i&&ei("scroll",r)}switch(n){case"input":ln(r),hn(r,a,!0);break;case"textarea":ln(r),Sn(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=hi)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{i=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=wn(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=i.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),"select"===n&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Li]=t,e[Oi]=r,Vc(e,t,!1,!1),t.stateNode=e;e:{switch(i=Nn(n,r),n){case"dialog":ei("cancel",e),ei("close",e),o=r;break;case"iframe":case"object":case"embed":ei("load",e),o=r;break;case"video":case"audio":for(o=0;o<Xa.length;o++)ei(Xa[o],e);o=r;break;case"source":ei("error",e),o=r;break;case"img":case"image":case"link":ei("error",e),ei("load",e),o=r;break;case"details":ei("toggle",e),o=r;break;case"input":dn(e,r),o=un(e,r),ei("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Qt({},r,{value:void 0}),ei("invalid",e);break;case"textarea":yn(e,r),o=bn(e,r),ei("invalid",e)}for(a in Mn(n,o),l=o)if(l.hasOwnProperty(a)){var s=l[a];"style"===a?Tn(e,s):"dangerouslySetInnerHTML"===a?null!=(s=s?s.__html:void 0)&&Rn(e,s):"children"===a?"string"==typeof s?("textarea"!==n||""!==s)&&Ln(e,s):"number"==typeof s&&Ln(e,""+s):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(St.hasOwnProperty(a)?null!=s&&"onScroll"===a&&ei("scroll",e):null!=s&&Mt(e,a,s,i))}switch(n){case"input":ln(e),hn(e,r,!1);break;case"textarea":ln(e),Sn(e);break;case"option":null!=r.value&&e.setAttribute("value",""+on(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?vn(e,!!r.multiple,a,!1):null!=r.defaultValue&&vn(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=hi)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return lu(t),null;case 6:if(e&&null!=t.stateNode)Zc(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(yt(166));if(n=vs(gs.current),vs(hs.current),Rl(t)){if(r=t.stateNode,n=t.memoizedProps,r[Li]=t,(a=r.nodeValue!==n)&&null!==(e=vl))switch(e.tag){case 3:fi(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&fi(r.nodeValue,n,0!=(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Li]=t,t.stateNode=r}return lu(t),null;case 13:if(Fi(ws),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(yl&&null!==bl&&0!=(1&t.mode)&&0==(128&t.flags))Ll(),Ol(),t.flags|=98560,a=!1;else if(a=Rl(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(yt(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(yt(317));a[Li]=t}else Ol(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;lu(t),a=!1}else null!==xl&&(Sd(xl),xl=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ws.current)?0===Zu&&(Zu=3):_d())),null!==t.updateQueue&&(t.flags|=4),lu(t),null);case 4:return ys(),Gc(e,t),null===e&&ri(t.stateNode.containerInfo),lu(t),null;case 10:return zl(t.type._context),lu(t),null;case 19:if(Fi(ws),null===(a=t.memoizedState))return lu(t),null;if(r=0!=(128&t.flags),null===(i=a.rendering))if(r)iu(a,!1);else{if(0!==Zu||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(i=Es(e))){for(t.flags|=128,iu(a,!1),null!==(r=i.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(i=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=i.childLanes,a.lanes=i.lanes,a.child=i.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=i.memoizedProps,a.memoizedState=i.memoizedState,a.updateQueue=i.updateQueue,a.type=i.type,e=i.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Bi(ws,1&ws.current|2),t.child}e=e.sibling}null!==a.tail&&pr()>rd&&(t.flags|=128,r=!0,iu(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Es(i))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),iu(a,!0),null===a.tail&&"hidden"===a.tailMode&&!i.alternate&&!yl)return lu(t),null}else 2*pr()-a.renderingStartTime>rd&&1073741824!==n&&(t.flags|=128,r=!0,iu(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(null!==(n=a.last)?n.sibling=i:t.child=i,a.last=i)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=pr(),t.sibling=null,n=ws.current,Bi(ws,r?1&n|2:1&n),t):(lu(t),null);case 22:case 23:return Rd(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Gu)&&(lu(t),6&t.subtreeFlags&&(t.flags|=8192)):lu(t),null;case 24:case 25:return null}throw Error(yt(156,t.tag))}function cu(e,t){switch(gl(t),t.tag){case 1:return Gi(t.type)&&Ki(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ys(),Fi(Hi),Fi(Wi),ks(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Ss(t),null;case 13:if(Fi(ws),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(yt(340));Ol()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Fi(ws),null;case 4:return ys(),null;case 10:return zl(t.type._context),null;case 22:case 23:return Rd(),null;default:return null}}Vc=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Gc=function(){},Kc=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,vs(hs.current);var a,i=null;switch(n){case"input":o=un(e,o),r=un(e,r),i=[];break;case"select":o=Qt({},o,{value:void 0}),r=Qt({},r,{value:void 0}),i=[];break;case"textarea":o=bn(e,o),r=bn(e,r),i=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=hi)}for(c in Mn(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var l=o[c];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(St.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var s=r[c];if(l=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&s!==l&&(null!=s||null!=l))if("style"===c)if(l){for(a in l)!l.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in s)s.hasOwnProperty(a)&&l[a]!==s[a]&&(n||(n={}),n[a]=s[a])}else n||(i||(i=[]),i.push(c,n)),n=s;else"dangerouslySetInnerHTML"===c?(s=s?s.__html:void 0,l=l?l.__html:void 0,null!=s&&l!==s&&(i=i||[]).push(c,s)):"children"===c?"string"!=typeof s&&"number"!=typeof s||(i=i||[]).push(c,""+s):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(St.hasOwnProperty(c)?(null!=s&&"onScroll"===c&&ei("scroll",e),i||l===s||(i=[])):(i=i||[]).push(c,s))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}},Zc=function(e,t,n,r){n!==r&&(t.flags|=4)};var uu=!1,du=!1,pu="function"==typeof WeakSet?WeakSet:Set,fu=null;function hu(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){jd(e,t,n)}else n.current=null}function mu(e,t,n){try{n()}catch(n){jd(e,t,n)}}var gu=!1;function vu(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&mu(t,n,a)}o=o.next}while(o!==r)}}function bu(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function yu(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function xu(e){var t=e.alternate;null!==t&&(e.alternate=null,xu(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[Li],delete t[Oi],delete t[_i],delete t[Ti],delete t[Pi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Su(e){return 5===e.tag||3===e.tag||4===e.tag}function wu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Su(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(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 Eu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=hi));else if(4!==r&&null!==(e=e.child))for(Eu(e,t,n),e=e.sibling;null!==e;)Eu(e,t,n),e=e.sibling}function Cu(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&&null!==(e=e.child))for(Cu(e,t,n),e=e.sibling;null!==e;)Cu(e,t,n),e=e.sibling}var ku=null,Ru=!1;function Lu(e,t,n){for(n=n.child;null!==n;)Ou(e,t,n),n=n.sibling}function Ou(e,t,n){if(xr&&"function"==typeof xr.onCommitFiberUnmount)try{xr.onCommitFiberUnmount(yr,n)}catch(e){}switch(n.tag){case 5:du||hu(n,t);case 6:var r=ku,o=Ru;ku=null,Lu(e,t,n),Ru=o,null!==(ku=r)&&(Ru?(e=ku,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ku.removeChild(n.stateNode));break;case 18:null!==ku&&(Ru?(e=ku,n=n.stateNode,8===e.nodeType?Ei(e.parentNode,n):1===e.nodeType&&Ei(e,n),ro(e)):Ei(ku,n.stateNode));break;case 4:r=ku,o=Ru,ku=n.stateNode.containerInfo,Ru=!0,Lu(e,t,n),ku=r,Ru=o;break;case 0:case 11:case 14:case 15:if(!du&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(0!=(2&a)||0!=(4&a))&&mu(n,t,i),o=o.next}while(o!==r)}Lu(e,t,n);break;case 1:if(!du&&(hu(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){jd(n,t,e)}Lu(e,t,n);break;case 21:Lu(e,t,n);break;case 22:1&n.mode?(du=(r=du)||null!==n.memoizedState,Lu(e,t,n),du=r):Lu(e,t,n);break;default:Lu(e,t,n)}}function Iu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new pu),t.forEach((function(t){var r=Wd.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function _u(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,i=t,l=i;e:for(;null!==l;){switch(l.tag){case 5:ku=l.stateNode,Ru=!1;break e;case 3:case 4:ku=l.stateNode.containerInfo,Ru=!0;break e}l=l.return}if(null===ku)throw Error(yt(160));Ou(a,i,o),ku=null,Ru=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(e){jd(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)Tu(t,e),t=t.sibling}function Tu(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(_u(t,e),Pu(e),4&r){try{vu(3,e,e.return),bu(3,e)}catch(t){jd(e,e.return,t)}try{vu(5,e,e.return)}catch(t){jd(e,e.return,t)}}break;case 1:_u(t,e),Pu(e),512&r&&null!==n&&hu(n,n.return);break;case 5:if(_u(t,e),Pu(e),512&r&&null!==n&&hu(n,n.return),32&e.flags){var o=e.stateNode;try{Ln(o,"")}catch(t){jd(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,i=null!==n?n.memoizedProps:a,l=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===l&&"radio"===a.type&&null!=a.name&&pn(o,a),Nn(l,i);var c=Nn(l,a);for(i=0;i<s.length;i+=2){var u=s[i],d=s[i+1];"style"===u?Tn(o,d):"dangerouslySetInnerHTML"===u?Rn(o,d):"children"===u?Ln(o,d):Mt(o,u,d,c)}switch(l){case"input":fn(o,a);break;case"textarea":xn(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var f=a.value;null!=f?vn(o,!!a.multiple,f,!1):p!==!!a.multiple&&(null!=a.defaultValue?vn(o,!!a.multiple,a.defaultValue,!0):vn(o,!!a.multiple,a.multiple?[]:"",!1))}o[Oi]=a}catch(t){jd(e,e.return,t)}}break;case 6:if(_u(t,e),Pu(e),4&r){if(null===e.stateNode)throw Error(yt(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){jd(e,e.return,t)}}break;case 3:if(_u(t,e),Pu(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{ro(t.containerInfo)}catch(t){jd(e,e.return,t)}break;case 4:default:_u(t,e),Pu(e);break;case 13:_u(t,e),Pu(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(nd=pr())),4&r&&Iu(e);break;case 22:if(u=null!==n&&null!==n.memoizedState,1&e.mode?(du=(c=du)||u,_u(t,e),du=c):_u(t,e),Pu(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!u&&0!=(1&e.mode))for(fu=e,u=e.child;null!==u;){for(d=fu=u;null!==fu;){switch(f=(p=fu).child,p.tag){case 0:case 11:case 14:case 15:vu(4,p,p.return);break;case 1:hu(p,p.return);var h=p.stateNode;if("function"==typeof h.componentWillUnmount){r=p,n=p.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){jd(r,n,e)}}break;case 5:hu(p,p.return);break;case 22:if(null!==p.memoizedState){Au(d);continue}}null!==f?(f.return=p,fu=f):Au(d)}u=u.sibling}e:for(u=null,d=e;;){if(5===d.tag){if(null===u){u=d;try{o=d.stateNode,c?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=d.stateNode,i=null!=(s=d.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,l.style.display=_n("display",i))}catch(t){jd(e,e.return,t)}}}else if(6===d.tag){if(null===u)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){jd(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:_u(t,e),Pu(e),4&r&&Iu(e);case 21:}}function Pu(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(Su(n)){var r=n;break e}n=n.return}throw Error(yt(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(Ln(o,""),r.flags&=-33),Cu(e,wu(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;Eu(e,wu(e),a);break;default:throw Error(yt(161))}}catch(t){jd(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Mu(e,t,n){fu=e,Nu(e)}function Nu(e,t,n){for(var r=0!=(1&e.mode);null!==fu;){var o=fu,a=o.child;if(22===o.tag&&r){var i=null!==o.memoizedState||uu;if(!i){var l=o.alternate,s=null!==l&&null!==l.memoizedState||du;l=uu;var c=du;if(uu=i,(du=s)&&!c)for(fu=o;null!==fu;)s=(i=fu).child,22===i.tag&&null!==i.memoizedState?zu(o):null!==s?(s.return=i,fu=s):zu(o);for(;null!==a;)fu=a,Nu(a),a=a.sibling;fu=o,uu=l,du=c}qu(e)}else 0!=(8772&o.subtreeFlags)&&null!==a?(a.return=o,fu=a):qu(e)}}function qu(e){for(;null!==fu;){var t=fu;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:du||bu(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!du)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Tl(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Yl(t,a,r);break;case 3:var i=t.updateQueue;if(null!==i){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Yl(t,i,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var u=c.memoizedState;if(null!==u){var d=u.dehydrated;null!==d&&ro(d)}}}break;default:throw Error(yt(163))}du||512&t.flags&&yu(t)}catch(e){jd(t,t.return,e)}}if(t===e){fu=null;break}if(null!==(n=t.sibling)){n.return=t.return,fu=n;break}fu=t.return}}function Au(e){for(;null!==fu;){var t=fu;if(t===e){fu=null;break}var n=t.sibling;if(null!==n){n.return=t.return,fu=n;break}fu=t.return}}function zu(e){for(;null!==fu;){var t=fu;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{bu(4,t)}catch(e){jd(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){jd(t,o,e)}}var a=t.return;try{yu(t)}catch(e){jd(t,a,e)}break;case 5:var i=t.return;try{yu(t)}catch(e){jd(t,i,e)}}}catch(e){jd(t,t.return,e)}if(t===e){fu=null;break}var l=t.sibling;if(null!==l){l.return=t.return,fu=l;break}fu=t.return}}var Du,ju=Math.ceil,Fu=Nt.ReactCurrentDispatcher,Bu=Nt.ReactCurrentOwner,$u=Nt.ReactCurrentBatchConfig,Wu=0,Hu=null,Uu=null,Vu=0,Gu=0,Ku=ji(0),Zu=0,Xu=null,Qu=0,Ju=0,Yu=0,ed=null,td=null,nd=0,rd=1/0,od=null,ad=!1,id=null,ld=null,sd=!1,cd=null,ud=0,dd=0,pd=null,fd=-1,hd=0;function md(){return 0!=(6&Wu)?pr():-1!==fd?fd:fd=pr()}function gd(e){return 0==(1&e.mode)?1:0!=(2&Wu)&&0!==Vu?Vu&-Vu:null!==_l.transition?(0===hd&&(hd=_r()),hd):0!==(e=Nr)?e:e=void 0===(e=window.event)?16:po(e.type)}function vd(e,t,n,r){if(50<dd)throw dd=0,pd=null,Error(yt(185));Pr(e,n,r),0!=(2&Wu)&&e===Hu||(e===Hu&&(0==(2&Wu)&&(Ju|=n),4===Zu&&wd(e,Vu)),bd(e,r),1===n&&0===Wu&&0==(1&t.mode)&&(rd=pr()+500,el&&rl()))}function bd(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-Sr(a),l=1<<i,s=o[i];-1===s?0!=(l&n)&&0==(l&r)||(o[i]=Or(l,t)):s<=t&&(e.expiredLanes|=l),a&=~l}}(e,t);var r=Lr(e,e===Hu?Vu:0);if(0===r)null!==n&&cr(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&cr(n),1===t)0===e.tag?function(e){el=!0,nl(e)}(Ed.bind(null,e)):nl(Ed.bind(null,e)),Si((function(){0==(6&Wu)&&rl()})),n=null;else{switch(qr(r)){case 1:n=hr;break;case 4:n=mr;break;case 16:default:n=gr;break;case 536870912:n=br}n=Hd(n,yd.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function yd(e,t){if(fd=-1,hd=0,0!=(6&Wu))throw Error(yt(327));var n=e.callbackNode;if(zd()&&e.callbackNode!==n)return null;var r=Lr(e,e===Hu?Vu:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=Td(e,r);else{t=r;var o=Wu;Wu|=2;var a=Id();for(Hu===e&&Vu===t||(od=null,rd=pr()+500,Ld(e,t));;)try{Md();break}catch(t){Od(e,t)}Al(),Fu.current=a,Wu=o,null!==Uu?t=0:(Hu=null,Vu=0,t=Zu)}if(0!==t){if(2===t&&(0!==(o=Ir(e))&&(r=o,t=xd(e,o))),1===t)throw n=Xu,Ld(e,0),wd(e,r),bd(e,pr()),n;if(6===t)wd(e,r);else{if(o=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],a=o.getSnapshot;o=o.value;try{if(!wa(a(),o))return!1}catch(e){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}(o)&&(2===(t=Td(e,r))&&(0!==(a=Ir(e))&&(r=a,t=xd(e,a))),1===t))throw n=Xu,Ld(e,0),wd(e,r),bd(e,pr()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(yt(345));case 2:case 5:Ad(e,td,od);break;case 3:if(wd(e,r),(130023424&r)===r&&10<(t=nd+500-pr())){if(0!==Lr(e,0))break;if(((o=e.suspendedLanes)&r)!==r){md(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=bi(Ad.bind(null,e,td,od),t);break}Ad(e,td,od);break;case 4:if(wd(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-Sr(r);a=1<<i,(i=t[i])>o&&(o=i),r&=~a}if(r=o,10<(r=(120>(r=pr()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ju(r/1960))-r)){e.timeoutHandle=bi(Ad.bind(null,e,td,od),r);break}Ad(e,td,od);break;default:throw Error(yt(329))}}}return bd(e,pr()),e.callbackNode===n?yd.bind(null,e):null}function xd(e,t){var n=ed;return e.current.memoizedState.isDehydrated&&(Ld(e,t).flags|=256),2!==(e=Td(e,t))&&(t=td,td=n,null!==t&&Sd(t)),e}function Sd(e){null===td?td=e:td.push.apply(td,e)}function wd(e,t){for(t&=~Yu,t&=~Ju,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Sr(t),r=1<<n;e[n]=-1,t&=~r}}function Ed(e){if(0!=(6&Wu))throw Error(yt(327));zd();var t=Lr(e,0);if(0==(1&t))return bd(e,pr()),null;var n=Td(e,t);if(0!==e.tag&&2===n){var r=Ir(e);0!==r&&(t=r,n=xd(e,r))}if(1===n)throw n=Xu,Ld(e,0),wd(e,t),bd(e,pr()),n;if(6===n)throw Error(yt(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ad(e,td,od),bd(e,pr()),null}function Cd(e,t){var n=Wu;Wu|=1;try{return e(t)}finally{0===(Wu=n)&&(rd=pr()+500,el&&rl())}}function kd(e){null!==cd&&0===cd.tag&&0==(6&Wu)&&zd();var t=Wu;Wu|=1;var n=$u.transition,r=Nr;try{if($u.transition=null,Nr=1,e)return e()}finally{Nr=r,$u.transition=n,0==(6&(Wu=t))&&rl()}}function Rd(){Gu=Ku.current,Fi(Ku)}function Ld(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,yi(n)),null!==Uu)for(n=Uu.return;null!==n;){var r=n;switch(gl(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Ki();break;case 3:ys(),Fi(Hi),Fi(Wi),ks();break;case 5:Ss(r);break;case 4:ys();break;case 13:case 19:Fi(ws);break;case 10:zl(r.type._context);break;case 22:case 23:Rd()}n=n.return}if(Hu=e,Uu=e=Kd(e.current,null),Vu=Gu=t,Zu=0,Xu=null,Yu=Ju=Qu=0,td=ed=null,null!==Bl){for(t=0;t<Bl.length;t++)if(null!==(r=(n=Bl[t]).interleaved)){n.interleaved=null;var o=r.next,a=n.pending;if(null!==a){var i=a.next;a.next=o,r.next=i}n.pending=r}Bl=null}return e}function Od(e,t){for(;;){var n=Uu;try{if(Al(),Rs.current=xc,Ps){for(var r=Is.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}Ps=!1}if(Os=0,Ts=_s=Is=null,Ms=!1,Ns=0,Bu.current=null,null===n||null===n.return){Zu=1,Xu=t,Uu=null;break}e:{var a=e,i=n.return,l=n,s=t;if(t=Vu,l.flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var c=s,u=l,d=u.tag;if(0==(1&u.mode)&&(0===d||11===d||15===d)){var p=u.alternate;p?(u.updateQueue=p.updateQueue,u.memoizedState=p.memoizedState,u.lanes=p.lanes):(u.updateQueue=null,u.memoizedState=null)}var f=Tc(i);if(null!==f){f.flags&=-257,Pc(f,i,l,0,t),1&f.mode&&_c(a,c,t),s=c;var h=(t=f).updateQueue;if(null===h){var m=new Set;m.add(s),t.updateQueue=m}else h.add(s);break e}if(0==(1&t)){_c(a,c,t),_d();break e}s=Error(yt(426))}else if(yl&&1&l.mode){var g=Tc(i);if(null!==g){0==(65536&g.flags)&&(g.flags|=256),Pc(g,i,l,0,t),Il(Cc(s,l));break e}}a=s=Cc(s,l),4!==Zu&&(Zu=2),null===ed?ed=[a]:ed.push(a),a=i;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Ql(a,Oc(0,s,t));break e;case 1:l=s;var v=a.type,b=a.stateNode;if(0==(128&a.flags)&&("function"==typeof v.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===ld||!ld.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Ql(a,Ic(a,l,t));break e}}a=a.return}while(null!==a)}qd(n)}catch(e){t=e,Uu===n&&null!==n&&(Uu=n=n.return);continue}break}}function Id(){var e=Fu.current;return Fu.current=xc,null===e?xc:e}function _d(){0!==Zu&&3!==Zu&&2!==Zu||(Zu=4),null===Hu||0==(268435455&Qu)&&0==(268435455&Ju)||wd(Hu,Vu)}function Td(e,t){var n=Wu;Wu|=2;var r=Id();for(Hu===e&&Vu===t||(od=null,Ld(e,t));;)try{Pd();break}catch(t){Od(e,t)}if(Al(),Wu=n,Fu.current=r,null!==Uu)throw Error(yt(261));return Hu=null,Vu=0,Zu}function Pd(){for(;null!==Uu;)Nd(Uu)}function Md(){for(;null!==Uu&&!ur();)Nd(Uu)}function Nd(e){var t=Du(e.alternate,e,Gu);e.memoizedProps=e.pendingProps,null===t?qd(e):Uu=t,Bu.current=null}function qd(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=su(n,t,Gu)))return void(Uu=n)}else{if(null!==(n=cu(n,t)))return n.flags&=32767,void(Uu=n);if(null===e)return Zu=6,void(Uu=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Uu=t);Uu=t=e}while(null!==t);0===Zu&&(Zu=5)}function Ad(e,t,n){var r=Nr,o=$u.transition;try{$u.transition=null,Nr=1,function(e,t,n,r){do{zd()}while(null!==cd);if(0!=(6&Wu))throw Error(yt(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(yt(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Sr(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}(e,a),e===Hu&&(Uu=Hu=null,Vu=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||sd||(sd=!0,Hd(gr,(function(){return zd(),null}))),a=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||a){a=$u.transition,$u.transition=null;var i=Nr;Nr=1;var l=Wu;Wu|=4,Bu.current=null,function(e,t){if(mi=ao,Oa(e=La())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var i=0,l=-1,s=-1,c=0,u=0,d=e,p=null;t:for(;;){for(var f;d!==n||0!==o&&3!==d.nodeType||(l=i+o),d!==a||0!==r&&3!==d.nodeType||(s=i+r),3===d.nodeType&&(i+=d.nodeValue.length),null!==(f=d.firstChild);)p=d,d=f;for(;;){if(d===e)break t;if(p===n&&++c===o&&(l=i),p===a&&++u===r&&(s=i),null!==(f=d.nextSibling))break;p=(d=p).parentNode}d=f}n=-1===l||-1===s?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(gi={focusedElem:e,selectionRange:n},ao=!1,fu=t;null!==fu;)if(e=(t=fu).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,fu=e;else for(;null!==fu;){t=fu;try{var h=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var m=h.memoizedProps,g=h.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:Tl(t.type,m),g);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var y=t.stateNode.containerInfo;1===y.nodeType?y.textContent="":9===y.nodeType&&y.documentElement&&y.removeChild(y.documentElement);break;default:throw Error(yt(163))}}catch(e){jd(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,fu=e;break}fu=t.return}h=gu,gu=!1}(e,n),Tu(n,e),Ia(gi),ao=!!mi,gi=mi=null,e.current=n,Mu(n),dr(),Wu=l,Nr=i,$u.transition=a}else e.current=n;if(sd&&(sd=!1,cd=e,ud=o),a=e.pendingLanes,0===a&&(ld=null),function(e){if(xr&&"function"==typeof xr.onCommitFiberRoot)try{xr.onCommitFiberRoot(yr,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),bd(e,pr()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(ad)throw ad=!1,e=id,id=null,e;0!=(1&ud)&&0!==e.tag&&zd(),a=e.pendingLanes,0!=(1&a)?e===pd?dd++:(dd=0,pd=e):dd=0,rl()}(e,t,n,r)}finally{$u.transition=o,Nr=r}return null}function zd(){if(null!==cd){var e=qr(ud),t=$u.transition,n=Nr;try{if($u.transition=null,Nr=16>e?16:e,null===cd)var r=!1;else{if(e=cd,cd=null,ud=0,0!=(6&Wu))throw Error(yt(331));var o=Wu;for(Wu|=4,fu=e.current;null!==fu;){var a=fu,i=a.child;if(0!=(16&fu.flags)){var l=a.deletions;if(null!==l){for(var s=0;s<l.length;s++){var c=l[s];for(fu=c;null!==fu;){var u=fu;switch(u.tag){case 0:case 11:case 15:vu(8,u,a)}var d=u.child;if(null!==d)d.return=u,fu=d;else for(;null!==fu;){var p=(u=fu).sibling,f=u.return;if(xu(u),u===c){fu=null;break}if(null!==p){p.return=f,fu=p;break}fu=f}}}var h=a.alternate;if(null!==h){var m=h.child;if(null!==m){h.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(null!==m)}}fu=a}}if(0!=(2064&a.subtreeFlags)&&null!==i)i.return=a,fu=i;else e:for(;null!==fu;){if(0!=(2048&(a=fu).flags))switch(a.tag){case 0:case 11:case 15:vu(9,a,a.return)}var v=a.sibling;if(null!==v){v.return=a.return,fu=v;break e}fu=a.return}}var b=e.current;for(fu=b;null!==fu;){var y=(i=fu).child;if(0!=(2064&i.subtreeFlags)&&null!==y)y.return=i,fu=y;else e:for(i=b;null!==fu;){if(0!=(2048&(l=fu).flags))try{switch(l.tag){case 0:case 11:case 15:bu(9,l)}}catch(e){jd(l,l.return,e)}if(l===i){fu=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,fu=x;break e}fu=l.return}}if(Wu=o,rl(),xr&&"function"==typeof xr.onPostCommitFiberRoot)try{xr.onPostCommitFiberRoot(yr,e)}catch(e){}r=!0}return r}finally{Nr=n,$u.transition=t}}return!1}function Dd(e,t,n){e=Zl(e,t=Oc(0,t=Cc(n,t),1),1),t=md(),null!==e&&(Pr(e,1,t),bd(e,t))}function jd(e,t,n){if(3===e.tag)Dd(e,e,n);else for(;null!==t;){if(3===t.tag){Dd(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===ld||!ld.has(r))){t=Zl(t,e=Ic(t,e=Cc(n,e),1),1),e=md(),null!==t&&(Pr(t,1,e),bd(t,e));break}}t=t.return}}function Fd(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=md(),e.pingedLanes|=e.suspendedLanes&n,Hu===e&&(Vu&n)===n&&(4===Zu||3===Zu&&(130023424&Vu)===Vu&&500>pr()-nd?Ld(e,0):Yu|=n),bd(e,t)}function Bd(e,t){0===t&&(0==(1&e.mode)?t=1:(t=kr,0==(130023424&(kr<<=1))&&(kr=4194304)));var n=md();null!==(e=Hl(e,t))&&(Pr(e,t,n),bd(e,n))}function $d(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Bd(e,n)}function Wd(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(yt(314))}null!==r&&r.delete(t),Bd(e,n)}function Hd(e,t){return sr(e,t)}function Ud(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Vd(e,t,n,r){return new Ud(e,t,n,r)}function Gd(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Kd(e,t){var n=e.alternate;return null===n?((n=Vd(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=14680064&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}function Zd(e,t,n,r,o,a){var i=2;if(r=e,"function"==typeof e)Gd(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case zt:return Xd(n.children,o,a,t);case Dt:i=8,o|=8;break;case jt:return(e=Vd(12,n,t,2|o)).elementType=jt,e.lanes=a,e;case Wt:return(e=Vd(13,n,t,o)).elementType=Wt,e.lanes=a,e;case Ht:return(e=Vd(19,n,t,o)).elementType=Ht,e.lanes=a,e;case Gt:return Qd(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Ft:i=10;break e;case Bt:i=9;break e;case $t:i=11;break e;case Ut:i=14;break e;case Vt:i=16,r=null;break e}throw Error(yt(130,null==e?e:typeof e,""))}return(t=Vd(i,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Xd(e,t,n,r){return(e=Vd(7,e,r,t)).lanes=n,e}function Qd(e,t,n,r){return(e=Vd(22,e,r,t)).elementType=Gt,e.lanes=n,e.stateNode={isHidden:!1},e}function Jd(e,t,n){return(e=Vd(6,e,null,t)).lanes=n,e}function Yd(e,t,n){return(t=Vd(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ep(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Tr(0),this.expirationTimes=Tr(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Tr(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function tp(e,t,n,r,o,a,i,l,s){return e=new ep(e,t,n,l,s),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Vd(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vl(a),e}function np(e){if(!e)return $i;e:{if(rr(e=e._reactInternals)!==e||1!==e.tag)throw Error(yt(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Gi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(yt(171))}if(1===e.tag){var n=e.type;if(Gi(n))return Xi(e,n,t)}return t}function rp(e,t,n,r,o,a,i,l,s){return(e=tp(n,r,!0,e,0,a,0,l,s)).context=np(null),n=e.current,(a=Kl(r=md(),o=gd(n))).callback=null!=t?t:null,Zl(n,a,o),e.current.lanes=o,Pr(e,o,r),bd(e,r),e}function op(e,t,n,r){var o=t.current,a=md(),i=gd(o);return n=np(n),null===t.context?t.context=n:t.pendingContext=n,(t=Kl(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Zl(o,t,i))&&(vd(e,o,i,a),Xl(e,o,i)),i}function ap(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}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)}Du=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Hi.current)Nc=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return Nc=!1,function(e,t,n){switch(t.tag){case 3:Hc(t),Ol();break;case 5:xs(t);break;case 1:Gi(t.type)&&Qi(t);break;case 4:bs(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Bi(Pl,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Bi(ws,1&ws.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Jc(e,t,n):(Bi(ws,1&ws.current),null!==(e=au(e,t,n))?e.sibling:null);Bi(ws,1&ws.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return ru(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Bi(ws,ws.current),r)break;return null;case 22:case 23:return t.lanes=0,jc(e,t,n)}return au(e,t,n)}(e,t,n);Nc=0!=(131072&e.flags)}else Nc=!1,yl&&0!=(1048576&t.flags)&&hl(t,ll,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ou(e,t),e=t.pendingProps;var o=Vi(t,Wi.current);jl(t,n),o=Ds(null,t,r,e,o,n);var a=js();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Gi(r)?(a=!0,Qi(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Vl(t),o.updater=ns,t.stateNode=o,o._reactInternals=t,is(t,r,e,n),t=Wc(null,t,r,!0,a,n)):(t.tag=0,yl&&a&&ml(t),qc(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ou(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Gd(e)?1:0;if(null!=e){if((e=e.$$typeof)===$t)return 11;if(e===Ut)return 14}return 2}(r),e=Tl(r,e),o){case 0:t=Bc(null,t,r,e,n);break e;case 1:t=$c(null,t,r,e,n);break e;case 11:t=Ac(null,t,r,e,n);break e;case 14:t=zc(null,t,r,Tl(r.type,e),n);break e}throw Error(yt(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Bc(e,t,r,o=t.elementType===r?o:Tl(r,o),n);case 1:return r=t.type,o=t.pendingProps,$c(e,t,r,o=t.elementType===r?o:Tl(r,o),n);case 3:e:{if(Hc(t),null===e)throw Error(yt(387));r=t.pendingProps,o=(a=t.memoizedState).element,Gl(e,t),Jl(t,r,null,n);var i=t.memoizedState;if(r=i.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Uc(e,t,r,n,o=Cc(Error(yt(423)),t));break e}if(r!==o){t=Uc(e,t,r,n,o=Cc(Error(yt(424)),t));break e}for(bl=Ci(t.stateNode.containerInfo.firstChild),vl=t,yl=!0,xl=null,n=ps(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(Ol(),r===o){t=au(e,t,n);break e}qc(e,t,r,n)}t=t.child}return t;case 5:return xs(t),null===e&&Cl(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,i=o.children,vi(r,o)?i=null:null!==a&&vi(r,a)&&(t.flags|=32),Fc(e,t),qc(e,t,i,n),t.child;case 6:return null===e&&Cl(t),null;case 13:return Jc(e,t,n);case 4:return bs(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ds(t,null,r,n):qc(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Ac(e,t,r,o=t.elementType===r?o:Tl(r,o),n);case 7:return qc(e,t,t.pendingProps,n),t.child;case 8:case 12:return qc(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,Bi(Pl,r._currentValue),r._currentValue=i,null!==a)if(wa(a.value,i)){if(a.children===o.children&&!Hi.current){t=au(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){i=a.child;for(var s=l.firstContext;null!==s;){if(s.context===r){if(1===a.tag){(s=Kl(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var u=(c=c.shared).pending;null===u?s.next=s:(s.next=u.next,u.next=s),c.pending=s}}a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),Dl(a.return,n,t),l.lanes|=n;break}s=s.next}}else if(10===a.tag)i=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(i=a.return))throw Error(yt(341));i.lanes|=n,null!==(l=i.alternate)&&(l.lanes|=n),Dl(i,n,t),i=a.sibling}else i=a.child;if(null!==i)i.return=a;else for(i=a;null!==i;){if(i===t){i=null;break}if(null!==(a=i.sibling)){a.return=i.return,i=a;break}i=i.return}a=i}qc(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,jl(t,n),r=r(o=Fl(o)),t.flags|=1,qc(e,t,r,n),t.child;case 14:return o=Tl(r=t.type,t.pendingProps),zc(e,t,r,o=Tl(r.type,o),n);case 15:return Dc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Tl(r,o),ou(e,t),t.tag=1,Gi(r)?(e=!0,Qi(t)):e=!1,jl(t,n),os(t,r,o),is(t,r,o,n),Wc(null,t,r,!0,e,n);case 19:return ru(e,t,n);case 22:return jc(e,t,n)}throw Error(yt(156,t.tag))};var sp="function"==typeof reportError?reportError:function(e){console.error(e)};function cp(e){this._internalRoot=e}function up(e){this._internalRoot=e}function dp(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function pp(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function fp(){}function hp(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a;if("function"==typeof o){var l=o;o=function(){var e=ap(i);l.call(e)}}op(t,i,e,o)}else i=function(e,t,n,r,o){if(o){if("function"==typeof r){var a=r;r=function(){var e=ap(i);a.call(e)}}var i=rp(t,r,e,0,null,!1,0,"",fp);return e._reactRootContainer=i,e[Ii]=i.current,ri(8===e.nodeType?e.parentNode:e),kd(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=ap(s);l.call(e)}}var s=tp(e,0,!1,null,0,!1,0,"",fp);return e._reactRootContainer=s,e[Ii]=s.current,ri(8===e.nodeType?e.parentNode:e),kd((function(){op(t,s,n,r)})),s}(n,t,e,o,r);return ap(i)}up.prototype.render=cp.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(yt(409));op(e,t,null,null)},up.prototype.unmount=cp.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;kd((function(){op(null,e,null,null)})),t[Ii]=null}},up.prototype.unstable_scheduleHydration=function(e){if(e){var t=jr();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Kr.length&&0!==t&&t<Kr[n].priority;n++);Kr.splice(n,0,e),0===n&&Jr(e)}},Ar=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Rr(t.pendingLanes);0!==n&&(Mr(t,1|n),bd(t,pr()),0==(6&Wu)&&(rd=pr()+500,rl()))}break;case 13:kd((function(){var t=Hl(e,1);if(null!==t){var n=md();vd(t,e,1,n)}})),lp(e,1)}},zr=function(e){if(13===e.tag){var t=Hl(e,134217728);if(null!==t)vd(t,e,134217728,md());lp(e,134217728)}},Dr=function(e){if(13===e.tag){var t=gd(e),n=Hl(e,t);if(null!==n)vd(n,e,t,md());lp(e,t)}},jr=function(){return Nr},Fr=function(e,t){var n=Nr;try{return Nr=e,t()}finally{Nr=n}},zn=function(e,t,n){switch(t){case"input":if(fn(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Ai(r);if(!o)throw Error(yt(90));sn(r),fn(r,o)}}}break;case"textarea":xn(e,n);break;case"select":null!=(t=n.value)&&vn(e,!!n.multiple,t,!1)}},Wn=Cd,Hn=kd;var mp={usingClientEntryPoint:!1,Events:[Ni,qi,Ai,Bn,$n,Cd]},gp={findFiberByHostInstance:Mi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},vp={bundleType:gp.bundleType,version:gp.version,rendererPackageName:gp.rendererPackageName,rendererConfig:gp.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Nt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=ir(e))?null:e.stateNode},findFiberByHostInstance:gp.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var bp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bp.isDisabled&&bp.supportsFiber)try{yr=bp.inject(vp),xr=bp}catch(kn){}}ft.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=mp,ft.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!dp(t))throw Error(yt(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:At,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},ft.createRoot=function(e,t){if(!dp(e))throw Error(yt(299));var n=!1,r="",o=sp;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=tp(e,1,!1,null,0,n,0,r,o),e[Ii]=t.current,ri(8===e.nodeType?e.parentNode:e),new cp(t)},ft.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(yt(188));throw e=Object.keys(e).join(","),Error(yt(268,e))}return e=null===(e=ir(t))?null:e.stateNode},ft.flushSync=function(e){return kd(e)},ft.hydrate=function(e,t,n){if(!pp(t))throw Error(yt(200));return hp(null,e,t,!0,n)},ft.hydrateRoot=function(e,t,n){if(!dp(e))throw Error(yt(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",i=sp;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(i=n.onRecoverableError)),t=rp(t,null,e,1,null!=n?n:null,o,0,a,i),e[Ii]=t.current,ri(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new up(t)},ft.render=function(e,t,n){if(!pp(t))throw Error(yt(200));return hp(null,e,t,!1,n)},ft.unmountComponentAtNode=function(e){if(!pp(e))throw Error(yt(40));return!!e._reactRootContainer&&(kd((function(){hp(null,null,e,!1,(function(){e._reactRootContainer=null,e[Ii]=null}))})),!0)},ft.unstable_batchedUpdates=Cd,ft.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!pp(n))throw Error(yt(200));if(null==e||void 0===e._reactInternals)throw Error(yt(38));return hp(e,t,n,!1,r)},ft.version="18.2.0-next-9e3b772b8-20220608",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),pt.exports=ft;var yp=pt.exports,xp=n(yp),Sp=yp;function wp(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}dt.createRoot=Sp.createRoot,dt.hydrateRoot=Sp.hydrateRoot;var Ep="$$material";function Cp(){return Cp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cp.apply(this,arguments)}function kp(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Rp(){return Rp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rp.apply(this,arguments)}function Lp(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Op=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Ip=Lp((function(e){return Op.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var _p=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Tp="-ms-",Pp="-moz-",Mp="-webkit-",Np="comm",qp="rule",Ap="decl",zp="@keyframes",Dp=Math.abs,jp=String.fromCharCode,Fp=Object.assign;function Bp(e){return e.trim()}function $p(e,t,n){return e.replace(t,n)}function Wp(e,t){return e.indexOf(t)}function Hp(e,t){return 0|e.charCodeAt(t)}function Up(e,t,n){return e.slice(t,n)}function Vp(e){return e.length}function Gp(e){return e.length}function Kp(e,t){return t.push(e),e}var Zp=1,Xp=1,Qp=0,Jp=0,Yp=0,ef="";function tf(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Zp,column:Xp,length:i,return:""}}function nf(e,t){return Fp(tf("",null,null,"",null,null,0),e,{length:-e.length},t)}function rf(){return Yp=Jp>0?Hp(ef,--Jp):0,Xp--,10===Yp&&(Xp=1,Zp--),Yp}function of(){return Yp=Jp<Qp?Hp(ef,Jp++):0,Xp++,10===Yp&&(Xp=1,Zp++),Yp}function af(){return Hp(ef,Jp)}function lf(){return Jp}function sf(e,t){return Up(ef,e,t)}function cf(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function uf(e){return Zp=Xp=1,Qp=Vp(ef=e),Jp=0,[]}function df(e){return ef="",e}function pf(e){return Bp(sf(Jp-1,mf(91===e?e+2:40===e?e+1:e)))}function ff(e){for(;(Yp=af())&&Yp<33;)of();return cf(e)>2||cf(Yp)>3?"":" "}function hf(e,t){for(;--t&&of()&&!(Yp<48||Yp>102||Yp>57&&Yp<65||Yp>70&&Yp<97););return sf(e,lf()+(t<6&&32==af()&&32==of()))}function mf(e){for(;of();)switch(Yp){case e:return Jp;case 34:case 39:34!==e&&39!==e&&mf(Yp);break;case 40:41===e&&mf(e);break;case 92:of()}return Jp}function gf(e,t){for(;of()&&e+Yp!==57&&(e+Yp!==84||47!==af()););return"/*"+sf(t,Jp-1)+"*"+jp(47===e?e:of())}function vf(e){for(;!cf(af());)of();return sf(e,Jp)}function bf(e){return df(yf("",null,null,null,[""],e=uf(e),0,[0],e))}function yf(e,t,n,r,o,a,i,l,s){for(var c=0,u=0,d=i,p=0,f=0,h=0,m=1,g=1,v=1,b=0,y="",x=o,S=a,w=r,E=y;g;)switch(h=b,b=of()){case 40:if(108!=h&&58==Hp(E,d-1)){-1!=Wp(E+=$p(pf(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:E+=pf(b);break;case 9:case 10:case 13:case 32:E+=ff(h);break;case 92:E+=hf(lf()-1,7);continue;case 47:switch(af()){case 42:case 47:Kp(Sf(gf(of(),lf()),t,n),s);break;default:E+="/"}break;case 123*m:l[c++]=Vp(E)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==v&&(E=$p(E,/\f/g,"")),f>0&&Vp(E)-d&&Kp(f>32?wf(E+";",r,n,d-1):wf($p(E," ","")+";",r,n,d-2),s);break;case 59:E+=";";default:if(Kp(w=xf(E,t,n,c,u,o,l,y,x=[],S=[],d),a),123===b)if(0===u)yf(E,t,w,w,x,a,d,l,S);else switch(99===p&&110===Hp(E,3)?100:p){case 100:case 108:case 109:case 115:yf(e,w,w,r&&Kp(xf(e,w,w,0,0,o,l,y,o,x=[],d),S),o,S,d,l,r?x:S);break;default:yf(E,w,w,w,[""],S,0,l,S)}}c=u=f=0,m=v=1,y=E="",d=i;break;case 58:d=1+Vp(E),f=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==rf())continue;switch(E+=jp(b),b*m){case 38:v=u>0?1:(E+="\f",-1);break;case 44:l[c++]=(Vp(E)-1)*v,v=1;break;case 64:45===af()&&(E+=pf(of())),p=af(),u=d=Vp(y=E+=vf(lf())),b++;break;case 45:45===h&&2==Vp(E)&&(m=0)}}return a}function xf(e,t,n,r,o,a,i,l,s,c,u){for(var d=o-1,p=0===o?a:[""],f=Gp(p),h=0,m=0,g=0;h<r;++h)for(var v=0,b=Up(e,d+1,d=Dp(m=i[h])),y=e;v<f;++v)(y=Bp(m>0?p[v]+" "+b:$p(b,/&\f/g,p[v])))&&(s[g++]=y);return tf(e,t,n,0===o?qp:l,s,c,u)}function Sf(e,t,n){return tf(e,t,n,Np,jp(Yp),Up(e,2,-2),0)}function wf(e,t,n,r){return tf(e,t,n,Ap,Up(e,0,r),Up(e,r+1,-1),r)}function Ef(e,t){for(var n="",r=Gp(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Cf(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Ap:return e.return=e.return||e.value;case Np:return"";case zp:return e.return=e.value+"{"+Ef(e.children,r)+"}";case qp:e.value=e.props.join(",")}return Vp(n=Ef(e.children,r))?e.return=e.value+"{"+n+"}":""}function kf(e){var t=Gp(e);return function(n,r,o,a){for(var i="",l=0;l<t;l++)i+=e[l](n,r,o,a)||"";return i}}var Rf=function(e,t,n){for(var r=0,o=0;r=o,o=af(),38===r&&12===o&&(t[n]=1),!cf(o);)of();return sf(e,Jp)},Lf=function(e,t){return df(function(e,t){var n=-1,r=44;do{switch(cf(r)){case 0:38===r&&12===af()&&(t[n]=1),e[n]+=Rf(Jp-1,t,n);break;case 2:e[n]+=pf(r);break;case 4:if(44===r){e[++n]=58===af()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=jp(r)}}while(r=of());return e}(uf(e),t))},Of=new WeakMap,If=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Of.get(n))&&!r){Of.set(e,!0);for(var o=[],a=Lf(t,o),i=n.props,l=0,s=0;l<a.length;l++)for(var c=0;c<i.length;c++,s++)e.props[s]=o[l]?a[l].replace(/&\f/g,i[c]):i[c]+" "+a[l]}}},_f=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Tf(e,t){switch(function(e,t){return 45^Hp(e,0)?(((t<<2^Hp(e,0))<<2^Hp(e,1))<<2^Hp(e,2))<<2^Hp(e,3):0}(e,t)){case 5103:return Mp+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Mp+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Mp+e+Pp+e+Tp+e+e;case 6828:case 4268:return Mp+e+Tp+e+e;case 6165:return Mp+e+Tp+"flex-"+e+e;case 5187:return Mp+e+$p(e,/(\w+).+(:[^]+)/,Mp+"box-$1$2"+Tp+"flex-$1$2")+e;case 5443:return Mp+e+Tp+"flex-item-"+$p(e,/flex-|-self/,"")+e;case 4675:return Mp+e+Tp+"flex-line-pack"+$p(e,/align-content|flex-|-self/,"")+e;case 5548:return Mp+e+Tp+$p(e,"shrink","negative")+e;case 5292:return Mp+e+Tp+$p(e,"basis","preferred-size")+e;case 6060:return Mp+"box-"+$p(e,"-grow","")+Mp+e+Tp+$p(e,"grow","positive")+e;case 4554:return Mp+$p(e,/([^-])(transform)/g,"$1"+Mp+"$2")+e;case 6187:return $p($p($p(e,/(zoom-|grab)/,Mp+"$1"),/(image-set)/,Mp+"$1"),e,"")+e;case 5495:case 3959:return $p(e,/(image-set\([^]*)/,Mp+"$1$`$1");case 4968:return $p($p(e,/(.+:)(flex-)?(.*)/,Mp+"box-pack:$3"+Tp+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Mp+e+e;case 4095:case 3583:case 4068:case 2532:return $p(e,/(.+)-inline(.+)/,Mp+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Vp(e)-1-t>6)switch(Hp(e,t+1)){case 109:if(45!==Hp(e,t+4))break;case 102:return $p(e,/(.+:)(.+)-([^]+)/,"$1"+Mp+"$2-$3$1"+Pp+(108==Hp(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Wp(e,"stretch")?Tf($p(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Hp(e,t+1))break;case 6444:switch(Hp(e,Vp(e)-3-(~Wp(e,"!important")&&10))){case 107:return $p(e,":",":"+Mp)+e;case 101:return $p(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Mp+(45===Hp(e,14)?"inline-":"")+"box$3$1"+Mp+"$2$3$1"+Tp+"$2box$3")+e}break;case 5936:switch(Hp(e,t+11)){case 114:return Mp+e+Tp+$p(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Mp+e+Tp+$p(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Mp+e+Tp+$p(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Mp+e+Tp+e+e}return e}var Pf,Mf="undefined"!=typeof document,Nf=Mf?void 0:function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}((function(){return Lp((function(){var e={};return function(t){return e[t]}}))})),qf=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Ap:e.return=Tf(e.value,e.length);break;case zp:return Ef([nf(e,{value:$p(e.value,"@","@"+Mp)})],r);case qp:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ef([nf(e,{props:[$p(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Ef([nf(e,{props:[$p(t,/:(plac\w+)/,":"+Mp+"input-$1")]}),nf(e,{props:[$p(t,/:(plac\w+)/,":-moz-$1")]}),nf(e,{props:[$p(t,/:(plac\w+)/,Tp+"input-$1")]})],r)}return""}))}}],Af=function(e){var t=e.key;if(Mf&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,a=e.stylisPlugins||qf,i={},l=[];Mf&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;l.push(e)})));var s,c=[If,_f];if(Mf){var u,d=[Cf,(s=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&s(e)})],p=kf(c.concat(a,d));o=function(e,t,n,r){u=n,function(e){Ef(bf(e),p)}(e?e+"{"+t.styles+"}":t.styles),r&&(v.inserted[t.name]=!0)}}else{var f=[Cf],h=kf(c.concat(a,f)),m=Nf(a)(t),g=function(e,t){var n=t.name;return void 0===m[n]&&(m[n]=function(e){return Ef(bf(e),h)}(e?e+"{"+t.styles+"}":t.styles)),m[n]};o=function(e,t,n,r){var o=t.name,a=g(e,t);return void 0===v.compat?(r&&(v.inserted[o]=!0),a):r?void(v.inserted[o]=a):a}}var v={key:t,sheet:new _p({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return v.sheet.hydrate(l),v},zf={exports:{}},Df={},jf=Symbol.for("react.element"),Ff=Symbol.for("react.portal"),Bf=Symbol.for("react.fragment"),$f=Symbol.for("react.strict_mode"),Wf=Symbol.for("react.profiler"),Hf=Symbol.for("react.provider"),Uf=Symbol.for("react.context"),Vf=Symbol.for("react.server_context"),Gf=Symbol.for("react.forward_ref"),Kf=Symbol.for("react.suspense"),Zf=Symbol.for("react.suspense_list"),Xf=Symbol.for("react.memo"),Qf=Symbol.for("react.lazy"),Jf=Symbol.for("react.offscreen");function Yf(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case jf:switch(e=e.type){case Bf:case Wf:case $f:case Kf:case Zf:return e;default:switch(e=e&&e.$$typeof){case Vf:case Uf:case Gf:case Qf:case Xf:case Hf:return e;default:return t}}case Ff:return t}}}Pf=Symbol.for("react.module.reference"),Df.ContextConsumer=Uf,Df.ContextProvider=Hf,Df.Element=jf,Df.ForwardRef=Gf,Df.Fragment=Bf,Df.Lazy=Qf,Df.Memo=Xf,Df.Portal=Ff,Df.Profiler=Wf,Df.StrictMode=$f,Df.Suspense=Kf,Df.SuspenseList=Zf,Df.isAsyncMode=function(){return!1},Df.isConcurrentMode=function(){return!1},Df.isContextConsumer=function(e){return Yf(e)===Uf},Df.isContextProvider=function(e){return Yf(e)===Hf},Df.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===jf},Df.isForwardRef=function(e){return Yf(e)===Gf},Df.isFragment=function(e){return Yf(e)===Bf},Df.isLazy=function(e){return Yf(e)===Qf},Df.isMemo=function(e){return Yf(e)===Xf},Df.isPortal=function(e){return Yf(e)===Ff},Df.isProfiler=function(e){return Yf(e)===Wf},Df.isStrictMode=function(e){return Yf(e)===$f},Df.isSuspense=function(e){return Yf(e)===Kf},Df.isSuspenseList=function(e){return Yf(e)===Zf},Df.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Bf||e===Wf||e===$f||e===Kf||e===Zf||e===Jf||"object"==typeof e&&null!==e&&(e.$$typeof===Qf||e.$$typeof===Xf||e.$$typeof===Hf||e.$$typeof===Uf||e.$$typeof===Gf||e.$$typeof===Pf||void 0!==e.getModuleId)},Df.typeOf=Yf,zf.exports=Df;var eh=zf.exports,th={};th[eh.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},th[eh.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var nh="undefined"!=typeof document;var rh=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===nh&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},oh=function(e,t,n){rh(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o="",a=t;do{var i=e.insert(t===a?"."+r:"",a,e.sheet,!0);nh||void 0===i||(o+=i),a=a.next}while(void 0!==a);if(!nh&&0!==o.length)return o}};function ah(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}var ih={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},lh=/[A-Z]|^ms/g,sh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ch=function(e){return 45===e.charCodeAt(1)},uh=function(e){return null!=e&&"boolean"!=typeof e},dh=Lp((function(e){return ch(e)?e:e.replace(lh,"-$&").toLowerCase()})),ph=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(sh,(function(e,t,n){return hh={name:t,styles:n,next:hh},t}))}return 1===ih[e]||ch(e)||"number"!=typeof t||0===t?t:t+"px"};function fh(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return hh={name:n.name,styles:n.styles,next:hh},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)hh={name:r.name,styles:r.styles,next:hh},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=fh(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":uh(i)&&(r+=dh(a)+":"+ph(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var l=fh(e,t,i);switch(a){case"animation":case"animationName":r+=dh(a)+":"+l+";";break;default:r+=a+"{"+l+"}"}}else for(var s=0;s<i.length;s++)uh(i[s])&&(r+=dh(a)+":"+ph(a,i[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=hh,a=n(e);return hh=o,fh(e,t,a)}}if(null==t)return n;var i=t[n];return void 0!==i?i:n}var hh,mh=/label:\s*([^\s;\n{]+)\s*(;|$)/g,gh=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";hh=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=fh(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=fh(n,t,e[i]),r&&(o+=a[i]);mh.lastIndex=0;for(var l,s="";null!==(l=mh.exec(o));)s+="-"+l[1];return{name:ah(o)+s,styles:o,next:hh}},vh="undefined"!=typeof document,bh=function(e){return e()},yh=!!V.useInsertionEffect&&V.useInsertionEffect,xh=vh&&yh||bh,Sh=yh||H.useLayoutEffect,wh="undefined"!=typeof document,Eh=H.createContext("undefined"!=typeof HTMLElement?Af({key:"css"}):null),Ch=Eh.Provider,kh=function(e){return H.forwardRef((function(t,n){var r=H.useContext(Eh);return e(t,r,n)}))};wh||(kh=function(e){return function(t){var n=H.useContext(Eh);return null===n?(n=Af({key:"css"}),H.createElement(Eh.Provider,{value:n},e(t,n))):e(t,n)}});var Rh=H.createContext({}),Lh=kh((function(e,t){var n=e.styles,r=gh([n],void 0,H.useContext(Rh));if(!wh){for(var o,a=r.name,i=r.styles,l=r.next;void 0!==l;)a+=" "+l.name,i+=l.styles,l=l.next;var s=!0===t.compat,c=t.insert("",{name:a,styles:i},t.sheet,s);return s?null:H.createElement("style",((o={})["data-emotion"]=t.key+"-global "+a,o.dangerouslySetInnerHTML={__html:c},o.nonce=t.sheet.nonce,o))}var u=H.useRef();return Sh((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),n.hydrate([a])),u.current=[n,o],function(){n.flush()}}),[t]),Sh((function(){var e=u.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&oh(t,r.next,!0),n.tags.length){var o=n.tags[n.tags.length-1].nextElementSibling;n.before=o,n.flush()}t.insert("",r,n,!1)}}),[t,r.name]),null}));function Oh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return gh(t)}var Ih=function(){var e=Oh.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},_h=/[A-Z]|^ms/g,Th=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ph=function(e){return 45===e.charCodeAt(1)},Mh=function(e){return null!=e&&"boolean"!=typeof e},Nh=Lp((function(e){return Ph(e)?e:e.replace(_h,"-$&").toLowerCase()})),qh=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Th,(function(e,t,n){return zh={name:t,styles:n,next:zh},t}))}return 1===ih[e]||Ph(e)||"number"!=typeof t||0===t?t:t+"px"};function Ah(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return zh={name:n.name,styles:n.styles,next:zh},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)zh={name:r.name,styles:r.styles,next:zh},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Ah(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":Mh(i)&&(r+=Nh(a)+":"+qh(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var l=Ah(e,t,i);switch(a){case"animation":case"animationName":r+=Nh(a)+":"+l+";";break;default:r+=a+"{"+l+"}"}}else for(var s=0;s<i.length;s++)Mh(i[s])&&(r+=Nh(a)+":"+qh(a,i[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=zh,a=n(e);return zh=o,Ah(e,t,a)}}if(null==t)return n;var i=t[n];return void 0!==i?i:n}var zh,Dh=/label:\s*([^\s;\n{]+)\s*(;|$)/g,jh=Ip,Fh=function(e){return"theme"!==e},Bh=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?jh:Fh},$h=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Wh="undefined"!=typeof document,Hh=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;rh(t,n,r);var o=xh((function(){return oh(t,n,r)}));if(!Wh&&void 0!==o){for(var a,i=n.name,l=n.next;void 0!==l;)i+=" "+l.name,l=l.next;return H.createElement("style",((a={})["data-emotion"]=t.key+" "+i,a.dangerouslySetInnerHTML={__html:o},a.nonce=t.sheet.nonce,a))}return null},Uh=function e(t,n){var r,o,a=t.__emotion_real===t,i=a&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var l=$h(t,n,a),s=l||Bh(i),c=!s("as");return function(){var u=arguments,d=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{d.push(u[0][0]);for(var p=u.length,f=1;f<p;f++)d.push(u[f],u[0][f])}var h=kh((function(e,t,n){var r,a,u,p,f=c&&e.as||i,h="",m=[],g=e;if(null==e.theme){for(var v in g={},e)g[v]=e[v];g.theme=H.useContext(Rh)}"string"==typeof e.className?(r=t.registered,a=m,u=e.className,p="",u.split(" ").forEach((function(e){void 0!==r[e]?a.push(r[e]+";"):p+=e+" "})),h=p):null!=e.className&&(h=e.className+" ");var b=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";zh=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=Ah(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=Ah(n,t,e[i]),r&&(o+=a[i]);Dh.lastIndex=0;for(var l,s="";null!==(l=Dh.exec(o));)s+="-"+l[1];return{name:ah(o)+s,styles:o,next:zh}}(d.concat(m),t.registered,g);h+=t.key+"-"+b.name,void 0!==o&&(h+=" "+o);var y=c&&void 0===l?Bh(f):s,x={};for(var S in e)c&&"as"===S||y(S)&&(x[S]=e[S]);return x.className=h,x.ref=n,H.createElement(H.Fragment,null,H.createElement(Hh,{cache:t,serialized:b,isStringTag:"string"==typeof f}),H.createElement(f,x))}));return h.displayName=void 0!==r?r:"Styled("+("string"==typeof i?i:i.displayName||i.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=i,h.__emotion_styles=d,h.__emotion_forwardProp=l,Object.defineProperty(h,"toString",{value:function(){return"."+o}}),h.withComponent=function(t,r){return e(t,Rp({},n,r,{shouldForwardProp:$h(h,r,!0)})).apply(void 0,d)},h}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Uh[e]=Uh(e)}));var Vh={exports:{}},Gh={},Kh=H,Zh=Symbol.for("react.element"),Xh=Symbol.for("react.fragment"),Qh=Object.prototype.hasOwnProperty,Jh=Kh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Yh={key:!0,ref:!0,__self:!0,__source:!0};function em(e,t,n){var r,o={},a=null,i=null;for(r in void 0!==n&&(a=""+n),void 0!==t.key&&(a=""+t.key),void 0!==t.ref&&(i=t.ref),t)Qh.call(t,r)&&!Yh.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:Zh,type:e,key:a,ref:i,props:o,_owner:Jh.current}}Gh.Fragment=Xh,Gh.jsx=em,Gh.jsxs=em,Vh.exports=Gh;var tm=Vh.exports;let nm;function rm(e){const{injectFirst:t,children:n}=e;return t&&nm?tm.jsx(Ch,{value:nm,children:n}):n}function om(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return tm.jsx(Lh,{styles:r})}
26
+ */function xt(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var St=new Set,wt={};function Et(e,t){Ct(e,t),Ct(e+"Capture",t)}function Ct(e,t){for(wt[e]=t,e=0;e<t.length;e++)St.add(t[e])}var kt=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Lt=Object.prototype.hasOwnProperty,Rt=/^[: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]*$/,Ot={},_t={};function It(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var Tt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){Tt[e]=new It(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];Tt[t]=new It(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){Tt[e]=new It(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){Tt[e]=new It(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){Tt[e]=new It(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){Tt[e]=new It(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){Tt[e]=new It(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){Tt[e]=new It(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){Tt[e]=new It(e,5,!1,e.toLowerCase(),null,!1,!1)}));var Pt=/[\-:]([a-z])/g;function Mt(e){return e[1].toUpperCase()}function Nt(e,t,n,r){var o=Tt.hasOwnProperty(t)?Tt[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!Lt.call(_t,e)||!Lt.call(Ot,e)&&(Rt.test(e)?_t[e]=!0:(Ot[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(Pt,Mt);Tt[t]=new It(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(Pt,Mt);Tt[t]=new It(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(Pt,Mt);Tt[t]=new It(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){Tt[e]=new It(e,1,!1,e.toLowerCase(),null,!1,!1)})),Tt.xlinkHref=new It("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){Tt[e]=new It(e,1,!1,e.toLowerCase(),null,!0,!0)}));var qt=bt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,At=Symbol.for("react.element"),Dt=Symbol.for("react.portal"),zt=Symbol.for("react.fragment"),jt=Symbol.for("react.strict_mode"),Ft=Symbol.for("react.profiler"),Bt=Symbol.for("react.provider"),$t=Symbol.for("react.context"),Wt=Symbol.for("react.forward_ref"),Ht=Symbol.for("react.suspense"),Ut=Symbol.for("react.suspense_list"),Vt=Symbol.for("react.memo"),Gt=Symbol.for("react.lazy"),Kt=Symbol.for("react.offscreen"),Zt=Symbol.iterator;function Xt(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Zt&&e[Zt]||e["@@iterator"])?e:null}var Qt,Jt=Object.assign;function Yt(e){if(void 0===Qt)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Qt=t&&t[1]||""}return"\n"+Qt+e}var en=!1;function tn(e,t){if(!e||en)return"";en=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),a=r.stack.split("\n"),i=o.length-1,l=a.length-1;1<=i&&0<=l&&o[i]!==a[l];)l--;for(;1<=i&&0<=l;i--,l--)if(o[i]!==a[l]){if(1!==i||1!==l)do{if(i--,0>--l||o[i]!==a[l]){var s="\n"+o[i].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=i&&0<=l);break}}}finally{en=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Yt(e):""}function nn(e){switch(e.tag){case 5:return Yt(e.type);case 16:return Yt("Lazy");case 13:return Yt("Suspense");case 19:return Yt("SuspenseList");case 0:case 2:case 15:return e=tn(e.type,!1);case 11:return e=tn(e.type.render,!1);case 1:return e=tn(e.type,!0);default:return""}}function rn(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case zt:return"Fragment";case Dt:return"Portal";case Ft:return"Profiler";case jt:return"StrictMode";case Ht:return"Suspense";case Ut:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case $t:return(e.displayName||"Context")+".Consumer";case Bt:return(e._context.displayName||"Context")+".Provider";case Wt:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Vt:return null!==(t=e.displayName||null)?t:rn(e.type)||"Memo";case Gt:t=e._payload,e=e._init;try{return rn(e(t))}catch(e){}}return null}function on(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return rn(t);case 8:return t===jt?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function an(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ln(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function sn(e){e._valueTracker||(e._valueTracker=function(e){var t=ln(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function cn(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ln(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function un(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}}function dn(e,t){var n=t.checked;return Jt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function pn(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=an(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function fn(e,t){null!=(t=t.checked)&&Nt(e,"checked",t,!1)}function hn(e,t){fn(e,t);var n=an(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?gn(e,t.type,n):t.hasOwnProperty("defaultValue")&&gn(e,t.type,an(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function mn(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function gn(e,t,n){"number"===t&&un(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var vn=Array.isArray;function bn(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=""+an(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 yn(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(xt(91));return Jt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function xn(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(xt(92));if(vn(n)){if(1<n.length)throw Error(xt(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:an(n)}}function Sn(e,t){var n=an(t.value),r=an(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function wn(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function En(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Cn(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?En(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var kn,Ln,Rn=(Ln=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((kn=kn||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=kn.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return Ln(e,t)}))}:Ln);function On(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var _n={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},In=["Webkit","ms","Moz","O"];function Tn(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||_n.hasOwnProperty(e)&&_n[e]?(""+t).trim():t+"px"}function Pn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=Tn(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(_n).forEach((function(e){In.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),_n[t]=_n[e]}))}));var Mn=Jt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Nn(e,t){if(t){if(Mn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(xt(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(xt(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(xt(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(xt(62))}}function qn(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var An=null;function Dn(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var zn=null,jn=null,Fn=null;function Bn(e){if(e=qi(e)){if("function"!=typeof zn)throw Error(xt(280));var t=e.stateNode;t&&(t=Di(t),zn(e.stateNode,e.type,t))}}function $n(e){jn?Fn?Fn.push(e):Fn=[e]:jn=e}function Wn(){if(jn){var e=jn,t=Fn;if(Fn=jn=null,Bn(e),t)for(e=0;e<t.length;e++)Bn(t[e])}}function Hn(e,t){return e(t)}function Un(){}var Vn=!1;function Gn(e,t,n){if(Vn)return e(t,n);Vn=!0;try{return Hn(e,t,n)}finally{Vn=!1,(null!==jn||null!==Fn)&&(Un(),Wn())}}function Kn(e,t){var n=e.stateNode;if(null===n)return null;var r=Di(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(xt(231,t,typeof n));return n}var Zn=!1;if(kt)try{var Xn={};Object.defineProperty(Xn,"passive",{get:function(){Zn=!0}}),window.addEventListener("test",Xn,Xn),window.removeEventListener("test",Xn,Xn)}catch(Ln){Zn=!1}function Qn(e,t,n,r,o,a,i,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var Jn=!1,Yn=null,er=!1,tr=null,nr={onError:function(e){Jn=!0,Yn=e}};function rr(e,t,n,r,o,a,i,l,s){Jn=!1,Yn=null,Qn.apply(nr,arguments)}function or(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function ar(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 ir(e){if(or(e)!==e)throw Error(xt(188))}function lr(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=or(e)))throw Error(xt(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return ir(o),e;if(a===r)return ir(o),t;a=a.sibling}throw Error(xt(188))}if(n.return!==r.return)n=o,r=a;else{for(var i=!1,l=o.child;l;){if(l===n){i=!0,n=o,r=a;break}if(l===r){i=!0,r=o,n=a;break}l=l.sibling}if(!i){for(l=a.child;l;){if(l===n){i=!0,n=a,r=o;break}if(l===r){i=!0,r=a,n=o;break}l=l.sibling}if(!i)throw Error(xt(189))}}if(n.alternate!==r)throw Error(xt(190))}if(3!==n.tag)throw Error(xt(188));return n.stateNode.current===n?e:t}(e),null!==e?sr(e):null}function sr(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=sr(e);if(null!==t)return t;e=e.sibling}return null}var cr=yt.unstable_scheduleCallback,ur=yt.unstable_cancelCallback,dr=yt.unstable_shouldYield,pr=yt.unstable_requestPaint,fr=yt.unstable_now,hr=yt.unstable_getCurrentPriorityLevel,mr=yt.unstable_ImmediatePriority,gr=yt.unstable_UserBlockingPriority,vr=yt.unstable_NormalPriority,br=yt.unstable_LowPriority,yr=yt.unstable_IdlePriority,xr=null,Sr=null;var wr=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(Er(e)/Cr|0)|0},Er=Math.log,Cr=Math.LN2;var kr=64,Lr=4194304;function Rr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Or(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&n;if(0!==i){var l=i&~o;0!==l?r=Rr(l):0!==(a&=i)&&(r=Rr(a))}else 0!==(i=n&~o)?r=Rr(i):0!==a&&(r=Rr(a));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(a=t&-t)||16===o&&0!=(4194240&a)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-wr(t)),r|=e[n],t&=~o;return r}function _r(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function Ir(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Tr(){var e=kr;return 0==(4194240&(kr<<=1))&&(kr=64),e}function Pr(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Mr(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-wr(t)]=n}function Nr(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-wr(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var qr=0;function Ar(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var Dr,zr,jr,Fr,Br,$r=!1,Wr=[],Hr=null,Ur=null,Vr=null,Gr=new Map,Kr=new Map,Zr=[],Xr="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Qr(e,t){switch(e){case"focusin":case"focusout":Hr=null;break;case"dragenter":case"dragleave":Ur=null;break;case"mouseover":case"mouseout":Vr=null;break;case"pointerover":case"pointerout":Gr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Kr.delete(t.pointerId)}}function Jr(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},null!==t&&(null!==(t=qi(t))&&zr(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Yr(e){var t=Ni(e.target);if(null!==t){var n=or(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=ar(n)))return e.blockedOn=t,void Br(e.priority,(function(){jr(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 eo(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=po(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=qi(n))&&zr(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);An=r,n.target.dispatchEvent(r),An=null,t.shift()}return!0}function to(e,t,n){eo(e)&&n.delete(t)}function no(){$r=!1,null!==Hr&&eo(Hr)&&(Hr=null),null!==Ur&&eo(Ur)&&(Ur=null),null!==Vr&&eo(Vr)&&(Vr=null),Gr.forEach(to),Kr.forEach(to)}function ro(e,t){e.blockedOn===t&&(e.blockedOn=null,$r||($r=!0,yt.unstable_scheduleCallback(yt.unstable_NormalPriority,no)))}function oo(e){function t(t){return ro(t,e)}if(0<Wr.length){ro(Wr[0],e);for(var n=1;n<Wr.length;n++){var r=Wr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Hr&&ro(Hr,e),null!==Ur&&ro(Ur,e),null!==Vr&&ro(Vr,e),Gr.forEach(t),Kr.forEach(t),n=0;n<Zr.length;n++)(r=Zr[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Zr.length&&null===(n=Zr[0]).blockedOn;)Yr(n),null===n.blockedOn&&Zr.shift()}var ao=qt.ReactCurrentBatchConfig,io=!0;function lo(e,t,n,r){var o=qr,a=ao.transition;ao.transition=null;try{qr=1,co(e,t,n,r)}finally{qr=o,ao.transition=a}}function so(e,t,n,r){var o=qr,a=ao.transition;ao.transition=null;try{qr=4,co(e,t,n,r)}finally{qr=o,ao.transition=a}}function co(e,t,n,r){if(io){var o=po(e,t,n,r);if(null===o)ii(e,t,r,uo,n),Qr(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Hr=Jr(Hr,e,t,n,r,o),!0;case"dragenter":return Ur=Jr(Ur,e,t,n,r,o),!0;case"mouseover":return Vr=Jr(Vr,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return Gr.set(a,Jr(Gr.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,Kr.set(a,Jr(Kr.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Qr(e,r),4&t&&-1<Xr.indexOf(e)){for(;null!==o;){var a=qi(o);if(null!==a&&Dr(a),null===(a=po(e,t,n,r))&&ii(e,t,r,uo,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else ii(e,t,r,null,n)}}var uo=null;function po(e,t,n,r){if(uo=null,null!==(e=Ni(e=Dn(r))))if(null===(t=or(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=ar(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 uo=e,null}function fo(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(hr()){case mr:return 1;case gr:return 4;case vr:case br:return 16;case yr:return 536870912;default:return 16}default:return 16}}var ho=null,mo=null,go=null;function vo(){if(go)return go;var e,t,n=mo,r=n.length,o="value"in ho?ho.value:ho.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return go=o.slice(e,1<t?1-t:void 0)}function bo(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 yo(){return!0}function xo(){return!1}function So(e){function t(t,n,r,o,a){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?yo:xo,this.isPropagationStopped=xo,this}return Jt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=yo)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=yo)},persist:function(){},isPersistent:yo}),t}var wo,Eo,Co,ko={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Lo=So(ko),Ro=Jt({},ko,{view:0,detail:0}),Oo=So(Ro),_o=Jt({},Ro,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bo,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Co&&(Co&&"mousemove"===e.type?(wo=e.screenX-Co.screenX,Eo=e.screenY-Co.screenY):Eo=wo=0,Co=e),wo)},movementY:function(e){return"movementY"in e?e.movementY:Eo}}),Io=So(_o),To=So(Jt({},_o,{dataTransfer:0})),Po=So(Jt({},Ro,{relatedTarget:0})),Mo=So(Jt({},ko,{animationName:0,elapsedTime:0,pseudoElement:0})),No=Jt({},ko,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),qo=So(No),Ao=So(Jt({},ko,{data:0})),Do={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zo={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"},jo={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Fo(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=jo[e])&&!!t[e]}function Bo(){return Fo}var $o=Jt({},Ro,{key:function(e){if(e.key){var t=Do[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=bo(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?zo[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bo,charCode:function(e){return"keypress"===e.type?bo(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?bo(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Wo=So($o),Ho=So(Jt({},_o,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Uo=So(Jt({},Ro,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bo})),Vo=So(Jt({},ko,{propertyName:0,elapsedTime:0,pseudoElement:0})),Go=Jt({},_o,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ko=So(Go),Zo=[9,13,27,32],Xo=kt&&"CompositionEvent"in window,Qo=null;kt&&"documentMode"in document&&(Qo=document.documentMode);var Jo=kt&&"TextEvent"in window&&!Qo,Yo=kt&&(!Xo||Qo&&8<Qo&&11>=Qo),ea=String.fromCharCode(32),ta=!1;function na(e,t){switch(e){case"keyup":return-1!==Zo.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ra(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var oa=!1;var aa={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 ia(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!aa[e.type]:"textarea"===t}function la(e,t,n,r){$n(r),0<(t=si(t,"onChange")).length&&(n=new Lo("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var sa=null,ca=null;function ua(e){ei(e,0)}function da(e){if(cn(Ai(e)))return e}function pa(e,t){if("change"===e)return t}var fa=!1;if(kt){var ha;if(kt){var ma="oninput"in document;if(!ma){var ga=document.createElement("div");ga.setAttribute("oninput","return;"),ma="function"==typeof ga.oninput}ha=ma}else ha=!1;fa=ha&&(!document.documentMode||9<document.documentMode)}function va(){sa&&(sa.detachEvent("onpropertychange",ba),ca=sa=null)}function ba(e){if("value"===e.propertyName&&da(ca)){var t=[];la(t,ca,e,Dn(e)),Gn(ua,t)}}function ya(e,t,n){"focusin"===e?(va(),ca=n,(sa=t).attachEvent("onpropertychange",ba)):"focusout"===e&&va()}function xa(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return da(ca)}function Sa(e,t){if("click"===e)return da(t)}function wa(e,t){if("input"===e||"change"===e)return da(t)}var Ea="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Ca(e,t){if(Ea(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(!Lt.call(t,o)||!Ea(e[o],t[o]))return!1}return!0}function ka(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function La(e,t){var n,r=ka(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=ka(r)}}function Ra(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Ra(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Oa(){for(var e=window,t=un();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=un((e=t.contentWindow).document)}return t}function _a(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)}function Ia(e){var t=Oa(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ra(n.ownerDocument.documentElement,n)){if(null!==r&&_a(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=void 0===r.end?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=La(n,a);var i=La(n,r);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Ta=kt&&"documentMode"in document&&11>=document.documentMode,Pa=null,Ma=null,Na=null,qa=!1;function Aa(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;qa||null==Pa||Pa!==un(r)||("selectionStart"in(r=Pa)&&_a(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},Na&&Ca(Na,r)||(Na=r,0<(r=si(Ma,"onSelect")).length&&(t=new Lo("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Pa)))}function Da(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var za={animationend:Da("Animation","AnimationEnd"),animationiteration:Da("Animation","AnimationIteration"),animationstart:Da("Animation","AnimationStart"),transitionend:Da("Transition","TransitionEnd")},ja={},Fa={};function Ba(e){if(ja[e])return ja[e];if(!za[e])return e;var t,n=za[e];for(t in n)if(n.hasOwnProperty(t)&&t in Fa)return ja[e]=n[t];return e}kt&&(Fa=document.createElement("div").style,"AnimationEvent"in window||(delete za.animationend.animation,delete za.animationiteration.animation,delete za.animationstart.animation),"TransitionEvent"in window||delete za.transitionend.transition);var $a=Ba("animationend"),Wa=Ba("animationiteration"),Ha=Ba("animationstart"),Ua=Ba("transitionend"),Va=new Map,Ga="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ka(e,t){Va.set(e,t),Et(t,[e])}for(var Za=0;Za<Ga.length;Za++){var Xa=Ga[Za];Ka(Xa.toLowerCase(),"on"+(Xa[0].toUpperCase()+Xa.slice(1)))}Ka($a,"onAnimationEnd"),Ka(Wa,"onAnimationIteration"),Ka(Ha,"onAnimationStart"),Ka("dblclick","onDoubleClick"),Ka("focusin","onFocus"),Ka("focusout","onBlur"),Ka(Ua,"onTransitionEnd"),Ct("onMouseEnter",["mouseout","mouseover"]),Ct("onMouseLeave",["mouseout","mouseover"]),Ct("onPointerEnter",["pointerout","pointerover"]),Ct("onPointerLeave",["pointerout","pointerover"]),Et("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Et("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Et("onBeforeInput",["compositionend","keypress","textInput","paste"]),Et("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Et("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Et("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qa="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(" "),Ja=new Set("cancel close invalid load scroll toggle".split(" ").concat(Qa));function Ya(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,i,l,s){if(rr.apply(this,arguments),Jn){if(!Jn)throw Error(xt(198));var c=Yn;Jn=!1,Yn=null,er||(er=!0,tr=c)}}(r,t,void 0,e),e.currentTarget=null}function ei(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==a&&o.isPropagationStopped())break e;Ya(o,l,c),a=s}else for(i=0;i<r.length;i++){if(s=(l=r[i]).instance,c=l.currentTarget,l=l.listener,s!==a&&o.isPropagationStopped())break e;Ya(o,l,c),a=s}}}if(er)throw e=tr,er=!1,tr=null,e}function ti(e,t){var n=t[Ti];void 0===n&&(n=t[Ti]=new Set);var r=e+"__bubble";n.has(r)||(ai(t,e,2,!1),n.add(r))}function ni(e,t,n){var r=0;t&&(r|=4),ai(n,e,r,t)}var ri="_reactListening"+Math.random().toString(36).slice(2);function oi(e){if(!e[ri]){e[ri]=!0,St.forEach((function(t){"selectionchange"!==t&&(Ja.has(t)||ni(t,!1,e),ni(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[ri]||(t[ri]=!0,ni("selectionchange",!1,t))}}function ai(e,t,n,r){switch(fo(t)){case 1:var o=lo;break;case 4:o=so;break;default:o=co}n=o.bind(null,t,n,e),o=void 0,!Zn||"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 ii(e,t,n,r,o){var a=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===i)for(i=r.return;null!==i;){var s=i.tag;if((3===s||4===s)&&((s=i.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;i=i.return}for(;null!==l;){if(null===(i=Ni(l)))return;if(5===(s=i.tag)||6===s){r=a=i;continue e}l=l.parentNode}}r=r.return}Gn((function(){var r=a,o=Dn(n),i=[];e:{var l=Va.get(e);if(void 0!==l){var s=Lo,c=e;switch(e){case"keypress":if(0===bo(n))break e;case"keydown":case"keyup":s=Wo;break;case"focusin":c="focus",s=Po;break;case"focusout":c="blur",s=Po;break;case"beforeblur":case"afterblur":s=Po;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":s=Io;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=To;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Uo;break;case $a:case Wa:case Ha:s=Mo;break;case Ua:s=Vo;break;case"scroll":s=Oo;break;case"wheel":s=Ko;break;case"copy":case"cut":case"paste":s=qo;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Ho}var u=0!=(4&t),d=!u&&"scroll"===e,p=u?null!==l?l+"Capture":null:l;u=[];for(var f,h=r;null!==h;){var m=(f=h).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==p&&(null!=(m=Kn(h,p))&&u.push(li(h,m,f)))),d)break;h=h.return}0<u.length&&(l=new s(l,c,null,n,o),i.push({event:l,listeners:u}))}}if(0==(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===An||!(c=n.relatedTarget||n.fromElement)||!Ni(c)&&!c[Ii])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(c=(c=n.relatedTarget||n.toElement)?Ni(c):null)&&(c!==(d=or(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(s=null,c=r),s!==c)){if(u=Io,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=Ho,m="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==s?l:Ai(s),f=null==c?l:Ai(c),(l=new u(m,h+"leave",s,n,o)).target=d,l.relatedTarget=f,m=null,Ni(o)===r&&((u=new u(p,h+"enter",c,n,o)).target=f,u.relatedTarget=d,m=u),d=m,s&&c)e:{for(p=c,h=0,f=u=s;f;f=ci(f))h++;for(f=0,m=p;m;m=ci(m))f++;for(;0<h-f;)u=ci(u),h--;for(;0<f-h;)p=ci(p),f--;for(;h--;){if(u===p||null!==p&&u===p.alternate)break e;u=ci(u),p=ci(p)}u=null}else u=null;null!==s&&ui(i,l,s,u,!1),null!==c&&null!==d&&ui(i,d,c,u,!0)}if("select"===(s=(l=r?Ai(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=pa;else if(ia(l))if(fa)g=wa;else{g=xa;var v=ya}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=Sa);switch(g&&(g=g(e,r))?la(i,g,n,o):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&gn(l,"number",l.value)),v=r?Ai(r):window,e){case"focusin":(ia(v)||"true"===v.contentEditable)&&(Pa=v,Ma=r,Na=null);break;case"focusout":Na=Ma=Pa=null;break;case"mousedown":qa=!0;break;case"contextmenu":case"mouseup":case"dragend":qa=!1,Aa(i,n,o);break;case"selectionchange":if(Ta)break;case"keydown":case"keyup":Aa(i,n,o)}var b;if(Xo)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else oa?na(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Yo&&"ko"!==n.locale&&(oa||"onCompositionStart"!==y?"onCompositionEnd"===y&&oa&&(b=vo()):(mo="value"in(ho=o)?ho.value:ho.textContent,oa=!0)),0<(v=si(r,y)).length&&(y=new Ao(y,e,null,n,o),i.push({event:y,listeners:v}),b?y.data=b:null!==(b=ra(n))&&(y.data=b))),(b=Jo?function(e,t){switch(e){case"compositionend":return ra(t);case"keypress":return 32!==t.which?null:(ta=!0,ea);case"textInput":return(e=t.data)===ea&&ta?null:e;default:return null}}(e,n):function(e,t){if(oa)return"compositionend"===e||!Xo&&na(e,t)?(e=vo(),go=mo=ho=null,oa=!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 Yo&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=si(r,"onBeforeInput")).length&&(o=new Ao("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=b))}ei(i,t)}))}function li(e,t,n){return{instance:e,listener:t,currentTarget:n}}function si(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=Kn(e,n))&&r.unshift(li(e,a,o)),null!=(a=Kn(e,t))&&r.push(li(e,a,o))),e=e.return}return r}function ci(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function ui(e,t,n,r,o){for(var a=t._reactName,i=[];null!==n&&n!==r;){var l=n,s=l.alternate,c=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==c&&(l=c,o?null!=(s=Kn(n,a))&&i.unshift(li(n,s,l)):o||null!=(s=Kn(n,a))&&i.push(li(n,s,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var di=/\r\n?/g,pi=/\u0000|\uFFFD/g;function fi(e){return("string"==typeof e?e:""+e).replace(di,"\n").replace(pi,"")}function hi(e,t,n){if(t=fi(t),fi(e)!==t&&n)throw Error(xt(425))}function mi(){}var gi=null,vi=null;function bi(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var yi="function"==typeof setTimeout?setTimeout:void 0,xi="function"==typeof clearTimeout?clearTimeout:void 0,Si="function"==typeof Promise?Promise:void 0,wi="function"==typeof queueMicrotask?queueMicrotask:void 0!==Si?function(e){return Si.resolve(null).then(e).catch(Ei)}:yi;function Ei(e){setTimeout((function(){throw e}))}function Ci(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void oo(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);oo(t)}function ki(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)break;if("/$"===t)return null}}return e}function Li(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Ri=Math.random().toString(36).slice(2),Oi="__reactFiber$"+Ri,_i="__reactProps$"+Ri,Ii="__reactContainer$"+Ri,Ti="__reactEvents$"+Ri,Pi="__reactListeners$"+Ri,Mi="__reactHandles$"+Ri;function Ni(e){var t=e[Oi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ii]||n[Oi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Li(e);null!==e;){if(n=e[Oi])return n;e=Li(e)}return t}n=(e=n).parentNode}return null}function qi(e){return!(e=e[Oi]||e[Ii])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Ai(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(xt(33))}function Di(e){return e[_i]||null}var zi=[],ji=-1;function Fi(e){return{current:e}}function Bi(e){0>ji||(e.current=zi[ji],zi[ji]=null,ji--)}function $i(e,t){ji++,zi[ji]=e.current,e.current=t}var Wi={},Hi=Fi(Wi),Ui=Fi(!1),Vi=Wi;function Gi(e,t){var n=e.type.contextTypes;if(!n)return Wi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Ki(e){return null!=(e=e.childContextTypes)}function Zi(){Bi(Ui),Bi(Hi)}function Xi(e,t,n){if(Hi.current!==Wi)throw Error(xt(168));$i(Hi,t),$i(Ui,n)}function Qi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(xt(108,on(e)||"Unknown",o));return Jt({},n,r)}function Ji(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Wi,Vi=Hi.current,$i(Hi,e),$i(Ui,Ui.current),!0}function Yi(e,t,n){var r=e.stateNode;if(!r)throw Error(xt(169));n?(e=Qi(e,t,Vi),r.__reactInternalMemoizedMergedChildContext=e,Bi(Ui),Bi(Hi),$i(Hi,e)):Bi(Ui),$i(Ui,n)}var el=null,tl=!1,nl=!1;function rl(e){null===el?el=[e]:el.push(e)}function ol(){if(!nl&&null!==el){nl=!0;var e=0,t=qr;try{var n=el;for(qr=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}el=null,tl=!1}catch(t){throw null!==el&&(el=el.slice(e+1)),cr(mr,ol),t}finally{qr=t,nl=!1}}return null}var al=[],il=0,ll=null,sl=0,cl=[],ul=0,dl=null,pl=1,fl="";function hl(e,t){al[il++]=sl,al[il++]=ll,ll=e,sl=t}function ml(e,t,n){cl[ul++]=pl,cl[ul++]=fl,cl[ul++]=dl,dl=e;var r=pl;e=fl;var o=32-wr(r)-1;r&=~(1<<o),n+=1;var a=32-wr(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,pl=1<<32-wr(t)+o|n<<o|r,fl=a+e}else pl=1<<a|n<<o|r,fl=e}function gl(e){null!==e.return&&(hl(e,1),ml(e,1,0))}function vl(e){for(;e===ll;)ll=al[--il],al[il]=null,sl=al[--il],al[il]=null;for(;e===dl;)dl=cl[--ul],cl[ul]=null,fl=cl[--ul],cl[ul]=null,pl=cl[--ul],cl[ul]=null}var bl=null,yl=null,xl=!1,Sl=null;function wl(e,t){var n=Gd(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function El(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,bl=e,yl=ki(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,bl=e,yl=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==dl?{id:pl,overflow:fl}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Gd(18,null,null,0)).stateNode=t,n.return=e,e.child=n,bl=e,yl=null,!0);default:return!1}}function Cl(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function kl(e){if(xl){var t=yl;if(t){var n=t;if(!El(e,t)){if(Cl(e))throw Error(xt(418));t=ki(n.nextSibling);var r=bl;t&&El(e,t)?wl(r,n):(e.flags=-4097&e.flags|2,xl=!1,bl=e)}}else{if(Cl(e))throw Error(xt(418));e.flags=-4097&e.flags|2,xl=!1,bl=e}}}function Ll(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;bl=e}function Rl(e){if(e!==bl)return!1;if(!xl)return Ll(e),xl=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!bi(e.type,e.memoizedProps)),t&&(t=yl)){if(Cl(e))throw Ol(),Error(xt(418));for(;t;)wl(e,t),t=ki(t.nextSibling)}if(Ll(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(xt(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){yl=ki(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}yl=null}}else yl=bl?ki(e.stateNode.nextSibling):null;return!0}function Ol(){for(var e=yl;e;)e=ki(e.nextSibling)}function _l(){yl=bl=null,xl=!1}function Il(e){null===Sl?Sl=[e]:Sl.push(e)}var Tl=qt.ReactCurrentBatchConfig;function Pl(e,t){if(e&&e.defaultProps){for(var n in t=Jt({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Ml=Fi(null),Nl=null,ql=null,Al=null;function Dl(){Al=ql=Nl=null}function zl(e){var t=Ml.current;Bi(Ml),e._currentValue=t}function jl(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 Fl(e,t){Nl=e,Al=ql=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(qc=!0),e.firstContext=null)}function Bl(e){var t=e._currentValue;if(Al!==e)if(e={context:e,memoizedValue:t,next:null},null===ql){if(null===Nl)throw Error(xt(308));ql=e,Nl.dependencies={lanes:0,firstContext:e}}else ql=ql.next=e;return t}var $l=null;function Wl(e){null===$l?$l=[e]:$l.push(e)}function Hl(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Wl(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ul(e,r)}function Ul(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Vl=!1;function Gl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Kl(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Zl(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Xl(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Hu)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ul(e,n)}return null===(o=r.interleaved)?(t.next=t,Wl(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ul(e,n)}function Ql(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Nr(e,n)}}function Jl(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?o=a=i:a=a.next=i,n=n.next}while(null!==n);null===a?o=a=t:a=a.next=t}else o=a=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Yl(e,t,n,r){var o=e.updateQueue;Vl=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,c=s.next;s.next=null,null===i?a=c:i.next=c,i=s;var u=e.alternate;null!==u&&((l=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===l?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=s))}if(null!==a){var d=o.baseState;for(i=0,u=c=s=null,l=a;;){var p=l.lane,f=l.eventTime;if((r&p)===p){null!==u&&(u=u.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,m=l;switch(p=t,f=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(f,d,p);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(p="function"==typeof(h=m.payload)?h.call(f,d,p):h))break e;d=Jt({},d,p);break e;case 2:Vl=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[l]:p.push(l))}else f={eventTime:f,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===u?(c=u=f,s=d):u=u.next=f,i|=p;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(p=l).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===u&&(s=d),o.baseState=s,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{i|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);Ju|=i,e.lanes=i,e.memoizedState=d}}function es(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(xt(191,o));o.call(r)}}}var ts=(new bt.Component).refs;function ns(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:Jt({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var rs={isMounted:function(e){return!!(e=e._reactInternals)&&or(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=gd(),o=vd(e),a=Zl(r,o);a.payload=t,null!=n&&(a.callback=n),null!==(t=Xl(e,a,o))&&(bd(t,e,o,r),Ql(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=gd(),o=vd(e),a=Zl(r,o);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=Xl(e,a,o))&&(bd(t,e,o,r),Ql(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=gd(),r=vd(e),o=Zl(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Xl(e,o,r))&&(bd(t,e,r,n),Ql(t,e,r))}};function os(e,t,n,r,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!Ca(n,r)||!Ca(o,a))}function as(e,t,n){var r=!1,o=Wi,a=t.contextType;return"object"==typeof a&&null!==a?a=Bl(a):(o=Ki(t)?Vi:Hi.current,a=(r=null!=(r=t.contextTypes))?Gi(e,o):Wi),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=rs,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function is(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&&rs.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=ts,Gl(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=Bl(a):(a=Ki(t)?Vi:Hi.current,o.context=Gi(e,a)),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(ns(e,t,a,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&rs.enqueueReplaceState(o,o.state,null),Yl(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function ss(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(xt(309));var r=n.stateNode}if(!r)throw Error(xt(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;t===ts&&(t=o.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(xt(284));if(!n._owner)throw Error(xt(290,e))}return e}function cs(e,t){throw e=Object.prototype.toString.call(t),Error(xt(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function us(e){return(0,e._init)(e._payload)}function ds(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 r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Zd(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function i(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Yd(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){var a=n.type;return a===zt?u(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===Gt&&us(a)===t.type)?((r=o(t,n.props)).ref=ss(e,t,n),r.return=e,r):((r=Xd(n.type,n.key,n.props,null,e.mode,r)).ref=ss(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=ep(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function u(e,t,n,r,a){return null===t||7!==t.tag?((t=Qd(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Yd(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case At:return(n=Xd(t.type,t.key,t.props,null,e.mode,n)).ref=ss(e,null,t),n.return=e,n;case Dt:return(t=ep(t,e.mode,n)).return=e,t;case Gt:return d(e,(0,t._init)(t._payload),n)}if(vn(t)||Xt(t))return(t=Qd(t,e.mode,n,null)).return=e,t;cs(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case At:return n.key===o?s(e,t,n,r):null;case Dt:return n.key===o?c(e,t,n,r):null;case Gt:return p(e,t,(o=n._init)(n._payload),r)}if(vn(n)||Xt(n))return null!==o?null:u(e,t,n,r,null);cs(e,n)}return null}function f(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case At:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Dt:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Gt:return f(e,t,n,(0,r._init)(r._payload),o)}if(vn(r)||Xt(r))return u(t,e=e.get(n)||null,r,o,null);cs(t,r)}return null}function h(o,i,l,s){for(var c=null,u=null,h=i,m=i=0,g=null;null!==h&&m<l.length;m++){h.index>m?(g=h,h=null):g=h.sibling;var v=p(o,h,l[m],s);if(null===v){null===h&&(h=g);break}e&&h&&null===v.alternate&&t(o,h),i=a(v,i,m),null===u?c=v:u.sibling=v,u=v,h=g}if(m===l.length)return n(o,h),xl&&hl(o,m),c;if(null===h){for(;m<l.length;m++)null!==(h=d(o,l[m],s))&&(i=a(h,i,m),null===u?c=h:u.sibling=h,u=h);return xl&&hl(o,m),c}for(h=r(o,h);m<l.length;m++)null!==(g=f(h,o,m,l[m],s))&&(e&&null!==g.alternate&&h.delete(null===g.key?m:g.key),i=a(g,i,m),null===u?c=g:u.sibling=g,u=g);return e&&h.forEach((function(e){return t(o,e)})),xl&&hl(o,m),c}function m(o,i,l,s){var c=Xt(l);if("function"!=typeof c)throw Error(xt(150));if(null==(l=c.call(l)))throw Error(xt(151));for(var u=c=null,h=i,m=i=0,g=null,v=l.next();null!==h&&!v.done;m++,v=l.next()){h.index>m?(g=h,h=null):g=h.sibling;var b=p(o,h,v.value,s);if(null===b){null===h&&(h=g);break}e&&h&&null===b.alternate&&t(o,h),i=a(b,i,m),null===u?c=b:u.sibling=b,u=b,h=g}if(v.done)return n(o,h),xl&&hl(o,m),c;if(null===h){for(;!v.done;m++,v=l.next())null!==(v=d(o,v.value,s))&&(i=a(v,i,m),null===u?c=v:u.sibling=v,u=v);return xl&&hl(o,m),c}for(h=r(o,h);!v.done;m++,v=l.next())null!==(v=f(h,o,m,v.value,s))&&(e&&null!==v.alternate&&h.delete(null===v.key?m:v.key),i=a(v,i,m),null===u?c=v:u.sibling=v,u=v);return e&&h.forEach((function(e){return t(o,e)})),xl&&hl(o,m),c}return function e(r,a,l,s){if("object"==typeof l&&null!==l&&l.type===zt&&null===l.key&&(l=l.props.children),"object"==typeof l&&null!==l){switch(l.$$typeof){case At:e:{for(var c=l.key,u=a;null!==u;){if(u.key===c){if((c=l.type)===zt){if(7===u.tag){n(r,u.sibling),(a=o(u,l.props.children)).return=r,r=a;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===Gt&&us(c)===u.type){n(r,u.sibling),(a=o(u,l.props)).ref=ss(r,u,l),a.return=r,r=a;break e}n(r,u);break}t(r,u),u=u.sibling}l.type===zt?((a=Qd(l.props.children,r.mode,s,l.key)).return=r,r=a):((s=Xd(l.type,l.key,l.props,null,r.mode,s)).ref=ss(r,a,l),s.return=r,r=s)}return i(r);case Dt:e:{for(u=l.key;null!==a;){if(a.key===u){if(4===a.tag&&a.stateNode.containerInfo===l.containerInfo&&a.stateNode.implementation===l.implementation){n(r,a.sibling),(a=o(a,l.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=ep(l,r.mode,s)).return=r,r=a}return i(r);case Gt:return e(r,a,(u=l._init)(l._payload),s)}if(vn(l))return h(r,a,l,s);if(Xt(l))return m(r,a,l,s);cs(r,l)}return"string"==typeof l&&""!==l||"number"==typeof l?(l=""+l,null!==a&&6===a.tag?(n(r,a.sibling),(a=o(a,l)).return=r,r=a):(n(r,a),(a=Yd(l,r.mode,s)).return=r,r=a),i(r)):n(r,a)}}var ps=ds(!0),fs=ds(!1),hs={},ms=Fi(hs),gs=Fi(hs),vs=Fi(hs);function bs(e){if(e===hs)throw Error(xt(174));return e}function ys(e,t){switch($i(vs,t),$i(gs,e),$i(ms,hs),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Cn(null,"");break;default:t=Cn(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Bi(ms),$i(ms,t)}function xs(){Bi(ms),Bi(gs),Bi(vs)}function Ss(e){bs(vs.current);var t=bs(ms.current),n=Cn(t,e.type);t!==n&&($i(gs,e),$i(ms,n))}function ws(e){gs.current===e&&(Bi(ms),Bi(gs))}var Es=Fi(0);function Cs(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}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}var ks=[];function Ls(){for(var e=0;e<ks.length;e++)ks[e]._workInProgressVersionPrimary=null;ks.length=0}var Rs=qt.ReactCurrentDispatcher,Os=qt.ReactCurrentBatchConfig,_s=0,Is=null,Ts=null,Ps=null,Ms=!1,Ns=!1,qs=0,As=0;function Ds(){throw Error(xt(321))}function zs(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ea(e[n],t[n]))return!1;return!0}function js(e,t,n,r,o,a){if(_s=a,Is=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Rs.current=null===e||null===e.memoizedState?wc:Ec,e=n(r,o),Ns){a=0;do{if(Ns=!1,qs=0,25<=a)throw Error(xt(301));a+=1,Ps=Ts=null,t.updateQueue=null,Rs.current=Cc,e=n(r,o)}while(Ns)}if(Rs.current=Sc,t=null!==Ts&&null!==Ts.next,_s=0,Ps=Ts=Is=null,Ms=!1,t)throw Error(xt(300));return e}function Fs(){var e=0!==qs;return qs=0,e}function Bs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ps?Is.memoizedState=Ps=e:Ps=Ps.next=e,Ps}function $s(){if(null===Ts){var e=Is.alternate;e=null!==e?e.memoizedState:null}else e=Ts.next;var t=null===Ps?Is.memoizedState:Ps.next;if(null!==t)Ps=t,Ts=e;else{if(null===e)throw Error(xt(310));e={memoizedState:(Ts=e).memoizedState,baseState:Ts.baseState,baseQueue:Ts.baseQueue,queue:Ts.queue,next:null},null===Ps?Is.memoizedState=Ps=e:Ps=Ps.next=e}return Ps}function Ws(e,t){return"function"==typeof t?t(e):t}function Hs(e){var t=$s(),n=t.queue;if(null===n)throw Error(xt(311));n.lastRenderedReducer=e;var r=Ts,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var i=o.next;o.next=a.next,a.next=i}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var l=i=null,s=null,c=a;do{var u=c.lane;if((_s&u)===u)null!==s&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===s?(l=s=d,i=r):s=s.next=d,Is.lanes|=u,Ju|=u}c=c.next}while(null!==c&&c!==a);null===s?i=r:s.next=l,Ea(r,t.memoizedState)||(qc=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,Is.lanes|=a,Ju|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Us(e){var t=$s(),n=t.queue;if(null===n)throw Error(xt(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var i=o=o.next;do{a=e(a,i.action),i=i.next}while(i!==o);Ea(a,t.memoizedState)||(qc=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Vs(){}function Gs(e,t){var n=Is,r=$s(),o=t(),a=!Ea(r.memoizedState,o);if(a&&(r.memoizedState=o,qc=!0),r=r.queue,ac(Xs.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==Ps&&1&Ps.memoizedState.tag){if(n.flags|=2048,ec(9,Zs.bind(null,n,r,o,t),void 0,null),null===Uu)throw Error(xt(349));0!=(30&_s)||Ks(n,t,o)}return o}function Ks(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Is.updateQueue)?(t={lastEffect:null,stores:null},Is.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Zs(e,t,n,r){t.value=n,t.getSnapshot=r,Qs(t)&&Js(e)}function Xs(e,t,n){return n((function(){Qs(t)&&Js(e)}))}function Qs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ea(e,n)}catch(e){return!0}}function Js(e){var t=Ul(e,1);null!==t&&bd(t,e,1,-1)}function Ys(e){var t=Bs();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ws,lastRenderedState:e},t.queue=e,e=e.dispatch=vc.bind(null,Is,e),[t.memoizedState,e]}function ec(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Is.updateQueue)?(t={lastEffect:null,stores:null},Is.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function tc(){return $s().memoizedState}function nc(e,t,n,r){var o=Bs();Is.flags|=e,o.memoizedState=ec(1|t,n,void 0,void 0===r?null:r)}function rc(e,t,n,r){var o=$s();r=void 0===r?null:r;var a=void 0;if(null!==Ts){var i=Ts.memoizedState;if(a=i.destroy,null!==r&&zs(r,i.deps))return void(o.memoizedState=ec(t,n,a,r))}Is.flags|=e,o.memoizedState=ec(1|t,n,a,r)}function oc(e,t){return nc(8390656,8,e,t)}function ac(e,t){return rc(2048,8,e,t)}function ic(e,t){return rc(4,2,e,t)}function lc(e,t){return rc(4,4,e,t)}function sc(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function cc(e,t,n){return n=null!=n?n.concat([e]):null,rc(4,4,sc.bind(null,t,e),n)}function uc(){}function dc(e,t){var n=$s();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&zs(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function pc(e,t){var n=$s();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&zs(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function fc(e,t,n){return 0==(21&_s)?(e.baseState&&(e.baseState=!1,qc=!0),e.memoizedState=n):(Ea(n,t)||(n=Tr(),Is.lanes|=n,Ju|=n,e.baseState=!0),t)}function hc(e,t){var n=qr;qr=0!==n&&4>n?n:4,e(!0);var r=Os.transition;Os.transition={};try{e(!1),t()}finally{qr=n,Os.transition=r}}function mc(){return $s().memoizedState}function gc(e,t,n){var r=vd(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},bc(e))yc(t,n);else if(null!==(n=Hl(e,t,n,r))){bd(n,e,r,gd()),xc(n,t,r)}}function vc(e,t,n){var r=vd(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(bc(e))yc(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,l=a(i,n);if(o.hasEagerState=!0,o.eagerState=l,Ea(l,i)){var s=t.interleaved;return null===s?(o.next=o,Wl(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Hl(e,t,o,r))&&(bd(n,e,r,o=gd()),xc(n,t,r))}}function bc(e){var t=e.alternate;return e===Is||null!==t&&t===Is}function yc(e,t){Ns=Ms=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function xc(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Nr(e,n)}}var Sc={readContext:Bl,useCallback:Ds,useContext:Ds,useEffect:Ds,useImperativeHandle:Ds,useInsertionEffect:Ds,useLayoutEffect:Ds,useMemo:Ds,useReducer:Ds,useRef:Ds,useState:Ds,useDebugValue:Ds,useDeferredValue:Ds,useTransition:Ds,useMutableSource:Ds,useSyncExternalStore:Ds,useId:Ds,unstable_isNewReconciler:!1},wc={readContext:Bl,useCallback:function(e,t){return Bs().memoizedState=[e,void 0===t?null:t],e},useContext:Bl,useEffect:oc,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,nc(4194308,4,sc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return nc(4194308,4,e,t)},useInsertionEffect:function(e,t){return nc(4,2,e,t)},useMemo:function(e,t){var n=Bs();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Bs();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=gc.bind(null,Is,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Bs().memoizedState=e},useState:Ys,useDebugValue:uc,useDeferredValue:function(e){return Bs().memoizedState=e},useTransition:function(){var e=Ys(!1),t=e[0];return e=hc.bind(null,e[1]),Bs().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Is,o=Bs();if(xl){if(void 0===n)throw Error(xt(407));n=n()}else{if(n=t(),null===Uu)throw Error(xt(349));0!=(30&_s)||Ks(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,oc(Xs.bind(null,r,a,e),[e]),r.flags|=2048,ec(9,Zs.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Bs(),t=Uu.identifierPrefix;if(xl){var n=fl;t=":"+t+"R"+(n=(pl&~(1<<32-wr(pl)-1)).toString(32)+n),0<(n=qs++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=As++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},Ec={readContext:Bl,useCallback:dc,useContext:Bl,useEffect:ac,useImperativeHandle:cc,useInsertionEffect:ic,useLayoutEffect:lc,useMemo:pc,useReducer:Hs,useRef:tc,useState:function(){return Hs(Ws)},useDebugValue:uc,useDeferredValue:function(e){return fc($s(),Ts.memoizedState,e)},useTransition:function(){return[Hs(Ws)[0],$s().memoizedState]},useMutableSource:Vs,useSyncExternalStore:Gs,useId:mc,unstable_isNewReconciler:!1},Cc={readContext:Bl,useCallback:dc,useContext:Bl,useEffect:ac,useImperativeHandle:cc,useInsertionEffect:ic,useLayoutEffect:lc,useMemo:pc,useReducer:Us,useRef:tc,useState:function(){return Us(Ws)},useDebugValue:uc,useDeferredValue:function(e){var t=$s();return null===Ts?t.memoizedState=e:fc(t,Ts.memoizedState,e)},useTransition:function(){return[Us(Ws)[0],$s().memoizedState]},useMutableSource:Vs,useSyncExternalStore:Gs,useId:mc,unstable_isNewReconciler:!1};function kc(e,t){try{var n="",r=t;do{n+=nn(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function Lc(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function Rc(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var Oc="function"==typeof WeakMap?WeakMap:Map;function _c(e,t,n){(n=Zl(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){id||(id=!0,ld=r),Rc(0,t)},n}function Ic(e,t,n){(n=Zl(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Rc(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){Rc(0,t),"function"!=typeof r&&(null===sd?sd=new Set([this]):sd.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function Tc(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new Oc;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)||(o.add(n),e=Bd.bind(null,e,t,n),t.then(e,e))}function Pc(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function Mc(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Zl(-1,1)).tag=2,Xl(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var Nc=qt.ReactCurrentOwner,qc=!1;function Ac(e,t,n,r){t.child=null===e?fs(t,null,n,r):ps(t,e.child,n,r)}function Dc(e,t,n,r,o){n=n.render;var a=t.ref;return Fl(t,o),r=js(e,t,n,r,a,o),n=Fs(),null===e||qc?(xl&&n&&gl(t),t.flags|=1,Ac(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,iu(e,t,o))}function zc(e,t,n,r,o){if(null===e){var a=n.type;return"function"!=typeof a||Kd(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Xd(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,jc(e,t,a,r,o))}if(a=e.child,0==(e.lanes&o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:Ca)(i,r)&&e.ref===t.ref)return iu(e,t,o)}return t.flags|=1,(e=Zd(a,r)).ref=t.ref,e.return=t,t.child=e}function jc(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(Ca(a,r)&&e.ref===t.ref){if(qc=!1,t.pendingProps=r=a,0==(e.lanes&o))return t.lanes=e.lanes,iu(e,t,o);0!=(131072&e.flags)&&(qc=!0)}}return $c(e,t,n,r,o)}function Fc(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},$i(Zu,Ku),Ku|=n;else{if(0==(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,$i(Zu,Ku),Ku|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,$i(Zu,Ku),Ku|=r}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,$i(Zu,Ku),Ku|=r;return Ac(e,t,o,n),t.child}function Bc(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function $c(e,t,n,r,o){var a=Ki(n)?Vi:Hi.current;return a=Gi(t,a),Fl(t,o),n=js(e,t,n,r,a,o),r=Fs(),null===e||qc?(xl&&r&&gl(t),t.flags|=1,Ac(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,iu(e,t,o))}function Wc(e,t,n,r,o){if(Ki(n)){var a=!0;Ji(t)}else a=!1;if(Fl(t,o),null===t.stateNode)au(e,t),as(t,n,r),ls(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,l=t.memoizedProps;i.props=l;var s=i.context,c=n.contextType;"object"==typeof c&&null!==c?c=Bl(c):c=Gi(t,c=Ki(n)?Vi:Hi.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==r||s!==c)&&is(t,i,r,c),Vl=!1;var p=t.memoizedState;i.state=p,Yl(t,r,i,o),s=t.memoizedState,l!==r||p!==s||Ui.current||Vl?("function"==typeof u&&(ns(t,n,u,r),s=t.memoizedState),(l=Vl||os(t,n,l,r,p,s,c))?(d||"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=s),i.props=r,i.state=s,i.context=c,r=l):("function"==typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Kl(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:Pl(t.type,l),i.props=c,d=t.pendingProps,p=i.context,"object"==typeof(s=n.contextType)&&null!==s?s=Bl(s):s=Gi(t,s=Ki(n)?Vi:Hi.current);var f=n.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==d||p!==s)&&is(t,i,r,s),Vl=!1,p=t.memoizedState,i.state=p,Yl(t,r,i,o);var h=t.memoizedState;l!==d||p!==h||Ui.current||Vl?("function"==typeof f&&(ns(t,n,f,r),h=t.memoizedState),(c=Vl||os(t,n,c,r,p,h,s)||!1)?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,s),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=s,r=c):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Hc(e,t,n,r,a,o)}function Hc(e,t,n,r,o,a){Bc(e,t);var i=0!=(128&t.flags);if(!r&&!i)return o&&Yi(t,n,!1),iu(e,t,a);r=t.stateNode,Nc.current=t;var l=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=ps(t,e.child,null,a),t.child=ps(t,null,l,a)):Ac(e,t,l,a),t.memoizedState=r.state,o&&Yi(t,n,!0),t.child}function Uc(e){var t=e.stateNode;t.pendingContext?Xi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Xi(0,t.context,!1),ys(e,t.containerInfo)}function Vc(e,t,n,r,o){return _l(),Il(o),t.flags|=256,Ac(e,t,n,r),t.child}var Gc,Kc,Zc,Xc,Qc={dehydrated:null,treeContext:null,retryLane:0};function Jc(e){return{baseLanes:e,cachePool:null,transitions:null}}function Yc(e,t,n){var r,o=t.pendingProps,a=Es.current,i=!1,l=0!=(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(i=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),$i(Es,1&a),null===e)return kl(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=o.children,e=o.fallback,i?(o=t.mode,i=t.child,l={mode:"hidden",children:l},0==(1&o)&&null!==i?(i.childLanes=0,i.pendingProps=l):i=Jd(l,o,0,null),e=Qd(e,o,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Jc(n),t.memoizedState=Qc,e):eu(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,i){if(n)return 256&t.flags?(t.flags&=-257,tu(e,t,i,r=Lc(Error(xt(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Jd({mode:"visible",children:r.children},o,0,null),(a=Qd(a,o,i,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!=(1&t.mode)&&ps(t,e.child,null,i),t.child.memoizedState=Jc(i),t.memoizedState=Qc,a);if(0==(1&t.mode))return tu(e,t,i,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,tu(e,t,i,r=Lc(a=Error(xt(419)),r,void 0))}if(l=0!=(i&e.childLanes),qc||l){if(null!==(r=Uu)){switch(i&-i){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|i))?0:o)&&o!==a.retryLane&&(a.retryLane=o,Ul(e,o),bd(r,e,o,-1))}return Td(),tu(e,t,i,r=Lc(Error(xt(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Wd.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,yl=ki(o.nextSibling),bl=t,xl=!0,Sl=null,null!==e&&(cl[ul++]=pl,cl[ul++]=fl,cl[ul++]=dl,pl=e.id,fl=e.overflow,dl=t),t=eu(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,a,n);if(i){i=o.fallback,l=t.mode,r=(a=e.child).sibling;var s={mode:"hidden",children:o.children};return 0==(1&l)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null):(o=Zd(a,s)).subtreeFlags=14680064&a.subtreeFlags,null!==r?i=Zd(r,i):(i=Qd(i,l,n,null)).flags|=2,i.return=t,o.return=t,o.sibling=i,t.child=o,o=i,i=t.child,l=null===(l=e.child.memoizedState)?Jc(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=Qc,o}return e=(i=e.child).sibling,o=Zd(i,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function eu(e,t){return(t=Jd({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function tu(e,t,n,r){return null!==r&&Il(r),ps(t,e.child,null,n),(e=eu(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function nu(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),jl(e.return,t,n)}function ru(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function ou(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(Ac(e,t,r.children,n),0!=(2&(r=Es.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&nu(e,n,t);else if(19===e.tag)nu(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}r&=1}if($i(Es,r),0==(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Cs(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ru(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Cs(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ru(t,!0,n,null,a);break;case"together":ru(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function au(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function iu(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ju|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(xt(153));if(null!==t.child){for(n=Zd(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Zd(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function lu(e,t){if(!xl)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 su(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|=14680064&o.subtreeFlags,r|=14680064&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 cu(e,t,n){var r=t.pendingProps;switch(vl(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return su(t),null;case 1:case 17:return Ki(t.type)&&Zi(),su(t),null;case 3:return r=t.stateNode,xs(),Bi(Ui),Bi(Hi),Ls(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Rl(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==Sl&&(wd(Sl),Sl=null))),Kc(e,t),su(t),null;case 5:ws(t);var o=bs(vs.current);if(n=t.type,null!==e&&null!=t.stateNode)Zc(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(xt(166));return su(t),null}if(e=bs(ms.current),Rl(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[Oi]=t,r[_i]=a,e=0!=(1&t.mode),n){case"dialog":ti("cancel",r),ti("close",r);break;case"iframe":case"object":case"embed":ti("load",r);break;case"video":case"audio":for(o=0;o<Qa.length;o++)ti(Qa[o],r);break;case"source":ti("error",r);break;case"img":case"image":case"link":ti("error",r),ti("load",r);break;case"details":ti("toggle",r);break;case"input":pn(r,a),ti("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},ti("invalid",r);break;case"textarea":xn(r,a),ti("invalid",r)}for(var i in Nn(n,a),o=null,a)if(a.hasOwnProperty(i)){var l=a[i];"children"===i?"string"==typeof l?r.textContent!==l&&(!0!==a.suppressHydrationWarning&&hi(r.textContent,l,e),o=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(!0!==a.suppressHydrationWarning&&hi(r.textContent,l,e),o=["children",""+l]):wt.hasOwnProperty(i)&&null!=l&&"onScroll"===i&&ti("scroll",r)}switch(n){case"input":sn(r),mn(r,a,!0);break;case"textarea":sn(r),wn(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=mi)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{i=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=En(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=i.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),"select"===n&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Oi]=t,e[_i]=r,Gc(e,t,!1,!1),t.stateNode=e;e:{switch(i=qn(n,r),n){case"dialog":ti("cancel",e),ti("close",e),o=r;break;case"iframe":case"object":case"embed":ti("load",e),o=r;break;case"video":case"audio":for(o=0;o<Qa.length;o++)ti(Qa[o],e);o=r;break;case"source":ti("error",e),o=r;break;case"img":case"image":case"link":ti("error",e),ti("load",e),o=r;break;case"details":ti("toggle",e),o=r;break;case"input":pn(e,r),o=dn(e,r),ti("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Jt({},r,{value:void 0}),ti("invalid",e);break;case"textarea":xn(e,r),o=yn(e,r),ti("invalid",e)}for(a in Nn(n,o),l=o)if(l.hasOwnProperty(a)){var s=l[a];"style"===a?Pn(e,s):"dangerouslySetInnerHTML"===a?null!=(s=s?s.__html:void 0)&&Rn(e,s):"children"===a?"string"==typeof s?("textarea"!==n||""!==s)&&On(e,s):"number"==typeof s&&On(e,""+s):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(wt.hasOwnProperty(a)?null!=s&&"onScroll"===a&&ti("scroll",e):null!=s&&Nt(e,a,s,i))}switch(n){case"input":sn(e),mn(e,r,!1);break;case"textarea":sn(e),wn(e);break;case"option":null!=r.value&&e.setAttribute("value",""+an(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?bn(e,!!r.multiple,a,!1):null!=r.defaultValue&&bn(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=mi)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return su(t),null;case 6:if(e&&null!=t.stateNode)Xc(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(xt(166));if(n=bs(vs.current),bs(ms.current),Rl(t)){if(r=t.stateNode,n=t.memoizedProps,r[Oi]=t,(a=r.nodeValue!==n)&&null!==(e=bl))switch(e.tag){case 3:hi(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&hi(r.nodeValue,n,0!=(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Oi]=t,t.stateNode=r}return su(t),null;case 13:if(Bi(Es),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(xl&&null!==yl&&0!=(1&t.mode)&&0==(128&t.flags))Ol(),_l(),t.flags|=98560,a=!1;else if(a=Rl(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(xt(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(xt(317));a[Oi]=t}else _l(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;su(t),a=!1}else null!==Sl&&(wd(Sl),Sl=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&Es.current)?0===Xu&&(Xu=3):Td())),null!==t.updateQueue&&(t.flags|=4),su(t),null);case 4:return xs(),Kc(e,t),null===e&&oi(t.stateNode.containerInfo),su(t),null;case 10:return zl(t.type._context),su(t),null;case 19:if(Bi(Es),null===(a=t.memoizedState))return su(t),null;if(r=0!=(128&t.flags),null===(i=a.rendering))if(r)lu(a,!1);else{if(0!==Xu||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(i=Cs(e))){for(t.flags|=128,lu(a,!1),null!==(r=i.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(i=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=i.childLanes,a.lanes=i.lanes,a.child=i.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=i.memoizedProps,a.memoizedState=i.memoizedState,a.updateQueue=i.updateQueue,a.type=i.type,e=i.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return $i(Es,1&Es.current|2),t.child}e=e.sibling}null!==a.tail&&fr()>od&&(t.flags|=128,r=!0,lu(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Cs(i))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),lu(a,!0),null===a.tail&&"hidden"===a.tailMode&&!i.alternate&&!xl)return su(t),null}else 2*fr()-a.renderingStartTime>od&&1073741824!==n&&(t.flags|=128,r=!0,lu(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(null!==(n=a.last)?n.sibling=i:t.child=i,a.last=i)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=fr(),t.sibling=null,n=Es.current,$i(Es,r?1&n|2:1&n),t):(su(t),null);case 22:case 23:return Rd(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Ku)&&(su(t),6&t.subtreeFlags&&(t.flags|=8192)):su(t),null;case 24:case 25:return null}throw Error(xt(156,t.tag))}function uu(e,t){switch(vl(t),t.tag){case 1:return Ki(t.type)&&Zi(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return xs(),Bi(Ui),Bi(Hi),Ls(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ws(t),null;case 13:if(Bi(Es),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(xt(340));_l()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Bi(Es),null;case 4:return xs(),null;case 10:return zl(t.type._context),null;case 22:case 23:return Rd(),null;default:return null}}Gc=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Kc=function(){},Zc=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,bs(ms.current);var a,i=null;switch(n){case"input":o=dn(e,o),r=dn(e,r),i=[];break;case"select":o=Jt({},o,{value:void 0}),r=Jt({},r,{value:void 0}),i=[];break;case"textarea":o=yn(e,o),r=yn(e,r),i=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=mi)}for(c in Nn(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var l=o[c];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(wt.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var s=r[c];if(l=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&s!==l&&(null!=s||null!=l))if("style"===c)if(l){for(a in l)!l.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in s)s.hasOwnProperty(a)&&l[a]!==s[a]&&(n||(n={}),n[a]=s[a])}else n||(i||(i=[]),i.push(c,n)),n=s;else"dangerouslySetInnerHTML"===c?(s=s?s.__html:void 0,l=l?l.__html:void 0,null!=s&&l!==s&&(i=i||[]).push(c,s)):"children"===c?"string"!=typeof s&&"number"!=typeof s||(i=i||[]).push(c,""+s):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(wt.hasOwnProperty(c)?(null!=s&&"onScroll"===c&&ti("scroll",e),i||l===s||(i=[])):(i=i||[]).push(c,s))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}},Xc=function(e,t,n,r){n!==r&&(t.flags|=4)};var du=!1,pu=!1,fu="function"==typeof WeakSet?WeakSet:Set,hu=null;function mu(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Fd(e,t,n)}else n.current=null}function gu(e,t,n){try{n()}catch(n){Fd(e,t,n)}}var vu=!1;function bu(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&gu(t,n,a)}o=o.next}while(o!==r)}}function yu(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function xu(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function Su(e){var t=e.alternate;null!==t&&(e.alternate=null,Su(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[Oi],delete t[_i],delete t[Ti],delete t[Pi],delete t[Mi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function wu(e){return 5===e.tag||3===e.tag||4===e.tag}function Eu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||wu(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(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 Cu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=mi));else if(4!==r&&null!==(e=e.child))for(Cu(e,t,n),e=e.sibling;null!==e;)Cu(e,t,n),e=e.sibling}function ku(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&&null!==(e=e.child))for(ku(e,t,n),e=e.sibling;null!==e;)ku(e,t,n),e=e.sibling}var Lu=null,Ru=!1;function Ou(e,t,n){for(n=n.child;null!==n;)_u(e,t,n),n=n.sibling}function _u(e,t,n){if(Sr&&"function"==typeof Sr.onCommitFiberUnmount)try{Sr.onCommitFiberUnmount(xr,n)}catch(e){}switch(n.tag){case 5:pu||mu(n,t);case 6:var r=Lu,o=Ru;Lu=null,Ou(e,t,n),Ru=o,null!==(Lu=r)&&(Ru?(e=Lu,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):Lu.removeChild(n.stateNode));break;case 18:null!==Lu&&(Ru?(e=Lu,n=n.stateNode,8===e.nodeType?Ci(e.parentNode,n):1===e.nodeType&&Ci(e,n),oo(e)):Ci(Lu,n.stateNode));break;case 4:r=Lu,o=Ru,Lu=n.stateNode.containerInfo,Ru=!0,Ou(e,t,n),Lu=r,Ru=o;break;case 0:case 11:case 14:case 15:if(!pu&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(0!=(2&a)||0!=(4&a))&&gu(n,t,i),o=o.next}while(o!==r)}Ou(e,t,n);break;case 1:if(!pu&&(mu(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Fd(n,t,e)}Ou(e,t,n);break;case 21:Ou(e,t,n);break;case 22:1&n.mode?(pu=(r=pu)||null!==n.memoizedState,Ou(e,t,n),pu=r):Ou(e,t,n);break;default:Ou(e,t,n)}}function Iu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new fu),t.forEach((function(t){var r=Hd.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Tu(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,i=t,l=i;e:for(;null!==l;){switch(l.tag){case 5:Lu=l.stateNode,Ru=!1;break e;case 3:case 4:Lu=l.stateNode.containerInfo,Ru=!0;break e}l=l.return}if(null===Lu)throw Error(xt(160));_u(a,i,o),Lu=null,Ru=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(e){Fd(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)Pu(t,e),t=t.sibling}function Pu(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Tu(t,e),Mu(e),4&r){try{bu(3,e,e.return),yu(3,e)}catch(t){Fd(e,e.return,t)}try{bu(5,e,e.return)}catch(t){Fd(e,e.return,t)}}break;case 1:Tu(t,e),Mu(e),512&r&&null!==n&&mu(n,n.return);break;case 5:if(Tu(t,e),Mu(e),512&r&&null!==n&&mu(n,n.return),32&e.flags){var o=e.stateNode;try{On(o,"")}catch(t){Fd(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,i=null!==n?n.memoizedProps:a,l=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===l&&"radio"===a.type&&null!=a.name&&fn(o,a),qn(l,i);var c=qn(l,a);for(i=0;i<s.length;i+=2){var u=s[i],d=s[i+1];"style"===u?Pn(o,d):"dangerouslySetInnerHTML"===u?Rn(o,d):"children"===u?On(o,d):Nt(o,u,d,c)}switch(l){case"input":hn(o,a);break;case"textarea":Sn(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var f=a.value;null!=f?bn(o,!!a.multiple,f,!1):p!==!!a.multiple&&(null!=a.defaultValue?bn(o,!!a.multiple,a.defaultValue,!0):bn(o,!!a.multiple,a.multiple?[]:"",!1))}o[_i]=a}catch(t){Fd(e,e.return,t)}}break;case 6:if(Tu(t,e),Mu(e),4&r){if(null===e.stateNode)throw Error(xt(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){Fd(e,e.return,t)}}break;case 3:if(Tu(t,e),Mu(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{oo(t.containerInfo)}catch(t){Fd(e,e.return,t)}break;case 4:default:Tu(t,e),Mu(e);break;case 13:Tu(t,e),Mu(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(rd=fr())),4&r&&Iu(e);break;case 22:if(u=null!==n&&null!==n.memoizedState,1&e.mode?(pu=(c=pu)||u,Tu(t,e),pu=c):Tu(t,e),Mu(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!u&&0!=(1&e.mode))for(hu=e,u=e.child;null!==u;){for(d=hu=u;null!==hu;){switch(f=(p=hu).child,p.tag){case 0:case 11:case 14:case 15:bu(4,p,p.return);break;case 1:mu(p,p.return);var h=p.stateNode;if("function"==typeof h.componentWillUnmount){r=p,n=p.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){Fd(r,n,e)}}break;case 5:mu(p,p.return);break;case 22:if(null!==p.memoizedState){Du(d);continue}}null!==f?(f.return=p,hu=f):Du(d)}u=u.sibling}e:for(u=null,d=e;;){if(5===d.tag){if(null===u){u=d;try{o=d.stateNode,c?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=d.stateNode,i=null!=(s=d.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,l.style.display=Tn("display",i))}catch(t){Fd(e,e.return,t)}}}else if(6===d.tag){if(null===u)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){Fd(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Tu(t,e),Mu(e),4&r&&Iu(e);case 21:}}function Mu(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(wu(n)){var r=n;break e}n=n.return}throw Error(xt(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(On(o,""),r.flags&=-33),ku(e,Eu(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;Cu(e,Eu(e),a);break;default:throw Error(xt(161))}}catch(t){Fd(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Nu(e,t,n){hu=e,qu(e)}function qu(e,t,n){for(var r=0!=(1&e.mode);null!==hu;){var o=hu,a=o.child;if(22===o.tag&&r){var i=null!==o.memoizedState||du;if(!i){var l=o.alternate,s=null!==l&&null!==l.memoizedState||pu;l=du;var c=pu;if(du=i,(pu=s)&&!c)for(hu=o;null!==hu;)s=(i=hu).child,22===i.tag&&null!==i.memoizedState?zu(o):null!==s?(s.return=i,hu=s):zu(o);for(;null!==a;)hu=a,qu(a),a=a.sibling;hu=o,du=l,pu=c}Au(e)}else 0!=(8772&o.subtreeFlags)&&null!==a?(a.return=o,hu=a):Au(e)}}function Au(e){for(;null!==hu;){var t=hu;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:pu||yu(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!pu)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Pl(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&es(t,a,r);break;case 3:var i=t.updateQueue;if(null!==i){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}es(t,i,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var u=c.memoizedState;if(null!==u){var d=u.dehydrated;null!==d&&oo(d)}}}break;default:throw Error(xt(163))}pu||512&t.flags&&xu(t)}catch(e){Fd(t,t.return,e)}}if(t===e){hu=null;break}if(null!==(n=t.sibling)){n.return=t.return,hu=n;break}hu=t.return}}function Du(e){for(;null!==hu;){var t=hu;if(t===e){hu=null;break}var n=t.sibling;if(null!==n){n.return=t.return,hu=n;break}hu=t.return}}function zu(e){for(;null!==hu;){var t=hu;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{yu(4,t)}catch(e){Fd(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Fd(t,o,e)}}var a=t.return;try{xu(t)}catch(e){Fd(t,a,e)}break;case 5:var i=t.return;try{xu(t)}catch(e){Fd(t,i,e)}}}catch(e){Fd(t,t.return,e)}if(t===e){hu=null;break}var l=t.sibling;if(null!==l){l.return=t.return,hu=l;break}hu=t.return}}var ju,Fu=Math.ceil,Bu=qt.ReactCurrentDispatcher,$u=qt.ReactCurrentOwner,Wu=qt.ReactCurrentBatchConfig,Hu=0,Uu=null,Vu=null,Gu=0,Ku=0,Zu=Fi(0),Xu=0,Qu=null,Ju=0,Yu=0,ed=0,td=null,nd=null,rd=0,od=1/0,ad=null,id=!1,ld=null,sd=null,cd=!1,ud=null,dd=0,pd=0,fd=null,hd=-1,md=0;function gd(){return 0!=(6&Hu)?fr():-1!==hd?hd:hd=fr()}function vd(e){return 0==(1&e.mode)?1:0!=(2&Hu)&&0!==Gu?Gu&-Gu:null!==Tl.transition?(0===md&&(md=Tr()),md):0!==(e=qr)?e:e=void 0===(e=window.event)?16:fo(e.type)}function bd(e,t,n,r){if(50<pd)throw pd=0,fd=null,Error(xt(185));Mr(e,n,r),0!=(2&Hu)&&e===Uu||(e===Uu&&(0==(2&Hu)&&(Yu|=n),4===Xu&&Ed(e,Gu)),yd(e,r),1===n&&0===Hu&&0==(1&t.mode)&&(od=fr()+500,tl&&ol()))}function yd(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-wr(a),l=1<<i,s=o[i];-1===s?0!=(l&n)&&0==(l&r)||(o[i]=_r(l,t)):s<=t&&(e.expiredLanes|=l),a&=~l}}(e,t);var r=Or(e,e===Uu?Gu:0);if(0===r)null!==n&&ur(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&ur(n),1===t)0===e.tag?function(e){tl=!0,rl(e)}(Cd.bind(null,e)):rl(Cd.bind(null,e)),wi((function(){0==(6&Hu)&&ol()})),n=null;else{switch(Ar(r)){case 1:n=mr;break;case 4:n=gr;break;case 16:default:n=vr;break;case 536870912:n=yr}n=Ud(n,xd.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function xd(e,t){if(hd=-1,md=0,0!=(6&Hu))throw Error(xt(327));var n=e.callbackNode;if(zd()&&e.callbackNode!==n)return null;var r=Or(e,e===Uu?Gu:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=Pd(e,r);else{t=r;var o=Hu;Hu|=2;var a=Id();for(Uu===e&&Gu===t||(ad=null,od=fr()+500,Od(e,t));;)try{Nd();break}catch(t){_d(e,t)}Dl(),Bu.current=a,Hu=o,null!==Vu?t=0:(Uu=null,Gu=0,t=Xu)}if(0!==t){if(2===t&&(0!==(o=Ir(e))&&(r=o,t=Sd(e,o))),1===t)throw n=Qu,Od(e,0),Ed(e,r),yd(e,fr()),n;if(6===t)Ed(e,r);else{if(o=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],a=o.getSnapshot;o=o.value;try{if(!Ea(a(),o))return!1}catch(e){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}(o)&&(2===(t=Pd(e,r))&&(0!==(a=Ir(e))&&(r=a,t=Sd(e,a))),1===t))throw n=Qu,Od(e,0),Ed(e,r),yd(e,fr()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(xt(345));case 2:case 5:Dd(e,nd,ad);break;case 3:if(Ed(e,r),(130023424&r)===r&&10<(t=rd+500-fr())){if(0!==Or(e,0))break;if(((o=e.suspendedLanes)&r)!==r){gd(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=yi(Dd.bind(null,e,nd,ad),t);break}Dd(e,nd,ad);break;case 4:if(Ed(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-wr(r);a=1<<i,(i=t[i])>o&&(o=i),r&=~a}if(r=o,10<(r=(120>(r=fr()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Fu(r/1960))-r)){e.timeoutHandle=yi(Dd.bind(null,e,nd,ad),r);break}Dd(e,nd,ad);break;default:throw Error(xt(329))}}}return yd(e,fr()),e.callbackNode===n?xd.bind(null,e):null}function Sd(e,t){var n=td;return e.current.memoizedState.isDehydrated&&(Od(e,t).flags|=256),2!==(e=Pd(e,t))&&(t=nd,nd=n,null!==t&&wd(t)),e}function wd(e){null===nd?nd=e:nd.push.apply(nd,e)}function Ed(e,t){for(t&=~ed,t&=~Yu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-wr(t),r=1<<n;e[n]=-1,t&=~r}}function Cd(e){if(0!=(6&Hu))throw Error(xt(327));zd();var t=Or(e,0);if(0==(1&t))return yd(e,fr()),null;var n=Pd(e,t);if(0!==e.tag&&2===n){var r=Ir(e);0!==r&&(t=r,n=Sd(e,r))}if(1===n)throw n=Qu,Od(e,0),Ed(e,t),yd(e,fr()),n;if(6===n)throw Error(xt(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Dd(e,nd,ad),yd(e,fr()),null}function kd(e,t){var n=Hu;Hu|=1;try{return e(t)}finally{0===(Hu=n)&&(od=fr()+500,tl&&ol())}}function Ld(e){null!==ud&&0===ud.tag&&0==(6&Hu)&&zd();var t=Hu;Hu|=1;var n=Wu.transition,r=qr;try{if(Wu.transition=null,qr=1,e)return e()}finally{qr=r,Wu.transition=n,0==(6&(Hu=t))&&ol()}}function Rd(){Ku=Zu.current,Bi(Zu)}function Od(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,xi(n)),null!==Vu)for(n=Vu.return;null!==n;){var r=n;switch(vl(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Zi();break;case 3:xs(),Bi(Ui),Bi(Hi),Ls();break;case 5:ws(r);break;case 4:xs();break;case 13:case 19:Bi(Es);break;case 10:zl(r.type._context);break;case 22:case 23:Rd()}n=n.return}if(Uu=e,Vu=e=Zd(e.current,null),Gu=Ku=t,Xu=0,Qu=null,ed=Yu=Ju=0,nd=td=null,null!==$l){for(t=0;t<$l.length;t++)if(null!==(r=(n=$l[t]).interleaved)){n.interleaved=null;var o=r.next,a=n.pending;if(null!==a){var i=a.next;a.next=o,r.next=i}n.pending=r}$l=null}return e}function _d(e,t){for(;;){var n=Vu;try{if(Dl(),Rs.current=Sc,Ms){for(var r=Is.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}Ms=!1}if(_s=0,Ps=Ts=Is=null,Ns=!1,qs=0,$u.current=null,null===n||null===n.return){Xu=1,Qu=t,Vu=null;break}e:{var a=e,i=n.return,l=n,s=t;if(t=Gu,l.flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var c=s,u=l,d=u.tag;if(0==(1&u.mode)&&(0===d||11===d||15===d)){var p=u.alternate;p?(u.updateQueue=p.updateQueue,u.memoizedState=p.memoizedState,u.lanes=p.lanes):(u.updateQueue=null,u.memoizedState=null)}var f=Pc(i);if(null!==f){f.flags&=-257,Mc(f,i,l,0,t),1&f.mode&&Tc(a,c,t),s=c;var h=(t=f).updateQueue;if(null===h){var m=new Set;m.add(s),t.updateQueue=m}else h.add(s);break e}if(0==(1&t)){Tc(a,c,t),Td();break e}s=Error(xt(426))}else if(xl&&1&l.mode){var g=Pc(i);if(null!==g){0==(65536&g.flags)&&(g.flags|=256),Mc(g,i,l,0,t),Il(kc(s,l));break e}}a=s=kc(s,l),4!==Xu&&(Xu=2),null===td?td=[a]:td.push(a),a=i;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Jl(a,_c(0,s,t));break e;case 1:l=s;var v=a.type,b=a.stateNode;if(0==(128&a.flags)&&("function"==typeof v.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===sd||!sd.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Jl(a,Ic(a,l,t));break e}}a=a.return}while(null!==a)}Ad(n)}catch(e){t=e,Vu===n&&null!==n&&(Vu=n=n.return);continue}break}}function Id(){var e=Bu.current;return Bu.current=Sc,null===e?Sc:e}function Td(){0!==Xu&&3!==Xu&&2!==Xu||(Xu=4),null===Uu||0==(268435455&Ju)&&0==(268435455&Yu)||Ed(Uu,Gu)}function Pd(e,t){var n=Hu;Hu|=2;var r=Id();for(Uu===e&&Gu===t||(ad=null,Od(e,t));;)try{Md();break}catch(t){_d(e,t)}if(Dl(),Hu=n,Bu.current=r,null!==Vu)throw Error(xt(261));return Uu=null,Gu=0,Xu}function Md(){for(;null!==Vu;)qd(Vu)}function Nd(){for(;null!==Vu&&!dr();)qd(Vu)}function qd(e){var t=ju(e.alternate,e,Ku);e.memoizedProps=e.pendingProps,null===t?Ad(e):Vu=t,$u.current=null}function Ad(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=cu(n,t,Ku)))return void(Vu=n)}else{if(null!==(n=uu(n,t)))return n.flags&=32767,void(Vu=n);if(null===e)return Xu=6,void(Vu=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Vu=t);Vu=t=e}while(null!==t);0===Xu&&(Xu=5)}function Dd(e,t,n){var r=qr,o=Wu.transition;try{Wu.transition=null,qr=1,function(e,t,n,r){do{zd()}while(null!==ud);if(0!=(6&Hu))throw Error(xt(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(xt(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-wr(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}(e,a),e===Uu&&(Vu=Uu=null,Gu=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||cd||(cd=!0,Ud(vr,(function(){return zd(),null}))),a=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||a){a=Wu.transition,Wu.transition=null;var i=qr;qr=1;var l=Hu;Hu|=4,$u.current=null,function(e,t){if(gi=io,_a(e=Oa())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var i=0,l=-1,s=-1,c=0,u=0,d=e,p=null;t:for(;;){for(var f;d!==n||0!==o&&3!==d.nodeType||(l=i+o),d!==a||0!==r&&3!==d.nodeType||(s=i+r),3===d.nodeType&&(i+=d.nodeValue.length),null!==(f=d.firstChild);)p=d,d=f;for(;;){if(d===e)break t;if(p===n&&++c===o&&(l=i),p===a&&++u===r&&(s=i),null!==(f=d.nextSibling))break;p=(d=p).parentNode}d=f}n=-1===l||-1===s?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(vi={focusedElem:e,selectionRange:n},io=!1,hu=t;null!==hu;)if(e=(t=hu).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,hu=e;else for(;null!==hu;){t=hu;try{var h=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var m=h.memoizedProps,g=h.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:Pl(t.type,m),g);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var y=t.stateNode.containerInfo;1===y.nodeType?y.textContent="":9===y.nodeType&&y.documentElement&&y.removeChild(y.documentElement);break;default:throw Error(xt(163))}}catch(e){Fd(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,hu=e;break}hu=t.return}h=vu,vu=!1}(e,n),Pu(n,e),Ia(vi),io=!!gi,vi=gi=null,e.current=n,Nu(n),pr(),Hu=l,qr=i,Wu.transition=a}else e.current=n;if(cd&&(cd=!1,ud=e,dd=o),a=e.pendingLanes,0===a&&(sd=null),function(e){if(Sr&&"function"==typeof Sr.onCommitFiberRoot)try{Sr.onCommitFiberRoot(xr,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),yd(e,fr()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(id)throw id=!1,e=ld,ld=null,e;0!=(1&dd)&&0!==e.tag&&zd(),a=e.pendingLanes,0!=(1&a)?e===fd?pd++:(pd=0,fd=e):pd=0,ol()}(e,t,n,r)}finally{Wu.transition=o,qr=r}return null}function zd(){if(null!==ud){var e=Ar(dd),t=Wu.transition,n=qr;try{if(Wu.transition=null,qr=16>e?16:e,null===ud)var r=!1;else{if(e=ud,ud=null,dd=0,0!=(6&Hu))throw Error(xt(331));var o=Hu;for(Hu|=4,hu=e.current;null!==hu;){var a=hu,i=a.child;if(0!=(16&hu.flags)){var l=a.deletions;if(null!==l){for(var s=0;s<l.length;s++){var c=l[s];for(hu=c;null!==hu;){var u=hu;switch(u.tag){case 0:case 11:case 15:bu(8,u,a)}var d=u.child;if(null!==d)d.return=u,hu=d;else for(;null!==hu;){var p=(u=hu).sibling,f=u.return;if(Su(u),u===c){hu=null;break}if(null!==p){p.return=f,hu=p;break}hu=f}}}var h=a.alternate;if(null!==h){var m=h.child;if(null!==m){h.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(null!==m)}}hu=a}}if(0!=(2064&a.subtreeFlags)&&null!==i)i.return=a,hu=i;else e:for(;null!==hu;){if(0!=(2048&(a=hu).flags))switch(a.tag){case 0:case 11:case 15:bu(9,a,a.return)}var v=a.sibling;if(null!==v){v.return=a.return,hu=v;break e}hu=a.return}}var b=e.current;for(hu=b;null!==hu;){var y=(i=hu).child;if(0!=(2064&i.subtreeFlags)&&null!==y)y.return=i,hu=y;else e:for(i=b;null!==hu;){if(0!=(2048&(l=hu).flags))try{switch(l.tag){case 0:case 11:case 15:yu(9,l)}}catch(e){Fd(l,l.return,e)}if(l===i){hu=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,hu=x;break e}hu=l.return}}if(Hu=o,ol(),Sr&&"function"==typeof Sr.onPostCommitFiberRoot)try{Sr.onPostCommitFiberRoot(xr,e)}catch(e){}r=!0}return r}finally{qr=n,Wu.transition=t}}return!1}function jd(e,t,n){e=Xl(e,t=_c(0,t=kc(n,t),1),1),t=gd(),null!==e&&(Mr(e,1,t),yd(e,t))}function Fd(e,t,n){if(3===e.tag)jd(e,e,n);else for(;null!==t;){if(3===t.tag){jd(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===sd||!sd.has(r))){t=Xl(t,e=Ic(t,e=kc(n,e),1),1),e=gd(),null!==t&&(Mr(t,1,e),yd(t,e));break}}t=t.return}}function Bd(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=gd(),e.pingedLanes|=e.suspendedLanes&n,Uu===e&&(Gu&n)===n&&(4===Xu||3===Xu&&(130023424&Gu)===Gu&&500>fr()-rd?Od(e,0):ed|=n),yd(e,t)}function $d(e,t){0===t&&(0==(1&e.mode)?t=1:(t=Lr,0==(130023424&(Lr<<=1))&&(Lr=4194304)));var n=gd();null!==(e=Ul(e,t))&&(Mr(e,t,n),yd(e,n))}function Wd(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),$d(e,n)}function Hd(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(xt(314))}null!==r&&r.delete(t),$d(e,n)}function Ud(e,t){return cr(e,t)}function Vd(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Gd(e,t,n,r){return new Vd(e,t,n,r)}function Kd(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Zd(e,t){var n=e.alternate;return null===n?((n=Gd(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=14680064&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}function Xd(e,t,n,r,o,a){var i=2;if(r=e,"function"==typeof e)Kd(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case zt:return Qd(n.children,o,a,t);case jt:i=8,o|=8;break;case Ft:return(e=Gd(12,n,t,2|o)).elementType=Ft,e.lanes=a,e;case Ht:return(e=Gd(13,n,t,o)).elementType=Ht,e.lanes=a,e;case Ut:return(e=Gd(19,n,t,o)).elementType=Ut,e.lanes=a,e;case Kt:return Jd(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Bt:i=10;break e;case $t:i=9;break e;case Wt:i=11;break e;case Vt:i=14;break e;case Gt:i=16,r=null;break e}throw Error(xt(130,null==e?e:typeof e,""))}return(t=Gd(i,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Qd(e,t,n,r){return(e=Gd(7,e,r,t)).lanes=n,e}function Jd(e,t,n,r){return(e=Gd(22,e,r,t)).elementType=Kt,e.lanes=n,e.stateNode={isHidden:!1},e}function Yd(e,t,n){return(e=Gd(6,e,null,t)).lanes=n,e}function ep(e,t,n){return(t=Gd(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tp(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Pr(0),this.expirationTimes=Pr(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pr(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function np(e,t,n,r,o,a,i,l,s){return e=new tp(e,t,n,l,s),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Gd(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Gl(a),e}function rp(e){if(!e)return Wi;e:{if(or(e=e._reactInternals)!==e||1!==e.tag)throw Error(xt(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ki(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(xt(171))}if(1===e.tag){var n=e.type;if(Ki(n))return Qi(e,n,t)}return t}function op(e,t,n,r,o,a,i,l,s){return(e=np(n,r,!0,e,0,a,0,l,s)).context=rp(null),n=e.current,(a=Zl(r=gd(),o=vd(n))).callback=null!=t?t:null,Xl(n,a,o),e.current.lanes=o,Mr(e,o,r),yd(e,r),e}function ap(e,t,n,r){var o=t.current,a=gd(),i=vd(o);return n=rp(n),null===t.context?t.context=n:t.pendingContext=n,(t=Zl(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Xl(o,t,i))&&(bd(e,o,i,a),Ql(e,o,i)),i}function ip(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function lp(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function sp(e,t){lp(e,t),(e=e.alternate)&&lp(e,t)}ju=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ui.current)qc=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return qc=!1,function(e,t,n){switch(t.tag){case 3:Uc(t),_l();break;case 5:Ss(t);break;case 1:Ki(t.type)&&Ji(t);break;case 4:ys(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;$i(Ml,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?($i(Es,1&Es.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Yc(e,t,n):($i(Es,1&Es.current),null!==(e=iu(e,t,n))?e.sibling:null);$i(Es,1&Es.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return ou(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),$i(Es,Es.current),r)break;return null;case 22:case 23:return t.lanes=0,Fc(e,t,n)}return iu(e,t,n)}(e,t,n);qc=0!=(131072&e.flags)}else qc=!1,xl&&0!=(1048576&t.flags)&&ml(t,sl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;au(e,t),e=t.pendingProps;var o=Gi(t,Hi.current);Fl(t,n),o=js(null,t,r,e,o,n);var a=Fs();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ki(r)?(a=!0,Ji(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Gl(t),o.updater=rs,t.stateNode=o,o._reactInternals=t,ls(t,r,e,n),t=Hc(null,t,r,!0,a,n)):(t.tag=0,xl&&a&&gl(t),Ac(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(au(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Kd(e)?1:0;if(null!=e){if((e=e.$$typeof)===Wt)return 11;if(e===Vt)return 14}return 2}(r),e=Pl(r,e),o){case 0:t=$c(null,t,r,e,n);break e;case 1:t=Wc(null,t,r,e,n);break e;case 11:t=Dc(null,t,r,e,n);break e;case 14:t=zc(null,t,r,Pl(r.type,e),n);break e}throw Error(xt(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,$c(e,t,r,o=t.elementType===r?o:Pl(r,o),n);case 1:return r=t.type,o=t.pendingProps,Wc(e,t,r,o=t.elementType===r?o:Pl(r,o),n);case 3:e:{if(Uc(t),null===e)throw Error(xt(387));r=t.pendingProps,o=(a=t.memoizedState).element,Kl(e,t),Yl(t,r,null,n);var i=t.memoizedState;if(r=i.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Vc(e,t,r,n,o=kc(Error(xt(423)),t));break e}if(r!==o){t=Vc(e,t,r,n,o=kc(Error(xt(424)),t));break e}for(yl=ki(t.stateNode.containerInfo.firstChild),bl=t,xl=!0,Sl=null,n=fs(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(_l(),r===o){t=iu(e,t,n);break e}Ac(e,t,r,n)}t=t.child}return t;case 5:return Ss(t),null===e&&kl(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,i=o.children,bi(r,o)?i=null:null!==a&&bi(r,a)&&(t.flags|=32),Bc(e,t),Ac(e,t,i,n),t.child;case 6:return null===e&&kl(t),null;case 13:return Yc(e,t,n);case 4:return ys(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ps(t,null,r,n):Ac(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Dc(e,t,r,o=t.elementType===r?o:Pl(r,o),n);case 7:return Ac(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ac(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,$i(Ml,r._currentValue),r._currentValue=i,null!==a)if(Ea(a.value,i)){if(a.children===o.children&&!Ui.current){t=iu(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){i=a.child;for(var s=l.firstContext;null!==s;){if(s.context===r){if(1===a.tag){(s=Zl(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var u=(c=c.shared).pending;null===u?s.next=s:(s.next=u.next,u.next=s),c.pending=s}}a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),jl(a.return,n,t),l.lanes|=n;break}s=s.next}}else if(10===a.tag)i=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(i=a.return))throw Error(xt(341));i.lanes|=n,null!==(l=i.alternate)&&(l.lanes|=n),jl(i,n,t),i=a.sibling}else i=a.child;if(null!==i)i.return=a;else for(i=a;null!==i;){if(i===t){i=null;break}if(null!==(a=i.sibling)){a.return=i.return,i=a;break}i=i.return}a=i}Ac(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Fl(t,n),r=r(o=Bl(o)),t.flags|=1,Ac(e,t,r,n),t.child;case 14:return o=Pl(r=t.type,t.pendingProps),zc(e,t,r,o=Pl(r.type,o),n);case 15:return jc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Pl(r,o),au(e,t),t.tag=1,Ki(r)?(e=!0,Ji(t)):e=!1,Fl(t,n),as(t,r,o),ls(t,r,o,n),Hc(null,t,r,!0,e,n);case 19:return ou(e,t,n);case 22:return Fc(e,t,n)}throw Error(xt(156,t.tag))};var cp="function"==typeof reportError?reportError:function(e){console.error(e)};function up(e){this._internalRoot=e}function dp(e){this._internalRoot=e}function pp(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function fp(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function hp(){}function mp(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a;if("function"==typeof o){var l=o;o=function(){var e=ip(i);l.call(e)}}ap(t,i,e,o)}else i=function(e,t,n,r,o){if(o){if("function"==typeof r){var a=r;r=function(){var e=ip(i);a.call(e)}}var i=op(t,r,e,0,null,!1,0,"",hp);return e._reactRootContainer=i,e[Ii]=i.current,oi(8===e.nodeType?e.parentNode:e),Ld(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=ip(s);l.call(e)}}var s=np(e,0,!1,null,0,!1,0,"",hp);return e._reactRootContainer=s,e[Ii]=s.current,oi(8===e.nodeType?e.parentNode:e),Ld((function(){ap(t,s,n,r)})),s}(n,t,e,o,r);return ip(i)}dp.prototype.render=up.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(xt(409));ap(e,t,null,null)},dp.prototype.unmount=up.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;Ld((function(){ap(null,e,null,null)})),t[Ii]=null}},dp.prototype.unstable_scheduleHydration=function(e){if(e){var t=Fr();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Zr.length&&0!==t&&t<Zr[n].priority;n++);Zr.splice(n,0,e),0===n&&Yr(e)}},Dr=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Rr(t.pendingLanes);0!==n&&(Nr(t,1|n),yd(t,fr()),0==(6&Hu)&&(od=fr()+500,ol()))}break;case 13:Ld((function(){var t=Ul(e,1);if(null!==t){var n=gd();bd(t,e,1,n)}})),sp(e,1)}},zr=function(e){if(13===e.tag){var t=Ul(e,134217728);if(null!==t)bd(t,e,134217728,gd());sp(e,134217728)}},jr=function(e){if(13===e.tag){var t=vd(e),n=Ul(e,t);if(null!==n)bd(n,e,t,gd());sp(e,t)}},Fr=function(){return qr},Br=function(e,t){var n=qr;try{return qr=e,t()}finally{qr=n}},zn=function(e,t,n){switch(t){case"input":if(hn(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Di(r);if(!o)throw Error(xt(90));cn(r),hn(r,o)}}}break;case"textarea":Sn(e,n);break;case"select":null!=(t=n.value)&&bn(e,!!n.multiple,t,!1)}},Hn=kd,Un=Ld;var gp={usingClientEntryPoint:!1,Events:[qi,Ai,Di,$n,Wn,kd]},vp={findFiberByHostInstance:Ni,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},bp={bundleType:vp.bundleType,version:vp.version,rendererPackageName:vp.rendererPackageName,rendererConfig:vp.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:qt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=lr(e))?null:e.stateNode},findFiberByHostInstance:vp.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var yp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!yp.isDisabled&&yp.supportsFiber)try{xr=yp.inject(bp),Sr=yp}catch(Ln){}}ht.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=gp,ht.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!pp(t))throw Error(xt(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Dt,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},ht.createRoot=function(e,t){if(!pp(e))throw Error(xt(299));var n=!1,r="",o=cp;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=np(e,1,!1,null,0,n,0,r,o),e[Ii]=t.current,oi(8===e.nodeType?e.parentNode:e),new up(t)},ht.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(xt(188));throw e=Object.keys(e).join(","),Error(xt(268,e))}return e=null===(e=lr(t))?null:e.stateNode},ht.flushSync=function(e){return Ld(e)},ht.hydrate=function(e,t,n){if(!fp(t))throw Error(xt(200));return mp(null,e,t,!0,n)},ht.hydrateRoot=function(e,t,n){if(!pp(e))throw Error(xt(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",i=cp;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(i=n.onRecoverableError)),t=op(t,null,e,1,null!=n?n:null,o,0,a,i),e[Ii]=t.current,oi(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new dp(t)},ht.render=function(e,t,n){if(!fp(t))throw Error(xt(200));return mp(null,e,t,!1,n)},ht.unmountComponentAtNode=function(e){if(!fp(e))throw Error(xt(40));return!!e._reactRootContainer&&(Ld((function(){mp(null,null,e,!1,(function(){e._reactRootContainer=null,e[Ii]=null}))})),!0)},ht.unstable_batchedUpdates=kd,ht.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!fp(n))throw Error(xt(200));if(null==e||void 0===e._reactInternals)throw Error(xt(38));return mp(e,t,n,!1,r)},ht.version="18.2.0-next-9e3b772b8-20220608",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),ft.exports=ht;var xp=ft.exports,Sp=n(xp),wp=xp;function Ep(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}pt.createRoot=wp.createRoot,pt.hydrateRoot=wp.hydrateRoot;var Cp=Object.freeze({__proto__:null,default:Ep}),kp="$$material";function Lp(){return Lp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lp.apply(this,arguments)}function Rp(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Op(){return Op=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Op.apply(this,arguments)}function _p(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Ip=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Tp=_p((function(e){return Ip.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var Pp=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Mp="-ms-",Np="-moz-",qp="-webkit-",Ap="comm",Dp="rule",zp="decl",jp="@keyframes",Fp=Math.abs,Bp=String.fromCharCode,$p=Object.assign;function Wp(e){return e.trim()}function Hp(e,t,n){return e.replace(t,n)}function Up(e,t){return e.indexOf(t)}function Vp(e,t){return 0|e.charCodeAt(t)}function Gp(e,t,n){return e.slice(t,n)}function Kp(e){return e.length}function Zp(e){return e.length}function Xp(e,t){return t.push(e),e}var Qp=1,Jp=1,Yp=0,ef=0,tf=0,nf="";function rf(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Qp,column:Jp,length:i,return:""}}function of(e,t){return $p(rf("",null,null,"",null,null,0),e,{length:-e.length},t)}function af(){return tf=ef>0?Vp(nf,--ef):0,Jp--,10===tf&&(Jp=1,Qp--),tf}function lf(){return tf=ef<Yp?Vp(nf,ef++):0,Jp++,10===tf&&(Jp=1,Qp++),tf}function sf(){return Vp(nf,ef)}function cf(){return ef}function uf(e,t){return Gp(nf,e,t)}function df(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function pf(e){return Qp=Jp=1,Yp=Kp(nf=e),ef=0,[]}function ff(e){return nf="",e}function hf(e){return Wp(uf(ef-1,vf(91===e?e+2:40===e?e+1:e)))}function mf(e){for(;(tf=sf())&&tf<33;)lf();return df(e)>2||df(tf)>3?"":" "}function gf(e,t){for(;--t&&lf()&&!(tf<48||tf>102||tf>57&&tf<65||tf>70&&tf<97););return uf(e,cf()+(t<6&&32==sf()&&32==lf()))}function vf(e){for(;lf();)switch(tf){case e:return ef;case 34:case 39:34!==e&&39!==e&&vf(tf);break;case 40:41===e&&vf(e);break;case 92:lf()}return ef}function bf(e,t){for(;lf()&&e+tf!==57&&(e+tf!==84||47!==sf()););return"/*"+uf(t,ef-1)+"*"+Bp(47===e?e:lf())}function yf(e){for(;!df(sf());)lf();return uf(e,ef)}function xf(e){return ff(Sf("",null,null,null,[""],e=pf(e),0,[0],e))}function Sf(e,t,n,r,o,a,i,l,s){for(var c=0,u=0,d=i,p=0,f=0,h=0,m=1,g=1,v=1,b=0,y="",x=o,S=a,w=r,E=y;g;)switch(h=b,b=lf()){case 40:if(108!=h&&58==Vp(E,d-1)){-1!=Up(E+=Hp(hf(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:E+=hf(b);break;case 9:case 10:case 13:case 32:E+=mf(h);break;case 92:E+=gf(cf()-1,7);continue;case 47:switch(sf()){case 42:case 47:Xp(Ef(bf(lf(),cf()),t,n),s);break;default:E+="/"}break;case 123*m:l[c++]=Kp(E)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==v&&(E=Hp(E,/\f/g,"")),f>0&&Kp(E)-d&&Xp(f>32?Cf(E+";",r,n,d-1):Cf(Hp(E," ","")+";",r,n,d-2),s);break;case 59:E+=";";default:if(Xp(w=wf(E,t,n,c,u,o,l,y,x=[],S=[],d),a),123===b)if(0===u)Sf(E,t,w,w,x,a,d,l,S);else switch(99===p&&110===Vp(E,3)?100:p){case 100:case 108:case 109:case 115:Sf(e,w,w,r&&Xp(wf(e,w,w,0,0,o,l,y,o,x=[],d),S),o,S,d,l,r?x:S);break;default:Sf(E,w,w,w,[""],S,0,l,S)}}c=u=f=0,m=v=1,y=E="",d=i;break;case 58:d=1+Kp(E),f=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==af())continue;switch(E+=Bp(b),b*m){case 38:v=u>0?1:(E+="\f",-1);break;case 44:l[c++]=(Kp(E)-1)*v,v=1;break;case 64:45===sf()&&(E+=hf(lf())),p=sf(),u=d=Kp(y=E+=yf(cf())),b++;break;case 45:45===h&&2==Kp(E)&&(m=0)}}return a}function wf(e,t,n,r,o,a,i,l,s,c,u){for(var d=o-1,p=0===o?a:[""],f=Zp(p),h=0,m=0,g=0;h<r;++h)for(var v=0,b=Gp(e,d+1,d=Fp(m=i[h])),y=e;v<f;++v)(y=Wp(m>0?p[v]+" "+b:Hp(b,/&\f/g,p[v])))&&(s[g++]=y);return rf(e,t,n,0===o?Dp:l,s,c,u)}function Ef(e,t,n){return rf(e,t,n,Ap,Bp(tf),Gp(e,2,-2),0)}function Cf(e,t,n,r){return rf(e,t,n,zp,Gp(e,0,r),Gp(e,r+1,-1),r)}function kf(e,t){for(var n="",r=Zp(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Lf(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case zp:return e.return=e.return||e.value;case Ap:return"";case jp:return e.return=e.value+"{"+kf(e.children,r)+"}";case Dp:e.value=e.props.join(",")}return Kp(n=kf(e.children,r))?e.return=e.value+"{"+n+"}":""}function Rf(e){var t=Zp(e);return function(n,r,o,a){for(var i="",l=0;l<t;l++)i+=e[l](n,r,o,a)||"";return i}}var Of=function(e,t,n){for(var r=0,o=0;r=o,o=sf(),38===r&&12===o&&(t[n]=1),!df(o);)lf();return uf(e,ef)},_f=function(e,t){return ff(function(e,t){var n=-1,r=44;do{switch(df(r)){case 0:38===r&&12===sf()&&(t[n]=1),e[n]+=Of(ef-1,t,n);break;case 2:e[n]+=hf(r);break;case 4:if(44===r){e[++n]=58===sf()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Bp(r)}}while(r=lf());return e}(pf(e),t))},If=new WeakMap,Tf=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||If.get(n))&&!r){If.set(e,!0);for(var o=[],a=_f(t,o),i=n.props,l=0,s=0;l<a.length;l++)for(var c=0;c<i.length;c++,s++)e.props[s]=o[l]?a[l].replace(/&\f/g,i[c]):i[c]+" "+a[l]}}},Pf=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Mf(e,t){switch(function(e,t){return 45^Vp(e,0)?(((t<<2^Vp(e,0))<<2^Vp(e,1))<<2^Vp(e,2))<<2^Vp(e,3):0}(e,t)){case 5103:return qp+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return qp+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return qp+e+Np+e+Mp+e+e;case 6828:case 4268:return qp+e+Mp+e+e;case 6165:return qp+e+Mp+"flex-"+e+e;case 5187:return qp+e+Hp(e,/(\w+).+(:[^]+)/,qp+"box-$1$2"+Mp+"flex-$1$2")+e;case 5443:return qp+e+Mp+"flex-item-"+Hp(e,/flex-|-self/,"")+e;case 4675:return qp+e+Mp+"flex-line-pack"+Hp(e,/align-content|flex-|-self/,"")+e;case 5548:return qp+e+Mp+Hp(e,"shrink","negative")+e;case 5292:return qp+e+Mp+Hp(e,"basis","preferred-size")+e;case 6060:return qp+"box-"+Hp(e,"-grow","")+qp+e+Mp+Hp(e,"grow","positive")+e;case 4554:return qp+Hp(e,/([^-])(transform)/g,"$1"+qp+"$2")+e;case 6187:return Hp(Hp(Hp(e,/(zoom-|grab)/,qp+"$1"),/(image-set)/,qp+"$1"),e,"")+e;case 5495:case 3959:return Hp(e,/(image-set\([^]*)/,qp+"$1$`$1");case 4968:return Hp(Hp(e,/(.+:)(flex-)?(.*)/,qp+"box-pack:$3"+Mp+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+qp+e+e;case 4095:case 3583:case 4068:case 2532:return Hp(e,/(.+)-inline(.+)/,qp+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Kp(e)-1-t>6)switch(Vp(e,t+1)){case 109:if(45!==Vp(e,t+4))break;case 102:return Hp(e,/(.+:)(.+)-([^]+)/,"$1"+qp+"$2-$3$1"+Np+(108==Vp(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Up(e,"stretch")?Mf(Hp(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Vp(e,t+1))break;case 6444:switch(Vp(e,Kp(e)-3-(~Up(e,"!important")&&10))){case 107:return Hp(e,":",":"+qp)+e;case 101:return Hp(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+qp+(45===Vp(e,14)?"inline-":"")+"box$3$1"+qp+"$2$3$1"+Mp+"$2box$3")+e}break;case 5936:switch(Vp(e,t+11)){case 114:return qp+e+Mp+Hp(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return qp+e+Mp+Hp(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return qp+e+Mp+Hp(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return qp+e+Mp+e+e}return e}var Nf,qf="undefined"!=typeof document,Af=qf?void 0:function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}((function(){return _p((function(){var e={};return function(t){return e[t]}}))})),Df=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case zp:e.return=Mf(e.value,e.length);break;case jp:return kf([of(e,{value:Hp(e.value,"@","@"+qp)})],r);case Dp:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return kf([of(e,{props:[Hp(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return kf([of(e,{props:[Hp(t,/:(plac\w+)/,":"+qp+"input-$1")]}),of(e,{props:[Hp(t,/:(plac\w+)/,":-moz-$1")]}),of(e,{props:[Hp(t,/:(plac\w+)/,Mp+"input-$1")]})],r)}return""}))}}],zf=function(e){var t=e.key;if(qf&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,a=e.stylisPlugins||Df,i={},l=[];qf&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;l.push(e)})));var s,c=[Tf,Pf];if(qf){var u,d=[Lf,(s=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&s(e)})],p=Rf(c.concat(a,d));o=function(e,t,n,r){u=n,function(e){kf(xf(e),p)}(e?e+"{"+t.styles+"}":t.styles),r&&(v.inserted[t.name]=!0)}}else{var f=[Lf],h=Rf(c.concat(a,f)),m=Af(a)(t),g=function(e,t){var n=t.name;return void 0===m[n]&&(m[n]=function(e){return kf(xf(e),h)}(e?e+"{"+t.styles+"}":t.styles)),m[n]};o=function(e,t,n,r){var o=t.name,a=g(e,t);return void 0===v.compat?(r&&(v.inserted[o]=!0),a):r?void(v.inserted[o]=a):a}}var v={key:t,sheet:new Pp({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return v.sheet.hydrate(l),v},jf={exports:{}},Ff={},Bf=Symbol.for("react.element"),$f=Symbol.for("react.portal"),Wf=Symbol.for("react.fragment"),Hf=Symbol.for("react.strict_mode"),Uf=Symbol.for("react.profiler"),Vf=Symbol.for("react.provider"),Gf=Symbol.for("react.context"),Kf=Symbol.for("react.server_context"),Zf=Symbol.for("react.forward_ref"),Xf=Symbol.for("react.suspense"),Qf=Symbol.for("react.suspense_list"),Jf=Symbol.for("react.memo"),Yf=Symbol.for("react.lazy"),eh=Symbol.for("react.offscreen");function th(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Bf:switch(e=e.type){case Wf:case Uf:case Hf:case Xf:case Qf:return e;default:switch(e=e&&e.$$typeof){case Kf:case Gf:case Zf:case Yf:case Jf:case Vf:return e;default:return t}}case $f:return t}}}Nf=Symbol.for("react.module.reference"),Ff.ContextConsumer=Gf,Ff.ContextProvider=Vf,Ff.Element=Bf,Ff.ForwardRef=Zf,Ff.Fragment=Wf,Ff.Lazy=Yf,Ff.Memo=Jf,Ff.Portal=$f,Ff.Profiler=Uf,Ff.StrictMode=Hf,Ff.Suspense=Xf,Ff.SuspenseList=Qf,Ff.isAsyncMode=function(){return!1},Ff.isConcurrentMode=function(){return!1},Ff.isContextConsumer=function(e){return th(e)===Gf},Ff.isContextProvider=function(e){return th(e)===Vf},Ff.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Bf},Ff.isForwardRef=function(e){return th(e)===Zf},Ff.isFragment=function(e){return th(e)===Wf},Ff.isLazy=function(e){return th(e)===Yf},Ff.isMemo=function(e){return th(e)===Jf},Ff.isPortal=function(e){return th(e)===$f},Ff.isProfiler=function(e){return th(e)===Uf},Ff.isStrictMode=function(e){return th(e)===Hf},Ff.isSuspense=function(e){return th(e)===Xf},Ff.isSuspenseList=function(e){return th(e)===Qf},Ff.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Wf||e===Uf||e===Hf||e===Xf||e===Qf||e===eh||"object"==typeof e&&null!==e&&(e.$$typeof===Yf||e.$$typeof===Jf||e.$$typeof===Vf||e.$$typeof===Gf||e.$$typeof===Zf||e.$$typeof===Nf||void 0!==e.getModuleId)},Ff.typeOf=th,jf.exports=Ff;var nh=jf.exports,rh=nh,oh={};oh[rh.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},oh[rh.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var ah="undefined"!=typeof document;var ih=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===ah&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},lh=function(e,t,n){ih(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o="",a=t;do{var i=e.insert(t===a?"."+r:"",a,e.sheet,!0);ah||void 0===i||(o+=i),a=a.next}while(void 0!==a);if(!ah&&0!==o.length)return o}};function sh(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}var ch={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},uh=/[A-Z]|^ms/g,dh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ph=function(e){return 45===e.charCodeAt(1)},fh=function(e){return null!=e&&"boolean"!=typeof e},hh=_p((function(e){return ph(e)?e:e.replace(uh,"-$&").toLowerCase()})),mh=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(dh,(function(e,t,n){return vh={name:t,styles:n,next:vh},t}))}return 1===ch[e]||ph(e)||"number"!=typeof t||0===t?t:t+"px"};function gh(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return vh={name:n.name,styles:n.styles,next:vh},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)vh={name:r.name,styles:r.styles,next:vh},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=gh(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":fh(i)&&(r+=hh(a)+":"+mh(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var l=gh(e,t,i);switch(a){case"animation":case"animationName":r+=hh(a)+":"+l+";";break;default:r+=a+"{"+l+"}"}}else for(var s=0;s<i.length;s++)fh(i[s])&&(r+=hh(a)+":"+mh(a,i[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=vh,a=n(e);return vh=o,gh(e,t,a)}}if(null==t)return n;var i=t[n];return void 0!==i?i:n}var vh,bh=/label:\s*([^\s;\n{]+)\s*(;|$)/g,yh=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";vh=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=gh(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=gh(n,t,e[i]),r&&(o+=a[i]);bh.lastIndex=0;for(var l,s="";null!==(l=bh.exec(o));)s+="-"+l[1];return{name:sh(o)+s,styles:o,next:vh}},xh="undefined"!=typeof document,Sh=function(e){return e()},wh=!!G.useInsertionEffect&&G.useInsertionEffect,Eh=xh&&wh||Sh,Ch=wh||U.useLayoutEffect,kh="undefined"!=typeof document,Lh=U.createContext("undefined"!=typeof HTMLElement?zf({key:"css"}):null),Rh=Lh.Provider,Oh=function(e){return U.forwardRef((function(t,n){var r=U.useContext(Lh);return e(t,r,n)}))};kh||(Oh=function(e){return function(t){var n=U.useContext(Lh);return null===n?(n=zf({key:"css"}),U.createElement(Lh.Provider,{value:n},e(t,n))):e(t,n)}});var _h=U.createContext({}),Ih=Oh((function(e,t){var n=e.styles,r=yh([n],void 0,U.useContext(_h));if(!kh){for(var o,a=r.name,i=r.styles,l=r.next;void 0!==l;)a+=" "+l.name,i+=l.styles,l=l.next;var s=!0===t.compat,c=t.insert("",{name:a,styles:i},t.sheet,s);return s?null:U.createElement("style",((o={})["data-emotion"]=t.key+"-global "+a,o.dangerouslySetInnerHTML={__html:c},o.nonce=t.sheet.nonce,o))}var u=U.useRef();return Ch((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),n.hydrate([a])),u.current=[n,o],function(){n.flush()}}),[t]),Ch((function(){var e=u.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&lh(t,r.next,!0),n.tags.length){var o=n.tags[n.tags.length-1].nextElementSibling;n.before=o,n.flush()}t.insert("",r,n,!1)}}),[t,r.name]),null}));function Th(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return yh(t)}var Ph=function(){var e=Th.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},Mh=/[A-Z]|^ms/g,Nh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,qh=function(e){return 45===e.charCodeAt(1)},Ah=function(e){return null!=e&&"boolean"!=typeof e},Dh=_p((function(e){return qh(e)?e:e.replace(Mh,"-$&").toLowerCase()})),zh=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Nh,(function(e,t,n){return Fh={name:t,styles:n,next:Fh},t}))}return 1===ch[e]||qh(e)||"number"!=typeof t||0===t?t:t+"px"};function jh(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Fh={name:n.name,styles:n.styles,next:Fh},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Fh={name:r.name,styles:r.styles,next:Fh},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=jh(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":Ah(i)&&(r+=Dh(a)+":"+zh(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var l=jh(e,t,i);switch(a){case"animation":case"animationName":r+=Dh(a)+":"+l+";";break;default:r+=a+"{"+l+"}"}}else for(var s=0;s<i.length;s++)Ah(i[s])&&(r+=Dh(a)+":"+zh(a,i[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Fh,a=n(e);return Fh=o,jh(e,t,a)}}if(null==t)return n;var i=t[n];return void 0!==i?i:n}var Fh,Bh=/label:\s*([^\s;\n{]+)\s*(;|$)/g,$h=Tp,Wh=function(e){return"theme"!==e},Hh=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?$h:Wh},Uh=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Vh="undefined"!=typeof document,Gh=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;ih(t,n,r);var o=Eh((function(){return lh(t,n,r)}));if(!Vh&&void 0!==o){for(var a,i=n.name,l=n.next;void 0!==l;)i+=" "+l.name,l=l.next;return U.createElement("style",((a={})["data-emotion"]=t.key+" "+i,a.dangerouslySetInnerHTML={__html:o},a.nonce=t.sheet.nonce,a))}return null},Kh=function e(t,n){var r,o,a=t.__emotion_real===t,i=a&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var l=Uh(t,n,a),s=l||Hh(i),c=!s("as");return function(){var u=arguments,d=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{d.push(u[0][0]);for(var p=u.length,f=1;f<p;f++)d.push(u[f],u[0][f])}var h=Oh((function(e,t,n){var r,a,u,p,f=c&&e.as||i,h="",m=[],g=e;if(null==e.theme){for(var v in g={},e)g[v]=e[v];g.theme=U.useContext(_h)}"string"==typeof e.className?(r=t.registered,a=m,u=e.className,p="",u.split(" ").forEach((function(e){void 0!==r[e]?a.push(r[e]+";"):p+=e+" "})),h=p):null!=e.className&&(h=e.className+" ");var b=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Fh=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=jh(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=jh(n,t,e[i]),r&&(o+=a[i]);Bh.lastIndex=0;for(var l,s="";null!==(l=Bh.exec(o));)s+="-"+l[1];return{name:sh(o)+s,styles:o,next:Fh}}(d.concat(m),t.registered,g);h+=t.key+"-"+b.name,void 0!==o&&(h+=" "+o);var y=c&&void 0===l?Hh(f):s,x={};for(var S in e)c&&"as"===S||y(S)&&(x[S]=e[S]);return x.className=h,x.ref=n,U.createElement(U.Fragment,null,U.createElement(Gh,{cache:t,serialized:b,isStringTag:"string"==typeof f}),U.createElement(f,x))}));return h.displayName=void 0!==r?r:"Styled("+("string"==typeof i?i:i.displayName||i.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=i,h.__emotion_styles=d,h.__emotion_forwardProp=l,Object.defineProperty(h,"toString",{value:function(){return"."+o}}),h.withComponent=function(t,r){return e(t,Op({},n,r,{shouldForwardProp:Uh(h,r,!0)})).apply(void 0,d)},h}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Kh[e]=Kh(e)}));var Zh={exports:{}},Xh={},Qh=U,Jh=Symbol.for("react.element"),Yh=Symbol.for("react.fragment"),em=Object.prototype.hasOwnProperty,tm=Qh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,nm={key:!0,ref:!0,__self:!0,__source:!0};function rm(e,t,n){var r,o={},a=null,i=null;for(r in void 0!==n&&(a=""+n),void 0!==t.key&&(a=""+t.key),void 0!==t.ref&&(i=t.ref),t)em.call(t,r)&&!nm.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:Jh,type:e,key:a,ref:i,props:o,_owner:tm.current}}Xh.Fragment=Yh,Xh.jsx=rm,Xh.jsxs=rm,Zh.exports=Xh;var om=Zh.exports;let am;function im(e){const{injectFirst:t,children:n}=e;return t&&am?om.jsx(Rh,{value:am,children:n}):n}function lm(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return om.jsx(Ih,{styles:r})}
27
27
  /**
28
- * @mui/styled-engine v5.15.2
28
+ * @mui/styled-engine v5.15.11
29
29
  *
30
30
  * @license MIT
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
- */function am(e,t){return Uh(e,t)}"object"==typeof document&&(nm=Af({key:"css",prepend:!0}));function im(){return im=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},im.apply(this,arguments)}function lm(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function sm(){return sm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sm.apply(this,arguments)}function cm(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function um(e){if(!cm(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=um(e[n])})),t}function dm(e,t,n={clone:!0}){const r=n.clone?sm({},e):e;return cm(e)&&cm(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(cm(t[o])&&o in e&&cm(e[o])?r[o]=dm(e[o],t[o],n):n.clone?r[o]=cm(t[o])?um(t[o]):t[o]:r[o]=t[o])})),r}function pm(e){if("string"!=typeof e)throw new Error(wp(7));return e.charAt(0).toUpperCase()+e.slice(1)}function fm(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function hm(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function mm(e,t){var n,r;return H.isValidElement(e)&&-1!==t.indexOf(null!=(n=e.type.muiName)?n:null==(r=e.type)||null==(r=r._payload)||null==(r=r.value)?void 0:r.muiName)}function gm(e){return e&&e.ownerDocument||document}function vm(e){return gm(e).defaultView||window}function bm(e,t){"function"==typeof e?e(t):e&&(e.current=t)}const ym="undefined"!=typeof window?H.useLayoutEffect:H.useEffect;let xm=0;const Sm=V["useId".toString()];function wm(e){if(void 0!==Sm){const t=Sm();return null!=e?e:t}return function(e){const[t,n]=H.useState(e),r=e||t;return H.useEffect((()=>{null==t&&(xm+=1,n(`mui-${xm}`))}),[t]),r}(e)}function Em({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=H.useRef(void 0!==e),[a,i]=H.useState(t);return[o?e:a,H.useCallback((e=>{o||i(e)}),[])]}function Cm(e){const t=H.useRef(e);return ym((()=>{t.current=e})),H.useRef(((...e)=>(0,t.current)(...e))).current}function km(...e){return H.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{bm(e,t)}))}),e)}let Rm,Lm=!0,Om=!1;const Im={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function _m(e){e.metaKey||e.altKey||e.ctrlKey||(Lm=!0)}function Tm(){Lm=!1}function Pm(){"hidden"===this.visibilityState&&Om&&(Lm=!0)}function Mm(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Lm||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Im[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Nm(){const e=H.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",_m,!0),t.addEventListener("mousedown",Tm,!0),t.addEventListener("pointerdown",Tm,!0),t.addEventListener("touchstart",Tm,!0),t.addEventListener("visibilitychange",Pm,!0))}),[]),t=H.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Mm(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Om=!0,window.clearTimeout(Rm),Rm=window.setTimeout((()=>{Om=!1}),100),t.current=!1,!0)},ref:e}}function qm(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const Am=e=>{const t=H.useRef({});return H.useEffect((()=>{t.current=e})),t.current};function zm(e,t){const n=sm({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=sm({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},a=t[r];n[r]={},a&&Object.keys(a)?o&&Object.keys(o)?(n[r]=sm({},a),Object.keys(o).forEach((e=>{n[r][e]=zm(o[e],a[e])}))):n[r]=a:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function Dm(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}const jm=e=>e,Fm=(()=>{let e=jm;return{configure(t){e=t},generate:t=>e(t),reset(){e=jm}}})(),Bm={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function $m(e,t,n="Mui"){const r=Bm[t];return r?`${n}-${r}`:`${Fm.generate(e)}-${t}`}function Wm(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=$m(e,t,n)})),r}const Hm=["values","unit","step"],Um=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>im({},e,{[t.key]:t.val})),{})};function Vm(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=lm(e,Hm),a=Um(t),i=Object.keys(a);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const a=i.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==a&&"number"==typeof t[i[a]]?t[i[a]]:o)-r/100}${n})`}return im({keys:i,values:a,up:l,down:s,between:c,only:function(e){return i.indexOf(e)+1<i.length?c(e,i[i.indexOf(e)+1]):l(e)},not:function(e){const t=i.indexOf(e);return 0===t?l(i[1]):t===i.length-1?s(i[t]):c(e,i[i.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}var Gm={borderRadius:4};function Km(e,t){return t?dm(e,t,{clone:!1}):e}const Zm={xs:0,sm:600,md:900,lg:1200,xl:1536},Xm={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Zm[e]}px)`};function Qm(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Xm;return t.reduce(((r,o,a)=>(r[e.up(e.keys[a])]=n(t[a]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Xm;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||Zm).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function Jm(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function Ym(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function eg({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r<e.length&&(n[t]=!0)})):r.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(e,t),o=Object.keys(r);if(0===o.length)return e;let a;return o.reduce(((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[a],a=r):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[a],a=n):t[n]=e,t)),{})}function tg(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function ng(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:tg(e,n)||r,t&&(o=t(o,r,e)),o}function rg(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=e=>{if(null==e[t])return null;const a=e[t],i=tg(e.theme,r)||{};return Qm(e,a,(e=>{let r=ng(i,o,e);return e===r&&"string"==typeof e&&(r=ng(i,o,`${t}${"default"===e?"":pm(e)}`,e)),!1===n?r:{[n]:r}}))};return a.propTypes={},a.filterProps=[t],a}const og={m:"margin",p:"padding"},ag={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ig={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},lg=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!ig[e])return[e];e=ig[e]}const[t,n]=e.split(""),r=og[t],o=ag[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),sg=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],cg=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function ug(e,t,n,r){var o;const a=null!=(o=tg(e,t,!1))?o:n;return"number"==typeof a?e=>"string"==typeof e?e:a*e:Array.isArray(a)?e=>"string"==typeof e?e:a[e]:"function"==typeof a?a:()=>{}}function dg(e){return ug(e,"spacing",8)}function pg(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function fg(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=pg(t,n),e)),{})}(lg(n),r);return Qm(e,e[n],o)}function hg(e,t){const n=dg(e.theme);return Object.keys(e).map((r=>fg(e,t,r,n))).reduce(Km,{})}function mg(e){return hg(e,sg)}function gg(e){return hg(e,cg)}function vg(e=8){if(e.mui)return e;const t=dg({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}function bg(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?Km(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function yg(e){return"number"!=typeof e?e:`${e}px solid`}function xg(e,t){return rg({prop:e,themeKey:"borders",transform:t})}mg.propTypes={},mg.filterProps=sg,gg.propTypes={},gg.filterProps=cg;const Sg=xg("border",yg),wg=xg("borderTop",yg),Eg=xg("borderRight",yg),Cg=xg("borderBottom",yg),kg=xg("borderLeft",yg),Rg=xg("borderColor"),Lg=xg("borderTopColor"),Og=xg("borderRightColor"),Ig=xg("borderBottomColor"),_g=xg("borderLeftColor"),Tg=xg("outline",yg),Pg=xg("outlineColor"),Mg=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=ug(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:pg(t,e)});return Qm(e,e.borderRadius,n)}return null};Mg.propTypes={},Mg.filterProps=["borderRadius"],bg(Sg,wg,Eg,Cg,kg,Rg,Lg,Og,Ig,_g,Mg,Tg,Pg);const Ng=e=>{if(void 0!==e.gap&&null!==e.gap){const t=ug(e.theme,"spacing",8),n=e=>({gap:pg(t,e)});return Qm(e,e.gap,n)}return null};Ng.propTypes={},Ng.filterProps=["gap"];const qg=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=ug(e.theme,"spacing",8),n=e=>({columnGap:pg(t,e)});return Qm(e,e.columnGap,n)}return null};qg.propTypes={},qg.filterProps=["columnGap"];const Ag=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=ug(e.theme,"spacing",8),n=e=>({rowGap:pg(t,e)});return Qm(e,e.rowGap,n)}return null};Ag.propTypes={},Ag.filterProps=["rowGap"];function zg(e,t){return"grey"===t?t:e}bg(Ng,qg,Ag,rg({prop:"gridColumn"}),rg({prop:"gridRow"}),rg({prop:"gridAutoFlow"}),rg({prop:"gridAutoColumns"}),rg({prop:"gridAutoRows"}),rg({prop:"gridTemplateColumns"}),rg({prop:"gridTemplateRows"}),rg({prop:"gridTemplateAreas"}),rg({prop:"gridArea"}));function Dg(e){return e<=1&&0!==e?100*e+"%":e}bg(rg({prop:"color",themeKey:"palette",transform:zg}),rg({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:zg}),rg({prop:"backgroundColor",themeKey:"palette",transform:zg}));const jg=rg({prop:"width",transform:Dg}),Fg=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||Zm[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Dg(t)}};return Qm(e,e.maxWidth,t)}return null};Fg.filterProps=["maxWidth"];const Bg=rg({prop:"minWidth",transform:Dg}),$g=rg({prop:"height",transform:Dg}),Wg=rg({prop:"maxHeight",transform:Dg}),Hg=rg({prop:"minHeight",transform:Dg});rg({prop:"size",cssProperty:"width",transform:Dg}),rg({prop:"size",cssProperty:"height",transform:Dg});bg(jg,Fg,Bg,$g,Wg,Hg,rg({prop:"boxSizing"}));var Ug={border:{themeKey:"borders",transform:yg},borderTop:{themeKey:"borders",transform:yg},borderRight:{themeKey:"borders",transform:yg},borderBottom:{themeKey:"borders",transform:yg},borderLeft:{themeKey:"borders",transform:yg},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:yg},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Mg},color:{themeKey:"palette",transform:zg},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:zg},backgroundColor:{themeKey:"palette",transform:zg},p:{style:gg},pt:{style:gg},pr:{style:gg},pb:{style:gg},pl:{style:gg},px:{style:gg},py:{style:gg},padding:{style:gg},paddingTop:{style:gg},paddingRight:{style:gg},paddingBottom:{style:gg},paddingLeft:{style:gg},paddingX:{style:gg},paddingY:{style:gg},paddingInline:{style:gg},paddingInlineStart:{style:gg},paddingInlineEnd:{style:gg},paddingBlock:{style:gg},paddingBlockStart:{style:gg},paddingBlockEnd:{style:gg},m:{style:mg},mt:{style:mg},mr:{style:mg},mb:{style:mg},ml:{style:mg},mx:{style:mg},my:{style:mg},margin:{style:mg},marginTop:{style:mg},marginRight:{style:mg},marginBottom:{style:mg},marginLeft:{style:mg},marginX:{style:mg},marginY:{style:mg},marginInline:{style:mg},marginInlineStart:{style:mg},marginInlineEnd:{style:mg},marginBlock:{style:mg},marginBlockStart:{style:mg},marginBlockEnd:{style:mg},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ng},rowGap:{style:Ag},columnGap:{style:qg},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Dg},maxWidth:{style:Fg},minWidth:{transform:Dg},height:{transform:Dg},maxHeight:{transform:Dg},minHeight:{transform:Dg},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Vg=function(){function e(e,t,n,r){const o={[e]:t,theme:n},a=r[e];if(!a)return{[e]:t};const{cssProperty:i=e,themeKey:l,transform:s,style:c}=a;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const u=tg(n,l)||{};if(c)return c(o);return Qm(o,t,(t=>{let n=ng(u,s,t);return t===n&&"string"==typeof t&&(n=ng(u,s,`${e}${"default"===t?"":pm(t)}`,t)),!1===i?n:{[i]:n}}))}return function t(n){var r;const{sx:o,theme:a={}}=n||{};if(!o)return null;const i=null!=(r=a.unstable_sxConfig)?r:Ug;function l(n){let r=n;if("function"==typeof n)r=n(a);else if("object"!=typeof n)return n;if(!r)return null;const o=Jm(a.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],c=a,"function"==typeof l?l(c):l);var l,c;if(null!=o)if("object"==typeof o)if(i[n])s=Km(s,e(n,o,a,i));else{const e=Qm({theme:a},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=Km(s,e):s[n]=t({sx:o,theme:a})}else s=Km(s,e(n,o,a,i))})),Ym(l,s)}return Array.isArray(o)?o.map(l):l(o)}}();Vg.filterProps=["sx"];const Gg=["breakpoints","palette","spacing","shape"];function Kg(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={}}=e,i=lm(e,Gg),l=Vm(n),s=vg(o);let c=dm({breakpoints:l,direction:"ltr",components:{},palette:im({mode:"light"},r),spacing:s,shape:im({},Gm,a)},i);return c=t.reduce(((e,t)=>dm(e,t)),c),c.unstable_sxConfig=im({},Ug,null==i?void 0:i.unstable_sxConfig),c.unstable_sx=function(e){return Vg({sx:e,theme:this})},c}function Zg(e=null){const t=H.useContext(Rh);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const Xg=Kg();function Qg(e=Xg){return Zg(e)}function Jg({styles:e,themeId:t,defaultTheme:n={}}){const r=Qg(n),o="function"==typeof e?e(t&&r[t]||r):e;return tm.jsx(om,{styles:o})}const Yg=["sx"],ev=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Ug;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function tv(e){const{sx:t}=e,n=lm(e,Yg),{systemProps:r,otherProps:o}=ev(n);let a;return a=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return cm(n)?im({},r,n):r}:im({},r,t),im({},o,{sx:a})}function nv(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=nv(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function rv(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=nv(e))&&(r&&(r+=" "),r+=t);return r}const ov=["className","component"];const av=["variant"];function iv(e){return 0===e.length}function lv(e){const{variant:t}=e,n=lm(e,av);let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?iv(r)?e[t]:pm(e[t]):`${iv(r)?t:pm(t)}${pm(e[t].toString())}`})),r}const sv=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];const cv=e=>{let t=0;const n={};return e&&e.forEach((e=>{let r="";"function"==typeof e.props?(r=`callback${t}`,t+=1):r=lv(e.props),n[r]=e.style})),n},uv=(e,t,n)=>{const{ownerState:r={}}=e,o=[];let a=0;return n&&n.forEach((n=>{let i=!0;if("function"==typeof n.props){const t=im({},e,r);i=n.props(t)}else Object.keys(n.props).forEach((t=>{r[t]!==n.props[t]&&e[t]!==n.props[t]&&(i=!1)}));i&&("function"==typeof n.props?o.push(t[`callback${a}`]):o.push(t[lv(n.props)])),"function"==typeof n.props&&(a+=1)})),o};function dv(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const pv=Kg(),fv=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function hv({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function mv(e){return e?(t,n)=>n[e]:null}const gv=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const o=e(im({},t,{theme:hv(im({},t,{defaultTheme:n,themeId:r}))}));let a;if(o&&o.variants&&(a=o.variants,delete o.variants),a){return[o,...uv(t,cv(a),a)]}return o};function vv(e={}){const{themeId:t,defaultTheme:n=pv,rootShouldForwardProp:r=dv,slotShouldForwardProp:o=dv}=e,a=e=>Vg(im({},e,{theme:hv(im({},e,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(e,i={})=>{((e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:c,skipSx:u,overridesResolver:d=mv(fv(s))}=i,p=lm(i,sv),f=void 0!==c?c:s&&"Root"!==s&&"root"!==s||!1,h=u||!1;let m=dv;"Root"===s||"root"===s?m=r:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=am(e,im({shouldForwardProp:m,label:undefined},p)),v=(r,...o)=>{const i=o?o.map((e=>{if("function"==typeof e&&e.__emotion_real!==e)return r=>gv({styledArg:e,props:r,defaultTheme:n,themeId:t});if(cm(e)){let t,n=e;return e&&e.variants&&(t=e.variants,delete n.variants,n=n=>{let r=e;return uv(n,cv(t),t).forEach((e=>{r=dm(r,e)})),r}),n}return e})):[];let s=r;if(cm(r)){let e;r&&r.variants&&(e=r.variants,delete s.variants,s=t=>{let n=r;return uv(t,cv(e),e).forEach((e=>{n=dm(n,e)})),n})}else"function"==typeof r&&r.__emotion_real!==r&&(s=e=>gv({styledArg:r,props:e,defaultTheme:n,themeId:t}));l&&d&&i.push((e=>{const r=hv(im({},e,{defaultTheme:n,themeId:t})),o=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(l,r);if(o){const t={};return Object.entries(o).forEach((([n,o])=>{t[n]="function"==typeof o?o(im({},e,{theme:r})):o})),d(e,t)}return null})),l&&!f&&i.push((e=>{const r=hv(im({},e,{defaultTheme:n,themeId:t}));return((e,t,n,r)=>{var o;const a=null==n||null==(o=n.components)||null==(o=o[r])?void 0:o.variants;return uv(e,t,a)})(e,((e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),cv(n)})(l,r),r,l)})),h||i.push(a);const c=i.length-o.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");s=[...r,...e],s.raw=[...r.raw,...e]}const u=g(s,...i);return e.muiName&&(u.muiName=e.muiName),u};return g.withConfig&&(v.withConfig=g.withConfig),v}}const bv=vv();function yv({props:e,name:t,defaultTheme:n,themeId:r}){let o=Qg(n);r&&(o=o[r]||o);const a=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?zm(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return a}function xv(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function Sv(e){if(e.type)return e;if("#"===e.charAt(0))return Sv(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(wp(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(wp(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function wv(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function Ev(e){let t="hsl"===(e=Sv(e)).type||"hsla"===e.type?Sv(function(e){e=Sv(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),i=(e,t=(e+n/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*i(0)),Math.round(255*i(8)),Math.round(255*i(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),wv({type:l,values:s})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Cv(e,t){return e=Sv(e),t=xv(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,wv(e)}function kv(){return kv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kv.apply(this,arguments)}var Rv=H.createContext(null);function Lv(){return H.useContext(Rv)}var Ov="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Iv(e){const{children:t,theme:n}=e,r=Lv(),o=H.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return kv({},e,t)}(r,n);return null!=e&&(e[Ov]=null!==r),e}),[n,r]);return tm.jsx(Rv.Provider,{value:o,children:t})}const _v={};function Tv(e,t,n,r=!1){return H.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const a=n(o),i=e?im({},t,{[e]:a}):a;return r?()=>i:i}return im({},t,e?{[e]:n}:n)}),[e,t,n,r])}function Pv(e){const{children:t,theme:n,themeId:r}=e,o=Zg(_v),a=Lv()||_v,i=Tv(r,o,n),l=Tv(r,a,n,!0);return tm.jsx(Iv,{theme:l,children:tm.jsx(Rh.Provider,{value:i,children:t})})}const Mv=["component","direction","spacing","divider","children","className","useFlexGap"],Nv=Kg(),qv=bv("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Av(e){return yv({props:e,name:"MuiStack",defaultTheme:Nv})}function zv(e,t){const n=H.Children.toArray(e).filter(Boolean);return n.reduce(((e,r,o)=>(e.push(r),o<n.length-1&&e.push(H.cloneElement(t,{key:`separator-${o}`})),e)),[])}const Dv=({ownerState:e,theme:t})=>{let n=im({display:"flex",flexDirection:"column"},Qm({theme:t},eg({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const r=dg(t),o=Object.keys(t.breakpoints.values).reduce(((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t)),{}),a=eg({values:e.direction,base:o}),i=eg({values:e.spacing,base:o});"object"==typeof a&&Object.keys(a).forEach(((e,t,n)=>{if(!a[e]){const r=t>0?a[n[t-1]]:"column";a[e]=r}}));n=dm(n,Qm({theme:t},i,((t,n)=>{return e.useFlexGap?{gap:pg(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=n?a[n]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:pg(r,t)}};var o})))}return n=function(e,...t){const n=Jm(e),r=[n,...t].reduce(((e,t)=>dm(e,t)),{});return Ym(Object.keys(n),r)}(t.breakpoints,n),n};const jv=["defaultProps","mixins","overrides","palette","props","styleOverrides"],Fv=["type","mode"];var Bv={black:"#000",white:"#fff"};var $v={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};var Wv={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var Hv={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var Uv={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var Vv={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var Gv={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var Kv={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};const Zv=["mode","contrastThreshold","tonalOffset"],Xv={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Bv.white,default:Bv.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Qv={text:{primary:Bv.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Bv.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Jv(e,t,n,r){const o=r.light||r,a=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=Sv(e),t=xv(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return wv(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Sv(e),t=xv(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return wv(e)}(e.main,a)))}function Yv(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=kp(e,Zv),a=e.primary||function(e="light"){return"dark"===e?{main:Vv[200],light:Vv[50],dark:Vv[400]}:{main:Vv[700],light:Vv[400],dark:Vv[800]}}(t),i=e.secondary||function(e="light"){return"dark"===e?{main:Wv[200],light:Wv[50],dark:Wv[400]}:{main:Wv[500],light:Wv[300],dark:Wv[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Hv[500],light:Hv[300],dark:Hv[700]}:{main:Hv[700],light:Hv[400],dark:Hv[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Gv[400],light:Gv[300],dark:Gv[700]}:{main:Gv[700],light:Gv[500],dark:Gv[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:Kv[400],light:Kv[300],dark:Kv[700]}:{main:Kv[800],light:Kv[500],dark:Kv[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:Uv[400],light:Uv[300],dark:Uv[700]}:{main:"#ed6c02",light:Uv[500],dark:Uv[900]}}(t);function d(e){const t=function(e,t){const n=Ev(e),r=Ev(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Qv.text.primary)>=n?Qv.text.primary:Xv.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:a=700})=>{if(!(e=Cp({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(wp(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(wp(12,t?` (${t})`:"",JSON.stringify(e.main)));return Jv(e,"light",o,r),Jv(e,"dark",a,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Qv,light:Xv};return dm(Cp({common:Cp({},Bv),mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:c,name:"success"}),grey:$v,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const eb=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const tb={textTransform:"uppercase"},nb='"Roboto", "Helvetica", "Arial", sans-serif';function rb(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=nb,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,p=kp(n,eb),f=o/14,h=d||(e=>e/c*f+"rem"),m=(e,t,n,o,a)=>{return Cp({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===nb?{letterSpacing:(i=o/t,Math.round(1e5*i)/1e5)+"em"}:{},a,u);var i},g={h1:m(a,96,1.167,-1.5),h2:m(a,60,1.2,-.5),h3:m(i,48,1.167,0),h4:m(i,34,1.235,.25),h5:m(i,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(i,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(i,16,1.5,.15),body2:m(i,14,1.43,.15),button:m(l,14,1.75,.4,tb),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,tb),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return dm(Cp({htmlFontSize:c,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function ob(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const ab=["none",ob(0,2,1,-1,0,1,1,0,0,1,3,0),ob(0,3,1,-2,0,2,2,0,0,1,5,0),ob(0,3,3,-2,0,3,4,0,0,1,8,0),ob(0,2,4,-1,0,4,5,0,0,1,10,0),ob(0,3,5,-1,0,5,8,0,0,1,14,0),ob(0,3,5,-1,0,6,10,0,0,1,18,0),ob(0,4,5,-2,0,7,10,1,0,2,16,1),ob(0,5,5,-3,0,8,10,1,0,3,14,2),ob(0,5,6,-3,0,9,12,1,0,3,16,2),ob(0,6,6,-3,0,10,14,1,0,4,18,3),ob(0,6,7,-4,0,11,15,1,0,4,20,3),ob(0,7,8,-4,0,12,17,2,0,5,22,4),ob(0,7,8,-4,0,13,19,2,0,5,24,4),ob(0,7,9,-4,0,14,21,2,0,5,26,4),ob(0,8,9,-5,0,15,22,2,0,6,28,5),ob(0,8,10,-5,0,16,24,2,0,6,30,5),ob(0,8,11,-5,0,17,26,2,0,6,32,5),ob(0,9,11,-5,0,18,28,2,0,7,34,6),ob(0,9,12,-6,0,19,29,2,0,7,36,6),ob(0,10,13,-6,0,20,31,3,0,8,38,7),ob(0,10,13,-6,0,21,33,3,0,8,40,7),ob(0,10,14,-6,0,22,35,3,0,8,42,7),ob(0,11,14,-7,0,23,36,3,0,9,44,8),ob(0,11,15,-7,0,24,38,3,0,9,46,8)],ib=["duration","easing","delay"],lb={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},sb={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function cb(e){return`${Math.round(e)}ms`}function ub(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function db(e){const t=Cp({},lb,e.easing),n=Cp({},sb,e.duration);return Cp({getAutoHeightDuration:ub,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:a=t.easeInOut,delay:i=0}=r;return kp(r,ib),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:cb(o)} ${a} ${"string"==typeof i?i:cb(i)}`)).join(",")}},e,{easing:t,duration:n})}var pb={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const fb=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function hb(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:a={}}=e,i=kp(e,fb);if(e.vars)throw new Error(wp(18));const l=Yv(r),s=Kg(e);let c=dm(s,{mixins:(u=s.breakpoints,d=n,Cp({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:ab.slice(),typography:rb(l,a),transitions:db(o),zIndex:Cp({},pb)});var u,d;return c=dm(c,i),c=t.reduce(((e,t)=>dm(e,t)),c),c.unstable_sxConfig=Cp({},Ug,null==i?void 0:i.unstable_sxConfig),c.unstable_sx=function(e){return Vg({sx:e,theme:this})},c}var mb=hb();function gb(){const e=Qg(mb);return e[Ep]||e}function vb({props:e,name:t}){return yv({props:e,name:t,defaultTheme:mb,themeId:Ep})}const bb=e=>dv(e)&&"classes"!==e,yb=vv({themeId:Ep,defaultTheme:mb,rootShouldForwardProp:bb}),xb=["theme"];function Sb(e){let{theme:t}=e,n=kp(e,xb);const r=t[Ep];return tm.jsx(Pv,Cp({},n,{themeId:r?Ep:void 0,theme:r||t}))}var wb=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Eb(){return Eb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Eb.apply(this,arguments)}function Cb(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function kb(e,t){return kb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},kb(e,t)}function Rb(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,kb(e,t)}var Lb=!1,Ob=U.createContext(null),Ib="unmounted",_b="exited",Tb="entering",Pb="entered",Mb="exiting",Nb=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,a=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(o=_b,r.appearStatus=Tb):o=Pb:o=t.unmountOnExit||t.mountOnEnter?Ib:_b,r.state={status:o},r.nextCallback=null,r}Rb(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ib?{status:_b}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Tb&&n!==Pb&&(t=Tb):n!==Tb&&n!==Pb||(t=Mb)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Tb){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:xp.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===_b&&this.setState({status:Ib})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[xp.findDOMNode(this),r],a=o[0],i=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||Lb?this.safeSetState({status:Pb},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,i),this.safeSetState({status:Tb},(function(){t.props.onEntering(a,i),t.onTransitionEnd(s,(function(){t.safeSetState({status:Pb},(function(){t.props.onEntered(a,i)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:xp.findDOMNode(this);t&&!Lb?(this.props.onExit(r),this.safeSetState({status:Mb},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:_b},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:_b},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:xp.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=o[0],i=o[1];this.props.addEndListener(a,i)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Ib)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=Cb(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return U.createElement(Ob.Provider,{value:null},"function"==typeof n?n(e,r):U.cloneElement(U.Children.only(n),r))},t}(U.Component);function qb(){}Nb.contextType=Ob,Nb.propTypes={},Nb.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:qb,onEntering:qb,onEntered:qb,onExit:qb,onExiting:qb,onExited:qb},Nb.UNMOUNTED=Ib,Nb.EXITED=_b,Nb.ENTERING=Tb,Nb.ENTERED=Pb,Nb.EXITING=Mb;var Ab=Nb;function zb(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Db(e,t){var n=Object.create(null);return e&&H.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&H.isValidElement(e)?t(e):e}(e)})),n}function jb(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Fb(e,t,n){var r=Db(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),a=[];for(var i in e)i in t?a.length&&(o[i]=a,a=[]):a.push(i);var l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var c=o[s][r];l[o[s][r]]=n(c)}l[s]=n(s)}for(r=0;r<a.length;r++)l[a[r]]=n(a[r]);return l}(t,r);return Object.keys(o).forEach((function(a){var i=o[a];if(H.isValidElement(i)){var l=a in t,s=a in r,c=t[a],u=H.isValidElement(c)&&!c.props.in;!s||l&&!u?s||!l||u?s&&l&&H.isValidElement(c)&&(o[a]=H.cloneElement(i,{onExited:n.bind(null,i),in:c.props.in,exit:jb(i,"exit",e),enter:jb(i,"enter",e)})):o[a]=H.cloneElement(i,{in:!1}):o[a]=H.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:jb(i,"exit",e),enter:jb(i,"enter",e)})}})),o}var Bb=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},$b=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(zb(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Rb(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,Db(n.children,(function(e){return H.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:jb(e,"appear",n),enter:jb(e,"enter",n),exit:jb(e,"exit",n)})}))):Fb(e,o,a),firstRender:!1}},n.handleExited=function(e,t){var n=Db(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Eb({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Cb(e,["component","childFactory"]),o=this.state.contextValue,a=Bb(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?U.createElement(Ob.Provider,{value:o},a):U.createElement(Ob.Provider,{value:o},U.createElement(t,r,a))},t}(U.Component);$b.propTypes={},$b.defaultProps={component:"div",childFactory:function(e){return e}};var Wb=$b;const Hb=Wm("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ub=["center","classes","className"];let Vb,Gb,Kb,Zb,Xb=e=>e;const Qb=Ih(Vb||(Vb=Xb`
33
+ */function sm(e,t){return Kh(e,t)}"object"==typeof document&&(am=zf({key:"css",prepend:!0}));const cm=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};var um=Object.freeze({__proto__:null,GlobalStyles:lm,StyledEngineProvider:im,ThemeContext:_h,css:Th,default:sm,internal_processStyles:cm,keyframes:Ph});function dm(){return dm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dm.apply(this,arguments)}function pm(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function fm(){return fm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fm.apply(this,arguments)}function hm(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function mm(e){if(!hm(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=mm(e[n])})),t}function gm(e,t,n={clone:!0}){const r=n.clone?fm({},e):e;return hm(e)&&hm(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(hm(t[o])&&o in e&&hm(e[o])?r[o]=gm(e[o],t[o],n):n.clone?r[o]=hm(t[o])?mm(t[o]):t[o]:r[o]=t[o])})),r}var vm=Object.freeze({__proto__:null,default:gm,isPlainObject:hm});const bm=["values","unit","step"],ym=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>dm({},e,{[t.key]:t.val})),{})};function xm(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=pm(e,bm),a=ym(t),i=Object.keys(a);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const a=i.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==a&&"number"==typeof t[i[a]]?t[i[a]]:o)-r/100}${n})`}return dm({keys:i,values:a,up:l,down:s,between:c,only:function(e){return i.indexOf(e)+1<i.length?c(e,i[i.indexOf(e)+1]):l(e)},not:function(e){const t=i.indexOf(e);return 0===t?l(i[1]):t===i.length-1?s(i[t]):c(e,i[i.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}var Sm={borderRadius:4};function wm(e,t){return t?gm(e,t,{clone:!1}):e}const Em={xs:0,sm:600,md:900,lg:1200,xl:1536},Cm={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Em[e]}px)`};function km(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Cm;return t.reduce(((r,o,a)=>(r[e.up(e.keys[a])]=n(t[a]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Cm;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||Em).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function Lm(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function Rm(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function Om({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r<e.length&&(n[t]=!0)})):r.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(e,t),o=Object.keys(r);if(0===o.length)return e;let a;return o.reduce(((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[a],a=r):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[a],a=n):t[n]=e,t)),{})}function _m(e){if("string"!=typeof e)throw new Error(Ep(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Im=Object.freeze({__proto__:null,default:_m});function Tm(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function Pm(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Tm(e,n)||r,t&&(o=t(o,r,e)),o}function Mm(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=e=>{if(null==e[t])return null;const a=e[t],i=Tm(e.theme,r)||{};return km(e,a,(e=>{let r=Pm(i,o,e);return e===r&&"string"==typeof e&&(r=Pm(i,o,`${t}${"default"===e?"":_m(e)}`,e)),!1===n?r:{[n]:r}}))};return a.propTypes={},a.filterProps=[t],a}const Nm={m:"margin",p:"padding"},qm={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Am={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Dm=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!Am[e])return[e];e=Am[e]}const[t,n]=e.split(""),r=Nm[t],o=qm[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),zm=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],jm=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Fm(e,t,n,r){var o;const a=null!=(o=Tm(e,t,!1))?o:n;return"number"==typeof a?e=>"string"==typeof e?e:a*e:Array.isArray(a)?e=>"string"==typeof e?e:a[e]:"function"==typeof a?a:()=>{}}function Bm(e){return Fm(e,"spacing",8)}function $m(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function Wm(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=$m(t,n),e)),{})}(Dm(n),r);return km(e,e[n],o)}function Hm(e,t){const n=Bm(e.theme);return Object.keys(e).map((r=>Wm(e,t,r,n))).reduce(wm,{})}function Um(e){return Hm(e,zm)}function Vm(e){return Hm(e,jm)}function Gm(e=8){if(e.mui)return e;const t=Bm({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}function Km(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?wm(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Zm(e){return"number"!=typeof e?e:`${e}px solid`}function Xm(e,t){return Mm({prop:e,themeKey:"borders",transform:t})}Um.propTypes={},Um.filterProps=zm,Vm.propTypes={},Vm.filterProps=jm;const Qm=Xm("border",Zm),Jm=Xm("borderTop",Zm),Ym=Xm("borderRight",Zm),eg=Xm("borderBottom",Zm),tg=Xm("borderLeft",Zm),ng=Xm("borderColor"),rg=Xm("borderTopColor"),og=Xm("borderRightColor"),ag=Xm("borderBottomColor"),ig=Xm("borderLeftColor"),lg=Xm("outline",Zm),sg=Xm("outlineColor"),cg=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Fm(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:$m(t,e)});return km(e,e.borderRadius,n)}return null};cg.propTypes={},cg.filterProps=["borderRadius"],Km(Qm,Jm,Ym,eg,tg,ng,rg,og,ag,ig,cg,lg,sg);const ug=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Fm(e.theme,"spacing",8),n=e=>({gap:$m(t,e)});return km(e,e.gap,n)}return null};ug.propTypes={},ug.filterProps=["gap"];const dg=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Fm(e.theme,"spacing",8),n=e=>({columnGap:$m(t,e)});return km(e,e.columnGap,n)}return null};dg.propTypes={},dg.filterProps=["columnGap"];const pg=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Fm(e.theme,"spacing",8),n=e=>({rowGap:$m(t,e)});return km(e,e.rowGap,n)}return null};pg.propTypes={},pg.filterProps=["rowGap"];function fg(e,t){return"grey"===t?t:e}Km(ug,dg,pg,Mm({prop:"gridColumn"}),Mm({prop:"gridRow"}),Mm({prop:"gridAutoFlow"}),Mm({prop:"gridAutoColumns"}),Mm({prop:"gridAutoRows"}),Mm({prop:"gridTemplateColumns"}),Mm({prop:"gridTemplateRows"}),Mm({prop:"gridTemplateAreas"}),Mm({prop:"gridArea"}));function hg(e){return e<=1&&0!==e?100*e+"%":e}Km(Mm({prop:"color",themeKey:"palette",transform:fg}),Mm({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:fg}),Mm({prop:"backgroundColor",themeKey:"palette",transform:fg}));const mg=Mm({prop:"width",transform:hg}),gg=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||Em[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:hg(t)}};return km(e,e.maxWidth,t)}return null};gg.filterProps=["maxWidth"];const vg=Mm({prop:"minWidth",transform:hg}),bg=Mm({prop:"height",transform:hg}),yg=Mm({prop:"maxHeight",transform:hg}),xg=Mm({prop:"minHeight",transform:hg});Mm({prop:"size",cssProperty:"width",transform:hg}),Mm({prop:"size",cssProperty:"height",transform:hg});Km(mg,gg,vg,bg,yg,xg,Mm({prop:"boxSizing"}));var Sg={border:{themeKey:"borders",transform:Zm},borderTop:{themeKey:"borders",transform:Zm},borderRight:{themeKey:"borders",transform:Zm},borderBottom:{themeKey:"borders",transform:Zm},borderLeft:{themeKey:"borders",transform:Zm},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Zm},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:cg},color:{themeKey:"palette",transform:fg},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:fg},backgroundColor:{themeKey:"palette",transform:fg},p:{style:Vm},pt:{style:Vm},pr:{style:Vm},pb:{style:Vm},pl:{style:Vm},px:{style:Vm},py:{style:Vm},padding:{style:Vm},paddingTop:{style:Vm},paddingRight:{style:Vm},paddingBottom:{style:Vm},paddingLeft:{style:Vm},paddingX:{style:Vm},paddingY:{style:Vm},paddingInline:{style:Vm},paddingInlineStart:{style:Vm},paddingInlineEnd:{style:Vm},paddingBlock:{style:Vm},paddingBlockStart:{style:Vm},paddingBlockEnd:{style:Vm},m:{style:Um},mt:{style:Um},mr:{style:Um},mb:{style:Um},ml:{style:Um},mx:{style:Um},my:{style:Um},margin:{style:Um},marginTop:{style:Um},marginRight:{style:Um},marginBottom:{style:Um},marginLeft:{style:Um},marginX:{style:Um},marginY:{style:Um},marginInline:{style:Um},marginInlineStart:{style:Um},marginInlineEnd:{style:Um},marginBlock:{style:Um},marginBlockStart:{style:Um},marginBlockEnd:{style:Um},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:ug},rowGap:{style:pg},columnGap:{style:dg},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:hg},maxWidth:{style:gg},minWidth:{transform:hg},height:{transform:hg},maxHeight:{transform:hg},minHeight:{transform:hg},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function wg(){function e(e,t,n,r){const o={[e]:t,theme:n},a=r[e];if(!a)return{[e]:t};const{cssProperty:i=e,themeKey:l,transform:s,style:c}=a;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const u=Tm(n,l)||{};if(c)return c(o);return km(o,t,(t=>{let n=Pm(u,s,t);return t===n&&"string"==typeof t&&(n=Pm(u,s,`${e}${"default"===t?"":_m(t)}`,t)),!1===i?n:{[i]:n}}))}return function t(n){var r;const{sx:o,theme:a={}}=n||{};if(!o)return null;const i=null!=(r=a.unstable_sxConfig)?r:Sg;function l(n){let r=n;if("function"==typeof n)r=n(a);else if("object"!=typeof n)return n;if(!r)return null;const o=Lm(a.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],c=a,"function"==typeof l?l(c):l);var l,c;if(null!=o)if("object"==typeof o)if(i[n])s=wm(s,e(n,o,a,i));else{const e=km({theme:a},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=wm(s,e):s[n]=t({sx:o,theme:a})}else s=wm(s,e(n,o,a,i))})),Rm(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const Eg=wg();function Cg(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){return{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return n.palette.mode===e?t:{}}Eg.filterProps=["sx"];const kg=["breakpoints","palette","spacing","shape"];function Lg(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={}}=e,i=pm(e,kg),l=xm(n),s=Gm(o);let c=gm({breakpoints:l,direction:"ltr",components:{},palette:dm({mode:"light"},r),spacing:s,shape:dm({},Sm,a)},i);return c.applyStyles=Cg,c=t.reduce(((e,t)=>gm(e,t)),c),c.unstable_sxConfig=dm({},Sg,null==i?void 0:i.unstable_sxConfig),c.unstable_sx=function(e){return Eg({sx:e,theme:this})},c}var Rg=Object.freeze({__proto__:null,default:Lg,private_createBreakpoints:xm,unstable_applyStyles:Cg});function Og(e=null){const t=U.useContext(_h);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const _g=Lg();function Ig(e=_g){return Og(e)}function Tg({styles:e,themeId:t,defaultTheme:n={}}){const r=Ig(n),o="function"==typeof e?e(t&&r[t]||r):e;return om.jsx(lm,{styles:o})}const Pg=["sx"],Mg=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Sg;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function Ng(e){const{sx:t}=e,n=pm(e,Pg),{systemProps:r,otherProps:o}=Mg(n);let a;return a=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return hm(n)?dm({},r,n):r}:dm({},r,t),dm({},o,{sx:a})}var qg=Object.freeze({__proto__:null,default:Eg,extendSxProp:Ng,unstable_createStyleFunctionSx:wg,unstable_defaultSxConfig:Sg});const Ag=e=>e,Dg=(()=>{let e=Ag;return{configure(t){e=t},generate:t=>e(t),reset(){e=Ag}}})();function zg(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=zg(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function jg(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=zg(e))&&(r&&(r+=" "),r+=t);return r}const Fg=["className","component"];const Bg={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function $g(e,t,n="Mui"){const r=Bg[t];return r?`${n}-${r}`:`${Dg.generate(e)}-${t}`}function Wg(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=$g(e,t,n)})),r}const Hg=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Ug(e){const t=`${e}`.match(Hg);return t&&t[1]||""}function Vg(e,t=""){return e.displayName||e.name||Ug(e)||t}function Gg(e,t,n){const r=Vg(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Kg=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Vg(e,"Component");if("object"==typeof e)switch(e.$$typeof){case nh.ForwardRef:return Gg(e,e.render,"ForwardRef");case nh.Memo:return Gg(e,e.type,"memo");default:return}}},getFunctionName:Ug});const Zg=["ownerState"],Xg=["variants"],Qg=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Jg(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Yg=Lg(),ev=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function tv({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function nv(e){return e?(t,n)=>n[e]:null}function rv(e,t){let{ownerState:n}=t,r=pm(t,Zg);const o="function"==typeof e?e(dm({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>rv(e,dm({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=pm(o,Xg);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(dm({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(dm({ownerState:n},r,n)):e.style))})),t}return o}const ov=function(e={}){const{themeId:t,defaultTheme:n=Yg,rootShouldForwardProp:r=Jg,slotShouldForwardProp:o=Jg}=e,a=e=>Eg(dm({},e,{theme:tv(dm({},e,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(e,i={})=>{cm(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:c,skipSx:u,overridesResolver:d=nv(ev(s))}=i,p=pm(i,Qg),f=void 0!==c?c:s&&"Root"!==s&&"root"!==s||!1,h=u||!1;let m=Jg;"Root"===s||"root"===s?m=r:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=sm(e,dm({shouldForwardProp:m,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||hm(e)?r=>rv(e,dm({},r,{theme:tv({theme:r.theme,defaultTheme:n,themeId:t})})):e,b=(r,...o)=>{let i=v(r);const s=o?o.map(v):[];l&&d&&s.push((e=>{const r=tv(dm({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,a={};return Object.entries(o).forEach((([t,n])=>{a[t]=rv(n,dm({},e,{theme:r}))})),d(e,a)})),l&&!f&&s.push((e=>{var r;const o=tv(dm({},e,{defaultTheme:n,themeId:t}));return rv({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},dm({},e,{theme:o}))})),h||s.push(a);const c=s.length-o.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const u=g(i,...s);return e.muiName&&(u.muiName=e.muiName),u};return g.withConfig&&(b.withConfig=g.withConfig),b}}();function av(e,t){const n=fm({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=fm({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},a=t[r];n[r]={},a&&Object.keys(a)?o&&Object.keys(o)?(n[r]=fm({},a),Object.keys(o).forEach((e=>{n[r][e]=av(o[e],a[e])}))):n[r]=a:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function iv({props:e,name:t,defaultTheme:n,themeId:r}){let o=Ig(n);r&&(o=o[r]||o);const a=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?av(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return a}const lv="undefined"!=typeof window?U.useLayoutEffect:U.useEffect;var sv=Object.freeze({__proto__:null,default:function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}});function cv(){return cv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cv.apply(this,arguments)}function uv(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function dv(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function pv(e,t){var n,r;return U.isValidElement(e)&&-1!==t.indexOf(null!=(n=e.type.muiName)?n:null==(r=e.type)||null==(r=r._payload)||null==(r=r.value)?void 0:r.muiName)}function fv(e){return e&&e.ownerDocument||document}function hv(e){return fv(e).defaultView||window}function mv(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let gv=0;const vv=G["useId".toString()];function bv(e){if(void 0!==vv){const t=vv();return null!=e?e:t}return function(e){const[t,n]=U.useState(e),r=e||t;return U.useEffect((()=>{null==t&&(gv+=1,n(`mui-${gv}`))}),[t]),r}(e)}function yv({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=U.useRef(void 0!==e),[a,i]=U.useState(t);return[o?e:a,U.useCallback((e=>{o||i(e)}),[])]}function xv(e){const t=U.useRef(e);return lv((()=>{t.current=e})),U.useRef(((...e)=>(0,t.current)(...e))).current}function Sv(...e){return U.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{mv(e,t)}))}),e)}const wv={};const Ev=[];class Cv{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new Cv}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}function kv(){const e=function(e,t){const n=U.useRef(wv);return n.current===wv&&(n.current=e(t)),n}(Cv.create).current;var t;return t=e.disposeEffect,U.useEffect(t,Ev),e}let Lv=!0,Rv=!1;const Ov=new Cv,_v={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Iv(e){e.metaKey||e.altKey||e.ctrlKey||(Lv=!0)}function Tv(){Lv=!1}function Pv(){"hidden"===this.visibilityState&&Rv&&(Lv=!0)}function Mv(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Lv||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!_v[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Nv(){const e=U.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Iv,!0),t.addEventListener("mousedown",Tv,!0),t.addEventListener("pointerdown",Tv,!0),t.addEventListener("touchstart",Tv,!0),t.addEventListener("visibilitychange",Pv,!0))}),[]),t=U.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Mv(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Rv=!0,Ov.start(100,(()=>{Rv=!1})),t.current=!1,!0)},ref:e}}function qv(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const Av=e=>{const t=U.useRef({});return U.useEffect((()=>{t.current=e})),t.current};function Dv(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}var zv=U.createContext(null);function jv(){return U.useContext(zv)}var Fv="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Bv(e){const{children:t,theme:n}=e,r=jv(),o=U.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return cv({},e,t)}(r,n);return null!=e&&(e[Fv]=null!==r),e}),[n,r]);return om.jsx(zv.Provider,{value:o,children:t})}const $v={};function Wv(e,t,n,r=!1){return U.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const a=n(o),i=e?dm({},t,{[e]:a}):a;return r?()=>i:i}return dm({},t,e?{[e]:n}:n)}),[e,t,n,r])}function Hv(e){const{children:t,theme:n,themeId:r}=e,o=Og($v),a=jv()||$v,i=Wv(r,o,n),l=Wv(r,a,n,!0);return om.jsx(Bv,{theme:l,children:om.jsx(_h.Provider,{value:i,children:t})})}const Uv=["component","direction","spacing","divider","children","className","useFlexGap"],Vv=Lg(),Gv=ov("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Kv(e){return iv({props:e,name:"MuiStack",defaultTheme:Vv})}function Zv(e,t){const n=U.Children.toArray(e).filter(Boolean);return n.reduce(((e,r,o)=>(e.push(r),o<n.length-1&&e.push(U.cloneElement(t,{key:`separator-${o}`})),e)),[])}const Xv=({ownerState:e,theme:t})=>{let n=dm({display:"flex",flexDirection:"column"},km({theme:t},Om({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const r=Bm(t),o=Object.keys(t.breakpoints.values).reduce(((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t)),{}),a=Om({values:e.direction,base:o}),i=Om({values:e.spacing,base:o});"object"==typeof a&&Object.keys(a).forEach(((e,t,n)=>{if(!a[e]){const r=t>0?a[n[t-1]]:"column";a[e]=r}}));n=gm(n,km({theme:t},i,((t,n)=>{return e.useFlexGap?{gap:$m(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=n?a[n]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:$m(r,t)}};var o})))}return n=function(e,...t){const n=Lm(e),r=[n,...t].reduce(((e,t)=>gm(e,t)),{});return Rm(Object.keys(n),r)}(t.breakpoints,n),n};const Qv=["defaultProps","mixins","overrides","palette","props","styleOverrides"],Jv=["type","mode"];var Yv={},eb={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(eb);var tb=eb.exports,nb=r(Cp),rb=r(sv),ob=tb;Object.defineProperty(Yv,"__esModule",{value:!0});var ab=Yv.alpha=bb;Yv.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),a=fb(e),i=fb(t),l=[o(a.values[0],i.values[0]),o(a.values[1],i.values[1]),o(a.values[2],i.values[2])];return mb({type:"rgb",values:l})},Yv.colorChannel=void 0;var ib=Yv.darken=yb;Yv.decomposeColor=fb,Yv.emphasize=function(e,t=.15){return vb(e)>.5?yb(e,t):xb(e,t)};var lb=Yv.getContrastRatio=function(e,t){const n=vb(e),r=vb(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};Yv.getLuminance=vb,Yv.hexToRgb=pb,Yv.hslToRgb=gb;var sb=Yv.lighten=xb;Yv.private_safeAlpha=function(e,t,n){try{return bb(e,t)}catch(t){return e}},Yv.private_safeColorChannel=void 0,Yv.private_safeDarken=function(e,t,n){try{return yb(e,t)}catch(t){return e}},Yv.private_safeEmphasize=function e(t,n,r){try{return e(t,n)}catch(e){return t}},Yv.private_safeLighten=function(e,t,n){try{return xb(e,t)}catch(t){return e}},Yv.recomposeColor=mb,Yv.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=fb(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var cb=ob(nb),ub=ob(rb);function db(e,t=0,n=1){return(0,ub.default)(e,t,n)}function pb(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function fb(e){if(e.type)return e;if("#"===e.charAt(0))return fb(pb(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,cb.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,cb.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const hb=e=>{const t=fb(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};Yv.colorChannel=hb;function mb(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function gb(e){e=fb(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),i=(e,t=(e+n/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*i(0)),Math.round(255*i(8)),Math.round(255*i(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),mb({type:l,values:s})}function vb(e){let t="hsl"===(e=fb(e)).type||"hsla"===e.type?fb(gb(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function bb(e,t){return e=fb(e),t=db(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,mb(e)}function yb(e,t){if(e=fb(e),t=db(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return mb(e)}function xb(e,t){if(e=fb(e),t=db(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return mb(e)}Yv.private_safeColorChannel=(e,t)=>{try{return hb(e)}catch(t){return e}};var Sb={black:"#000",white:"#fff"};var wb={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};var Eb={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var Cb={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var kb={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var Lb={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var Rb={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var Ob={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};const _b=["mode","contrastThreshold","tonalOffset"],Ib={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Sb.white,default:Sb.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Tb={text:{primary:Sb.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Sb.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Pb(e,t,n,r){const o=r.light||r,a=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=sb(e.main,o):"dark"===t&&(e.dark=ib(e.main,a)))}function Mb(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Rp(e,_b),a=e.primary||function(e="light"){return"dark"===e?{main:Lb[200],light:Lb[50],dark:Lb[400]}:{main:Lb[700],light:Lb[400],dark:Lb[800]}}(t),i=e.secondary||function(e="light"){return"dark"===e?{main:Eb[200],light:Eb[50],dark:Eb[400]}:{main:Eb[500],light:Eb[300],dark:Eb[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Cb[500],light:Cb[300],dark:Cb[700]}:{main:Cb[700],light:Cb[400],dark:Cb[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Rb[400],light:Rb[300],dark:Rb[700]}:{main:Rb[700],light:Rb[500],dark:Rb[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:Ob[400],light:Ob[300],dark:Ob[700]}:{main:Ob[800],light:Ob[500],dark:Ob[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:kb[400],light:kb[300],dark:kb[700]}:{main:"#ed6c02",light:kb[500],dark:kb[900]}}(t);function d(e){return lb(e,Tb.text.primary)>=n?Tb.text.primary:Ib.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:a=700})=>{if(!(e=Lp({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Ep(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Ep(12,t?` (${t})`:"",JSON.stringify(e.main)));return Pb(e,"light",o,r),Pb(e,"dark",a,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Tb,light:Ib};return gm(Lp({common:Lp({},Sb),mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:c,name:"success"}),grey:wb,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const Nb=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const qb={textTransform:"uppercase"},Ab='"Roboto", "Helvetica", "Arial", sans-serif';function Db(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Ab,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,p=Rp(n,Nb),f=o/14,h=d||(e=>e/c*f+"rem"),m=(e,t,n,o,a)=>{return Lp({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===Ab?{letterSpacing:(i=o/t,Math.round(1e5*i)/1e5)+"em"}:{},a,u);var i},g={h1:m(a,96,1.167,-1.5),h2:m(a,60,1.2,-.5),h3:m(i,48,1.167,0),h4:m(i,34,1.235,.25),h5:m(i,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(i,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(i,16,1.5,.15),body2:m(i,14,1.43,.15),button:m(l,14,1.75,.4,qb),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,qb),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return gm(Lp({htmlFontSize:c,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function zb(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const jb=["none",zb(0,2,1,-1,0,1,1,0,0,1,3,0),zb(0,3,1,-2,0,2,2,0,0,1,5,0),zb(0,3,3,-2,0,3,4,0,0,1,8,0),zb(0,2,4,-1,0,4,5,0,0,1,10,0),zb(0,3,5,-1,0,5,8,0,0,1,14,0),zb(0,3,5,-1,0,6,10,0,0,1,18,0),zb(0,4,5,-2,0,7,10,1,0,2,16,1),zb(0,5,5,-3,0,8,10,1,0,3,14,2),zb(0,5,6,-3,0,9,12,1,0,3,16,2),zb(0,6,6,-3,0,10,14,1,0,4,18,3),zb(0,6,7,-4,0,11,15,1,0,4,20,3),zb(0,7,8,-4,0,12,17,2,0,5,22,4),zb(0,7,8,-4,0,13,19,2,0,5,24,4),zb(0,7,9,-4,0,14,21,2,0,5,26,4),zb(0,8,9,-5,0,15,22,2,0,6,28,5),zb(0,8,10,-5,0,16,24,2,0,6,30,5),zb(0,8,11,-5,0,17,26,2,0,6,32,5),zb(0,9,11,-5,0,18,28,2,0,7,34,6),zb(0,9,12,-6,0,19,29,2,0,7,36,6),zb(0,10,13,-6,0,20,31,3,0,8,38,7),zb(0,10,13,-6,0,21,33,3,0,8,40,7),zb(0,10,14,-6,0,22,35,3,0,8,42,7),zb(0,11,14,-7,0,23,36,3,0,9,44,8),zb(0,11,15,-7,0,24,38,3,0,9,46,8)],Fb=["duration","easing","delay"],Bb={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},$b={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Wb(e){return`${Math.round(e)}ms`}function Hb(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Ub(e){const t=Lp({},Bb,e.easing),n=Lp({},$b,e.duration);return Lp({getAutoHeightDuration:Hb,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:a=t.easeInOut,delay:i=0}=r;return Rp(r,Fb),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Wb(o)} ${a} ${"string"==typeof i?i:Wb(i)}`)).join(",")}},e,{easing:t,duration:n})}var Vb={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const Gb=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Kb(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:a={}}=e,i=Rp(e,Gb);if(e.vars)throw new Error(Ep(18));const l=Mb(r),s=Lg(e);let c=gm(s,{mixins:(u=s.breakpoints,d=n,Lp({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:jb.slice(),typography:Db(l,a),transitions:Ub(o),zIndex:Lp({},Vb)});var u,d;return c=gm(c,i),c=t.reduce(((e,t)=>gm(e,t)),c),c.unstable_sxConfig=Lp({},Sg,null==i?void 0:i.unstable_sxConfig),c.unstable_sx=function(e){return Eg({sx:e,theme:this})},c}var Zb=Kb();function Xb(){const e=Ig(Zb);return e[kp]||e}function Qb({props:e,name:t}){return iv({props:e,name:t,defaultTheme:Zb,themeId:kp})}var Jb,Yb={},ey={exports:{}};var ty,ny={exports:{}};var ry=r(um),oy=r(vm),ay=r(Im),iy=r(Kg),ly=r(Rg),sy=r(qg),cy=tb;Object.defineProperty(Yb,"__esModule",{value:!0});var uy=Yb.default=function(e={}){const{themeId:t,defaultTheme:n=Ey,rootShouldForwardProp:r=wy,slotShouldForwardProp:o=wy}=e,a=e=>(0,vy.default)((0,py.default)({},e,{theme:ky((0,py.default)({},e,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(e,i={})=>{(0,hy.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:c,skipSx:u,overridesResolver:d=Ly(Cy(s))}=i,p=(0,fy.default)(i,xy),f=void 0!==c?c:s&&"Root"!==s&&"root"!==s||!1,h=u||!1;let m=wy;"Root"===s||"root"===s?m=r:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,hy.default)(e,(0,py.default)({shouldForwardProp:m,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,my.isPlainObject)(e)?r=>Ry(e,(0,py.default)({},r,{theme:ky({theme:r.theme,defaultTheme:n,themeId:t})})):e,b=(r,...o)=>{let i=v(r);const s=o?o.map(v):[];l&&d&&s.push((e=>{const r=ky((0,py.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,a={};return Object.entries(o).forEach((([t,n])=>{a[t]=Ry(n,(0,py.default)({},e,{theme:r}))})),d(e,a)})),l&&!f&&s.push((e=>{var r;const o=ky((0,py.default)({},e,{defaultTheme:n,themeId:t}));return Ry({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},(0,py.default)({},e,{theme:o}))})),h||s.push(a);const c=s.length-o.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const u=g(i,...s);return e.muiName&&(u.muiName=e.muiName),u};return g.withConfig&&(b.withConfig=g.withConfig),b}},dy=Yb.shouldForwardProp=wy;Yb.systemDefaultTheme=void 0;var py=cy((Jb||(Jb=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(ey)),ey.exports)),fy=cy((ty||(ty=1,function(e){e.exports=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o},e.exports.__esModule=!0,e.exports.default=e.exports}(ny)),ny.exports)),hy=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=Sy(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(ry),my=oy;cy(ay),cy(iy);var gy=cy(ly),vy=cy(sy);const by=["ownerState"],yy=["variants"],xy=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Sy(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(Sy=function(e){return e?n:t})(e)}function wy(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Ey=Yb.systemDefaultTheme=(0,gy.default)(),Cy=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function ky({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function Ly(e){return e?(t,n)=>n[e]:null}function Ry(e,t){let{ownerState:n}=t,r=(0,fy.default)(t,by);const o="function"==typeof e?e((0,py.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>Ry(e,(0,py.default)({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,fy.default)(o,yy);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,py.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,py.default)({ownerState:n},r,n)):e.style))})),t}return o}const Oy=e=>dy(e)&&"classes"!==e,_y=uy({themeId:kp,defaultTheme:Zb,rootShouldForwardProp:Oy}),Iy=["theme"];function Ty(e){let{theme:t}=e,n=Rp(e,Iy);const r=t[kp];return om.jsx(Hv,Lp({},n,{themeId:r?kp:void 0,theme:r||t}))}const Py=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function My(){return My=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},My.apply(this,arguments)}function Ny(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function qy(e,t){return qy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qy(e,t)}function Ay(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,qy(e,t)}var Dy=!1,zy=V.createContext(null),jy="unmounted",Fy="exited",By="entering",$y="entered",Wy="exiting",Hy=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,a=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(o=Fy,r.appearStatus=By):o=$y:o=t.unmountOnExit||t.mountOnEnter?jy:Fy,r.state={status:o},r.nextCallback=null,r}Ay(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===jy?{status:Fy}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==By&&n!==$y&&(t=By):n!==By&&n!==$y||(t=Wy)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===By){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Sp.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Fy&&this.setState({status:jy})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Sp.findDOMNode(this),r],a=o[0],i=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||Dy?this.safeSetState({status:$y},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,i),this.safeSetState({status:By},(function(){t.props.onEntering(a,i),t.onTransitionEnd(s,(function(){t.safeSetState({status:$y},(function(){t.props.onEntered(a,i)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Sp.findDOMNode(this);t&&!Dy?(this.props.onExit(r),this.safeSetState({status:Wy},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Fy},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Fy},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Sp.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=o[0],i=o[1];this.props.addEndListener(a,i)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===jy)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=Ny(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return V.createElement(zy.Provider,{value:null},"function"==typeof n?n(e,r):V.cloneElement(V.Children.only(n),r))},t}(V.Component);function Uy(){}Hy.contextType=zy,Hy.propTypes={},Hy.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Uy,onEntering:Uy,onEntered:Uy,onExit:Uy,onExiting:Uy,onExited:Uy},Hy.UNMOUNTED=jy,Hy.EXITED=Fy,Hy.ENTERING=By,Hy.ENTERED=$y,Hy.EXITING=Wy;var Vy=Hy;function Gy(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ky(e,t){var n=Object.create(null);return e&&U.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&U.isValidElement(e)?t(e):e}(e)})),n}function Zy(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Xy(e,t,n){var r=Ky(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),a=[];for(var i in e)i in t?a.length&&(o[i]=a,a=[]):a.push(i);var l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var c=o[s][r];l[o[s][r]]=n(c)}l[s]=n(s)}for(r=0;r<a.length;r++)l[a[r]]=n(a[r]);return l}(t,r);return Object.keys(o).forEach((function(a){var i=o[a];if(U.isValidElement(i)){var l=a in t,s=a in r,c=t[a],u=U.isValidElement(c)&&!c.props.in;!s||l&&!u?s||!l||u?s&&l&&U.isValidElement(c)&&(o[a]=U.cloneElement(i,{onExited:n.bind(null,i),in:c.props.in,exit:Zy(i,"exit",e),enter:Zy(i,"enter",e)})):o[a]=U.cloneElement(i,{in:!1}):o[a]=U.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:Zy(i,"exit",e),enter:Zy(i,"enter",e)})}})),o}var Qy=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Jy=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Gy(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Ay(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,Ky(n.children,(function(e){return U.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:Zy(e,"appear",n),enter:Zy(e,"enter",n),exit:Zy(e,"exit",n)})}))):Xy(e,o,a),firstRender:!1}},n.handleExited=function(e,t){var n=Ky(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=My({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Ny(e,["component","childFactory"]),o=this.state.contextValue,a=Qy(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?V.createElement(zy.Provider,{value:o},a):V.createElement(zy.Provider,{value:o},V.createElement(t,r,a))},t}(V.Component);Jy.propTypes={},Jy.defaultProps={component:"div",childFactory:function(e){return e}};var Yy=Jy;const ex=Wg("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),tx=["center","classes","className"];let nx,rx,ox,ax,ix=e=>e;const lx=Ph(nx||(nx=ix`
34
34
  0% {
35
35
  transform: scale(0);
36
36
  opacity: 0.1;
@@ -40,7 +40,7 @@
40
40
  transform: scale(1);
41
41
  opacity: 0.3;
42
42
  }
43
- `)),Jb=Ih(Gb||(Gb=Xb`
43
+ `)),sx=Ph(rx||(rx=ix`
44
44
  0% {
45
45
  opacity: 1;
46
46
  }
@@ -48,7 +48,7 @@
48
48
  100% {
49
49
  opacity: 0;
50
50
  }
51
- `)),Yb=Ih(Kb||(Kb=Xb`
51
+ `)),cx=Ph(ox||(ox=ix`
52
52
  0% {
53
53
  transform: scale(1);
54
54
  }
@@ -60,7 +60,7 @@
60
60
  100% {
61
61
  transform: scale(1);
62
62
  }
63
- `)),ey=yb("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),ty=yb((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:i,in:l,onExited:s,timeout:c}=e,[u,d]=H.useState(!1),p=rv(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:i,height:i,top:-i/2+a,left:-i/2+o},h=rv(n.child,u&&n.childLeaving,r&&n.childPulsate);return l||u||d(!0),H.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,c);return()=>{clearTimeout(e)}}}),[s,l,c]),tm.jsx("span",{className:p,style:f,children:tm.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Zb||(Zb=Xb`
63
+ `)),ux=_y("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),dx=_y((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:i,in:l,onExited:s,timeout:c}=e,[u,d]=U.useState(!1),p=jg(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:i,height:i,top:-i/2+a,left:-i/2+o},h=jg(n.child,u&&n.childLeaving,r&&n.childPulsate);return l||u||d(!0),U.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,c);return()=>{clearTimeout(e)}}}),[s,l,c]),om.jsx("span",{className:p,style:f,children:om.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(ax||(ax=ix`
64
64
  opacity: 0;
65
65
  position: absolute;
66
66
 
@@ -103,7 +103,7 @@
103
103
  animation-iteration-count: infinite;
104
104
  animation-delay: 200ms;
105
105
  }
106
- `),Hb.rippleVisible,Qb,550,(({theme:e})=>e.transitions.easing.easeInOut),Hb.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Hb.child,Hb.childLeaving,Jb,550,(({theme:e})=>e.transitions.easing.easeInOut),Hb.childPulsate,Yb,(({theme:e})=>e.transitions.easing.easeInOut)),ny=H.forwardRef((function(e,t){const n=vb({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a}=n,i=kp(n,Ub),[l,s]=H.useState([]),c=H.useRef(0),u=H.useRef(null);H.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[l]);const d=H.useRef(!1),p=H.useRef(0),f=H.useRef(null),h=H.useRef(null);H.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const m=H.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:a,cb:i}=e;s((e=>[...e,tm.jsx(ty,{classes:{ripple:rv(o.ripple,Hb.ripple),rippleVisible:rv(o.rippleVisible,Hb.rippleVisible),ripplePulsate:rv(o.ripplePulsate,Hb.ripplePulsate),child:rv(o.child,Hb.child),childLeaving:rv(o.childLeaving,Hb.childLeaving),childPulsate:rv(o.childPulsate,Hb.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:a},c.current)])),c.current+=1,u.current=i}),[o]),g=H.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:a=r||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=i?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(a||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(s.width/2),u=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-s.left),u=Math.round(n-s.top)}if(a)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-u),u)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,m]),v=H.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=H.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{b(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),u.current=t}),[]);return H.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),tm.jsx(ey,Cp({className:rv(Hb.root,o.root,a),ref:h},i,{children:tm.jsx(Wb,{component:null,exit:!0,children:l})}))}));var ry=ny;function oy(e){return $m("MuiButtonBase",e)}const ay=Wm("MuiButtonBase",["root","disabled","focusVisible"]),iy=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],ly=yb("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${ay.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),sy=H.forwardRef((function(e,t){const n=vb({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:a,className:i,component:l="button",disabled:s=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:w,onMouseUp:E,onTouchEnd:C,onTouchMove:k,onTouchStart:R,tabIndex:L=0,TouchRippleProps:O,touchRippleRef:I,type:_}=n,T=kp(n,iy),P=H.useRef(null),M=H.useRef(null),N=km(M,I),{isFocusVisibleRef:q,onFocus:A,onBlur:z,ref:D}=Nm(),[j,F]=H.useState(!1);s&&j&&F(!1),H.useImperativeHandle(r,(()=>({focusVisible:()=>{F(!0),P.current.focus()}})),[]);const[B,$]=H.useState(!1);H.useEffect((()=>{$(!0)}),[]);const W=B&&!c&&!s;function U(e,t,n=u){return Cm((r=>{t&&t(r);return!n&&M.current&&M.current[e](r),!0}))}H.useEffect((()=>{j&&d&&!c&&B&&M.current.pulsate()}),[c,d,j,B]);const V=U("start",S),G=U("stop",m),K=U("stop",g),Z=U("stop",E),X=U("stop",(e=>{j&&e.preventDefault(),w&&w(e)})),Q=U("start",R),J=U("stop",C),Y=U("stop",k),ee=U("stop",(e=>{z(e),!1===q.current&&F(!1),f&&f(e)}),!1),te=Cm((e=>{P.current||(P.current=e.currentTarget),A(e),!0===q.current&&(F(!0),b&&b(e)),v&&v(e)})),ne=()=>{const e=P.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=H.useRef(!1),oe=Cm((e=>{d&&!re.current&&j&&M.current&&" "===e.key&&(re.current=!0,M.current.stop(e,(()=>{M.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),ae=Cm((e=>{d&&" "===e.key&&M.current&&j&&!e.defaultPrevented&&(re.current=!1,M.current.stop(e,(()=>{M.current.pulsate(e)}))),x&&x(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ie=l;"button"===ie&&(T.href||T.to)&&(ie=p);const le={};"button"===ie?(le.type=void 0===_?"button":_,le.disabled=s):(T.href||T.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=km(t,D,P),ce=Cp({},n,{centerRipple:o,component:l,disabled:s,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:L,focusVisible:j}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Dm({root:["root",t&&"disabled",n&&"focusVisible"]},oy,o);return n&&r&&(a.root+=` ${r}`),a})(ce);return tm.jsxs(ly,Cp({as:ie,className:rv(ue.root,i),ownerState:ce,onBlur:ee,onClick:h,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ae,onMouseDown:V,onMouseLeave:X,onMouseUp:Z,onDragLeave:K,onTouchEnd:J,onTouchMove:Y,onTouchStart:Q,ref:se,tabIndex:s?-1:L,type:_},le,T,{children:[a,W?tm.jsx(ry,Cp({ref:N,center:o},O)):null]}))}));var cy=sy;function uy(e){return $m("MuiButton",e)}var dy=Wm("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var py=H.createContext({});var fy=H.createContext(void 0);const hy=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],my=e=>Cp({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),gy=yb(cy,{shouldForwardProp:e=>bb(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${pm(n.color)}`],t[`size${pm(n.size)}`],t[`${n.variant}Size${pm(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],a="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return Cp({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":Cp({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Cv(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Cv(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Cv(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":Cp({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${dy.focusVisible}`]:Cp({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${dy.disabled}`]:Cp({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Cv(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${dy.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${dy.disabled}`]:{boxShadow:"none"}})),vy=yb("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${pm(n.size)}`]]}})((({ownerState:e})=>Cp({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},my(e)))),by=yb("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${pm(n.size)}`]]}})((({ownerState:e})=>Cp({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},my(e)))),yy=H.forwardRef((function(e,t){const n=H.useContext(py),r=H.useContext(fy),o=vb({props:zm(n,e),name:"MuiButton"}),{children:a,color:i="primary",component:l="button",className:s,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:v,variant:b="text"}=o,y=kp(o,hy),x=Cp({},o,{color:i,component:l,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:h,size:m,type:v,variant:b}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,classes:i}=e;return Cp({},i,Dm({root:["root",a,`${a}${pm(t)}`,`size${pm(o)}`,`${a}Size${pm(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${pm(o)}`],endIcon:["endIcon",`iconSize${pm(o)}`]},uy,i))})(x),w=g&&tm.jsx(vy,{className:S.startIcon,ownerState:x,children:g}),E=p&&tm.jsx(by,{className:S.endIcon,ownerState:x,children:p}),C=r||"";return tm.jsxs(gy,Cp({ownerState:x,className:rv(n.className,S.root,s,C),component:l,disabled:c,focusRipple:!d,focusVisibleClassName:rv(S.focusVisible,f),ref:t,type:v},y,{classes:S,children:[w,a,E]}))}));var xy=yy,Sy={typography:{fontSize:14,htmlFontSize:16,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontFamily:['"Source Sans Pro"','"Segoe UI"','"Helvetica Neue"',"-apple-system","Arial","sans-serif"].join(","),button:{textTransform:"initial",fontWeight:400}},shape:{borderRadius:2},shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],props:{MuiButtonBase:{disableRipple:!0,disableTouchRipple:!0,focusRipple:!1},MuiCheckbox:{color:"secondary"},MuiRadio:{color:"secondary"},MuiTabs:{indicatorColor:"secondary"}}};const wy={green:"#009845",greenPale:"#0AAF54",red:"#DC423F",redPale:"#F05551",blue:"#3F8AB3",bluePale:"#469DCD",grey100:"#ffffff",grey98:"#FBFBFB",grey95:"#F2F2F2",grey90:"#E6E6E6",grey85:"#D9D9D9",grey55:"#8C8C8C",grey30:"#4D4D4D",grey25:"#404040",grey20:"#333333",grey15:"#262626",grey10:"#1A1A1A",grey5:"#0E0E0E",grey0:"#000000"},Ey={mode:"light",palette:{primary:{main:wy.grey25,contrastText:wy.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:wy.grey25,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)",light:wy.grey100,dark:wy.grey0},action:{active:"#545454",hover:"rgba(0, 0, 0, 0.03)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.05)",disabled:"rgba(0, 0, 0, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},background:{paper:wy.grey100,default:wy.grey100,lightest:wy.grey100,lighter:wy.grey98,darker:wy.grey95,darkest:wy.grey90},custom:{focusBorder:wy.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)"},selected:{main:wy.green,alternative:"#E4E4E4",excluded:"#BEBEBE",selectedExcluded:"#BEBEBE",possible:wy.grey100,selectedContrastText:wy.grey100,mainContrastText:wy.grey100,alternativeContrastText:wy.grey25,excludedContrastText:wy.grey25,selectedExcludedContrastText:wy.grey100,possibleContrastText:wy.grey0},btn:{normal:"rgba(255, 255, 255, 0.6)",hover:"rgba(0, 0, 0, 0.03)",active:"rgba(0, 0, 0, 0.1)",disabled:"rgba(255, 255, 255, 0.6)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.15)"}}},Cy={mode:"dark",palette:{primary:{main:wy.grey20,contrastText:wy.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:wy.grey100,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)",light:wy.grey100,dark:wy.grey0},action:{active:wy.grey100,hover:"rgba(255, 255, 255, 0.05)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.03)",disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},divider:"rgba(0,0,0,0.3)",background:{default:"#323232",paper:"#323232",lightest:wy.grey25,lighter:wy.grey20,darker:wy.grey15,darkest:wy.grey10},custom:{focusBorder:wy.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)"},selected:{main:wy.green,alternative:wy.grey20,excluded:wy.grey10,selectedExcluded:wy.grey10,possible:wy.grey80,selectedContrastText:wy.grey100,mainContrastText:wy.grey100,alternativeContrastText:wy.grey100,excludedContrastText:wy.grey100,selectedExcludedContrastText:wy.grey100,possibleContrastText:wy.grey0},btn:{normal:"rgba(255, 255, 255, 0.15)",hover:"rgba(255, 255, 255, 0.25)",active:"rgba(0, 0, 0, 0.6)",disabled:"rgba(255, 255, 255, 0.15)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.30)"}}},ky={},Ry=e=>({MuiTypography:{root:{color:e.palette.text.primary}},MuiGrid:{variants:[{props:{alignItems:"center"},style:{"align-items":"center"}}]},MuiButtonBase:{root:{borderRadius:2,border:"1px solid transparent","&:focus":{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)}}},MuiIconButton:{root:{padding:7,borderRadius:2,border:"1px solid transparent","&:hover":{backgroundColor:e.palette.btn.hover},"&:focus-visible":{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)},"&:active":{borderColor:"transparent",boxShadow:"none",backgroundColor:e.palette.btn.active},"&:not(:active):not(:focus-visible)":{borderColor:"transparent",boxShadow:"none"}}},MuiOutlinedInput:{root:{backgroundColor:e.palette.custom.inputBackground,"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.btn.border},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.custom.focusBorder,borderWidth:2}}},MuiButton:{outlined:{padding:"3px 11px",["&.".concat(dy.focusVisible)]:{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)}},contained:{color:e.palette.text.primary,padding:"3px 11px",border:"1px solid ".concat(e.palette.btn.border),backgroundColor:e.palette.btn.normal,boxShadow:"none",["&.".concat(dy.focusVisible)]:{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)},"&:hover":{backgroundColor:e.palette.btn.hover,borderColor:e.palette.btn.borderHover,boxShadow:"none",["&.".concat(dy.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(dy.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function Ly(e){let t=Ey,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=Cy));const r=JSON.stringify(t);if(ky[r])return ky[r];const o={palette:a(a({type:t.mode},Sy.palette),t.palette),typography:a({},Sy.typography),shadows:Sy.shadows,props:a({},Sy.props),shape:a({},Sy.shape)};return ky[r]=hb(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:a={},styleOverrides:i={}}=e,l=Cp({},kp(e,jv),{components:{}});Object.keys(t).forEach((e=>{const n=l.components[e]||{};n.defaultProps=t[e],l.components[e]=n})),Object.keys(a).forEach((e=>{const t=l.components[e]||{};t.defaultProps=a[e],l.components[e]=t})),Object.keys(i).forEach((e=>{const t=l.components[e]||{};t.styleOverrides=i[e],l.components[e]=t})),Object.keys(r).forEach((e=>{const t=l.components[e]||{};t.styleOverrides=r[e],l.components[e]=t})),l.spacing=vg(e.spacing);const s=Vm(e.breakpoints||{}),c=l.spacing;l.mixins=Cp({gutters:(e={})=>Cp({paddingLeft:c(2),paddingRight:c(2)},e,{[s.up("sm")]:Cp({paddingLeft:c(3),paddingRight:c(3)},e[s.up("sm")])})},n);const{type:u,mode:d}=o,p=kp(o,Fv),f=d||u||"light";return l.palette=Cp({text:{hint:"dark"===f?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:f,type:f},p),l}(a(a({},o),{},{overrides:Ry(o)}))),ky[r].name=n,ky[r]}Fm.configure((e=>"njs-".concat("b12a","-").concat(e.replace("Mui",""))));var Oy=U.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null,modelStore:{},selectionStore:{}});const Iy={active:!0,select:!0,passive:!0,edit:!1};function _y(e){const t={},n={},r=function(e){const{constraints:t={},interactions:n={}}=e;if(Object.keys(n).length>0)return n;const r={};return Object.keys(t).forEach((e=>{r[e]=!t[e]})),r}(e);Object.keys(Iy).forEach((e=>{void 0!==r[e]?(t[e]=r[e],n[e]=!r[e]):(t[e]=Iy[e],n[e]=!Iy[e])})),e.constraints=n,e.interactions=t}var Ty=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};const t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=[],r={get:e=>t[e],set:(n,r)=>{if(void 0===n||"object"==typeof n)throw new Error("Invalid key: ".concat(JSON.stringify(n)));return t[n]=r,e({type:"SET",value:r}),r},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));t[e]=null},dispatch:e=>{n.forEach((n=>n(e?{}:t)))}};return[()=>{const[,e]=H.useState(t);return H.useEffect((()=>(n.push(e),()=>{const t=n.indexOf(e);n.splice(t,1)})),[e]),[r]},r]};const Py=H.forwardRef(((e,t)=>{let{initialContext:n,renderCallback:r,modelStore:o,selectionStore:a}=e;const[i,l]=H.useState(n),[s,c]=H.useState(),{theme:u}=H.useMemo((()=>({theme:Ly(s)})),[s]),[d,p]=H.useState([]);return H.useEffect((()=>{r&&r()}),[]),H.useImperativeHandle(t,(()=>({setComps(e){p([...e])},setMuiThemeName:c,setContext:e=>l((t=>JSON.stringify(t)!==JSON.stringify(e)?e:t))})),[]),i&&(i.modelStore=o,i.selectionStore=a),U.createElement(rm,{injectFirst:!0},U.createElement(Sb,{theme:u},U.createElement(Oy.Provider,{value:i},d)))}));function My(e){let t,{app:n,context:r}=e;const o=new Promise((e=>{t=e})),a=U.createRef(),i=document.createElement("div");i.style.display="none",i.setAttribute("data-nebulajs-version","5.0.0-alpha.2"),i.setAttribute("data-app-id",n.id),document.body.appendChild(i),r&&_y(r);const l=function(e){const[t,n]=Ty({}),[r,o]=Ty({}),[a,i]=Ty({}),[l,s]=Ty({}),[c,u]=Ty({}),[,d]=Ty({}),p=e=>{let{type:t,value:r}=e;const a=d.get(r.id);d.set(r.id,{});const l=()=>{o.clear(r.id),u.set(r.id,{}),u.dispatch(!0)},c=()=>{r.removeListener("changed",l),n.clear(r.id),o.clear(r.id),i.clear(r.id),s.clear(r.id),u.clear(r.id),d.clear(r.id)};return"SET"===t&&(a||(r.on("changed",l),r.once("closed",(()=>{c()})))),c},[f,h]=Ty({},p);return{subscribe:e=>{const t=p({type:"SET",value:e});return()=>{t(),h.clear(e.id)}},useModelStore:f,modelStore:h,useModelChangedStore:c,useRpcResultStore:t,rpcResultStore:n,useRpcRequestStore:r,rpcRequestStore:o,useRpcRequestModelStore:l,rpcRequestModelStore:s,useRpcRequestSessionModelStore:a,rpcRequestSessionModelStore:i,modelChangedStore:u,appId:e}}(n.id),s=function(e){const[t,n]=Ty({}),[r,o]=Ty({}),[a,i]=Ty({});return{useAppSelectionsStore:t,useAppModalStore:r,appSelectionsStore:n,appModalStore:o,useModalObjectStore:a,modalObjectStore:i,appId:e}}(n.id);dt.createRoot(i).render(U.createElement(Py,{ref:a,initialContext:r,renderCallback:t,modelStore:l,selectionStore:s}));const c={},u=[];return[{toggleFocusOfCells(e){Object.keys(c).forEach((t=>{c[t].current.toggleFocus(t===e)}))},cells:c,addCell(e,t){c[e]=t},removeCell(e){delete c[e]},add(e){(async()=>{await o,u.push(e),a.current.setComps(u)})()},remove(e){(async()=>{await o;const t=u.indexOf(e);-1!==t&&u.splice(t,1),a.current.setComps(u)})()},setMuiThemeName(e){(async()=>{await o,a.current.setMuiThemeName(e)})()},context(e){(async()=>{await o,e&&_y(e),a.current.setContext(e)})()}},l,s,a,o]}function Ny(e){return $m("MuiSvgIcon",e)}Wm("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const qy=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Ay=yb("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${pm(n.color)}`],t[`fontSize${pm(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,a,i,l,s,c,u,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(a=e.typography)||null==(i=a.pxToRem)?void 0:i.call(a,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}})),zy=H.forwardRef((function(e,t){const n=vb({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:a="inherit",component:i="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=n,p=kp(n,qy),f=H.isValidElement(r)&&"svg"===r.type,h=Cp({},n,{color:a,component:i,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:f}),m={};c||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return Dm({root:["root","inherit"!==t&&`color${pm(t)}`,`fontSize${pm(n)}`]},Ny,r)})(h);return tm.jsxs(Ay,Cp({as:i,className:rv(g.root,o),focusable:"false",color:s,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},m,p,f&&r.props,{ownerState:h,children:[f?r.props.children:r,u?tm.jsx("title",{children:u}):null]}))}));function Dy(e,t){function n(n,r){return tm.jsx(zy,Cp({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=zy.muiName,H.memo(H.forwardRef(n))}zy.muiName="SvgIcon";const jy={configure:e=>{Fm.configure(e)}};var Fy=Object.freeze({__proto__:null,capitalize:pm,createChainedFunction:fm,createSvgIcon:Dy,debounce:hm,deprecatedPropType:function(e,t){return()=>null},isMuiElement:mm,ownerDocument:gm,ownerWindow:vm,requirePropFactory:function(e,t){return()=>null},setRef:bm,unstable_ClassNameGenerator:jy,unstable_useEnhancedEffect:ym,unstable_useId:wm,unsupportedProp:function(e,t,n,r,o){return null},useControlled:Em,useEventCallback:Cm,useForkRef:km,useIsFocusVisible:Nm});const By=e=>e.scrollTop;function $y(e,t){var n,r;const{timeout:o,easing:a,style:i={}}=e;return{duration:null!=(n=i.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=i.transitionTimingFunction)?r:"object"==typeof a?a[t.mode]:a,delay:i.transitionDelay}}function Wy(e){return $m("MuiPaper",e)}Wm("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Hy=["className","component","elevation","square","variant"],Uy=yb("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return Cp({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&Cp({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Cv("#fff",wb(t.elevation))}, ${Cv("#fff",wb(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),Vy=H.forwardRef((function(e,t){const n=vb({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:a=1,square:i=!1,variant:l="elevation"}=n,s=kp(n,Hy),c=Cp({},n,{component:o,elevation:a,square:i,variant:l}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Dm({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Wy,o)})(c);return tm.jsx(Uy,Cp({as:o,ownerState:c,className:rv(u.root,r),ref:t},s))}));var Gy=Vy;function Ky(e){return $m("MuiIconButton",e)}const Zy=Wm("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),Xy=["edge","children","className","color","disabled","disableFocusRipple","size"],Qy=yb(cy,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${pm(n.color)}`],n.edge&&t[`edge${pm(n.edge)}`],t[`size${pm(n.size)}`]]}})((({theme:e,ownerState:t})=>Cp({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Cv(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>{var n;const r=null==(n=(e.vars||e).palette)?void 0:n[t.color];return Cp({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&Cp({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":Cp({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Cv(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Zy.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),Jy=H.forwardRef((function(e,t){const n=vb({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:a,color:i="default",disabled:l=!1,disableFocusRipple:s=!1,size:c="medium"}=n,u=kp(n,Xy),d=Cp({},n,{edge:r,color:i,disabled:l,disableFocusRipple:s,size:c}),p=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:a}=e;return Dm({root:["root",n&&"disabled","default"!==r&&`color${pm(r)}`,o&&`edge${pm(o)}`,`size${pm(a)}`]},Ky,t)})(d);return tm.jsx(Qy,Cp({className:rv(p.root,a),centerRipple:!0,focusRipple:!s,disabled:l,ref:t,ownerState:d},u,{children:o}))}));var Yy=Jy;function ex(e){return $m("MuiTypography",e)}Wm("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const tx=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],nx=yb("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${pm(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Cp({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),rx={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ox={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},ax=H.forwardRef((function(e,t){const n=vb({props:e,name:"MuiTypography"}),r=(e=>ox[e]||e)(n.color),o=tv(Cp({},n,{color:r})),{align:a="inherit",className:i,component:l,gutterBottom:s=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=rx}=o,f=kp(o,tx),h=Cp({},o,{align:a,color:r,className:i,component:l,gutterBottom:s,noWrap:c,paragraph:u,variant:d,variantMapping:p}),m=l||(u?"p":p[d]||rx[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e;return Dm({root:["root",a,"inherit"!==e.align&&`align${pm(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},ex,i)})(h);return tm.jsx(nx,Cp({as:m,ref:t,ownerState:h,className:rv(g.root,i)},f))}));var ix=ax;function lx(){return lx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lx.apply(this,arguments)}function sx(e){return"string"==typeof e}function cx(e,t,n){return void 0===e||sx(e)?t:lx({},t,{ownerState:lx({},t.ownerState,n)})}const ux={disableDefaultClasses:!1},dx=H.createContext(ux);function px(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function fx(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function hx(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const mx=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function gx(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=fx(e,mx),l=a?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:s,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const e=rv(null==n?void 0:n.className,a,null==o?void 0:o.className,null==r?void 0:r.className),t=lx({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),i=lx({},n,o,r);return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}const i=px(lx({},o,r)),l=hx(r),s=hx(o),c=t(i),u=rv(null==c?void 0:c.className,null==n?void 0:n.className,a,null==o?void 0:o.className,null==r?void 0:r.className),d=lx({},null==c?void 0:c.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=lx({},c,n,s,l);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}(lx({},i,{externalSlotProps:l}));return cx(n,lx({},s,{ref:km(c,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o)}const vx=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function bx(e){const t=[],n=[];return Array.from(e.querySelectorAll(vx)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function yx(){return!0}function xx(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=bx,isEnabled:i=yx,open:l}=e,s=H.useRef(!1),c=H.useRef(null),u=H.useRef(null),d=H.useRef(null),p=H.useRef(null),f=H.useRef(!1),h=H.useRef(null),m=km(t.ref,h),g=H.useRef(null);H.useEffect((()=>{l&&h.current&&(f.current=!n)}),[n,l]),H.useEffect((()=>{if(!l||!h.current)return;const e=gm(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),H.useEffect((()=>{if(!l||!h.current)return;const e=gm(h.current),t=t=>{g.current=t,!r&&i()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,u.current&&u.current.focus())},n=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!i()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==c.current&&e.activeElement!==u.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==u.current||(n=a(h.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,i,l,a]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return tm.jsxs(H.Fragment,{children:[tm.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),H.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),tm.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelEnd"})]})}var Sx="top",wx="bottom",Ex="right",Cx="left",kx="auto",Rx=[Sx,wx,Ex,Cx],Lx="start",Ox="end",Ix="clippingParents",_x="viewport",Tx="popper",Px="reference",Mx=Rx.reduce((function(e,t){return e.concat([t+"-"+Lx,t+"-"+Ox])}),[]),Nx=[].concat(Rx,[kx]).reduce((function(e,t){return e.concat([t,t+"-"+Lx,t+"-"+Ox])}),[]),qx=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Ax(e){return e?(e.nodeName||"").toLowerCase():null}function zx(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Dx(e){return e instanceof zx(e).Element||e instanceof Element}function jx(e){return e instanceof zx(e).HTMLElement||e instanceof HTMLElement}function Fx(e){return"undefined"!=typeof ShadowRoot&&(e instanceof zx(e).ShadowRoot||e instanceof ShadowRoot)}var Bx={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];jx(o)&&Ax(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});jx(r)&&Ax(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function $x(e){return e.split("-")[0]}var Wx=Math.max,Hx=Math.min,Ux=Math.round;function Vx(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Gx(){return!/^((?!chrome|android).)*safari/i.test(Vx())}function Kx(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&jx(e)&&(o=e.offsetWidth>0&&Ux(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Ux(r.height)/e.offsetHeight||1);var i=(Dx(e)?zx(e):window).visualViewport,l=!Gx()&&n,s=(r.left+(l&&i?i.offsetLeft:0))/o,c=(r.top+(l&&i?i.offsetTop:0))/a,u=r.width/o,d=r.height/a;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s,x:s,y:c}}function Zx(e){var t=Kx(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Xx(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Fx(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Qx(e){return zx(e).getComputedStyle(e)}function Jx(e){return["table","td","th"].indexOf(Ax(e))>=0}function Yx(e){return((Dx(e)?e.ownerDocument:e.document)||window.document).documentElement}function eS(e){return"html"===Ax(e)?e:e.assignedSlot||e.parentNode||(Fx(e)?e.host:null)||Yx(e)}function tS(e){return jx(e)&&"fixed"!==Qx(e).position?e.offsetParent:null}function nS(e){for(var t=zx(e),n=tS(e);n&&Jx(n)&&"static"===Qx(n).position;)n=tS(n);return n&&("html"===Ax(n)||"body"===Ax(n)&&"static"===Qx(n).position)?t:n||function(e){var t=/firefox/i.test(Vx());if(/Trident/i.test(Vx())&&jx(e)&&"fixed"===Qx(e).position)return null;var n=eS(e);for(Fx(n)&&(n=n.host);jx(n)&&["html","body"].indexOf(Ax(n))<0;){var r=Qx(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function rS(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function oS(e,t,n){return Wx(e,Hx(t,n))}function aS(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function iS(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var lS={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,l=$x(n.placement),s=rS(l),c=[Cx,Ex].indexOf(l)>=0?"height":"width";if(a&&i){var u=function(e,t){return aS("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:iS(e,Rx))}(o.padding,n),d=Zx(a),p="y"===s?Sx:Cx,f="y"===s?wx:Ex,h=n.rects.reference[c]+n.rects.reference[s]-i[s]-n.rects.popper[c],m=i[s]-n.rects.reference[s],g=nS(a),v=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,b=h/2-m/2,y=u[p],x=v-d[c]-u[f],S=v/2-d[c]/2+b,w=oS(y,S,x),E=s;n.modifiersData[r]=((t={})[E]=w,t.centerOffset=w-S,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Xx(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function sS(e){return e.split("-")[1]}var cS={top:"auto",right:"auto",bottom:"auto",left:"auto"};function uS(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=i.x,f=void 0===p?0:p,h=i.y,m=void 0===h?0:h,g="function"==typeof u?u({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var v=i.hasOwnProperty("x"),b=i.hasOwnProperty("y"),y=Cx,x=Sx,S=window;if(c){var w=nS(n),E="clientHeight",C="clientWidth";if(w===zx(n)&&"static"!==Qx(w=Yx(n)).position&&"absolute"===l&&(E="scrollHeight",C="scrollWidth"),o===Sx||(o===Cx||o===Ex)&&a===Ox)x=wx,m-=(d&&w===S&&S.visualViewport?S.visualViewport.height:w[E])-r.height,m*=s?1:-1;if(o===Cx||(o===Sx||o===wx)&&a===Ox)y=Ex,f-=(d&&w===S&&S.visualViewport?S.visualViewport.width:w[C])-r.width,f*=s?1:-1}var k,R=Object.assign({position:l},c&&cS),L=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Ux(n*o)/o||0,y:Ux(r*o)/o||0}}({x:f,y:m},zx(n)):{x:f,y:m};return f=L.x,m=L.y,s?Object.assign({},R,((k={})[x]=b?"0":"",k[y]=v?"0":"",k.transform=(S.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",k)):Object.assign({},R,((t={})[x]=b?m+"px":"",t[y]=v?f+"px":"",t.transform="",t))}var dS={passive:!0};var pS={left:"right",right:"left",bottom:"top",top:"bottom"};function fS(e){return e.replace(/left|right|bottom|top/g,(function(e){return pS[e]}))}var hS={start:"end",end:"start"};function mS(e){return e.replace(/start|end/g,(function(e){return hS[e]}))}function gS(e){var t=zx(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function vS(e){return Kx(Yx(e)).left+gS(e).scrollLeft}function bS(e){var t=Qx(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function yS(e){return["html","body","#document"].indexOf(Ax(e))>=0?e.ownerDocument.body:jx(e)&&bS(e)?e:yS(eS(e))}function xS(e,t){var n;void 0===t&&(t=[]);var r=yS(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=zx(r),i=o?[a].concat(a.visualViewport||[],bS(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(xS(eS(i)))}function SS(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function wS(e,t,n){return t===_x?SS(function(e,t){var n=zx(e),r=Yx(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,l=0,s=0;if(o){a=o.width,i=o.height;var c=Gx();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:i,x:l+vS(e),y:s}}(e,n)):Dx(t)?function(e,t){var n=Kx(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):SS(function(e){var t,n=Yx(e),r=gS(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=Wx(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Wx(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+vS(e),s=-r.scrollTop;return"rtl"===Qx(o||n).direction&&(l+=Wx(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:l,y:s}}(Yx(e)))}function ES(e,t,n,r){var o="clippingParents"===t?function(e){var t=xS(eS(e)),n=["absolute","fixed"].indexOf(Qx(e).position)>=0&&jx(e)?nS(e):e;return Dx(n)?t.filter((function(e){return Dx(e)&&Xx(e,n)&&"body"!==Ax(e)})):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],l=a.reduce((function(t,n){var o=wS(e,n,r);return t.top=Wx(o.top,t.top),t.right=Hx(o.right,t.right),t.bottom=Hx(o.bottom,t.bottom),t.left=Wx(o.left,t.left),t}),wS(e,i,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function CS(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?$x(o):null,i=o?sS(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(a){case Sx:t={x:l,y:n.y-r.height};break;case wx:t={x:l,y:n.y+n.height};break;case Ex:t={x:n.x+n.width,y:s};break;case Cx:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=a?rS(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case Lx:t[c]=t[c]-(n[u]/2-r[u]/2);break;case Ox:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function kS(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.strategy,i=void 0===a?e.strategy:a,l=n.boundary,s=void 0===l?Ix:l,c=n.rootBoundary,u=void 0===c?_x:c,d=n.elementContext,p=void 0===d?Tx:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,v=aS("number"!=typeof g?g:iS(g,Rx)),b=p===Tx?Px:Tx,y=e.rects.popper,x=e.elements[h?b:p],S=ES(Dx(x)?x:x.contextElement||Yx(e.elements.popper),s,u,i),w=Kx(e.elements.reference),E=CS({reference:w,element:y,strategy:"absolute",placement:o}),C=SS(Object.assign({},y,E)),k=p===Tx?C:w,R={top:S.top-k.top+v.top,bottom:k.bottom-S.bottom+v.bottom,left:S.left-k.left+v.left,right:k.right-S.right+v.right},L=e.modifiersData.offset;if(p===Tx&&L){var O=L[o];Object.keys(R).forEach((function(e){var t=[Ex,wx].indexOf(e)>=0?1:-1,n=[Sx,wx].indexOf(e)>=0?"y":"x";R[e]+=O[n]*t}))}return R}function RS(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,c=void 0===s?Nx:s,u=sS(r),d=u?l?Mx:Mx.filter((function(e){return sS(e)===u})):Rx,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=kS(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[$x(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}var LS={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0===i||i,s=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,v=$x(g),b=s||(v===g||!h?[fS(g)]:function(e){if($x(e)===kx)return[];var t=fS(e);return[mS(e),t,mS(t)]}(g)),y=[g].concat(b).reduce((function(e,n){return e.concat($x(n)===kx?RS(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),x=t.rects.reference,S=t.rects.popper,w=new Map,E=!0,C=y[0],k=0;k<y.length;k++){var R=y[k],L=$x(R),O=sS(R)===Lx,I=[Sx,wx].indexOf(L)>=0,_=I?"width":"height",T=kS(t,{placement:R,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),P=I?O?Ex:Cx:O?wx:Sx;x[_]>S[_]&&(P=fS(P));var M=fS(P),N=[];if(a&&N.push(T[L]<=0),l&&N.push(T[P]<=0,T[M]<=0),N.every((function(e){return e}))){C=R,E=!1;break}w.set(R,N)}if(E)for(var q=function(e){var t=y.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},A=h?3:1;A>0;A--){if("break"===q(A))break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function OS(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function IS(e){return[Sx,Ex,wx,Cx].some((function(t){return e[t]>=0}))}var _S={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=Nx.reduce((function(e,n){return e[n]=function(e,t,n){var r=$x(e),o=[Cx,Sx].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],l=a[1];return i=i||0,l=(l||0)*o,[Cx,Ex].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}(n,t.rects,a),e}),{}),l=i[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}};var TS={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0!==i&&i,s=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,m=void 0===h?0:h,g=kS(t,{boundary:s,rootBoundary:c,padding:d,altBoundary:u}),v=$x(t.placement),b=sS(t.placement),y=!b,x=rS(v),S="x"===x?"y":"x",w=t.modifiersData.popperOffsets,E=t.rects.reference,C=t.rects.popper,k="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,R="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(w){if(a){var I,_="y"===x?Sx:Cx,T="y"===x?wx:Ex,P="y"===x?"height":"width",M=w[x],N=M+g[_],q=M-g[T],A=f?-C[P]/2:0,z=b===Lx?E[P]:C[P],D=b===Lx?-C[P]:-E[P],j=t.elements.arrow,F=f&&j?Zx(j):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},$=B[_],W=B[T],H=oS(0,E[P],F[P]),U=y?E[P]/2-A-H-$-R.mainAxis:z-H-$-R.mainAxis,V=y?-E[P]/2+A+H+W+R.mainAxis:D+H+W+R.mainAxis,G=t.elements.arrow&&nS(t.elements.arrow),K=G?"y"===x?G.clientTop||0:G.clientLeft||0:0,Z=null!=(I=null==L?void 0:L[x])?I:0,X=M+V-Z,Q=oS(f?Hx(N,M+U-Z-K):N,M,f?Wx(q,X):q);w[x]=Q,O[x]=Q-M}if(l){var J,Y="x"===x?Sx:Cx,ee="x"===x?wx:Ex,te=w[S],ne="y"===S?"height":"width",re=te+g[Y],oe=te-g[ee],ae=-1!==[Sx,Cx].indexOf(v),ie=null!=(J=null==L?void 0:L[S])?J:0,le=ae?re:te-E[ne]-C[ne]-ie+R.altAxis,se=ae?te+E[ne]+C[ne]-ie-R.altAxis:oe,ce=f&&ae?function(e,t,n){var r=oS(e,t,n);return r>n?n:r}(le,te,se):oS(f?le:re,te,f?se:oe);w[S]=ce,O[S]=ce-te}t.modifiersData[r]=O}},requiresIfExists:["offset"]};function PS(e,t,n){void 0===n&&(n=!1);var r=jx(t),o=jx(t)&&function(e){var t=e.getBoundingClientRect(),n=Ux(t.width)/e.offsetWidth||1,r=Ux(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),a=Yx(t),i=Kx(e,o,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==Ax(t)||bS(a))&&(l=function(e){return e!==zx(e)&&jx(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:gS(e);var t}(t)),jx(t)?((s=Kx(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):a&&(s.x=vS(a))),{x:i.left+l.scrollLeft-s.x,y:i.top+l.scrollTop-s.y,width:i.width,height:i.height}}function MS(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var NS={placement:"bottom",modifiers:[],strategy:"absolute"};function qS(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function AS(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?NS:o;return function(e,t,n){void 0===n&&(n=a);var o,i,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},NS,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],c=!1,u={state:l,setOptions:function(n){var o="function"==typeof n?n(l.options):n;d(),l.options=Object.assign({},a,l.options,o),l.scrollParents={reference:Dx(e)?xS(e):e.contextElement?xS(e.contextElement):[],popper:xS(t)};var i,c,p=function(e){var t=MS(e);return qx.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((i=[].concat(r,l.options.modifiers),c=i.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return l.orderedModifiers=p.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var a=o({state:l,name:t,instance:u,options:r}),i=function(){};s.push(a||i)}})),u.update()},forceUpdate:function(){if(!c){var e=l.elements,t=e.reference,n=e.popper;if(qS(t,n)){l.rects={reference:PS(t,nS(n),"fixed"===l.options.strategy),popper:Zx(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<l.orderedModifiers.length;r++)if(!0!==l.reset){var o=l.orderedModifiers[r],a=o.fn,i=o.options,s=void 0===i?{}:i,d=o.name;"function"==typeof a&&(l=a({state:l,options:s,name:d,instance:u})||l)}else l.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){u.forceUpdate(),e(l)}))},function(){return i||(i=new Promise((function(e){Promise.resolve().then((function(){i=void 0,e(o())}))}))),i}),destroy:function(){d(),c=!0}};if(!qS(e,t))return u;function d(){s.forEach((function(e){return e()})),s=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var zS=AS({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,l=void 0===i||i,s=zx(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",n.update,dS)})),l&&s.addEventListener("resize",n.update,dS),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",n.update,dS)})),l&&s.removeEventListener("resize",n.update,dS)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=CS({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,l=n.roundOffsets,s=void 0===l||l,c={placement:$x(t.placement),variation:sS(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,uS(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,uS(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Bx,_S,LS,TS,lS,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=kS(t,{elementContext:"reference"}),l=kS(t,{altBoundary:!0}),s=OS(i,r),c=OS(l,o,a),u=IS(s),d=IS(c);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});const DS=H.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[a,i]=H.useState(null),l=km(H.isValidElement(n)?n.ref:null,t);if(ym((()=>{o||i(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),ym((()=>{if(a&&!o)return bm(t,a),()=>{bm(t,null)}}),[t,a,o]),o){if(H.isValidElement(n)){const e={ref:l};return H.cloneElement(n,e)}return tm.jsx(H.Fragment,{children:n})}return tm.jsx(H.Fragment,{children:a?yp.createPortal(n,a):a})}));function jS(e){return $m("MuiPopper",e)}Wm("MuiPopper",["root"]);const FS=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],BS=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function $S(e){return"function"==typeof e?e():e}const WS=()=>Dm({root:["root"]},function(e){const{disableDefaultClasses:t}=H.useContext(dx);return n=>t?"":e(n)}(jS)),HS={},US=H.forwardRef((function(e,t){var n;const{anchorEl:r,children:o,direction:a,disablePortal:i,modifiers:l,open:s,placement:c,popperOptions:u,popperRef:d,slotProps:p={},slots:f={},TransitionProps:h}=e,m=fx(e,FS),g=H.useRef(null),v=km(g,t),b=H.useRef(null),y=km(b,d),x=H.useRef(y);ym((()=>{x.current=y}),[y]),H.useImperativeHandle(d,(()=>b.current),[]);const S=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(c,a),[w,E]=H.useState(S),[C,k]=H.useState($S(r));H.useEffect((()=>{b.current&&b.current.forceUpdate()})),H.useEffect((()=>{r&&k($S(r))}),[r]),ym((()=>{if(!C||!s)return;let e=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{E(e.placement)}}];null!=l&&(e=e.concat(l)),u&&null!=u.modifiers&&(e=e.concat(u.modifiers));const t=zS(C,g.current,lx({placement:S},u,{modifiers:e}));return x.current(t),()=>{t.destroy(),x.current(null)}}),[C,i,l,s,u,S]);const R={placement:w};null!==h&&(R.TransitionProps=h);const L=WS(),O=null!=(n=f.root)?n:"div",I=gx({elementType:O,externalSlotProps:p.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:v},ownerState:e,className:L.root});return tm.jsx(O,lx({},I,{children:"function"==typeof o?o(R):o}))})),VS=H.forwardRef((function(e,t){const{anchorEl:n,children:r,container:o,direction:a="ltr",disablePortal:i=!1,keepMounted:l=!1,modifiers:s,open:c,placement:u="bottom",popperOptions:d=HS,popperRef:p,style:f,transition:h=!1,slotProps:m={},slots:g={}}=e,v=fx(e,BS),[b,y]=H.useState(!0);if(!l&&!c&&(!h||b))return null;let x;if(o)x=o;else if(n){const e=$S(n);x=e&&void 0!==e.nodeType?gm(e).body:gm(null).body}const S=c||!l||h&&!b?void 0:"none",w=h?{in:c,onEnter:()=>{y(!1)},onExited:()=>{y(!0)}}:void 0;return tm.jsx(DS,{disablePortal:i,container:x,children:tm.jsx(US,lx({anchorEl:n,direction:a,disablePortal:i,modifiers:s,ref:t,open:h?!b:c,placement:u,popperOptions:d,popperRef:p,slotProps:m,slots:g},v,{style:lx({position:"fixed",top:0,left:0,display:S},f),TransitionProps:w,children:r}))})}));function GS(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function KS(e){return parseInt(vm(e).getComputedStyle(e).paddingRight,10)||0}function ZS(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===a.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&GS(e,o)}))}function XS(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function QS(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=gm(e);return t.body===e?vm(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=qm(gm(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${KS(r)+e}px`;const t=gm(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${KS(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=gm(r).body;else{const t=r.parentElement,n=vm(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const JS=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&GS(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);ZS(t,e.mount,e.modalRef,r,!0);const o=XS(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=XS(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=QS(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=XS(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&GS(e.modalRef,t),ZS(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&GS(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function YS(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=JS,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:l,children:s,onClose:c,open:u,rootRef:d}=e,p=H.useRef({}),f=H.useRef(null),h=H.useRef(null),m=km(h,d),[g,v]=H.useState(!u),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},w=Cm((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||gm(f.current).body;o.add(x(),e),h.current&&S()})),E=H.useCallback((()=>o.isTopModal(x())),[o]),C=Cm((e=>{f.current=e,e&&(u&&E()?S():h.current&&GS(h.current,y))})),k=H.useCallback((()=>{o.remove(x(),y)}),[y,o]);H.useEffect((()=>()=>{k()}),[k]),H.useEffect((()=>{u?w():b&&a||k()}),[u,k,b,a,w]);const R=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&E()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},L=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=px(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=lx({},n,t);return lx({role:"presentation"},r,{onKeyDown:R(r),ref:m})},getBackdropProps:(e={})=>lx({"aria-hidden":!0},e,{onClick:L(e),open:u}),getTransitionProps:()=>({onEnter:fm((()=>{v(!1),i&&i()}),null==s?void 0:s.props.onEnter),onExited:fm((()=>{v(!0),l&&l(),a&&k()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:C,isTopModal:E,exited:g,hasTransition:b}}const ew=["onChange","maxRows","minRows","style","value"];function tw(e){return parseInt(e,10)||0}const nw={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function rw(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const ow=H.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:a,value:i}=e,l=fx(e,ew),{current:s}=H.useRef(null!=i),c=H.useRef(null),u=km(t,c),d=H.useRef(null),p=H.useRef(0),[f,h]=H.useState({outerHeightStyle:0}),m=H.useCallback((()=>{const t=c.current,n=vm(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0};const a=d.current;a.style.width=n.width,a.value=t.value||e.placeholder||"x","\n"===a.value.slice(-1)&&(a.value+=" ");const i=n.boxSizing,l=tw(n.paddingBottom)+tw(n.paddingTop),s=tw(n.borderBottomWidth)+tw(n.borderTopWidth),u=a.scrollHeight;a.value="x";const p=a.scrollHeight;let f=u;o&&(f=Math.max(Number(o)*p,f)),r&&(f=Math.min(Number(r)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===i?l+s:0),overflow:Math.abs(f-u)<=1}}),[r,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return p.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(p.current+=1,{overflow:r,outerHeightStyle:n}):e},v=H.useCallback((()=>{const e=m();rw(e)||h((t=>g(t,e)))}),[m]);ym((()=>{const e=()=>{p.current=0,(()=>{const e=m();rw(e)||yp.flushSync((()=>{h((t=>g(t,e)))}))})()};const t=hm(e),n=c.current,r=vm(n);let o;return r.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(n)),()=>{t.clear(),cancelAnimationFrame(undefined),r.removeEventListener("resize",t),o&&o.disconnect()}}),[m]),ym((()=>{v()})),H.useEffect((()=>{p.current=0}),[i]);return tm.jsxs(H.Fragment,{children:[tm.jsx("textarea",lx({value:i,onChange:e=>{p.current=0,s||v(),n&&n(e)},ref:u,rows:o,style:lx({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},a)},l)),tm.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:lx({},nw,a,{paddingTop:0,paddingBottom:0})})]})})),aw=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],iw=yb(VS,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),lw=H.forwardRef((function(e,t){var n;const r=Zg(),o=vb({props:e,name:"MuiPopper"}),{anchorEl:a,component:i,components:l,componentsProps:s,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:v,slots:b,slotProps:y}=o,x=kp(o,aw),S=null!=(n=null==b?void 0:b.root)?n:null==l?void 0:l.Root,w=Cp({anchorEl:a,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:v},x);return tm.jsx(iw,Cp({as:i,direction:null==r?void 0:r.direction,slots:{root:S},slotProps:null!=y?y:s},w,{ref:t}))}));var sw=lw;function cw({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}var uw=H.createContext(void 0);function dw(){return H.useContext(uw)}function pw(e){return tm.jsx(Jg,Cp({},e,{defaultTheme:mb,themeId:Ep}))}function fw(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function hw(e){return $m("MuiInputBase",e)}var mw=Wm("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const gw=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],vw=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${pm(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},bw=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},yw=yb("div",{name:"MuiInputBase",slot:"Root",overridesResolver:vw})((({theme:e,ownerState:t})=>Cp({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${mw.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Cp({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),xw=yb("input",{name:"MuiInputBase",slot:"Input",overridesResolver:bw})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=Cp({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return Cp({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${mw.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${mw.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),Sw=tm.jsx(pw,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),ww=H.forwardRef((function(e,t){var n;const r=vb({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:i,className:l,components:s={},componentsProps:c={},defaultValue:u,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:v={},inputRef:b,maxRows:y,minRows:x,multiline:S=!1,name:w,onBlur:E,onChange:C,onClick:k,onFocus:R,onKeyDown:L,onKeyUp:O,placeholder:I,readOnly:_,renderSuffix:T,rows:P,slotProps:M={},slots:N={},startAdornment:q,type:A="text",value:z}=r,D=kp(r,gw),j=null!=v.value?v.value:z,{current:F}=H.useRef(null!=j),B=H.useRef(),$=H.useCallback((e=>{}),[]),W=km(B,b,v.ref,$),[U,V]=H.useState(!1),G=dw(),K=cw({props:r,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=G?G.focused:U,H.useEffect((()=>{!G&&d&&U&&(V(!1),E&&E())}),[G,d,U,E]);const Z=G&&G.onFilled,X=G&&G.onEmpty,Q=H.useCallback((e=>{!function(e,t=!1){return e&&(fw(e.value)&&""!==e.value||t&&fw(e.defaultValue)&&""!==e.defaultValue)}(e)?X&&X():Z&&Z()}),[Z,X]);ym((()=>{F&&Q({value:j})}),[j,Q,F]);H.useEffect((()=>{Q(B.current)}),[]);let J=g,Y=v;S&&"input"===J&&(Y=Cp(P?{type:void 0,minRows:P,maxRows:P}:{type:void 0,maxRows:y,minRows:x},Y),J=ow);H.useEffect((()=>{G&&G.setAdornedStart(Boolean(q))}),[G,q]);const ee=Cp({},r,{color:K.color||"primary",disabled:K.disabled,endAdornment:f,error:K.error,focused:K.focused,formControl:G,fullWidth:h,hiddenLabel:K.hiddenLabel,multiline:S,size:K.size,startAdornment:q,type:A}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:i,formControl:l,fullWidth:s,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:f,type:h}=e;return Dm({root:["root",`color${pm(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",i&&"focused",l&&"formControl",p&&"medium"!==p&&`size${pm(p)}`,u&&"multiline",f&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]},hw,t)})(ee),ne=N.root||s.Root||yw,re=M.root||c.root||{},oe=N.input||s.Input||xw;return Y=Cp({},Y,null!=(n=M.input)?n:c.input),tm.jsxs(H.Fragment,{children:[!p&&Sw,tm.jsxs(ne,Cp({},re,!sx(ne)&&{ownerState:Cp({},ee,re.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),k&&k(e)}},D,{className:rv(te.root,re.className,l,_&&"MuiInputBase-readOnly"),children:[q,tm.jsx(uw.Provider,{value:null,children:tm.jsx(oe,Cp({ownerState:ee,"aria-invalid":K.error,"aria-describedby":o,autoComplete:a,autoFocus:i,defaultValue:u,disabled:K.disabled,id:m,onAnimationStart:e=>{Q("mui-auto-fill-cancel"===e.animationName?B.current:{value:"x"})},name:w,placeholder:I,readOnly:_,required:K.required,rows:P,value:j,onKeyDown:L,onKeyUp:O,type:A},Y,!sx(oe)&&{as:J,ownerState:Cp({},ee,Y.ownerState)},{ref:W,className:rv(te.input,Y.className,_&&"MuiInputBase-readOnly"),onBlur:e=>{E&&E(e),v.onBlur&&v.onBlur(e),G&&G.onBlur?G.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!F){const t=e.target||B.current;if(null==t)throw new Error(wp(1));Q({value:t.value})}v.onChange&&v.onChange(e,...t),C&&C(e,...t)},onFocus:e=>{K.disabled?e.stopPropagation():(R&&R(e),v.onFocus&&v.onFocus(e),G&&G.onFocus?G.onFocus(e):V(!0))}}))}),f,T?T(Cp({},K,{startAdornment:q})):null]}))]})}));var Ew=ww;function Cw(e){return $m("MuiOutlinedInput",e)}var kw=Cp({},mw,Wm("MuiOutlinedInput",["root","notchedOutline","input"]));const Rw=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Lw={entering:{opacity:1},entered:{opacity:1}},Ow=H.forwardRef((function(e,t){const n=gb(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:i,easing:l,in:s,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=r,TransitionComponent:v=Ab}=e,b=kp(e,Rw),y=H.useRef(null),x=km(y,i.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},w=S(d),E=S(((e,t)=>{By(e);const r=$y({style:m,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),C=S(u),k=S(h),R=S((e=>{const t=$y({style:m,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),L=S(f);return tm.jsx(v,Cp({appear:a,in:s,nodeRef:y,onEnter:E,onEntered:C,onEntering:w,onExit:R,onExited:L,onExiting:k,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>H.cloneElement(i,Cp({style:Cp({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},Lw[e],m,i.props.style),ref:x},t))}))}));var Iw=Ow;function _w(e){return $m("MuiBackdrop",e)}Wm("MuiBackdrop",["root","invisible"]);const Tw=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Pw=yb("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Cp({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),Mw=H.forwardRef((function(e,t){var n,r,o;const a=vb({props:e,name:"MuiBackdrop"}),{children:i,className:l,component:s="div",components:c={},componentsProps:u={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=Iw,transitionDuration:g}=a,v=kp(a,Tw),b=Cp({},a,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return Dm({root:["root",n&&"invisible"]},_w,t)})(b),x=null!=(n=f.root)?n:u.root;return tm.jsx(m,Cp({in:p,timeout:g},v,{children:tm.jsx(Pw,Cp({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:c.Root)?r:s,className:rv(y.root,l,null==x?void 0:x.className),ownerState:Cp({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:i}))}))}));var Nw=Mw;function qw(e){return $m("MuiBadge",e)}var Aw=Wm("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]);const zw=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Dw=yb("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),jw=yb("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${pm(n.anchorOrigin.vertical)}${pm(n.anchorOrigin.horizontal)}${pm(n.overlap)}`],"default"!==n.color&&t[`color${pm(n.color)}`],n.invisible&&t.invisible]}})((({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys((null!=(t=e.vars)?t:e).palette).filter((t=>{var n,r;return(null!=(n=e.vars)?n:e).palette[t].main&&(null!=(r=e.vars)?r:e).palette[t].contrastText})).map((t=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}}))),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Aw.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Aw.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Aw.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Aw.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Aw.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Aw.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Aw.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Aw.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}})),Fw=H.forwardRef((function(e,t){var n,r,o,a,i,l;const s=vb({props:e,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:u,component:d,components:p={},componentsProps:f={},children:h,overlap:m="rectangular",color:g="default",invisible:v=!1,max:b=99,badgeContent:y,slots:x,slotProps:S,showZero:w=!1,variant:E="standard"}=s,C=kp(s,zw),{badgeContent:k,invisible:R,max:L,displayValue:O}=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,a=Am({badgeContent:t,max:r});let i=n;!1!==n||0!==t||o||(i=!0);const{badgeContent:l,max:s=r}=i?a:e;return{badgeContent:l,invisible:i,max:s,displayValue:l&&Number(l)>s?`${s}+`:l}}({max:b,invisible:v,badgeContent:y,showZero:w}),I=Am({anchorOrigin:c,color:g,overlap:m,variant:E,badgeContent:y}),_=R||null==k&&"dot"!==E,{color:T=g,overlap:P=m,anchorOrigin:M=c,variant:N=E}=_?I:s,q="dot"!==N?O:void 0,A=Cp({},s,{badgeContent:k,invisible:_,max:L,displayValue:q,showZero:w,anchorOrigin:M,color:T,overlap:P,variant:N}),z=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:a,classes:i={}}=e;return Dm({root:["root"],badge:["badge",a,r&&"invisible",`anchorOrigin${pm(n.vertical)}${pm(n.horizontal)}`,`anchorOrigin${pm(n.vertical)}${pm(n.horizontal)}${pm(o)}`,`overlap${pm(o)}`,"default"!==t&&`color${pm(t)}`]},qw,i)})(A),D=null!=(n=null!=(r=null==x?void 0:x.root)?r:p.Root)?n:Dw,j=null!=(o=null!=(a=null==x?void 0:x.badge)?a:p.Badge)?o:jw,F=null!=(i=null==S?void 0:S.root)?i:f.root,B=null!=(l=null==S?void 0:S.badge)?l:f.badge,$=gx({elementType:D,externalSlotProps:F,externalForwardedProps:C,additionalProps:{ref:t,as:d},ownerState:A,className:rv(null==F?void 0:F.className,z.root,u)}),W=gx({elementType:j,externalSlotProps:B,ownerState:A,className:rv(z.badge,null==B?void 0:B.className)});return tm.jsxs(D,Cp({},$,{children:[h,tm.jsx(j,Cp({},W,{children:q}))]}))}));var Bw=Fw;var $w=Wm("MuiBox",["root"]);const Ww=hb(),Hw=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,a=am("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Vg),i=H.forwardRef((function(e,i){const l=Qg(n),s=tv(e),{className:c,component:u="div"}=s,d=lm(s,ov);return tm.jsx(a,im({as:u,ref:i,className:rv(c,o?o(r):r),theme:t&&l[t]||l},d))}));return i}({themeId:Ep,defaultTheme:Ww,defaultClassName:$w.root,generateClassName:Fm.generate});var Uw=Hw;function Vw(e){return $m("PrivateSwitchBase",e)}Wm("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Gw=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Kw=yb(cy)((({ownerState:e})=>Cp({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),Zw=yb("input",{shouldForwardProp:bb})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Xw=H.forwardRef((function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,className:a,defaultChecked:i,disabled:l,disableFocusRipple:s=!1,edge:c=!1,icon:u,id:d,inputProps:p,inputRef:f,name:h,onBlur:m,onChange:g,onFocus:v,readOnly:b,required:y=!1,tabIndex:x,type:S,value:w}=e,E=kp(e,Gw),[C,k]=Em({controlled:r,default:Boolean(i),name:"SwitchBase",state:"checked"}),R=dw();let L=l;R&&void 0===L&&(L=R.disabled);const O="checkbox"===S||"radio"===S,I=Cp({},e,{checked:C,disabled:L,disableFocusRipple:s,edge:c}),_=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return Dm({root:["root",n&&"checked",r&&"disabled",o&&`edge${pm(o)}`],input:["input"]},Vw,t)})(I);return tm.jsxs(Kw,Cp({component:"span",className:rv(_.root,a),centerRipple:!0,focusRipple:!s,disabled:L,tabIndex:null,role:void 0,onFocus:e=>{v&&v(e),R&&R.onFocus&&R.onFocus(e)},onBlur:e=>{m&&m(e),R&&R.onBlur&&R.onBlur(e)},ownerState:I,ref:t},E,{children:[tm.jsx(Zw,Cp({autoFocus:n,checked:r,defaultChecked:i,className:_.input,disabled:L,id:O?d:void 0,name:h,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;k(t),g&&g(e,t)},readOnly:b,ref:f,required:y,ownerState:I,tabIndex:x,type:S},"checkbox"===S&&void 0===w?{}:{value:w},p)),C?o:u]}))}));var Qw=Xw,Jw=Dy(tm.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Yw=Dy(tm.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),eE=Dy(tm.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function tE(e){return $m("MuiCheckbox",e)}var nE=Wm("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);const rE=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],oE=yb(Qw,{shouldForwardProp:e=>bb(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${pm(n.size)}`],"default"!==n.color&&t[`color${pm(n.color)}`]]}})((({theme:e,ownerState:t})=>Cp({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Cv("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${nE.checked}, &.${nE.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${nE.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),aE=tm.jsx(Yw,{}),iE=tm.jsx(Jw,{}),lE=tm.jsx(eE,{}),sE=H.forwardRef((function(e,t){var n,r;const o=vb({props:e,name:"MuiCheckbox"}),{checkedIcon:a=aE,color:i="primary",icon:l=iE,indeterminate:s=!1,indeterminateIcon:c=lE,inputProps:u,size:d="medium",className:p}=o,f=kp(o,rE),h=s?c:l,m=s?c:a,g=Cp({},o,{color:i,indeterminate:s,size:d}),v=(e=>{const{classes:t,indeterminate:n,color:r,size:o}=e;return Cp({},t,Dm({root:["root",n&&"indeterminate",`color${pm(r)}`,`size${pm(o)}`]},tE,t))})(g);return tm.jsx(oE,Cp({type:"checkbox",inputProps:Cp({"data-indeterminate":s},u),icon:H.cloneElement(h,{fontSize:null!=(n=h.props.fontSize)?n:d}),checkedIcon:H.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:d}),ownerState:g,ref:t,className:rv(v.root,p)},f,{classes:v}))}));var cE=sE;function uE(e){return $m("MuiCircularProgress",e)}Wm("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const dE=["className","color","disableShrink","size","style","thickness","value","variant"];let pE,fE,hE,mE,gE=e=>e;const vE=44,bE=Ih(pE||(pE=gE`
106
+ `),ex.rippleVisible,lx,550,(({theme:e})=>e.transitions.easing.easeInOut),ex.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),ex.child,ex.childLeaving,sx,550,(({theme:e})=>e.transitions.easing.easeInOut),ex.childPulsate,cx,(({theme:e})=>e.transitions.easing.easeInOut)),px=U.forwardRef((function(e,t){const n=Qb({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a}=n,i=Rp(n,tx),[l,s]=U.useState([]),c=U.useRef(0),u=U.useRef(null);U.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[l]);const d=U.useRef(!1),p=kv(),f=U.useRef(null),h=U.useRef(null),m=U.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:a,cb:i}=e;s((e=>[...e,om.jsx(dx,{classes:{ripple:jg(o.ripple,ex.ripple),rippleVisible:jg(o.rippleVisible,ex.rippleVisible),ripplePulsate:jg(o.ripplePulsate,ex.ripplePulsate),child:jg(o.child,ex.child),childLeaving:jg(o.childLeaving,ex.childLeaving),childPulsate:jg(o.childPulsate,ex.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:a},c.current)])),c.current+=1,u.current=i}),[o]),g=U.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:a=r||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=i?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(a||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(s.width/2),u=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-s.left),u=Math.round(n-s.top)}if(a)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-u),u)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,m,p]),v=U.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=U.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{b(e,t)}));f.current=null,s((e=>e.length>0?e.slice(1):e)),u.current=t}),[p]);return U.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),om.jsx(ux,Lp({className:jg(ex.root,o.root,a),ref:h},i,{children:om.jsx(Yy,{component:null,exit:!0,children:l})}))}));var fx=px;function hx(e){return $g("MuiButtonBase",e)}const mx=Wg("MuiButtonBase",["root","disabled","focusVisible"]),gx=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],vx=_y("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${mx.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),bx=U.forwardRef((function(e,t){const n=Qb({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:a,className:i,component:l="button",disabled:s=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:w,onMouseUp:E,onTouchEnd:C,onTouchMove:k,onTouchStart:L,tabIndex:R=0,TouchRippleProps:O,touchRippleRef:_,type:I}=n,T=Rp(n,gx),P=U.useRef(null),M=U.useRef(null),N=Sv(M,_),{isFocusVisibleRef:q,onFocus:A,onBlur:D,ref:z}=Nv(),[j,F]=U.useState(!1);s&&j&&F(!1),U.useImperativeHandle(r,(()=>({focusVisible:()=>{F(!0),P.current.focus()}})),[]);const[B,$]=U.useState(!1);U.useEffect((()=>{$(!0)}),[]);const W=B&&!c&&!s;function H(e,t,n=u){return xv((r=>{t&&t(r);return!n&&M.current&&M.current[e](r),!0}))}U.useEffect((()=>{j&&d&&!c&&B&&M.current.pulsate()}),[c,d,j,B]);const V=H("start",S),G=H("stop",m),K=H("stop",g),Z=H("stop",E),X=H("stop",(e=>{j&&e.preventDefault(),w&&w(e)})),Q=H("start",L),J=H("stop",C),Y=H("stop",k),ee=H("stop",(e=>{D(e),!1===q.current&&F(!1),f&&f(e)}),!1),te=xv((e=>{P.current||(P.current=e.currentTarget),A(e),!0===q.current&&(F(!0),b&&b(e)),v&&v(e)})),ne=()=>{const e=P.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=U.useRef(!1),oe=xv((e=>{d&&!re.current&&j&&M.current&&" "===e.key&&(re.current=!0,M.current.stop(e,(()=>{M.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),ae=xv((e=>{d&&" "===e.key&&M.current&&j&&!e.defaultPrevented&&(re.current=!1,M.current.stop(e,(()=>{M.current.pulsate(e)}))),x&&x(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ie=l;"button"===ie&&(T.href||T.to)&&(ie=p);const le={};"button"===ie?(le.type=void 0===I?"button":I,le.disabled=s):(T.href||T.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=Sv(t,z,P),ce=Lp({},n,{centerRipple:o,component:l,disabled:s,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:R,focusVisible:j}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Dv({root:["root",t&&"disabled",n&&"focusVisible"]},hx,o);return n&&r&&(a.root+=` ${r}`),a})(ce);return om.jsxs(vx,Lp({as:ie,className:jg(ue.root,i),ownerState:ce,onBlur:ee,onClick:h,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ae,onMouseDown:V,onMouseLeave:X,onMouseUp:Z,onDragLeave:K,onTouchEnd:J,onTouchMove:Y,onTouchStart:Q,ref:se,tabIndex:s?-1:R,type:I},le,T,{children:[a,W?om.jsx(fx,Lp({ref:N,center:o},O)):null]}))}));var yx=bx;function xx(e){return $g("MuiButton",e)}var Sx=Wg("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var wx=U.createContext({});var Ex=U.createContext(void 0);const Cx=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],kx=e=>Lp({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),Lx=_y(yx,{shouldForwardProp:e=>Oy(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${_m(n.color)}`],t[`size${_m(n.size)}`],t[`${n.variant}Size${_m(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],a="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return Lp({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":Lp({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:ab(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ab(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ab(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":Lp({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Sx.focusVisible}`]:Lp({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Sx.disabled}`]:Lp({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${ab(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Sx.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Sx.disabled}`]:{boxShadow:"none"}})),Rx=_y("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${_m(n.size)}`]]}})((({ownerState:e})=>Lp({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},kx(e)))),Ox=_y("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${_m(n.size)}`]]}})((({ownerState:e})=>Lp({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},kx(e)))),_x=U.forwardRef((function(e,t){const n=U.useContext(wx),r=U.useContext(Ex),o=Qb({props:av(n,e),name:"MuiButton"}),{children:a,color:i="primary",component:l="button",className:s,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:v,variant:b="text"}=o,y=Rp(o,Cx),x=Lp({},o,{color:i,component:l,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:h,size:m,type:v,variant:b}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,classes:i}=e;return Lp({},i,Dv({root:["root",a,`${a}${_m(t)}`,`size${_m(o)}`,`${a}Size${_m(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${_m(o)}`],endIcon:["endIcon",`iconSize${_m(o)}`]},xx,i))})(x),w=g&&om.jsx(Rx,{className:S.startIcon,ownerState:x,children:g}),E=p&&om.jsx(Ox,{className:S.endIcon,ownerState:x,children:p}),C=r||"";return om.jsxs(Lx,Lp({ownerState:x,className:jg(n.className,S.root,s,C),component:l,disabled:c,focusRipple:!d,focusVisibleClassName:jg(S.focusVisible,f),ref:t,type:v},y,{classes:S,children:[w,a,E]}))}));var Ix=_x,Tx={typography:{fontSize:14,htmlFontSize:16,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontFamily:['"Source Sans Pro"','"Segoe UI"','"Helvetica Neue"',"-apple-system","Arial","sans-serif"].join(","),button:{textTransform:"initial",fontWeight:400}},shape:{borderRadius:2},shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],props:{MuiButtonBase:{disableRipple:!0,disableTouchRipple:!0,focusRipple:!1},MuiCheckbox:{color:"secondary"},MuiRadio:{color:"secondary"},MuiTabs:{indicatorColor:"secondary"}}};const Px={green:"#009845",greenPale:"#0AAF54",red:"#DC423F",redPale:"#F05551",blue:"#3F8AB3",bluePale:"#469DCD",grey100:"#ffffff",grey98:"#FBFBFB",grey95:"#F2F2F2",grey90:"#E6E6E6",grey85:"#D9D9D9",grey55:"#8C8C8C",grey45:"#737373",grey30:"#4D4D4D",grey25:"#404040",grey20:"#333333",grey15:"#262626",grey10:"#1A1A1A",grey5:"#0E0E0E",grey0:"#000000"},Mx={mode:"light",palette:{primary:{main:Px.grey25,contrastText:Px.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:Px.grey25,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)",light:Px.grey100,dark:Px.grey0},action:{active:"#545454",hover:"rgba(0, 0, 0, 0.03)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.05)",disabled:"rgba(0, 0, 0, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},background:{paper:Px.grey100,default:Px.grey100,lightest:Px.grey100,lighter:Px.grey98,darker:Px.grey95,darkest:Px.grey90},custom:{focusBorder:Px.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)",disabledBackground:Px.grey45,disabledContrastText:Px.grey100},selected:{main:Px.green,alternative:"#E4E4E4",excluded:"#BEBEBE",selectedExcluded:"#BEBEBE",possible:Px.grey100,selectedContrastText:Px.grey100,mainContrastText:Px.grey100,alternativeContrastText:Px.grey25,excludedContrastText:Px.grey25,selectedExcludedContrastText:Px.grey100,possibleContrastText:Px.grey0},btn:{normal:"rgba(255, 255, 255, 0.6)",hover:"rgba(0, 0, 0, 0.03)",active:"rgba(0, 0, 0, 0.1)",disabled:"rgba(255, 255, 255, 0.6)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.15)"}}},Nx={mode:"dark",palette:{primary:{main:Px.grey20,contrastText:Px.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:Px.grey100,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)",light:Px.grey100,dark:Px.grey0},action:{active:Px.grey100,hover:"rgba(255, 255, 255, 0.05)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.03)",disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},divider:"rgba(0,0,0,0.3)",background:{default:"#323232",paper:"#323232",lightest:Px.grey25,lighter:Px.grey20,darker:Px.grey15,darkest:Px.grey10},custom:{focusBorder:Px.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)",disabledBackground:Px.grey45,disabledContrastText:Px.grey100},selected:{main:Px.green,alternative:Px.grey20,excluded:Px.grey10,selectedExcluded:Px.grey10,possible:Px.grey80,selectedContrastText:Px.grey100,mainContrastText:Px.grey100,alternativeContrastText:Px.grey100,excludedContrastText:Px.grey100,selectedExcludedContrastText:Px.grey100,possibleContrastText:Px.grey0},btn:{normal:"rgba(255, 255, 255, 0.15)",hover:"rgba(255, 255, 255, 0.25)",active:"rgba(0, 0, 0, 0.6)",disabled:"rgba(255, 255, 255, 0.15)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.30)"}}},qx={},Ax=e=>({MuiTypography:{root:{color:e.palette.text.primary}},MuiGrid:{variants:[{props:{alignItems:"center"},style:{"align-items":"center"}}]},MuiButtonBase:{root:{borderRadius:2,border:"1px solid transparent","&:focus":{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)}}},MuiIconButton:{root:{padding:7,borderRadius:2,border:"1px solid transparent","&:hover":{backgroundColor:e.palette.btn.hover},"&:focus-visible":{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)},"&:active":{borderColor:"transparent",boxShadow:"none",backgroundColor:e.palette.btn.active},"&:not(:active):not(:focus-visible)":{borderColor:"transparent",boxShadow:"none"}}},MuiOutlinedInput:{root:{backgroundColor:e.palette.custom.inputBackground,"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.btn.border},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.custom.focusBorder,borderWidth:2}}},MuiButton:{outlined:{padding:"3px 11px",["&.".concat(Sx.focusVisible)]:{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)}},contained:{color:e.palette.text.primary,padding:"3px 11px",border:"1px solid ".concat(e.palette.btn.border),backgroundColor:e.palette.btn.normal,boxShadow:"none",["&.".concat(Sx.focusVisible)]:{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)},"&:hover":{backgroundColor:e.palette.btn.hover,borderColor:e.palette.btn.borderHover,boxShadow:"none",["&.".concat(Sx.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(Sx.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function Dx(e){let t=Mx,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=Nx));const r=JSON.stringify(t);if(qx[r])return qx[r];const o={palette:a(a({type:t.mode},Tx.palette),t.palette),typography:a({},Tx.typography),shadows:Tx.shadows,props:a({},Tx.props),shape:a({},Tx.shape)};return qx[r]=Kb(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:a={},styleOverrides:i={}}=e,l=Lp({},Rp(e,Qv),{components:{}});Object.keys(t).forEach((e=>{const n=l.components[e]||{};n.defaultProps=t[e],l.components[e]=n})),Object.keys(a).forEach((e=>{const t=l.components[e]||{};t.defaultProps=a[e],l.components[e]=t})),Object.keys(i).forEach((e=>{const t=l.components[e]||{};t.styleOverrides=i[e],l.components[e]=t})),Object.keys(r).forEach((e=>{const t=l.components[e]||{};t.styleOverrides=r[e],l.components[e]=t})),l.spacing=Gm(e.spacing);const s=xm(e.breakpoints||{}),c=l.spacing;l.mixins=Lp({gutters:(e={})=>Lp({paddingLeft:c(2),paddingRight:c(2)},e,{[s.up("sm")]:Lp({paddingLeft:c(3),paddingRight:c(3)},e[s.up("sm")])})},n);const{type:u,mode:d}=o,p=Rp(o,Jv),f=d||u||"light";return l.palette=Lp({text:{hint:"dark"===f?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:f,type:f},p),l}(a(a({},o),{},{overrides:Ax(o)}))),qx[r].name=n,qx[r]}Dg.configure((e=>"njs-".concat("41f6","-").concat(e.replace("Mui",""))));var zx=V.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null,modelStore:{},selectionStore:{}});const jx={active:!0,select:!0,passive:!0,edit:!1};function Fx(e){const t={},n={},r=function(e){const{constraints:t={},interactions:n={}}=e;if(Object.keys(n).length>0)return n;const r={};return Object.keys(t).forEach((e=>{r[e]=!t[e]})),r}(e);Object.keys(jx).forEach((e=>{void 0!==r[e]?(t[e]=r[e],n[e]=!r[e]):(t[e]=jx[e],n[e]=!jx[e])})),e.constraints=n,e.interactions=t}var Bx=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};const t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=[],r={get:e=>t[e],set:(n,r)=>{if(void 0===n||"object"==typeof n)throw new Error("Invalid key: ".concat(JSON.stringify(n)));return t[n]=r,e({type:"SET",value:r}),r},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));t[e]=null},dispatch:e=>{n.forEach((n=>n(e?{}:t)))}};return[()=>{const[,e]=U.useState(t);return U.useEffect((()=>(n.push(e),()=>{const t=n.indexOf(e);n.splice(t,1)})),[e]),[r]},r]};const $x=U.forwardRef(((e,t)=>{let{initialContext:n,renderCallback:r,modelStore:o,selectionStore:a}=e;const[i,l]=U.useState(n),[s,c]=U.useState(),{theme:u}=U.useMemo((()=>({theme:Dx(s)})),[s]),[d,p]=U.useState([]);return U.useEffect((()=>{r&&r()}),[]),U.useImperativeHandle(t,(()=>({setComps(e){p([...e])},setMuiThemeName:c,setContext:e=>l((t=>JSON.stringify(t)!==JSON.stringify(e)?e:t))})),[]),i&&(i.modelStore=o,i.selectionStore=a),V.createElement(im,{injectFirst:!0},V.createElement(Ty,{theme:u},V.createElement(zx.Provider,{value:i},d)))}));function Wx(e){let t,{app:n,context:r}=e;const o=new Promise((e=>{t=e})),a=V.createRef(),i=document.createElement("div");i.style.display="none",i.setAttribute("data-nebulajs-version","5.0.0-alpha4"),i.setAttribute("data-app-id",n.id),document.body.appendChild(i),r&&Fx(r);const l=function(e){const[t,n]=Bx({}),[r,o]=Bx({}),[a,i]=Bx({}),[l,s]=Bx({}),[c,u]=Bx({}),[,d]=Bx({}),p=e=>{let{type:t,value:r}=e;const a=d.get(r.id);d.set(r.id,{});const l=()=>{o.clear(r.id),u.set(r.id,{}),u.dispatch(!0)},c=()=>{r.removeListener("changed",l),n.clear(r.id),o.clear(r.id),i.clear(r.id),s.clear(r.id),u.clear(r.id),d.clear(r.id)};return"SET"===t&&(a||(r.on("changed",l),r.once("closed",(()=>{c()})))),c},[f,h]=Bx({},p);return{subscribe:e=>{const t=p({type:"SET",value:e});return()=>{t(),h.clear(e.id)}},useModelStore:f,modelStore:h,useModelChangedStore:c,useRpcResultStore:t,rpcResultStore:n,useRpcRequestStore:r,rpcRequestStore:o,useRpcRequestModelStore:l,rpcRequestModelStore:s,useRpcRequestSessionModelStore:a,rpcRequestSessionModelStore:i,modelChangedStore:u,appId:e}}(n.id),s=function(e){const[t,n]=Bx({}),[r,o]=Bx({}),[a,i]=Bx({});return{useAppSelectionsStore:t,useAppModalStore:r,appSelectionsStore:n,appModalStore:o,useModalObjectStore:a,modalObjectStore:i,appId:e}}(n.id);pt.createRoot(i).render(V.createElement($x,{ref:a,initialContext:r,renderCallback:t,modelStore:l,selectionStore:s}));const c={},u=[];return[{toggleFocusOfCells(e){Object.keys(c).forEach((t=>{c[t].current.toggleFocus(t===e)}))},cells:c,addCell(e,t){c[e]=t},removeCell(e){delete c[e]},add(e){(async()=>{await o,u.push(e),a.current.setComps(u)})()},remove(e){(async()=>{await o;const t=u.indexOf(e);-1!==t&&u.splice(t,1),a.current.setComps(u)})()},setMuiThemeName(e){(async()=>{await o,a.current.setMuiThemeName(e)})()},context(e){(async()=>{await o,e&&Fx(e),a.current.setContext(e)})()}},l,s,a,o]}function Hx(e){return $g("MuiSvgIcon",e)}Wg("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Ux=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Vx=_y("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${_m(n.color)}`],t[`fontSize${_m(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,a,i,l,s,c,u,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(a=e.typography)||null==(i=a.pxToRem)?void 0:i.call(a,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}})),Gx=U.forwardRef((function(e,t){const n=Qb({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:a="inherit",component:i="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=n,p=Rp(n,Ux),f=U.isValidElement(r)&&"svg"===r.type,h=Lp({},n,{color:a,component:i,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:f}),m={};c||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return Dv({root:["root","inherit"!==t&&`color${_m(t)}`,`fontSize${_m(n)}`]},Hx,r)})(h);return om.jsxs(Vx,Lp({as:i,className:jg(g.root,o),focusable:"false",color:s,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},m,p,f&&r.props,{ownerState:h,children:[f?r.props.children:r,u?om.jsx("title",{children:u}):null]}))}));function Kx(e,t){function n(n,r){return om.jsx(Gx,Lp({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=Gx.muiName,U.memo(U.forwardRef(n))}Gx.muiName="SvgIcon";const Zx={configure:e=>{Dg.configure(e)}};var Xx=Object.freeze({__proto__:null,capitalize:_m,createChainedFunction:uv,createSvgIcon:Kx,debounce:dv,deprecatedPropType:function(e,t){return()=>null},isMuiElement:pv,ownerDocument:fv,ownerWindow:hv,requirePropFactory:function(e,t){return()=>null},setRef:mv,unstable_ClassNameGenerator:Zx,unstable_useEnhancedEffect:lv,unstable_useId:bv,unsupportedProp:function(e,t,n,r,o){return null},useControlled:yv,useEventCallback:xv,useForkRef:Sv,useIsFocusVisible:Nv});const Qx=e=>e.scrollTop;function Jx(e,t){var n,r;const{timeout:o,easing:a,style:i={}}=e;return{duration:null!=(n=i.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=i.transitionTimingFunction)?r:"object"==typeof a?a[t.mode]:a,delay:i.transitionDelay}}function Yx(e){return $g("MuiPaper",e)}Wg("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const eS=["className","component","elevation","square","variant"],tS=_y("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return Lp({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&Lp({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${ab("#fff",Py(t.elevation))}, ${ab("#fff",Py(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),nS=U.forwardRef((function(e,t){const n=Qb({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:a=1,square:i=!1,variant:l="elevation"}=n,s=Rp(n,eS),c=Lp({},n,{component:o,elevation:a,square:i,variant:l}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Dv({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Yx,o)})(c);return om.jsx(tS,Lp({as:o,ownerState:c,className:jg(u.root,r),ref:t},s))}));var rS=nS;function oS(){return oS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oS.apply(this,arguments)}function aS(e){return"string"==typeof e}function iS(e,t,n){return void 0===e||aS(e)?t:oS({},t,{ownerState:oS({},t.ownerState,n)})}const lS={disableDefaultClasses:!1},sS=U.createContext(lS);function cS(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function uS(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function dS(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const pS=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function fS(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=uS(e,pS),l=a?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:s,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const e=jg(null==n?void 0:n.className,a,null==o?void 0:o.className,null==r?void 0:r.className),t=oS({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),i=oS({},n,o,r);return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}const i=cS(oS({},o,r)),l=dS(r),s=dS(o),c=t(i),u=jg(null==c?void 0:c.className,null==n?void 0:n.className,a,null==o?void 0:o.className,null==r?void 0:r.className),d=oS({},null==c?void 0:c.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=oS({},c,n,s,l);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}(oS({},i,{externalSlotProps:l}));return iS(n,oS({},s,{ref:Sv(c,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o)}const hS="base";function mS(e,t){const n=Bg[t];return n?`${hS}--${n}`:function(e,t){return`${hS}-${e}-${t}`}(e,t)}const gS=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function vS(e){const t=[],n=[];return Array.from(e.querySelectorAll(gS)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function bS(){return!0}function yS(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=vS,isEnabled:i=bS,open:l}=e,s=U.useRef(!1),c=U.useRef(null),u=U.useRef(null),d=U.useRef(null),p=U.useRef(null),f=U.useRef(!1),h=U.useRef(null),m=Sv(t.ref,h),g=U.useRef(null);U.useEffect((()=>{l&&h.current&&(f.current=!n)}),[n,l]),U.useEffect((()=>{if(!l||!h.current)return;const e=fv(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),U.useEffect((()=>{if(!l||!h.current)return;const e=fv(h.current),t=t=>{g.current=t,!r&&i()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,u.current&&u.current.focus())},n=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!i()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==c.current&&e.activeElement!==u.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==u.current||(n=a(h.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,i,l,a]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return om.jsxs(U.Fragment,{children:[om.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),U.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),om.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelEnd"})]})}const xS=U.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[a,i]=U.useState(null),l=Sv(U.isValidElement(n)?n.ref:null,t);if(lv((()=>{o||i(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),lv((()=>{if(a&&!o)return mv(t,a),()=>{mv(t,null)}}),[t,a,o]),o){if(U.isValidElement(n)){const e={ref:l};return U.cloneElement(n,e)}return om.jsx(U.Fragment,{children:n})}return om.jsx(U.Fragment,{children:a?xp.createPortal(n,a):a})}));function SS(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function wS(e){return parseInt(hv(e).getComputedStyle(e).paddingRight,10)||0}function ES(e,t,n,r,o){const a=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===a.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&SS(e,o)}))}function CS(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function kS(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=fv(e);return t.body===e?hv(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=qv(fv(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${wS(r)+e}px`;const t=fv(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${wS(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=fv(r).body;else{const t=r.parentElement,n=hv(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const LS=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&SS(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);ES(t,e.mount,e.modalRef,r,!0);const o=CS(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=CS(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=kS(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=CS(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&SS(e.modalRef,t),ES(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&SS(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function RS(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=LS,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:l,children:s,onClose:c,open:u,rootRef:d}=e,p=U.useRef({}),f=U.useRef(null),h=U.useRef(null),m=Sv(h,d),[g,v]=U.useState(!u),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},w=xv((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||fv(f.current).body;o.add(x(),e),h.current&&S()})),E=U.useCallback((()=>o.isTopModal(x())),[o]),C=xv((e=>{f.current=e,e&&(u&&E()?S():h.current&&SS(h.current,y))})),k=U.useCallback((()=>{o.remove(x(),y)}),[y,o]);U.useEffect((()=>()=>{k()}),[k]),U.useEffect((()=>{u?w():b&&a||k()}),[u,k,b,a,w]);const L=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&E()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},R=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=cS(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=oS({},n,t);return oS({role:"presentation"},r,{onKeyDown:L(r),ref:m})},getBackdropProps:(e={})=>oS({"aria-hidden":!0},e,{onClick:R(e),open:u}),getTransitionProps:()=>({onEnter:uv((()=>{v(!1),i&&i()}),null==s?void 0:s.props.onEnter),onExited:uv((()=>{v(!0),l&&l(),a&&k()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:C,isTopModal:E,exited:g,hasTransition:b}}var OS="top",_S="bottom",IS="right",TS="left",PS="auto",MS=[OS,_S,IS,TS],NS="start",qS="end",AS="clippingParents",DS="viewport",zS="popper",jS="reference",FS=MS.reduce((function(e,t){return e.concat([t+"-"+NS,t+"-"+qS])}),[]),BS=[].concat(MS,[PS]).reduce((function(e,t){return e.concat([t,t+"-"+NS,t+"-"+qS])}),[]),$S=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function WS(e){return e?(e.nodeName||"").toLowerCase():null}function HS(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function US(e){return e instanceof HS(e).Element||e instanceof Element}function VS(e){return e instanceof HS(e).HTMLElement||e instanceof HTMLElement}function GS(e){return"undefined"!=typeof ShadowRoot&&(e instanceof HS(e).ShadowRoot||e instanceof ShadowRoot)}var KS={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];VS(o)&&WS(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});VS(r)&&WS(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function ZS(e){return e.split("-")[0]}var XS=Math.max,QS=Math.min,JS=Math.round;function YS(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function ew(){return!/^((?!chrome|android).)*safari/i.test(YS())}function tw(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&VS(e)&&(o=e.offsetWidth>0&&JS(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&JS(r.height)/e.offsetHeight||1);var i=(US(e)?HS(e):window).visualViewport,l=!ew()&&n,s=(r.left+(l&&i?i.offsetLeft:0))/o,c=(r.top+(l&&i?i.offsetTop:0))/a,u=r.width/o,d=r.height/a;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s,x:s,y:c}}function nw(e){var t=tw(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function rw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&GS(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ow(e){return HS(e).getComputedStyle(e)}function aw(e){return["table","td","th"].indexOf(WS(e))>=0}function iw(e){return((US(e)?e.ownerDocument:e.document)||window.document).documentElement}function lw(e){return"html"===WS(e)?e:e.assignedSlot||e.parentNode||(GS(e)?e.host:null)||iw(e)}function sw(e){return VS(e)&&"fixed"!==ow(e).position?e.offsetParent:null}function cw(e){for(var t=HS(e),n=sw(e);n&&aw(n)&&"static"===ow(n).position;)n=sw(n);return n&&("html"===WS(n)||"body"===WS(n)&&"static"===ow(n).position)?t:n||function(e){var t=/firefox/i.test(YS());if(/Trident/i.test(YS())&&VS(e)&&"fixed"===ow(e).position)return null;var n=lw(e);for(GS(n)&&(n=n.host);VS(n)&&["html","body"].indexOf(WS(n))<0;){var r=ow(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function uw(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function dw(e,t,n){return XS(e,QS(t,n))}function pw(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function fw(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var hw={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,l=ZS(n.placement),s=uw(l),c=[TS,IS].indexOf(l)>=0?"height":"width";if(a&&i){var u=function(e,t){return pw("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:fw(e,MS))}(o.padding,n),d=nw(a),p="y"===s?OS:TS,f="y"===s?_S:IS,h=n.rects.reference[c]+n.rects.reference[s]-i[s]-n.rects.popper[c],m=i[s]-n.rects.reference[s],g=cw(a),v=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,b=h/2-m/2,y=u[p],x=v-d[c]-u[f],S=v/2-d[c]/2+b,w=dw(y,S,x),E=s;n.modifiersData[r]=((t={})[E]=w,t.centerOffset=w-S,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&rw(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function mw(e){return e.split("-")[1]}var gw={top:"auto",right:"auto",bottom:"auto",left:"auto"};function vw(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=i.x,f=void 0===p?0:p,h=i.y,m=void 0===h?0:h,g="function"==typeof u?u({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var v=i.hasOwnProperty("x"),b=i.hasOwnProperty("y"),y=TS,x=OS,S=window;if(c){var w=cw(n),E="clientHeight",C="clientWidth";if(w===HS(n)&&"static"!==ow(w=iw(n)).position&&"absolute"===l&&(E="scrollHeight",C="scrollWidth"),o===OS||(o===TS||o===IS)&&a===qS)x=_S,m-=(d&&w===S&&S.visualViewport?S.visualViewport.height:w[E])-r.height,m*=s?1:-1;if(o===TS||(o===OS||o===_S)&&a===qS)y=IS,f-=(d&&w===S&&S.visualViewport?S.visualViewport.width:w[C])-r.width,f*=s?1:-1}var k,L=Object.assign({position:l},c&&gw),R=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:JS(n*o)/o||0,y:JS(r*o)/o||0}}({x:f,y:m},HS(n)):{x:f,y:m};return f=R.x,m=R.y,s?Object.assign({},L,((k={})[x]=b?"0":"",k[y]=v?"0":"",k.transform=(S.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",k)):Object.assign({},L,((t={})[x]=b?m+"px":"",t[y]=v?f+"px":"",t.transform="",t))}var bw={passive:!0};var yw={left:"right",right:"left",bottom:"top",top:"bottom"};function xw(e){return e.replace(/left|right|bottom|top/g,(function(e){return yw[e]}))}var Sw={start:"end",end:"start"};function ww(e){return e.replace(/start|end/g,(function(e){return Sw[e]}))}function Ew(e){var t=HS(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Cw(e){return tw(iw(e)).left+Ew(e).scrollLeft}function kw(e){var t=ow(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Lw(e){return["html","body","#document"].indexOf(WS(e))>=0?e.ownerDocument.body:VS(e)&&kw(e)?e:Lw(lw(e))}function Rw(e,t){var n;void 0===t&&(t=[]);var r=Lw(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=HS(r),i=o?[a].concat(a.visualViewport||[],kw(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(Rw(lw(i)))}function Ow(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function _w(e,t,n){return t===DS?Ow(function(e,t){var n=HS(e),r=iw(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,l=0,s=0;if(o){a=o.width,i=o.height;var c=ew();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:i,x:l+Cw(e),y:s}}(e,n)):US(t)?function(e,t){var n=tw(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Ow(function(e){var t,n=iw(e),r=Ew(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=XS(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=XS(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Cw(e),s=-r.scrollTop;return"rtl"===ow(o||n).direction&&(l+=XS(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:l,y:s}}(iw(e)))}function Iw(e,t,n,r){var o="clippingParents"===t?function(e){var t=Rw(lw(e)),n=["absolute","fixed"].indexOf(ow(e).position)>=0&&VS(e)?cw(e):e;return US(n)?t.filter((function(e){return US(e)&&rw(e,n)&&"body"!==WS(e)})):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],l=a.reduce((function(t,n){var o=_w(e,n,r);return t.top=XS(o.top,t.top),t.right=QS(o.right,t.right),t.bottom=QS(o.bottom,t.bottom),t.left=XS(o.left,t.left),t}),_w(e,i,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Tw(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?ZS(o):null,i=o?mw(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(a){case OS:t={x:l,y:n.y-r.height};break;case _S:t={x:l,y:n.y+n.height};break;case IS:t={x:n.x+n.width,y:s};break;case TS:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=a?uw(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case NS:t[c]=t[c]-(n[u]/2-r[u]/2);break;case qS:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function Pw(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.strategy,i=void 0===a?e.strategy:a,l=n.boundary,s=void 0===l?AS:l,c=n.rootBoundary,u=void 0===c?DS:c,d=n.elementContext,p=void 0===d?zS:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,v=pw("number"!=typeof g?g:fw(g,MS)),b=p===zS?jS:zS,y=e.rects.popper,x=e.elements[h?b:p],S=Iw(US(x)?x:x.contextElement||iw(e.elements.popper),s,u,i),w=tw(e.elements.reference),E=Tw({reference:w,element:y,strategy:"absolute",placement:o}),C=Ow(Object.assign({},y,E)),k=p===zS?C:w,L={top:S.top-k.top+v.top,bottom:k.bottom-S.bottom+v.bottom,left:S.left-k.left+v.left,right:k.right-S.right+v.right},R=e.modifiersData.offset;if(p===zS&&R){var O=R[o];Object.keys(L).forEach((function(e){var t=[IS,_S].indexOf(e)>=0?1:-1,n=[OS,_S].indexOf(e)>=0?"y":"x";L[e]+=O[n]*t}))}return L}function Mw(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,c=void 0===s?BS:s,u=mw(r),d=u?l?FS:FS.filter((function(e){return mw(e)===u})):MS,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var f=p.reduce((function(t,n){return t[n]=Pw(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[ZS(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}var Nw={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0===i||i,s=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,v=ZS(g),b=s||(v===g||!h?[xw(g)]:function(e){if(ZS(e)===PS)return[];var t=xw(e);return[ww(e),t,ww(t)]}(g)),y=[g].concat(b).reduce((function(e,n){return e.concat(ZS(n)===PS?Mw(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),x=t.rects.reference,S=t.rects.popper,w=new Map,E=!0,C=y[0],k=0;k<y.length;k++){var L=y[k],R=ZS(L),O=mw(L)===NS,_=[OS,_S].indexOf(R)>=0,I=_?"width":"height",T=Pw(t,{placement:L,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),P=_?O?IS:TS:O?_S:OS;x[I]>S[I]&&(P=xw(P));var M=xw(P),N=[];if(a&&N.push(T[R]<=0),l&&N.push(T[P]<=0,T[M]<=0),N.every((function(e){return e}))){C=L,E=!1;break}w.set(L,N)}if(E)for(var q=function(e){var t=y.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},A=h?3:1;A>0;A--){if("break"===q(A))break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function qw(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Aw(e){return[OS,IS,_S,TS].some((function(t){return e[t]>=0}))}var Dw={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,a=void 0===o?[0,0]:o,i=BS.reduce((function(e,n){return e[n]=function(e,t,n){var r=ZS(e),o=[TS,OS].indexOf(r)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],l=a[1];return i=i||0,l=(l||0)*o,[TS,IS].indexOf(r)>=0?{x:l,y:i}:{x:i,y:l}}(n,t.rects,a),e}),{}),l=i[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}};var zw={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0!==i&&i,s=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,m=void 0===h?0:h,g=Pw(t,{boundary:s,rootBoundary:c,padding:d,altBoundary:u}),v=ZS(t.placement),b=mw(t.placement),y=!b,x=uw(v),S="x"===x?"y":"x",w=t.modifiersData.popperOffsets,E=t.rects.reference,C=t.rects.popper,k="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,L="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(w){if(a){var _,I="y"===x?OS:TS,T="y"===x?_S:IS,P="y"===x?"height":"width",M=w[x],N=M+g[I],q=M-g[T],A=f?-C[P]/2:0,D=b===NS?E[P]:C[P],z=b===NS?-C[P]:-E[P],j=t.elements.arrow,F=f&&j?nw(j):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},$=B[I],W=B[T],H=dw(0,E[P],F[P]),U=y?E[P]/2-A-H-$-L.mainAxis:D-H-$-L.mainAxis,V=y?-E[P]/2+A+H+W+L.mainAxis:z+H+W+L.mainAxis,G=t.elements.arrow&&cw(t.elements.arrow),K=G?"y"===x?G.clientTop||0:G.clientLeft||0:0,Z=null!=(_=null==R?void 0:R[x])?_:0,X=M+V-Z,Q=dw(f?QS(N,M+U-Z-K):N,M,f?XS(q,X):q);w[x]=Q,O[x]=Q-M}if(l){var J,Y="x"===x?OS:TS,ee="x"===x?_S:IS,te=w[S],ne="y"===S?"height":"width",re=te+g[Y],oe=te-g[ee],ae=-1!==[OS,TS].indexOf(v),ie=null!=(J=null==R?void 0:R[S])?J:0,le=ae?re:te-E[ne]-C[ne]-ie+L.altAxis,se=ae?te+E[ne]+C[ne]-ie-L.altAxis:oe,ce=f&&ae?function(e,t,n){var r=dw(e,t,n);return r>n?n:r}(le,te,se):dw(f?le:re,te,f?se:oe);w[S]=ce,O[S]=ce-te}t.modifiersData[r]=O}},requiresIfExists:["offset"]};function jw(e,t,n){void 0===n&&(n=!1);var r=VS(t),o=VS(t)&&function(e){var t=e.getBoundingClientRect(),n=JS(t.width)/e.offsetWidth||1,r=JS(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),a=iw(t),i=tw(e,o,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==WS(t)||kw(a))&&(l=function(e){return e!==HS(e)&&VS(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Ew(e);var t}(t)),VS(t)?((s=tw(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):a&&(s.x=Cw(a))),{x:i.left+l.scrollLeft-s.x,y:i.top+l.scrollTop-s.y,width:i.width,height:i.height}}function Fw(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var Bw={placement:"bottom",modifiers:[],strategy:"absolute"};function $w(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Ww(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?Bw:o;return function(e,t,n){void 0===n&&(n=a);var o,i,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Bw,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],c=!1,u={state:l,setOptions:function(n){var o="function"==typeof n?n(l.options):n;d(),l.options=Object.assign({},a,l.options,o),l.scrollParents={reference:US(e)?Rw(e):e.contextElement?Rw(e.contextElement):[],popper:Rw(t)};var i,c,p=function(e){var t=Fw(e);return $S.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((i=[].concat(r,l.options.modifiers),c=i.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return l.orderedModifiers=p.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var a=o({state:l,name:t,instance:u,options:r}),i=function(){};s.push(a||i)}})),u.update()},forceUpdate:function(){if(!c){var e=l.elements,t=e.reference,n=e.popper;if($w(t,n)){l.rects={reference:jw(t,cw(n),"fixed"===l.options.strategy),popper:nw(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<l.orderedModifiers.length;r++)if(!0!==l.reset){var o=l.orderedModifiers[r],a=o.fn,i=o.options,s=void 0===i?{}:i,d=o.name;"function"==typeof a&&(l=a({state:l,options:s,name:d,instance:u})||l)}else l.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){u.forceUpdate(),e(l)}))},function(){return i||(i=new Promise((function(e){Promise.resolve().then((function(){i=void 0,e(o())}))}))),i}),destroy:function(){d(),c=!0}};if(!$w(e,t))return u;function d(){s.forEach((function(e){return e()})),s=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var Hw=Ww({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,l=void 0===i||i,s=HS(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",n.update,bw)})),l&&s.addEventListener("resize",n.update,bw),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",n.update,bw)})),l&&s.removeEventListener("resize",n.update,bw)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Tw({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,l=n.roundOffsets,s=void 0===l||l,c={placement:ZS(t.placement),variation:mw(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,vw(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,vw(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},KS,Dw,Nw,zw,hw,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Pw(t,{elementContext:"reference"}),l=Pw(t,{altBoundary:!0}),s=qw(i,r),c=qw(l,o,a),u=Aw(s),d=Aw(c);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});const Uw="Popper";function Vw(e){return mS(Uw,e)}!function(e,t){const n={};t.forEach((t=>{n[t]=mS(e,t)}))}(Uw,["root"]);const Gw=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Kw=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Zw(e){return"function"==typeof e?e():e}const Xw=()=>Dv({root:["root"]},function(e){const{disableDefaultClasses:t}=U.useContext(sS);return n=>t?"":e(n)}(Vw)),Qw={},Jw=U.forwardRef((function(e,t){var n;const{anchorEl:r,children:o,direction:a,disablePortal:i,modifiers:l,open:s,placement:c,popperOptions:u,popperRef:d,slotProps:p={},slots:f={},TransitionProps:h}=e,m=uS(e,Gw),g=U.useRef(null),v=Sv(g,t),b=U.useRef(null),y=Sv(b,d),x=U.useRef(y);lv((()=>{x.current=y}),[y]),U.useImperativeHandle(d,(()=>b.current),[]);const S=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(c,a),[w,E]=U.useState(S),[C,k]=U.useState(Zw(r));U.useEffect((()=>{b.current&&b.current.forceUpdate()})),U.useEffect((()=>{r&&k(Zw(r))}),[r]),lv((()=>{if(!C||!s)return;let e=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{E(e.placement)}}];null!=l&&(e=e.concat(l)),u&&null!=u.modifiers&&(e=e.concat(u.modifiers));const t=Hw(C,g.current,oS({placement:S},u,{modifiers:e}));return x.current(t),()=>{t.destroy(),x.current(null)}}),[C,i,l,s,u,S]);const L={placement:w};null!==h&&(L.TransitionProps=h);const R=Xw(),O=null!=(n=f.root)?n:"div",_=fS({elementType:O,externalSlotProps:p.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:v},ownerState:e,className:R.root});return om.jsx(O,oS({},_,{children:"function"==typeof o?o(L):o}))})),Yw=U.forwardRef((function(e,t){const{anchorEl:n,children:r,container:o,direction:a="ltr",disablePortal:i=!1,keepMounted:l=!1,modifiers:s,open:c,placement:u="bottom",popperOptions:d=Qw,popperRef:p,style:f,transition:h=!1,slotProps:m={},slots:g={}}=e,v=uS(e,Kw),[b,y]=U.useState(!0);if(!l&&!c&&(!h||b))return null;let x;if(o)x=o;else if(n){const e=Zw(n);x=e&&void 0!==e.nodeType?fv(e).body:fv(null).body}const S=c||!l||h&&!b?void 0:"none",w=h?{in:c,onEnter:()=>{y(!1)},onExited:()=>{y(!0)}}:void 0;return om.jsx(xS,{disablePortal:i,container:x,children:om.jsx(Jw,oS({anchorEl:n,direction:a,disablePortal:i,modifiers:s,ref:t,open:h?!b:c,placement:u,popperOptions:d,popperRef:p,slotProps:m,slots:g},v,{style:oS({position:"fixed",top:0,left:0,display:S},f),TransitionProps:w,children:r}))})})),eE=["onChange","maxRows","minRows","style","value"];function tE(e){return parseInt(e,10)||0}const nE={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};const rE=U.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:a,value:i}=e,l=uS(e,eE),{current:s}=U.useRef(null!=i),c=U.useRef(null),u=Sv(t,c),d=U.useRef(null),p=U.useCallback((()=>{const t=c.current,n=hv(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0,overflowing:!1};const a=d.current;a.style.width=n.width,a.value=t.value||e.placeholder||"x","\n"===a.value.slice(-1)&&(a.value+=" ");const i=n.boxSizing,l=tE(n.paddingBottom)+tE(n.paddingTop),s=tE(n.borderBottomWidth)+tE(n.borderTopWidth),u=a.scrollHeight;a.value="x";const p=a.scrollHeight;let f=u;o&&(f=Math.max(Number(o)*p,f)),r&&(f=Math.min(Number(r)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===i?l+s:0),overflowing:Math.abs(f-u)<=1}}),[r,o,e.placeholder]),f=U.useCallback((()=>{const e=p();if(null==(t=e)||0===Object.keys(t).length||0===t.outerHeightStyle&&!t.overflowing)return;var t;const n=c.current;n.style.height=`${e.outerHeightStyle}px`,n.style.overflow=e.overflowing?"hidden":""}),[p]);lv((()=>{const e=()=>{f()};const t=dv(e),n=c.current,r=hv(n);let o;return r.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(n)),()=>{t.clear(),cancelAnimationFrame(undefined),r.removeEventListener("resize",t),o&&o.disconnect()}}),[p,f]),lv((()=>{f()}));return om.jsxs(U.Fragment,{children:[om.jsx("textarea",oS({value:i,onChange:e=>{s||f(),n&&n(e)},ref:u,rows:o},l)),om.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:oS({},nE,a,{paddingTop:0,paddingBottom:0})})]})}));function oE(e){return $g("MuiIconButton",e)}const aE=Wg("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),iE=["edge","children","className","color","disabled","disableFocusRipple","size"],lE=_y(yx,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${_m(n.color)}`],n.edge&&t[`edge${_m(n.edge)}`],t[`size${_m(n.size)}`]]}})((({theme:e,ownerState:t})=>Lp({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:ab(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),(({theme:e,ownerState:t})=>{var n;const r=null==(n=(e.vars||e).palette)?void 0:n[t.color];return Lp({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&Lp({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":Lp({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ab(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${aE.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),sE=U.forwardRef((function(e,t){const n=Qb({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:a,color:i="default",disabled:l=!1,disableFocusRipple:s=!1,size:c="medium"}=n,u=Rp(n,iE),d=Lp({},n,{edge:r,color:i,disabled:l,disableFocusRipple:s,size:c}),p=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:a}=e;return Dv({root:["root",n&&"disabled","default"!==r&&`color${_m(r)}`,o&&`edge${_m(o)}`,`size${_m(a)}`]},oE,t)})(d);return om.jsx(lE,Lp({className:jg(p.root,a),centerRipple:!0,focusRipple:!s,disabled:l,ref:t},u,{ownerState:d,children:o}))}));var cE=sE;function uE(e){return $g("MuiTypography",e)}Wg("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const dE=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],pE=_y("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${_m(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Lp({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),fE={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},hE={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},mE=U.forwardRef((function(e,t){const n=Qb({props:e,name:"MuiTypography"}),r=(e=>hE[e]||e)(n.color),o=Ng(Lp({},n,{color:r})),{align:a="inherit",className:i,component:l,gutterBottom:s=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=fE}=o,f=Rp(o,dE),h=Lp({},o,{align:a,color:r,className:i,component:l,gutterBottom:s,noWrap:c,paragraph:u,variant:d,variantMapping:p}),m=l||(u?"p":p[d]||fE[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e;return Dv({root:["root",a,"inherit"!==e.align&&`align${_m(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},uE,i)})(h);return om.jsx(pE,Lp({as:m,ref:t,ownerState:h,className:jg(g.root,i)},f))}));var gE=mE,vE={};Object.defineProperty(vE,"__esModule",{value:!0});var bE=vE.default=void 0,yE=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=SE(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(U),xE=ry;function SE(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(SE=function(e){return e?n:t})(e)}bE=vE.default=function(e=null){const t=yE.useContext(xE.ThemeContext);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n};const wE=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],EE=_y(Yw,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),CE=U.forwardRef((function(e,t){var n;const r=bE(),o=Qb({props:e,name:"MuiPopper"}),{anchorEl:a,component:i,components:l,componentsProps:s,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:v,slots:b,slotProps:y}=o,x=Rp(o,wE),S=null!=(n=null==b?void 0:b.root)?n:null==l?void 0:l.Root,w=Lp({anchorEl:a,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:v},x);return om.jsx(EE,Lp({as:i,direction:null==r?void 0:r.direction,slots:{root:S},slotProps:null!=y?y:s},w,{ref:t}))}));var kE=CE;function LE({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}var RE=U.createContext(void 0);function OE(){return U.useContext(RE)}function _E(e){return om.jsx(Tg,Lp({},e,{defaultTheme:Zb,themeId:kp}))}function IE(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function TE(e){return $g("MuiInputBase",e)}var PE=Wg("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const ME=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],NE=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${_m(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},qE=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},AE=_y("div",{name:"MuiInputBase",slot:"Root",overridesResolver:NE})((({theme:e,ownerState:t})=>Lp({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${PE.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Lp({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),DE=_y("input",{name:"MuiInputBase",slot:"Input",overridesResolver:qE})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=Lp({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return Lp({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${PE.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${PE.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),zE=om.jsx(_E,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),jE=U.forwardRef((function(e,t){var n;const r=Qb({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:i,className:l,components:s={},componentsProps:c={},defaultValue:u,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:v={},inputRef:b,maxRows:y,minRows:x,multiline:S=!1,name:w,onBlur:E,onChange:C,onClick:k,onFocus:L,onKeyDown:R,onKeyUp:O,placeholder:_,readOnly:I,renderSuffix:T,rows:P,slotProps:M={},slots:N={},startAdornment:q,type:A="text",value:D}=r,z=Rp(r,ME),j=null!=v.value?v.value:D,{current:F}=U.useRef(null!=j),B=U.useRef(),$=U.useCallback((e=>{}),[]),W=Sv(B,b,v.ref,$),[H,V]=U.useState(!1),G=OE(),K=LE({props:r,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=G?G.focused:H,U.useEffect((()=>{!G&&d&&H&&(V(!1),E&&E())}),[G,d,H,E]);const Z=G&&G.onFilled,X=G&&G.onEmpty,Q=U.useCallback((e=>{!function(e,t=!1){return e&&(IE(e.value)&&""!==e.value||t&&IE(e.defaultValue)&&""!==e.defaultValue)}(e)?X&&X():Z&&Z()}),[Z,X]);lv((()=>{F&&Q({value:j})}),[j,Q,F]);U.useEffect((()=>{Q(B.current)}),[]);let J=g,Y=v;S&&"input"===J&&(Y=Lp(P?{type:void 0,minRows:P,maxRows:P}:{type:void 0,maxRows:y,minRows:x},Y),J=rE);U.useEffect((()=>{G&&G.setAdornedStart(Boolean(q))}),[G,q]);const ee=Lp({},r,{color:K.color||"primary",disabled:K.disabled,endAdornment:f,error:K.error,focused:K.focused,formControl:G,fullWidth:h,hiddenLabel:K.hiddenLabel,multiline:S,size:K.size,startAdornment:q,type:A}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:i,formControl:l,fullWidth:s,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:f,type:h}=e;return Dv({root:["root",`color${_m(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",i&&"focused",l&&"formControl",p&&"medium"!==p&&`size${_m(p)}`,u&&"multiline",f&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]},TE,t)})(ee),ne=N.root||s.Root||AE,re=M.root||c.root||{},oe=N.input||s.Input||DE;return Y=Lp({},Y,null!=(n=M.input)?n:c.input),om.jsxs(U.Fragment,{children:[!p&&zE,om.jsxs(ne,Lp({},re,!aS(ne)&&{ownerState:Lp({},ee,re.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),k&&k(e)}},z,{className:jg(te.root,re.className,l,I&&"MuiInputBase-readOnly"),children:[q,om.jsx(RE.Provider,{value:null,children:om.jsx(oe,Lp({ownerState:ee,"aria-invalid":K.error,"aria-describedby":o,autoComplete:a,autoFocus:i,defaultValue:u,disabled:K.disabled,id:m,onAnimationStart:e=>{Q("mui-auto-fill-cancel"===e.animationName?B.current:{value:"x"})},name:w,placeholder:_,readOnly:I,required:K.required,rows:P,value:j,onKeyDown:R,onKeyUp:O,type:A},Y,!aS(oe)&&{as:J,ownerState:Lp({},ee,Y.ownerState)},{ref:W,className:jg(te.input,Y.className,I&&"MuiInputBase-readOnly"),onBlur:e=>{E&&E(e),v.onBlur&&v.onBlur(e),G&&G.onBlur?G.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!F){const t=e.target||B.current;if(null==t)throw new Error(Ep(1));Q({value:t.value})}v.onChange&&v.onChange(e,...t),C&&C(e,...t)},onFocus:e=>{K.disabled?e.stopPropagation():(L&&L(e),v.onFocus&&v.onFocus(e),G&&G.onFocus?G.onFocus(e):V(!0))}}))}),f,T?T(Lp({},K,{startAdornment:q})):null]}))]})}));var FE=jE;function BE(e){return $g("MuiOutlinedInput",e)}var $E=Lp({},PE,Wg("MuiOutlinedInput",["root","notchedOutline","input"]));const WE=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],HE={entering:{opacity:1},entered:{opacity:1}},UE=U.forwardRef((function(e,t){const n=Xb(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:i,easing:l,in:s,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=r,TransitionComponent:v=Vy}=e,b=Rp(e,WE),y=U.useRef(null),x=Sv(y,i.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},w=S(d),E=S(((e,t)=>{Qx(e);const r=Jx({style:m,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),C=S(u),k=S(h),L=S((e=>{const t=Jx({style:m,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),R=S(f);return om.jsx(v,Lp({appear:a,in:s,nodeRef:y,onEnter:E,onEntered:C,onEntering:w,onExit:L,onExited:R,onExiting:k,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>U.cloneElement(i,Lp({style:Lp({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},HE[e],m,i.props.style),ref:x},t))}))}));var VE=UE;function GE(e){return $g("MuiBackdrop",e)}Wg("MuiBackdrop",["root","invisible"]);const KE=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],ZE=_y("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Lp({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}))),XE=U.forwardRef((function(e,t){var n,r,o;const a=Qb({props:e,name:"MuiBackdrop"}),{children:i,className:l,component:s="div",components:c={},componentsProps:u={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=VE,transitionDuration:g}=a,v=Rp(a,KE),b=Lp({},a,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return Dv({root:["root",n&&"invisible"]},GE,t)})(b),x=null!=(n=f.root)?n:u.root;return om.jsx(m,Lp({in:p,timeout:g},v,{children:om.jsx(ZE,Lp({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:c.Root)?r:s,className:jg(y.root,l,null==x?void 0:x.className),ownerState:Lp({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:i}))}))}));var QE=XE;function JE(e){return $g("MuiBadge",e)}var YE=Wg("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]);const eC=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],tC=Qb,nC=_y("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),rC=_y("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${_m(n.anchorOrigin.vertical)}${_m(n.anchorOrigin.horizontal)}${_m(n.overlap)}`],"default"!==n.color&&t[`color${_m(n.color)}`],n.invisible&&t.invisible]}})((({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys((null!=(t=e.vars)?t:e).palette).filter((t=>{var n,r;return(null!=(n=e.vars)?n:e).palette[t].main&&(null!=(r=e.vars)?r:e).palette[t].contrastText})).map((t=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}}))),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${YE.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${YE.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${YE.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${YE.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${YE.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${YE.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${YE.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:e})=>"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap,style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${YE.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]}})),oC=U.forwardRef((function(e,t){var n,r,o,a,i,l;const s=tC({props:e,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:u,component:d,components:p={},componentsProps:f={},children:h,overlap:m="rectangular",color:g="default",invisible:v=!1,max:b=99,badgeContent:y,slots:x,slotProps:S,showZero:w=!1,variant:E="standard"}=s,C=Rp(s,eC),{badgeContent:k,invisible:L,max:R,displayValue:O}=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,a=Av({badgeContent:t,max:r});let i=n;!1!==n||0!==t||o||(i=!0);const{badgeContent:l,max:s=r}=i?a:e;return{badgeContent:l,invisible:i,max:s,displayValue:l&&Number(l)>s?`${s}+`:l}}({max:b,invisible:v,badgeContent:y,showZero:w}),_=Av({anchorOrigin:c,color:g,overlap:m,variant:E,badgeContent:y}),I=L||null==k&&"dot"!==E,{color:T=g,overlap:P=m,anchorOrigin:M=c,variant:N=E}=I?_:s,q="dot"!==N?O:void 0,A=Lp({},s,{badgeContent:k,invisible:I,max:R,displayValue:q,showZero:w,anchorOrigin:M,color:T,overlap:P,variant:N}),D=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:a,classes:i={}}=e;return Dv({root:["root"],badge:["badge",a,r&&"invisible",`anchorOrigin${_m(n.vertical)}${_m(n.horizontal)}`,`anchorOrigin${_m(n.vertical)}${_m(n.horizontal)}${_m(o)}`,`overlap${_m(o)}`,"default"!==t&&`color${_m(t)}`]},JE,i)})(A),z=null!=(n=null!=(r=null==x?void 0:x.root)?r:p.Root)?n:nC,j=null!=(o=null!=(a=null==x?void 0:x.badge)?a:p.Badge)?o:rC,F=null!=(i=null==S?void 0:S.root)?i:f.root,B=null!=(l=null==S?void 0:S.badge)?l:f.badge,$=fS({elementType:z,externalSlotProps:F,externalForwardedProps:C,additionalProps:{ref:t,as:d},ownerState:A,className:jg(null==F?void 0:F.className,D.root,u)}),W=fS({elementType:j,externalSlotProps:B,ownerState:A,className:jg(D.badge,null==B?void 0:B.className)});return om.jsxs(z,Lp({},$,{children:[h,om.jsx(j,Lp({},W,{children:q}))]}))}));var aC=oC;var iC=Wg("MuiBox",["root"]);const lC=Kb(),sC=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,a=sm("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Eg),i=U.forwardRef((function(e,i){const l=Ig(n),s=Ng(e),{className:c,component:u="div"}=s,d=pm(s,Fg);return om.jsx(a,dm({as:u,ref:i,className:jg(c,o?o(r):r),theme:t&&l[t]||l},d))}));return i}({themeId:kp,defaultTheme:lC,defaultClassName:iC.root,generateClassName:Dg.generate});var cC=sC;function uC(e){return $g("PrivateSwitchBase",e)}Wg("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const dC=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],pC=_y(yx)((({ownerState:e})=>Lp({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),fC=_y("input",{shouldForwardProp:Oy})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),hC=U.forwardRef((function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,className:a,defaultChecked:i,disabled:l,disableFocusRipple:s=!1,edge:c=!1,icon:u,id:d,inputProps:p,inputRef:f,name:h,onBlur:m,onChange:g,onFocus:v,readOnly:b,required:y=!1,tabIndex:x,type:S,value:w}=e,E=Rp(e,dC),[C,k]=yv({controlled:r,default:Boolean(i),name:"SwitchBase",state:"checked"}),L=OE();let R=l;L&&void 0===R&&(R=L.disabled);const O="checkbox"===S||"radio"===S,_=Lp({},e,{checked:C,disabled:R,disableFocusRipple:s,edge:c}),I=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return Dv({root:["root",n&&"checked",r&&"disabled",o&&`edge${_m(o)}`],input:["input"]},uC,t)})(_);return om.jsxs(pC,Lp({component:"span",className:jg(I.root,a),centerRipple:!0,focusRipple:!s,disabled:R,tabIndex:null,role:void 0,onFocus:e=>{v&&v(e),L&&L.onFocus&&L.onFocus(e)},onBlur:e=>{m&&m(e),L&&L.onBlur&&L.onBlur(e)},ownerState:_,ref:t},E,{children:[om.jsx(fC,Lp({autoFocus:n,checked:r,defaultChecked:i,className:I.input,disabled:R,id:O?d:void 0,name:h,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;k(t),g&&g(e,t)},readOnly:b,ref:f,required:y,ownerState:_,tabIndex:x,type:S},"checkbox"===S&&void 0===w?{}:{value:w},p)),C?o:u]}))}));var mC=hC,gC=Kx(om.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),vC=Kx(om.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),bC=Kx(om.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function yC(e){return $g("MuiCheckbox",e)}var xC=Wg("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);const SC=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],wC=_y(mC,{shouldForwardProp:e=>Oy(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${_m(n.size)}`],"default"!==n.color&&t[`color${_m(n.color)}`]]}})((({theme:e,ownerState:t})=>Lp({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ab("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${xC.checked}, &.${xC.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${xC.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),EC=om.jsx(vC,{}),CC=om.jsx(gC,{}),kC=om.jsx(bC,{}),LC=U.forwardRef((function(e,t){var n,r;const o=Qb({props:e,name:"MuiCheckbox"}),{checkedIcon:a=EC,color:i="primary",icon:l=CC,indeterminate:s=!1,indeterminateIcon:c=kC,inputProps:u,size:d="medium",className:p}=o,f=Rp(o,SC),h=s?c:l,m=s?c:a,g=Lp({},o,{color:i,indeterminate:s,size:d}),v=(e=>{const{classes:t,indeterminate:n,color:r,size:o}=e;return Lp({},t,Dv({root:["root",n&&"indeterminate",`color${_m(r)}`,`size${_m(o)}`]},yC,t))})(g);return om.jsx(wC,Lp({type:"checkbox",inputProps:Lp({"data-indeterminate":s},u),icon:U.cloneElement(h,{fontSize:null!=(n=h.props.fontSize)?n:d}),checkedIcon:U.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:d}),ownerState:g,ref:t,className:jg(v.root,p)},f,{classes:v}))}));var RC=LC;function OC(e){return $g("MuiCircularProgress",e)}Wg("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const _C=["className","color","disableShrink","size","style","thickness","value","variant"];let IC,TC,PC,MC,NC=e=>e;const qC=44,AC=Ph(IC||(IC=NC`
107
107
  0% {
108
108
  transform: rotate(0deg);
109
109
  }
@@ -111,7 +111,7 @@
111
111
  100% {
112
112
  transform: rotate(360deg);
113
113
  }
114
- `)),yE=Ih(fE||(fE=gE`
114
+ `)),DC=Ph(TC||(TC=NC`
115
115
  0% {
116
116
  stroke-dasharray: 1px, 200px;
117
117
  stroke-dashoffset: 0;
@@ -126,9 +126,9 @@
126
126
  stroke-dasharray: 100px, 200px;
127
127
  stroke-dashoffset: -125px;
128
128
  }
129
- `)),xE=yb("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${pm(n.color)}`]]}})((({ownerState:e,theme:t})=>Cp({display:"inline-block"},"determinate"===e.variant&&{transition:t.transitions.create("transform")},"inherit"!==e.color&&{color:(t.vars||t).palette[e.color].main})),(({ownerState:e})=>"indeterminate"===e.variant&&Oh(hE||(hE=gE`
129
+ `)),zC=_y("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${_m(n.color)}`]]}})((({ownerState:e,theme:t})=>Lp({display:"inline-block"},"determinate"===e.variant&&{transition:t.transitions.create("transform")},"inherit"!==e.color&&{color:(t.vars||t).palette[e.color].main})),(({ownerState:e})=>"indeterminate"===e.variant&&Th(PC||(PC=NC`
130
130
  animation: ${0} 1.4s linear infinite;
131
- `),bE))),SE=yb("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),wE=yb("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${pm(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})((({ownerState:e,theme:t})=>Cp({stroke:"currentColor"},"determinate"===e.variant&&{transition:t.transitions.create("stroke-dashoffset")},"indeterminate"===e.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})),(({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink&&Oh(mE||(mE=gE`
131
+ `),AC))),jC=_y("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),FC=_y("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${_m(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})((({ownerState:e,theme:t})=>Lp({stroke:"currentColor"},"determinate"===e.variant&&{transition:t.transitions.create("stroke-dashoffset")},"indeterminate"===e.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})),(({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink&&Th(MC||(MC=NC`
132
132
  animation: ${0} 1.4s ease-in-out infinite;
133
- `),yE))),EE=H.forwardRef((function(e,t){const n=vb({props:e,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:a=!1,size:i=40,style:l,thickness:s=3.6,value:c=0,variant:u="indeterminate"}=n,d=kp(n,dE),p=Cp({},n,{color:o,disableShrink:a,size:i,thickness:s,value:c,variant:u}),f=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e;return Dm({root:["root",n,`color${pm(r)}`],svg:["svg"],circle:["circle",`circle${pm(n)}`,o&&"circleDisableShrink"]},uE,t)})(p),h={},m={},g={};if("determinate"===u){const e=2*Math.PI*((vE-s)/2);h.strokeDasharray=e.toFixed(3),g["aria-valuenow"]=Math.round(c),h.strokeDashoffset=`${((100-c)/100*e).toFixed(3)}px`,m.transform="rotate(-90deg)"}return tm.jsx(xE,Cp({className:rv(f.root,r),style:Cp({width:i,height:i},m,l),ownerState:p,ref:t,role:"progressbar"},g,d,{children:tm.jsx(SE,{className:f.svg,ownerState:p,viewBox:"22 22 44 44",children:tm.jsx(wE,{className:f.circle,style:h,ownerState:p,cx:vE,cy:vE,r:(vE-s)/2,fill:"none",strokeWidth:s})})}))}));var CE=EE;function kE(e){return $m("MuiModal",e)}Wm("MuiModal",["root","hidden","backdrop"]);const RE=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],LE=yb("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Cp({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),OE=yb(Nw,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),IE=H.forwardRef((function(e,t){var n,r,o,a,i,l;const s=vb({name:"MuiModal",props:e}),{BackdropComponent:c=OE,BackdropProps:u,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:w=!1,disableScrollLock:E=!1,hideBackdrop:C=!1,keepMounted:k=!1,onBackdropClick:R,open:L,slotProps:O,slots:I}=s,_=kp(s,RE),T=Cp({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:w,disableScrollLock:E,hideBackdrop:C,keepMounted:k}),{getRootProps:P,getBackdropProps:M,getTransitionProps:N,portalRef:q,isTopModal:A,exited:z,hasTransition:D}=YS(Cp({},T,{rootRef:t})),j=Cp({},T,{exited:z}),F=(e=>{const{open:t,exited:n,classes:r}=e;return Dm({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},kE,r)})(j),B={};if(void 0===f.props.tabIndex&&(B.tabIndex="-1"),D){const{onEnter:e,onExited:t}=N();B.onEnter=e,B.onExited=t}const $=null!=(n=null!=(r=null==I?void 0:I.root)?r:g.Root)?n:LE,W=null!=(o=null!=(a=null==I?void 0:I.backdrop)?a:g.Backdrop)?o:c,U=null!=(i=null==O?void 0:O.root)?i:v.root,V=null!=(l=null==O?void 0:O.backdrop)?l:v.backdrop,G=gx({elementType:$,externalSlotProps:U,externalForwardedProps:_,getSlotProps:P,additionalProps:{ref:t,as:m},ownerState:j,className:rv(d,null==U?void 0:U.className,null==F?void 0:F.root,!j.open&&j.exited&&(null==F?void 0:F.hidden))}),K=gx({elementType:W,externalSlotProps:V,additionalProps:u,getSlotProps:e=>M(Cp({},e,{onClick:t=>{R&&R(t),null!=e&&e.onClick&&e.onClick(t)}})),className:rv(null==V?void 0:V.className,null==u?void 0:u.className,null==F?void 0:F.backdrop),ownerState:j});return k||L||D&&!z?tm.jsx(DS,{ref:q,container:h,disablePortal:S,children:tm.jsxs($,Cp({},G,{children:[!C&&c?tm.jsx(W,Cp({},K)):null,tm.jsx(xx,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:w,isEnabled:A,open:L,children:H.cloneElement(f,B)})]}))}):null}));var _E=IE;function TE(e){return $m("MuiDivider",e)}var PE=Wm("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const ME=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],NE=yb("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>Cp({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Cv(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>Cp({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Cp({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>Cp({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>Cp({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),qE=yb("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Cp({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),AE=H.forwardRef((function(e,t){const n=vb({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:a,component:i=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:c="horizontal",role:u=("hr"!==i?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=kp(n,ME),h=Cp({},n,{absolute:r,component:i,flexItem:l,light:s,orientation:c,role:u,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:a,orientation:i,textAlign:l,variant:s}=e;return Dm({root:["root",t&&"absolute",s,a&&"light","vertical"===i&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===i&&"withChildrenVertical","right"===l&&"vertical"!==i&&"textAlignRight","left"===l&&"vertical"!==i&&"textAlignLeft"],wrapper:["wrapper","vertical"===i&&"wrapperVertical"]},TE,r)})(h);return tm.jsx(NE,Cp({as:i,className:rv(m.root,a),role:u,ref:t,ownerState:h},f,{children:o?tm.jsx(qE,{className:m.wrapper,ownerState:h,children:o}):null}))}));AE.muiSkipListHighlight=!0;var zE=AE;const DE=function(e={}){const{createStyledComponent:t=qv,useThemeProps:n=Av,componentName:r="MuiStack"}=e,o=t(Dv),a=H.forwardRef((function(e,t){const a=tv(n(e)),{component:i="div",direction:l="column",spacing:s=0,divider:c,children:u,className:d,useFlexGap:p=!1}=a,f=lm(a,Mv),h={direction:l,spacing:s,useFlexGap:p},m=Dm({root:["root"]},(e=>$m(r,e)),{});return tm.jsx(o,im({as:i,ownerState:h,ref:t,className:rv(m.root,d)},f,{children:c?zv(u,c):u}))}));return a}({createStyledComponent:yb("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>vb({props:e,name:"MuiStack"})});var jE=DE;function FE(e){return $m("MuiFormControlLabel",e)}var BE=Wm("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);const $E=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],WE=yb("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${BE.label}`]:t.label},t.root,t[`labelPlacement${pm(n.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>Cp({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${BE.disabled}`]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${BE.label}`]:{[`&.${BE.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),HE=yb("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${BE.error}`]:{color:(e.vars||e).palette.error.main}}))),UE=H.forwardRef((function(e,t){var n,r;const o=vb({props:e,name:"MuiFormControlLabel"}),{className:a,componentsProps:i={},control:l,disabled:s,disableTypography:c,label:u,labelPlacement:d="end",required:p,slotProps:f={}}=o,h=kp(o,$E),m=dw(),g=null!=(n=null!=s?s:l.props.disabled)?n:null==m?void 0:m.disabled,v=null!=p?p:l.props.required,b={disabled:g,required:v};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===l.props[e]&&void 0!==o[e]&&(b[e]=o[e])}));const y=cw({props:o,muiFormControl:m,states:["error"]}),x=Cp({},o,{disabled:g,labelPlacement:d,required:v,error:y.error}),S=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:a}=e;return Dm({root:["root",n&&"disabled",`labelPlacement${pm(r)}`,o&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]},FE,t)})(x),w=null!=(r=f.typography)?r:i.typography;let E=u;return null==E||E.type===ix||c||(E=tm.jsx(ix,Cp({component:"span"},w,{className:rv(S.label,null==w?void 0:w.className),children:E}))),tm.jsxs(WE,Cp({className:rv(S.root,a),ownerState:x,ref:t},h,{children:[H.cloneElement(l,b),v?tm.jsxs(jE,{display:"block",children:[E,tm.jsxs(HE,{ownerState:x,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]}):E]}))}));var VE=UE;var GE=H.createContext();function KE(e){return $m("MuiGrid",e)}const ZE=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],XE=Wm("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>`spacing-xs-${e}`)),...["column-reverse","column","row-reverse","row"].map((e=>`direction-xs-${e}`)),...["nowrap","wrap-reverse","wrap"].map((e=>`wrap-xs-${e}`)),...ZE.map((e=>`grid-xs-${e}`)),...ZE.map((e=>`grid-sm-${e}`)),...ZE.map((e=>`grid-md-${e}`)),...ZE.map((e=>`grid-lg-${e}`)),...ZE.map((e=>`grid-xl-${e}`))]),QE=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function JE(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function YE({breakpoints:e,values:t}){let n="";Object.keys(t).forEach((e=>{""===n&&0!==t[e]&&(n=e)}));const r=Object.keys(e).sort(((t,n)=>e[t]-e[n]));return r.slice(0,r.indexOf(n))}const eC=yb("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:a,spacing:i,wrap:l,zeroMinWidth:s,breakpoints:c}=n;let u=[];r&&(u=function(e,t,n={}){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach((t=>{const o=e[t];Number(o)>0&&r.push(n[`spacing-${t}-${String(o)}`])})),r}(i,c,t));const d=[];return c.forEach((e=>{const r=n[e];r&&d.push(t[`grid-${e}-${String(r)}`])})),[t.root,r&&t.container,a&&t.item,s&&t.zeroMinWidth,...u,"row"!==o&&t[`direction-xs-${String(o)}`],"wrap"!==l&&t[`wrap-xs-${String(l)}`],...d]}})((({ownerState:e})=>Cp({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},"wrap"!==e.wrap&&{flexWrap:e.wrap})),(function({theme:e,ownerState:t}){return Qm({theme:e},eg({values:t.direction,breakpoints:e.breakpoints.values}),(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${XE.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&0!==r){const t=eg({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=YE({breakpoints:e.breakpoints.values,values:t})),o=Qm({theme:e},t,((t,r)=>{var o;const a=e.spacing(t);return"0px"!==a?{marginTop:`-${JE(a)}`,[`& > .${XE.item}`]:{paddingTop:JE(a)}}:null!=(o=n)&&o.includes(r)?{}:{marginTop:0,[`& > .${XE.item}`]:{paddingTop:0}}}))}return o}),(function({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&0!==r){const t=eg({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=YE({breakpoints:e.breakpoints.values,values:t})),o=Qm({theme:e},t,((t,r)=>{var o;const a=e.spacing(t);return"0px"!==a?{width:`calc(100% + ${JE(a)})`,marginLeft:`-${JE(a)}`,[`& > .${XE.item}`]:{paddingLeft:JE(a)}}:null!=(o=n)&&o.includes(r)?{}:{width:"100%",marginLeft:0,[`& > .${XE.item}`]:{paddingLeft:0}}}))}return o}),(function({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce(((r,o)=>{let a={};if(t[o]&&(n=t[o]),!n)return r;if(!0===n)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===n)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=eg({values:t.columns,breakpoints:e.breakpoints.values}),l="object"==typeof i?i[o]:i;if(null==l)return r;const s=Math.round(n/l*1e8)/1e6+"%";let c={};if(t.container&&t.item&&0!==t.columnSpacing){const n=e.spacing(t.columnSpacing);if("0px"!==n){const e=`calc(${s} + ${JE(n)})`;c={flexBasis:e,maxWidth:e}}}a=Cp({flexBasis:s,flexGrow:0,maxWidth:s},c)}return 0===e.breakpoints.values[o]?Object.assign(r,a):r[e.breakpoints.up(o)]=a,r}),{})}));const tC=e=>{const{classes:t,container:n,direction:r,item:o,spacing:a,wrap:i,zeroMinWidth:l,breakpoints:s}=e;let c=[];n&&(c=function(e,t){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[`spacing-xs-${String(e)}`];const n=[];return t.forEach((t=>{const r=e[t];if(Number(r)>0){const e=`spacing-${t}-${String(r)}`;n.push(e)}})),n}(a,s));const u=[];s.forEach((t=>{const n=e[t];n&&u.push(`grid-${t}-${String(n)}`)}));return Dm({root:["root",n&&"container",o&&"item",l&&"zeroMinWidth",...c,"row"!==r&&`direction-xs-${String(r)}`,"wrap"!==i&&`wrap-xs-${String(i)}`,...u]},KE,t)},nC=H.forwardRef((function(e,t){const n=vb({props:e,name:"MuiGrid"}),{breakpoints:r}=gb(),o=tv(n),{className:a,columns:i,columnSpacing:l,component:s="div",container:c=!1,direction:u="row",item:d=!1,rowSpacing:p,spacing:f=0,wrap:h="wrap",zeroMinWidth:m=!1}=o,g=kp(o,QE),v=p||f,b=l||f,y=H.useContext(GE),x=c?i||12:y,S={},w=Cp({},g);r.keys.forEach((e=>{null!=g[e]&&(S[e]=g[e],delete w[e])}));const E=Cp({},o,{columns:x,container:c,direction:u,item:d,rowSpacing:v,columnSpacing:b,wrap:h,zeroMinWidth:m,spacing:f},S,{breakpoints:r.keys}),C=tC(E);return tm.jsx(GE.Provider,{value:x,children:tm.jsx(eC,Cp({ownerState:E,className:rv(C.root,a),as:s,ref:t},w))})}));var rC=nC;const oC=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function aC(e){return`scale(${e}, ${e**2})`}const iC={entering:{opacity:1,transform:aC(1)},entered:{opacity:1,transform:"none"}},lC="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),sC=H.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:a,in:i,onEnter:l,onEntered:s,onEntering:c,onExit:u,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=Ab}=e,g=kp(e,oC),v=H.useRef(),b=H.useRef(),y=gb(),x=H.useRef(null),S=km(x,o.ref,t),w=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},E=w(c),C=w(((e,t)=>{By(e);const{duration:n,delay:r,easing:o}=$y({style:f,timeout:h,easing:a},{mode:"enter"});let i;"auto"===h?(i=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=i):i=n,e.style.transition=[y.transitions.create("opacity",{duration:i,delay:r}),y.transitions.create("transform",{duration:lC?i:.666*i,delay:r,easing:o})].join(","),l&&l(e,t)})),k=w(s),R=w(p),L=w((e=>{const{duration:t,delay:n,easing:r}=$y({style:f,timeout:h,easing:a},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:lC?o:.666*o,delay:lC?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=aC(.75),u&&u(e)})),O=w(d);return H.useEffect((()=>()=>{clearTimeout(v.current)}),[]),tm.jsx(m,Cp({appear:r,in:i,nodeRef:x,onEnter:C,onEntered:k,onEntering:E,onExit:L,onExited:O,onExiting:R,addEndListener:e=>{"auto"===h&&(v.current=setTimeout(e,b.current||0)),n&&n(x.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>H.cloneElement(o,Cp({style:Cp({opacity:0,transform:aC(.75),visibility:"exited"!==e||i?void 0:"hidden"},iC[e],f,o.props.style),ref:S},t))}))}));sC.muiSupportAuto=!0;var cC=sC;function uC(e){return $m("MuiIcon",e)}Wm("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const dC=["baseClassName","className","color","component","fontSize"],pC=yb("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${pm(n.color)}`],t[`fontSize${pm(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:e.typography.pxToRem(20),medium:e.typography.pxToRem(24),large:e.typography.pxToRem(36)}[t.fontSize],color:{primary:(e.vars||e).palette.primary.main,secondary:(e.vars||e).palette.secondary.main,info:(e.vars||e).palette.info.main,success:(e.vars||e).palette.success.main,warning:(e.vars||e).palette.warning.main,action:(e.vars||e).palette.action.active,error:(e.vars||e).palette.error.main,disabled:(e.vars||e).palette.action.disabled,inherit:void 0}[t.color]}))),fC=H.forwardRef((function(e,t){const n=vb({props:e,name:"MuiIcon"}),{baseClassName:r="material-icons",className:o,color:a="inherit",component:i="span",fontSize:l="medium"}=n,s=kp(n,dC),c=Cp({},n,{baseClassName:r,color:a,component:i,fontSize:l}),u=(e=>{const{color:t,fontSize:n,classes:r}=e;return Dm({root:["root","inherit"!==t&&`color${pm(t)}`,`fontSize${pm(n)}`]},uC,r)})(c);return tm.jsx(pC,Cp({as:i,className:rv(r,"notranslate",u.root,o),ownerState:c,"aria-hidden":!0,ref:t},s))}));fC.muiName="Icon";var hC=fC;function mC(e){return $m("MuiInputAdornment",e)}var gC,vC=Wm("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);const bC=["children","className","component","disablePointerEvents","disableTypography","position","variant"],yC=yb("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${pm(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>Cp({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${vC.positionStart}&:not(.${vC.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),xC=H.forwardRef((function(e,t){const n=vb({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:a="div",disablePointerEvents:i=!1,disableTypography:l=!1,position:s,variant:c}=n,u=kp(n,bC),d=dw()||{};let p=c;c&&d.variant,d&&!p&&(p=d.variant);const f=Cp({},n,{hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:i,position:s,variant:p}),h=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:a,variant:i}=e;return Dm({root:["root",n&&"disablePointerEvents",o&&`position${pm(o)}`,i,r&&"hiddenLabel",a&&`size${pm(a)}`]},mC,t)})(f);return tm.jsx(uw.Provider,{value:null,children:tm.jsx(yC,Cp({as:a,ownerState:f,className:rv(h.root,o),ref:t},u,{children:"string"!=typeof r||l?tm.jsxs(H.Fragment,{children:["start"===s?gC||(gC=tm.jsx("span",{className:"notranslate",children:"​"})):null,r]}):tm.jsx(ix,{color:"text.secondary",children:r})}))})}));var SC=xC;var wC=H.createContext({});function EC(e){return $m("MuiList",e)}Wm("MuiList",["root","padding","dense","subheader"]);const CC=["children","className","component","dense","disablePadding","subheader"],kC=yb("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>Cp({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),RC=H.forwardRef((function(e,t){const n=vb({props:e,name:"MuiList"}),{children:r,className:o,component:a="ul",dense:i=!1,disablePadding:l=!1,subheader:s}=n,c=kp(n,CC),u=H.useMemo((()=>({dense:i})),[i]),d=Cp({},n,{component:a,dense:i,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Dm({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},EC,t)})(d);return tm.jsx(wC.Provider,{value:u,children:tm.jsxs(kC,Cp({as:a,className:rv(p.root,o),ref:t,ownerState:d},c,{children:[s,r]}))})}));var LC=RC;function OC(e){return $m("MuiListItem",e)}var IC=Wm("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);var _C=Wm("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function TC(e){return $m("MuiListItemSecondaryAction",e)}Wm("MuiListItemSecondaryAction",["root","disableGutters"]);const PC=["className"],MC=yb("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>Cp({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),NC=H.forwardRef((function(e,t){const n=vb({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=kp(n,PC),a=Cp({},n,{disableGutters:H.useContext(wC).disableGutters}),i=(e=>{const{disableGutters:t,classes:n}=e;return Dm({root:["root",t&&"disableGutters"]},TC,n)})(a);return tm.jsx(MC,Cp({className:rv(i.root,r),ownerState:a,ref:t},o))}));NC.muiName="ListItemSecondaryAction";var qC=NC;const AC=["className"],zC=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],DC=yb("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})((({theme:e,ownerState:t})=>Cp({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&Cp({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${_C.root}`]:{paddingRight:48}},{[`&.${IC.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${IC.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Cv(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${IC.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Cv(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${IC.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${IC.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Cv(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Cv(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),jC=yb("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),FC=H.forwardRef((function(e,t){const n=vb({props:e,name:"MuiListItem"}),{alignItems:r="center",autoFocus:o=!1,button:a=!1,children:i,className:l,component:s,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:p}={},dense:f=!1,disabled:h=!1,disableGutters:m=!1,disablePadding:g=!1,divider:v=!1,focusVisibleClassName:b,secondaryAction:y,selected:x=!1,slotProps:S={},slots:w={}}=n,E=kp(n.ContainerProps,AC),C=kp(n,zC),k=H.useContext(wC),R=H.useMemo((()=>({dense:f||k.dense||!1,alignItems:r,disableGutters:m})),[r,k.dense,f,m]),L=H.useRef(null);ym((()=>{o&&L.current&&L.current.focus()}),[o]);const O=H.Children.toArray(i),I=O.length&&mm(O[O.length-1],["ListItemSecondaryAction"]),_=Cp({},n,{alignItems:r,autoFocus:o,button:a,dense:R.dense,disabled:h,disableGutters:m,disablePadding:g,divider:v,hasSecondaryAction:I,selected:x}),T=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:a,disableGutters:i,disablePadding:l,divider:s,hasSecondaryAction:c,selected:u}=e;return Dm({root:["root",o&&"dense",!i&&"gutters",!l&&"padding",s&&"divider",a&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},OC,r)})(_),P=km(L,t),M=w.root||c.Root||DC,N=S.root||u.root||{},q=Cp({className:rv(T.root,N.className,l),disabled:h},C);let A=s||"li";return a&&(q.component=s||"div",q.focusVisibleClassName=rv(IC.focusVisible,b),A=cy),I?(A=q.component||s?A:"div","li"===d&&("li"===A?A="div":"li"===q.component&&(q.component="div")),tm.jsx(wC.Provider,{value:R,children:tm.jsxs(jC,Cp({as:d,className:rv(T.container,p),ref:P,ownerState:_},E,{children:[tm.jsx(M,Cp({},N,!sx(M)&&{as:A,ownerState:Cp({},_,N.ownerState)},q,{children:O})),O.pop()]}))})):tm.jsx(wC.Provider,{value:R,children:tm.jsxs(M,Cp({},N,{as:A,ref:P},!sx(M)&&{ownerState:Cp({},_,N.ownerState)},q,{children:[O,y&&tm.jsx(qC,{children:y})]}))})}));var BC=FC;function $C(e){return $m("MuiListItemIcon",e)}var WC=Wm("MuiListItemIcon",["root","alignItemsFlexStart"]);const HC=["className"],UC=yb("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>Cp({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),VC=H.forwardRef((function(e,t){const n=vb({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=kp(n,HC),a=Cp({},n,{alignItems:H.useContext(wC).alignItems}),i=(e=>{const{alignItems:t,classes:n}=e;return Dm({root:["root","flex-start"===t&&"alignItemsFlexStart"]},$C,n)})(a);return tm.jsx(UC,Cp({className:rv(i.root,r),ownerState:a,ref:t},o))}));var GC=VC;var KC=Wm("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const ZC=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function XC(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function QC(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function JC(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function YC(e,t,n,r,o,a){let i=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(i)return!1;i=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&JC(l,a)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}const ek=H.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:a,className:i,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:c,variant:u="selectedMenu"}=e,d=kp(e,ZC),p=H.useRef(null),f=H.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ym((()=>{r&&p.current.focus()}),[r]),H.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${qm(gm(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const h=km(p,t);let m=-1;H.Children.forEach(a,((e,t)=>{H.isValidElement(e)?(e.props.disabled||("selectedMenu"===u&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=a.length&&(m=-1))):m===t&&(m+=1,m>=a.length&&(m=-1))}));const g=H.Children.map(a,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===u&&(t.tabIndex=0),H.cloneElement(e,t)}return e}));return tm.jsx(LC,Cp({role:"menu",ref:h,className:i,onKeyDown:e=>{const t=p.current,n=e.key,r=gm(t).activeElement;if("ArrowDown"===n)e.preventDefault(),YC(t,r,s,l,XC);else if("ArrowUp"===n)e.preventDefault(),YC(t,r,s,l,QC);else if("Home"===n)e.preventDefault(),YC(t,null,s,l,XC);else if("End"===n)e.preventDefault(),YC(t,null,s,l,QC);else if(1===n.length){const o=f.current,a=n.toLowerCase(),i=performance.now();o.keys.length>0&&(i-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&a!==o.keys[0]&&(o.repeating=!1)),o.lastTime=i,o.keys.push(a);const s=r&&!o.repeating&&JC(r,o);o.previousKeyMatched&&(s||YC(t,r,!1,l,XC,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1},d,{children:g}))}));var tk=ek;function nk(e){return $m("MuiPopover",e)}Wm("MuiPopover",["root","paper"]);const rk=["onEntering"],ok=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],ak=["slotProps"];function ik(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function lk(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function sk(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function ck(e){return"function"==typeof e?e():e}const uk=yb(_E,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),dk=yb(Gy,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),pk=H.forwardRef((function(e,t){var n,r,o;const a=vb({props:e,name:"MuiPopover"}),{action:i,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=cC,transitionDuration:w="auto",TransitionProps:{onEntering:E}={},disableScrollLock:C=!1}=a,k=kp(a.TransitionProps,rk),R=kp(a,ok),L=null!=(n=null==y?void 0:y.paper)?n:v,O=H.useRef(),I=km(O,L.ref),_=Cp({},a,{anchorOrigin:s,anchorReference:u,elevation:h,marginThreshold:m,externalPaperSlotProps:L,transformOrigin:x,TransitionComponent:S,transitionDuration:w,TransitionProps:k}),T=(e=>{const{classes:t}=e;return Dm({root:["root"],paper:["paper"]},nk,t)})(_),P=H.useCallback((()=>{if("anchorPosition"===u)return c;const e=ck(l),t=(e&&1===e.nodeType?e:gm(O.current).body).getBoundingClientRect();return{top:t.top+ik(t,s.vertical),left:t.left+lk(t,s.horizontal)}}),[l,s.horizontal,s.vertical,c,u]),M=H.useCallback((e=>({vertical:ik(e,x.vertical),horizontal:lk(e,x.horizontal)})),[x.horizontal,x.vertical]),N=H.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=M(t);if("none"===u)return{top:null,left:null,transformOrigin:sk(n)};const r=P();let o=r.top-n.vertical,a=r.left-n.horizontal;const i=o+t.height,s=a+t.width,c=vm(ck(l)),d=c.innerHeight-m,p=c.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,n.vertical+=e}else if(null!==m&&i>d){const e=i-d;o-=e,n.vertical+=e}if(null!==m&&a<m){const e=a-m;a-=e,n.horizontal+=e}else if(s>p){const e=s-p;a-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(a)}px`,transformOrigin:sk(n)}}),[l,u,P,M,m]),[q,A]=H.useState(g),z=H.useCallback((()=>{const e=O.current;if(!e)return;const t=N(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,A(!0)}),[N]);H.useEffect((()=>(C&&window.addEventListener("scroll",z),()=>window.removeEventListener("scroll",z))),[l,C,z]);H.useEffect((()=>{g&&z()})),H.useImperativeHandle(i,(()=>g?{updatePosition:()=>{z()}}:null),[g,z]),H.useEffect((()=>{if(!g)return;const e=hm((()=>{z()})),t=vm(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,z]);let D=w;"auto"!==w||S.muiSupportAuto||(D=void 0);const j=f||(l?gm(ck(l)).body:void 0),F=null!=(r=null==b?void 0:b.root)?r:uk,B=null!=(o=null==b?void 0:b.paper)?o:dk,$=gx({elementType:B,externalSlotProps:Cp({},L,{style:q?L.style:Cp({},L.style,{opacity:0})}),additionalProps:{elevation:h,ref:I},ownerState:_,className:rv(T.paper,null==L?void 0:L.className)}),W=gx({elementType:F,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:R,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:j,open:g},ownerState:_,className:rv(T.root,p)}),{slotProps:U}=W,V=kp(W,ak);return tm.jsx(F,Cp({},V,!sx(F)&&{slotProps:U,disableScrollLock:C},{children:tm.jsx(S,Cp({appear:!0,in:g,onEntering:(e,t)=>{E&&E(e,t),z()},onExited:()=>{A(!1)},timeout:D},k,{children:tm.jsx(B,Cp({},$,{children:d}))}))}))}));var fk=pk;function hk(e){return $m("MuiMenuItem",e)}var mk=Wm("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const gk=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],vk=yb(cy,{shouldForwardProp:e=>bb(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Cp({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${mk.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Cv(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${mk.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Cv(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${mk.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Cv(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Cv(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${mk.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${mk.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${PE.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${PE.inset}`]:{marginLeft:52},[`& .${KC.root}`]:{marginTop:0,marginBottom:0},[`& .${KC.inset}`]:{paddingLeft:36},[`& .${WC.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Cp({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${WC.root} svg`]:{fontSize:"1.25rem"}})))),bk=H.forwardRef((function(e,t){const n=vb({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:a=!1,divider:i=!1,disableGutters:l=!1,focusVisibleClassName:s,role:c="menuitem",tabIndex:u,className:d}=n,p=kp(n,gk),f=H.useContext(wC),h=H.useMemo((()=>({dense:a||f.dense||!1,disableGutters:l})),[f.dense,a,l]),m=H.useRef(null);ym((()=>{r&&m.current&&m.current.focus()}),[r]);const g=Cp({},n,{dense:h.dense,divider:i,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:i}=e;return Cp({},i,Dm({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},hk,i))})(n),b=km(m,t);let y;return n.disabled||(y=void 0!==u?u:-1),tm.jsx(wC.Provider,{value:h,children:tm.jsx(vk,Cp({ref:b,role:c,tabIndex:y,component:o,focusVisibleClassName:rv(v.focusVisible,s),className:rv(v.root,d)},p,{ownerState:g,classes:v}))})}));var yk,xk=bk;const Sk=["children","classes","className","label","notched"],wk=yb("fieldset",{shouldForwardProp:bb})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),Ek=yb("legend",{shouldForwardProp:bb})((({ownerState:e,theme:t})=>Cp({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&Cp({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));const Ck=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],kk=yb(yw,{shouldForwardProp:e=>bb(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:vw})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Cp({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${kw.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${kw.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${kw.focused} .${kw.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${kw.error} .${kw.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${kw.disabled} .${kw.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Cp({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),Rk=yb((function(e){const{className:t,label:n,notched:r}=e,o=kp(e,Sk),a=null!=n&&""!==n,i=Cp({},e,{notched:r,withLabel:a});return tm.jsx(wk,Cp({"aria-hidden":!0,className:t,ownerState:i},o,{children:tm.jsx(Ek,{ownerState:i,children:a?tm.jsx("span",{children:n}):yk||(yk=tm.jsx("span",{className:"notranslate",children:"​"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),Lk=yb(xw,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:bw})((({theme:e,ownerState:t})=>Cp({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),Ok=H.forwardRef((function(e,t){var n,r,o,a,i;const l=vb({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:c=!1,inputComponent:u="input",label:d,multiline:p=!1,notched:f,slots:h={},type:m="text"}=l,g=kp(l,Ck),v=(e=>{const{classes:t}=e;return Cp({},t,Dm({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Cw,t))})(l),b=dw(),y=cw({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=Cp({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:b,fullWidth:c,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:m}),S=null!=(n=null!=(r=h.root)?r:s.Root)?n:kk,w=null!=(o=null!=(a=h.input)?a:s.Input)?o:Lk;return tm.jsx(Ew,Cp({slots:{root:S,input:w},renderSuffix:e=>tm.jsx(Rk,{ownerState:x,className:v.notchedOutline,label:null!=d&&""!==d&&y.required?i||(i=tm.jsxs(H.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:u,multiline:p,ref:t,type:m},g,{classes:Cp({},v,{notchedOutline:null})}))}));Ok.muiName="Input";var Ik=Ok,_k=Dy(tm.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),Tk=Dy(tm.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked");const Pk=yb("span",{shouldForwardProp:bb})({position:"relative",display:"flex"}),Mk=yb(_k)({transform:"scale(1)"}),Nk=yb(Tk)((({theme:e,ownerState:t})=>Cp({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})})));function qk(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=Cp({},e,{checked:t});return tm.jsxs(Pk,{className:n.root,ownerState:o,children:[tm.jsx(Mk,{fontSize:r,className:n.background,ownerState:o}),tm.jsx(Nk,{fontSize:r,className:n.dot,ownerState:o})]})}var Ak=H.createContext(void 0);function zk(e){return $m("MuiRadio",e)}const Dk=Wm("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),jk=["checked","checkedIcon","color","icon","name","onChange","size","className"],Fk=yb(Qw,{shouldForwardProp:e=>bb(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"medium"!==n.size&&t[`size${pm(n.size)}`],t[`color${pm(n.color)}`]]}})((({theme:e,ownerState:t})=>Cp({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Cv("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Dk.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${Dk.disabled}`]:{color:(e.vars||e).palette.action.disabled}})));const Bk=tm.jsx(qk,{checked:!0}),$k=tm.jsx(qk,{}),Wk=H.forwardRef((function(e,t){var n,r;const o=vb({props:e,name:"MuiRadio"}),{checked:a,checkedIcon:i=Bk,color:l="primary",icon:s=$k,name:c,onChange:u,size:d="medium",className:p}=o,f=kp(o,jk),h=Cp({},o,{color:l,size:d}),m=(e=>{const{classes:t,color:n,size:r}=e;return Cp({},t,Dm({root:["root",`color${pm(n)}`,"medium"!==r&&`size${pm(r)}`]},zk,t))})(h),g=H.useContext(Ak);let v=a;const b=fm(u,g&&g.onChange);let y=c;return g&&(void 0===v&&(v=function(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}(g.value,o.value)),void 0===y&&(y=g.name)),tm.jsx(Fk,Cp({type:"radio",icon:H.cloneElement(s,{fontSize:null!=(n=$k.props.fontSize)?n:d}),checkedIcon:H.cloneElement(i,{fontSize:null!=(r=Bk.props.fontSize)?r:d}),ownerState:h,classes:m,name:y,checked:v,onChange:b,ref:t,className:rv(m.root,p)},f))}));var Hk=Wk;function Uk(e){return $m("MuiTooltip",e)}var Vk=Wm("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);const Gk=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];const Kk=yb(sw,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})((({theme:e,ownerState:t,open:n})=>Cp({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Vk.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Vk.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Vk.arrow}`]:Cp({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Vk.arrow}`]:Cp({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),Zk=yb("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${pm(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return Cp({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Cv(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(n=16/14,Math.round(1e5*n)/1e5)+"em",fontWeight:e.typography.fontWeightRegular},{[`.${Vk.popper}[data-popper-placement*="left"] &`]:Cp({transformOrigin:"right center"},t.isRtl?Cp({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):Cp({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Vk.popper}[data-popper-placement*="right"] &`]:Cp({transformOrigin:"left center"},t.isRtl?Cp({marginRight:"14px"},t.touch&&{marginRight:"24px"}):Cp({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Vk.popper}[data-popper-placement*="top"] &`]:Cp({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Vk.popper}[data-popper-placement*="bottom"] &`]:Cp({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n})),Xk=yb("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Cv(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Qk=!1,Jk=null,Yk={x:0,y:0};function eR(e,t){return n=>{t&&t(n),e(n)}}const tR=H.forwardRef((function(e,t){var n,r,o,a,i,l,s,c,u,d,p,f,h,m,g,v,b,y,x;const S=vb({props:e,name:"MuiTooltip"}),{arrow:w=!1,children:E,components:C={},componentsProps:k={},describeChild:R=!1,disableFocusListener:L=!1,disableHoverListener:O=!1,disableInteractive:I=!1,disableTouchListener:_=!1,enterDelay:T=100,enterNextDelay:P=0,enterTouchDelay:M=700,followCursor:N=!1,id:q,leaveDelay:A=0,leaveTouchDelay:z=1500,onClose:D,onOpen:j,open:F,placement:B="bottom",PopperComponent:$,PopperProps:W={},slotProps:U={},slots:V={},title:G,TransitionComponent:K=cC,TransitionProps:Z}=S,X=kp(S,Gk),Q=H.isValidElement(E)?E:tm.jsx("span",{children:E}),J=gb(),Y="rtl"===J.direction,[ee,te]=H.useState(),[ne,re]=H.useState(null),oe=H.useRef(!1),ae=I||N,ie=H.useRef(),le=H.useRef(),se=H.useRef(),ce=H.useRef(),[ue,de]=Em({controlled:F,default:!1,name:"Tooltip",state:"open"});let pe=ue;const fe=wm(q),he=H.useRef(),me=H.useCallback((()=>{void 0!==he.current&&(document.body.style.WebkitUserSelect=he.current,he.current=void 0),clearTimeout(ce.current)}),[]);H.useEffect((()=>()=>{clearTimeout(ie.current),clearTimeout(le.current),clearTimeout(se.current),me()}),[me]);const ge=e=>{clearTimeout(Jk),Qk=!0,de(!0),j&&!pe&&j(e)},ve=Cm((e=>{clearTimeout(Jk),Jk=setTimeout((()=>{Qk=!1}),800+A),de(!1),D&&pe&&D(e),clearTimeout(ie.current),ie.current=setTimeout((()=>{oe.current=!1}),J.transitions.duration.shortest)})),be=e=>{oe.current&&"touchstart"!==e.type||(ee&&ee.removeAttribute("title"),clearTimeout(le.current),clearTimeout(se.current),T||Qk&&P?le.current=setTimeout((()=>{ge(e)}),Qk?P:T):ge(e))},ye=e=>{clearTimeout(le.current),clearTimeout(se.current),se.current=setTimeout((()=>{ve(e)}),A)},{isFocusVisibleRef:xe,onBlur:Se,onFocus:we,ref:Ee}=Nm(),[,Ce]=H.useState(!1),ke=e=>{Se(e),!1===xe.current&&(Ce(!1),ye(e))},Re=e=>{ee||te(e.currentTarget),we(e),!0===xe.current&&(Ce(!0),be(e))},Le=e=>{oe.current=!0;const t=Q.props;t.onTouchStart&&t.onTouchStart(e)},Oe=be,Ie=ye,_e=e=>{Le(e),clearTimeout(se.current),clearTimeout(ie.current),me(),he.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ce.current=setTimeout((()=>{document.body.style.WebkitUserSelect=he.current,be(e)}),M)},Te=e=>{Q.props.onTouchEnd&&Q.props.onTouchEnd(e),me(),clearTimeout(se.current),se.current=setTimeout((()=>{ve(e)}),z)};H.useEffect((()=>{if(pe)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||ve(e)}}),[ve,pe]);const Pe=km(Q.ref,Ee,te,t);G||0===G||(pe=!1);const Me=H.useRef(),Ne={},qe="string"==typeof G;R?(Ne.title=pe||!qe||O?null:G,Ne["aria-describedby"]=pe?fe:null):(Ne["aria-label"]=qe?G:null,Ne["aria-labelledby"]=pe&&!qe?fe:null);const Ae=Cp({},Ne,X,Q.props,{className:rv(X.className,Q.props.className),onTouchStart:Le,ref:Pe},N?{onMouseMove:e=>{const t=Q.props;t.onMouseMove&&t.onMouseMove(e),Yk={x:e.clientX,y:e.clientY},Me.current&&Me.current.update()}}:{}),ze={};_||(Ae.onTouchStart=_e,Ae.onTouchEnd=Te),O||(Ae.onMouseOver=eR(Oe,Ae.onMouseOver),Ae.onMouseLeave=eR(Ie,Ae.onMouseLeave),ae||(ze.onMouseOver=Oe,ze.onMouseLeave=Ie)),L||(Ae.onFocus=eR(Re,Ae.onFocus),Ae.onBlur=eR(ke,Ae.onBlur),ae||(ze.onFocus=Re,ze.onBlur=ke));const De=H.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(ne),options:{element:ne,padding:4}}];return null!=(e=W.popperOptions)&&e.modifiers&&(t=t.concat(W.popperOptions.modifiers)),Cp({},W.popperOptions,{modifiers:t})}),[ne,W]),je=Cp({},S,{isRtl:Y,arrow:w,disableInteractive:ae,placement:B,PopperComponentProp:$,touch:oe.current}),Fe=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e;return Dm({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${pm(a.split("-")[0])}`],arrow:["arrow"]},Uk,t)})(je),Be=null!=(n=null!=(r=V.popper)?r:C.Popper)?n:Kk,$e=null!=(o=null!=(a=null!=(i=V.transition)?i:C.Transition)?a:K)?o:cC,We=null!=(l=null!=(s=V.tooltip)?s:C.Tooltip)?l:Zk,He=null!=(c=null!=(u=V.arrow)?u:C.Arrow)?c:Xk,Ue=cx(Be,Cp({},W,null!=(d=U.popper)?d:k.popper,{className:rv(Fe.popper,null==W?void 0:W.className,null==(p=null!=(f=U.popper)?f:k.popper)?void 0:p.className)}),je),Ve=cx($e,Cp({},Z,null!=(h=U.transition)?h:k.transition),je),Ge=cx(We,Cp({},null!=(m=U.tooltip)?m:k.tooltip,{className:rv(Fe.tooltip,null==(g=null!=(v=U.tooltip)?v:k.tooltip)?void 0:g.className)}),je),Ke=cx(He,Cp({},null!=(b=U.arrow)?b:k.arrow,{className:rv(Fe.arrow,null==(y=null!=(x=U.arrow)?x:k.arrow)?void 0:y.className)}),je);return tm.jsxs(H.Fragment,{children:[H.cloneElement(Q,Ae),tm.jsx(Be,Cp({as:null!=$?$:sw,placement:B,anchorEl:N?{getBoundingClientRect:()=>({top:Yk.y,left:Yk.x,right:Yk.x,bottom:Yk.y,width:0,height:0})}:ee,popperRef:Me,open:!!ee&&pe,id:fe,transition:!0},ze,Ue,{popperOptions:De,children:({TransitionProps:e})=>tm.jsx($e,Cp({timeout:J.transitions.duration.shorter},e,Ve,{children:tm.jsxs(We,Cp({},Ge,{children:[G,w?tm.jsx(He,Cp({},Ke,{ref:re})):null]}))}))}))]})}));var nR=tR;function rR(){const{useModelStore:e}=H.useContext(Oy).modelStore;return e()}function oR(e,t){const n=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[r]=rR(),[o]=function(){const{useRpcRequestSessionModelStore:e}=H.useContext(Oy).modelStore;return e()}(),[a,i]=H.useState();for(var l=arguments.length,s=new Array(l>2?l-2:0),c=2;c<l;c++)s[c-2]=arguments[c];return H.useEffect((()=>{if(!t)return;(async()=>{let a=o.get(n);a||(a=t.createSessionObject(e),o.set(n,a));const l=await a;r.set(n,l),i(l)})()}),[t,...s]),[a]}const aR={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function iR(e){return oR(aR,e)}const lR=e=>new Promise((t=>{setTimeout(t,e)})),sR=(e,t)=>{const{rpcResultStore:n,key:r,method:o}=t;let i;switch(t.type){case"INVALID":i=a(a({},e),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":i={result:a({},t.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":i=a(a({},e),{},{invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1});break;default:throw new Error("Undefined action")}let l=n.get(r);return l||(l={}),l[o]=i,n.set(r,l),i};function cR(e,t){const n=e?"".concat(e.id):null,[r]=function(){const{useRpcResultStore:e}=H.useContext(Oy).modelStore;return e()}(),[o,a]=H.useReducer(sR,n?r.get(n):null),[i]=function(){const{useModelChangedStore:e}=H.useContext(Oy).modelStore;return e()}(),[l]=function(){const{useRpcRequestStore:e}=H.useContext(Oy).modelStore;return e()}();let s;n&&(s=l.get(n),s||(s={},l.set(n,s)));const c=async o=>{let i=s[t];if(!i||i&&i.rpcRetry){i={rpc:e[t](),rpcRetry:!1},s[t]=i,a({type:"INVALID",method:t,key:n,model:e,rpcResultStore:r,canCancel:!0})}try{await lR(0);const o=await i.rpc;a({type:"VALID",result:o,key:n,method:t,model:e,rpcResultStore:r})}catch(e){15!==e.code||o||(i.rpcRetry||(i.rpcRetry=!0),c(!0))}},u={cancel:async()=>{const o=e.session.getObjectApi({handle:-1});await o.cancelRequest(s[t].rpc.requestId),a({type:"CANCELLED",key:n,method:t,model:e,rpcResultStore:r})},retry:()=>{s[t].rpcRetry=!0,c()}};return H.useEffect((()=>{e&&c()}),[e,i.get(e&&e.id),n,t]),[o&&o.result,{validating:o&&o.validating,canCancel:o&&o.canCancel,canRetry:o&&o.canRetry},u]}function uR(e){return cR(e,"getLayout")}function dR(e){return cR(e,"getAppLayout")}function pR(){const[e,t]=H.useState(),[n,r]=H.useState(),o=H.useCallback((e=>{e&&t(e)}),[]),a=()=>{const{left:t,top:n,width:o,height:a}=e.getBoundingClientRect();r({left:t,top:n,width:o,height:a})};return H.useLayoutEffect((()=>{if(e){if("function"==typeof ResizeObserver){let t=new ResizeObserver(a);return t.observe(e),()=>{t.unobserve(e),t.disconnect(e),t=null}}return a(),window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a)}}}),[e]),[o,n,e]}function fR(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function hR(e){let{size:t,style:n={},viewBox:r="0 0 16 16",shapes:o=[]}=e;const i=a({fontSize:fR(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},n);return U.createElement("i",{style:i},U.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},o.map(((e,t)=>{let{type:n,attrs:r}=e;return U.createElement(n,l({key:t},r))}))))}var mR=e=>hR((e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M9.41421356,8 L11.8890873,5.52512627 C12.065864,5.34834957 12.0305087,4.95944084 11.8183766,4.74730881 L11.2526912,4.18162338 C11.0405592,3.96949135 10.6516504,3.93413601 10.4748737,4.1109127 L8,6.58578644 L5.52512627,4.1109127 C5.34834957,3.93413601 4.95944084,3.96949135 4.74730881,4.18162338 L4.25233406,4.67659813 C3.96949135,4.95944084 3.93413601,5.34834957 4.1109127,5.52512627 L6.58578644,8 L4.1109127,10.4748737 C3.93413601,10.6516504 3.96949135,11.0405592 4.18162338,11.2526912 L4.67659813,11.7476659 C4.95944084,12.0305087 5.34834957,12.065864 5.52512627,11.8890873 L8,9.41421356 L10.4748737,11.8890873 C10.6516504,12.065864 11.0405592,12.0305087 11.2526912,11.8183766 L11.8183766,11.2526912 C12.0305087,11.0405592 12.065864,10.6516504 11.8890873,10.4748737 L9.41421356,8 Z M8,0 C12.4,0 16,3.6 16,8 C16,12.4 12.4,16 8,16 C3.6,16 0,12.4 0,8 C0,3.6 3.6,0 8,0 Z"}}]}))(e));var gR=e=>hR((e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10ZM3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0v1.652ZM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9Zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0Z"}}]}))(e));var vR=e=>hR((e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M2.5,7 L11,7 C11.5522847,7 12,7.44771525 12,8 L12,15 C12,15.5522847 11.5522847,16 11,16 L1,16 C0.44771525,16 0,15.5522847 0,15 L0,8 C0,7.44771525 0.44771525,7 1,7 L1,4.98151367 C1,2.23029964 3.23857625,0 6,0 C8.4241995,0 10.4454541,1.71883353 10.9029715,4 L9.34209114,4 C8.9671727,2.54028848 7.9088888,1.5 6,1.5 C3.54860291,1.5 2.5,3.21561511 2.5,5.33193359 L2.5,7 Z"}}]}))(e));var bR=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),yR=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},xR=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=yR(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r._lastRenderedStartIndex=-1,r._lastRenderedStopIndex=-1,r._memoizedUnloadedRanges=[],r._onItemsRendered=function(e){var t=e.visibleStartIndex,n=e.visibleStopIndex;r._lastRenderedStartIndex=t,r._lastRenderedStopIndex=n,r._ensureRowsLoaded(t,n)},r._setRef=function(e){r._listRef=e},yR(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),bR(t,[{key:"resetloadMoreItemsCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._memoizedUnloadedRanges=[],e&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){return(0,this.props.children)({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(e,t){var n=this.props,r=n.isItemLoaded,o=n.itemCount,a=n.minimumBatchSize,i=void 0===a?10:a,l=n.threshold,s=void 0===l?15:l,c=function(e){for(var t=e.isItemLoaded,n=e.itemCount,r=e.minimumBatchSize,o=e.startIndex,a=e.stopIndex,i=[],l=null,s=null,c=o;c<=a;c++)t(c)?null!==s&&(i.push(l,s),l=s=null):(s=c,null===l&&(l=c));if(null!==s){for(var u=Math.min(Math.max(s,l+r-1),n-1),d=s+1;d<=u&&!t(d);d++)s=d;i.push(l,s)}if(i.length)for(;i[1]-i[0]+1<r&&i[0]>0;){var p=i[0]-1;if(t(p))break;i[0]=p}return i}({isItemLoaded:r,itemCount:o,minimumBatchSize:i,startIndex:Math.max(0,e-s),stopIndex:Math.min(o-1,t+s)});(this._memoizedUnloadedRanges.length!==c.length||this._memoizedUnloadedRanges.some((function(e,t){return c[t]!==e})))&&(this._memoizedUnloadedRanges=c,this._loadUnloadedRanges(c))}},{key:"_loadUnloadedRanges",value:function(e){for(var t=this,n=this.props.loadMoreItems||this.props.loadMoreRows,r=function(r){var o=e[r],a=e[r+1],i=n(o,a);null!=i&&i.then((function(){if(function(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,r=e.startIndex,o=e.stopIndex;return!(r>n||o<t)}({lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:o,stopIndex:a})){if(null==t._listRef)return;"function"==typeof t._listRef.resetAfterIndex?t._listRef.resetAfterIndex(o,!0):("function"==typeof t._listRef._getItemStyleCache&&t._listRef._getItemStyleCache(-1),t._listRef.forceUpdate())}}))},o=0;o<e.length;o+=2)r(o)}}]),t}(H.PureComponent);const SR=["S","XS"],wR=e=>e.reduce(((e,t)=>e.concat(t)));function ER(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[t]=e;return n=t.qState,!!SR.includes(n)&&t.qElemNumber;var n}));return t.filter((e=>!1!==e))}));return wR(t)}async function CR(e){let{selections:t,elemNumbers:n,toggle:r,isSingleSelect:o}=e;if(0===n.length)return!1;let a=!1;if(!n.some((e=>Number.isNaN(e)))){const e=n;try{a=!1!==await t.select({method:"selectListObjectValues",params:["/qListObjectDef",e,r]})}catch(e){a=!1}a||(o?t.cancel():t.clear())}return a}const kR="RowColumn",RR={row:"".concat(kR,"-row"),rowBorderBottom:"".concat(kR,"-rowBorderBottom"),column:"".concat(kR,"-column"),fieldRoot:"".concat(kR,"-fieldRoot"),cell:"".concat(kR,"-cell"),labelText:"".concat(kR,"-labelText"),labelDense:"".concat(kR,"-labelDense"),highlighted:"".concat(kR,"-highlighted"),checkboxLabel:"".concat(kR,"-checkboxLabel"),icon:"".concat(kR,"-icon"),S:"".concat(kR,"-S"),XS:"".concat(kR,"-XS"),A:"".concat(kR,"-A"),X:"".concat(kR,"-X"),frequencyCount:"".concat(kR,"-frequencyCount"),barContainer:"".concat(kR,"-barContainer"),bar:"".concat(kR,"-bar"),barSelected:"".concat(kR,"-barSelected"),barWithCheckbox:"".concat(kR,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(kR,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(kR,"-excludedTextWithCheckbox")},LR=".".concat(RR.fieldRoot),OR=e=>!(null!=e&&e.metaKey||null!=e&&e.ctrlKey);function IR(e){var t;let{selectionState:n,selections:r,checkboxes:o=!1,doc:a=document,loaderRef:i}=e;const l=H.useRef({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});H.useEffect((()=>{var e;if(null===(e=i.current)||void 0===e||null===(e=e._listRef)||void 0===e||!e._outerRef)return;const t=e=>e.preventDefault(),n=e=>e.preventDefault(),r=e=>e.preventDefault(),o=i.current._listRef._outerRef;return o.addEventListener("gesturestart",t),o.addEventListener("gesturechange",n),o.addEventListener("gestureend",r),()=>{o.removeEventListener("gesturestart",t),o.removeEventListener("gesturechange",n),o.removeEventListener("gestureend",r)}}),[null===(t=i.current)||void 0===t||null===(t=t._listRef)||void 0===t?void 0:t._outerRef]);const s=()=>(n.setSelectableValuesUpdating(),CR({selections:r,elemNumbers:l.current.elemNumbers,isSingleSelect:n.isSingleSelect,toggle:l.current.toggle})),c=(e,t)=>{const r=function(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[{qElemNumber:t}]=e;return t}));return t}));return wR(t)}(n.enginePages);return function(e,t){if(!e)return[];if(e.length<=1)return e;const{min:n,max:r}=function(e,t){let n=1/0,r=-1/0;return e.forEach((e=>{const o=t.indexOf(e);n=o<n?o:n,r=o>r?o:r})),{min:n,max:r}}(e,t);return t.slice(n,r+1)}([e,t],r)},u=e=>{const{startElemNumber:t}=l.current;if(t===e)return;const r=c(l.current.startElemNumber,e);n.updateItems(r,!0,l.current.elemNumbers)},d=H.useCallback((e=>{if(n.selectDisabled())return;const t=+e.target.getAttribute("data-n"),r=!n.isSingleSelect&&OR(e.nativeEvent);l.current.elemNumbers=[t],l.current.toggle=r,r||n.clearItemStates(!0),n.updateItem(t),l.current.active=!1,s()}),[]),p=H.useCallback((e=>{if(0!==e.button||n.selectDisabled())return;const t=+e.currentTarget.getAttribute("data-n"),r=!n.isSingleSelect&&OR(e);l.current.isRange=!1,l.current.startElemNumber=t,l.current.elemNumbers=[t],l.current.toggle=r,l.current.active=!0,r||n.clearItemStates(!0),n.updateItem(t),n.isSingleSelect&&(l.current.active=!1,s()),((e,t)=>{(e.ctrlKey||e.metaKey)&&(t.focus(),e.preventDefault())})(e,e.currentTarget)}),[]),f=H.useCallback((e=>{if(0===e.button&&l.current.active){if(l.current.active=!1,l.current.isRange){const t=+e.currentTarget.getAttribute("data-n");u(t)}s()}}),[]),h=H.useCallback((e=>{0===e.button&&l.current.active&&(l.current.active=!1,s())}),[]),m=H.useCallback((e=>{if(!l.current.active)return;l.current.isRange||(l.current.isRange=!0,n.isSelected(l.current.startElemNumber)||(n.updateItem(l.current.startElemNumber,!0),l.current.elemNumbers=[]));const t=+e.currentTarget.getAttribute("data-n");u(t)}),[]),g=H.useCallback((e=>{var t,r;if(l.current.active||l.current.isRange||n.isSingleSelect||e.touches.length<=1)return;if(e.touches.length>2)return void s();const o=Number(null===(t=e.touches[0].target)||void 0===t||null===(t=t.closest(LR))||void 0===t?void 0:t.getAttribute("data-n")),a=Number(null===(r=e.touches[1].target)||void 0===r||null===(r=r.closest(LR))||void 0===r?void 0:r.getAttribute("data-n"));if(Number.isNaN(o)||Number.isNaN(o))return void s();l.current.active=!0;c(o,a).length<7&&(l.current.touchRangeSmall=!0),l.current.elemNumbers=[],l.current.touchElemNumbers=[o,a]}),[]),v=H.useCallback((()=>{if(2!==l.current.touchElemNumbers.length)return;if(l.current.touchRangeSmall)return l.current.touchRangeSmall=!1,l.current.touchElemNumbers=[],void(l.current.active=!1);const[e,t]=l.current.touchElemNumbers;l.current.startElemNumber=e,u(t),l.current.touchElemNumbers=[],l.current.active=!1,l.current.toggle=!0,s()}),[]);H.useEffect((()=>(a.addEventListener("mouseup",h),()=>{a.removeEventListener("mouseup",h)})),[h]),H.useEffect((()=>{const e=()=>{n.clearItemStates(!1)},t=()=>{n.clearItemStates(!0),n.triggerStateChanged()};return r.on("clearItemStates",e),r.on("deactivated",e),r.on("cleared",t),()=>{r.removeListener("clearItemStates",e),r.removeListener("deactivated",e),r.removeListener("cleared",t)}}),[r]);const b={};return o?Object.assign(b,{onChange:d}):Object.assign(b,{onMouseUp:f,onMouseDown:p,onMouseEnter:m,onTouchStart:g,onTouchEnd:v}),{interactionEvents:b,select:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const a=!n.isSingleSelect&&OR(null==o?void 0:o.nativeEvent);a||n.clearItemStates(!0);const i=[];return n.updateItems(e,t,i),n.setSelectableValuesUpdating(),CR({selections:r,elemNumbers:t?i:e,isSingleSelect:n.isSingleSelect,toggle:a})}}}const _R=e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]});var TR=e=>hR(_R(e));const PR=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,MR=e=>e?"A"===e.qState:null,NR=e=>{let{cell:t,checkboxes:n}=e;return(MR(t)||PR(t))&&n},qR=e=>{let{column:t,histogram:n,checkboxes:r,cell:o,showGray:a}=e;const i=[t?RR.column:RR.row];return n||i.push(RR.rowBorderBottom),o?(r||("XS"===o.qState?i.push(a?RR.XS:RR.S):"S"===o.qState||"L"===o.qState?i.push(RR.S):a&&MR(o)?i.push(RR.A):a&&PR(o)&&i.push(RR.X)),i):[]},AR=80,zR=10,DR=150,jR=56,FR=20,BR="-",$R=32,WR=29,HR=20,UR=4,VR=e=>e.filter((e=>!!e)).join(" ").trim(),GR=e=>{let{qFrequency:t,frequencyMax:n}=e;const r=String(t),o="%"===r.substring(r.length-1),a=parseFloat(o?r:t);return"".concat(o?a:a/n*100,"%")},KR=e=>e||BR,ZR=["backgroundColor"],XR=e=>{let{sizes:t,frequencyMode:n,isGridMode:r,freqHitsValue:o}=e;if("P"===n)return"".concat(t.freqMinWidth,"px");return r&&!o?"max-content":"25%"},QR=e=>{let{sizes:t,frequencyMode:n,isGridMode:r}=e;return r?"max-content":"P"===n?t.freqMinWidth:t.freqMaxWidth},JR=e=>{let{theme:t,styles:n,selectedState:r}=e;const o=n.selections,a=o[r],i=o["".concat(r,"Contrast")];return{background:a,color:i,"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder),outline:"none"},"& $cell":{paddingRight:0},["& .".concat(RR.labelText)]:{color:i},["& .".concat(RR.icon)]:{color:i}}},YR={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},eL=yb("div",{shouldForwardProp:e=>!["checkboxes","isGridMode","isGridCol","dense","direction","sizes","frequencyMode","freqHitsValue","layout","styles"].includes(e)})((e=>{let{theme:t,checkboxes:n,isGridMode:r,isGridCol:o,dense:i,direction:l,sizes:c,frequencyMode:u,freqHitsValue:d,styles:p}=e;const f=s(p.content,ZR),h=JR({theme:t,styles:p,selectedState:"selected"}),m=JR({theme:t,styles:p,selectedState:"excluded"});return{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"},"& .value":{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"}},["& .".concat(RR.row)]:a({flexWrap:"nowrap"},p.content),["& .".concat(RR.rowBorderBottom)]:{borderBottom:o?"none":"1px solid ".concat(t.palette.divider),borderLeft:o?"1px solid ".concat(t.palette.divider):"none"},["& .".concat(RR.column)]:a({flexWrap:"nowrap",borderRight:"1px solid ".concat(t.palette.divider)},p.content),["& .".concat(RR.cell)]:{zIndex:2,display:"flex",alignItems:"center",flexGrow:1,minWidth:n?"52px":"26px",flexBasis:n?"auto":"max-content",paddingLeft:"".concat(9,"px"),paddingRight:0},["& .".concat(RR.labelText)]:a(a({lineHeight:"16px",userSelect:"none",paddingRight:"1px"},YR),f),["& .".concat(RR.labelDense)]:{fontSize:12},["& .".concat(RR.highlighted)]:{backgroundColor:"#FFC72A"},["& .".concat(RR.checkboxLabel)]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":a(a({},YR),{},{display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"})},["& .".concat(RR.icon)]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24,color:f.color},["& .".concat(RR.S)]:a(a({},h),{},{border:r?"none":void 0}),["& .".concat(RR.XS)]:a(a({},JR({theme:t,styles:p,selectedState:"selectedExcluded"})),{},{border:r?"none":void 0}),["& .".concat(RR.A)]:a(a({},JR({theme:t,styles:p,selectedState:"alternative"})),{},{border:r?"none":void 0}),["& .".concat(RR.X)]:a(a({},m),{},{border:r?"none":void 0}),["& .".concat(RR.frequencyCount)]:a(a({zIndex:3,justifyContent:"flex-end"},YR),{},{flex:"0 0 ".concat(XR({sizes:c,frequencyMode:u,isGridMode:r,freqHitsValue:d})),minWidth:!r&&"P"!==u&&d?c.freqMinWidth:"max-content",maxWidth:QR({sizes:c,frequencyMode:u,isGridMode:r}),textAlign:"rtl"===l?"left":"right",paddingLeft:"rtl"!==l?"8px":0}),["&.".concat(RR.barContainer)]:{height:"100%",display:"flex",alignItems:"center"},["& .".concat(RR.bar)]:{height:i?"16px":"20px",position:"absolute",zIndex:1,alignSelf:"center",left:4,width:"calc(100% - ".concat(8,"px)"),display:"flex",alignItems:"center","& .bar-filled":{border:"".concat(1,"px solid"),borderColor:"#D9D9D9",transition:"width 0.2s",backgroundColor:"#FAFAFA",height:"100%"}},["& .".concat(RR.barSelected)]:{"& .bar-filled":{opacity:"30%",background:t.palette.background.lighter}},["& .".concat(RR.barWithCheckbox)]:{left:"rtl"===l?4:29,width:"calc(100% - ".concat(33,"px)")},["& .".concat(RR.barSelectedWithCheckbox)]:{"& .bar-filled":{opacity:"30%",background:h.background||"#BFE5D0",borderColor:h.background||"#BFE5D0"}},["& .".concat(RR.excludedTextWithCheckbox)]:{color:"#828282",fontStyle:"italic"}}}));var tL=U.memo(eL);const nL="ListBoxCheckbox",rL={cbIcon:"".concat(nL,"-cbIcon"),cbIconChecked:"".concat(nL,"-cbIconChecked"),cbIconExcluded:"".concat(nL,"-cbIconExcluded"),cbIconAlternative:"".concat(nL,"-cbIconAlternative"),checkbox:"".concat(nL,"-checkbox"),dense:"".concat(nL,"-dense")},oL=yb(cE,{shouldForwardProp:e=>"styles"!==e})((e=>{let{styles:t}=e;return{["& .".concat(rL.cbIcon)]:{borderRadius:3,width:16,height:16,boxShadow:"inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)",backgroundColor:"#f5f8fa",backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.8),hsla(0,0%,100%,0))",display:"flex",alignItems:"center",justifyContent:"center"},["& .".concat(rL.cbIconChecked)]:{borderRadius:3,backgroundColor:t.selections.selected,backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))","&:before":{display:"block",width:16,height:16,backgroundImage:"url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23fff'/%3E%3C/svg%3E\")",content:'""'}},["& .".concat(rL.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:t.selections.excluded},["& .".concat(rL.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:t.selections.alternative},["&.".concat(rL.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(rL.dense)]:{padding:"4px 8px"}}})),aL=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return U.createElement("span",{className:e.cbIcon},n&&U.createElement("span",{className:t&&n?e.cbIconExcluded:""}))};function iL(e){let{onChange:t,checked:n,label:r,dense:o,excluded:a,styles:i,showGray:l=!0,dataN:s}=e;return U.createElement(oL,{edge:"start",onChange:t,checked:n,disableRipple:!0,className:[rL.checkbox,o&&rL.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":r,"data-n":s},name:r,icon:aL(rL,l,a),checkedIcon:U.createElement("span",{className:rL.cbIconChecked}),styles:i})}const lL="ListBoxRadioButton",sL={denseRadioButton:"".concat(lL,"-denseRadioButton"),radioButton:"".concat(lL,"-radioButton")},cL=yb(Hk)((e=>{let{theme:t,checked:n}=e;return{["&.".concat(sL.radioButton)]:{right:"5px",color:n?t.palette.selected.main:t.palette.main}}}));function uL(e){let{onChange:t,checked:n,label:r,dense:o,dataN:a}=e;return U.createElement(cL,{checked:n,onChange:t,value:r,name:r,className:sL.radioButton,inputProps:{"data-n":a},style:{backgroundColor:"transparent"},disableRipple:!0,size:o?"small":"medium",sx:o&&{padding:"0px 0px 0px 12px"}})}function dL(e){let{label:t,dense:n,showGray:r=!0,checkboxes:o,cell:a,valueTextAlign:i}=e;return U.createElement(ix,{component:"span",variant:"body2",className:VR([RR.labelText,n&&RR.labelDense,r&&NR({cell:a,checkboxes:o})&&RR.excludedTextWithCheckbox]),align:i,dir:"auto"},U.createElement("span",null,t))}function pL(e){let{label:t,color:n,dense:r,showGray:o,checkboxes:a,cell:i,valueTextAlign:l}=e;return"string"==typeof t?U.createElement(dL,{label:t,color:n,dense:r,showGray:o,checkboxes:a,cell:i,valueTextAlign:l}):t}function fL(e){let{onChange:t,label:n,qElemNumber:r,isSelected:o,dense:a,cell:i,isGridCol:l,showGray:s,isSingleSelect:c,checkboxes:u,valueTextAlign:d,styles:p}=e;const f=U.createElement(iL,{onChange:t,label:n,checked:o,dense:a,excluded:PR(i),isGridCol:l,showGray:s,dataN:r,styles:p}),h=U.createElement(uL,{onChange:t,label:n,checked:o,dense:a,dataN:r});return U.createElement(VE,{control:c?h:f,className:RR.checkboxLabel,label:U.createElement(pL,{label:n,dense:a,showGray:s,checkboxes:u,cell:i,valueTextAlign:d}),key:r})}function hL(e){let{labels:t,dense:n,showGray:r,checkboxes:o}=e;const a=t.map(((e,t)=>{let[n,r]=e;return U.createElement("span",{id:t,className:r?RR.highlighted:""},n)}));return U.createElement(dL,{label:a,dense:n,showGray:r,checkboxes:o})}function mL(e){let{onChange:t,labels:n,checkboxes:r,dense:o,showGray:a,qElemNumber:i,isSelected:l,cell:s,isGridCol:c,isSingleSelect:u,valueTextAlign:d,styles:p}=e;const f=U.createElement(hL,{labels:n,dense:o,showGray:a,checkboxes:r});return r?U.createElement(fL,{onChange:t,label:f,qElemNumber:i,isSelected:l,dense:o,cell:s,isGridCol:c,showGray:a,isSingleSelect:u,checkboxes:r,valueTextAlign:d,styles:p}):f}var gL=U.memo((function(e){let{onChange:t,label:n,qElemNumber:r,isSelected:o,dense:a,cell:i,isGridCol:l,showGray:s,isSingleSelect:c,checkboxes:u,valueTextAlign:d,styles:p}=e;return u?U.createElement(fL,{onChange:t,label:n,qElemNumber:r,isSelected:o,dense:a,cell:i,isGridCol:l,showGray:s,isSingleSelect:c,checkboxes:u,valueTextAlign:d,styles:p}):U.createElement(dL,{label:n,dense:a,showGray:!0,checkboxes:u,cell:i,valueTextAlign:d})}));function vL(e){let{qFrequency:t,histogram:n,checkboxes:r,isSelected:o,frequencyMax:a}=e;if(!(t&&n&&KR(t)!==BR))return;const i=GR({qFrequency:t,checkboxes:r,frequencyMax:a});return U.createElement(Uw,{className:VR([RR.bar,r&&RR.barWithCheckbox,o&&(r?RR.barSelectedWithCheckbox:RR.barSelected)])},U.createElement(Uw,{className:"bar-filled",width:i}))}function bL(e){let{cell:t,checkboxes:n,dense:r,showGray:o}=e;const a=KR(null==t?void 0:t.qFrequency);return U.createElement(rC,{item:!0,style:{display:"flex",alignItems:"center"},className:RR.frequencyCount,"aria-label":a,title:a},U.createElement(ix,{noWrap:!0,color:"inherit",variant:"body2",className:VR([r&&RR.labelDense,RR.labelText,o&&NR({cell:t,checkboxes:n})&&RR.excludedTextWithCheckbox])},a))}function yL(e){let{dataLayout:t,layoutOrder:n,itemPadding:r,fillHeight:o}=e;if("singleColumn"===t)return{height:"100%",width:"100%"};switch(n){case"row":case"column":return{height:o?"100%":"calc(100% - ".concat(r,"px)"),width:"calc(100% - ".concat(2*r,"px)"),position:"absolute",left:4};default:return{}}}const xL=yb(rC,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction","fillHeight"].includes(e)})((e=>{let{dataLayout:t,layoutOrder:n,itemPadding:r,cellPaddingRight:o,direction:i,fillHeight:l}=e;const s="padding".concat("rtl"===i?"Left":"Right");return{["&.".concat(RR.fieldRoot)]:a(a({},yL({dataLayout:t,layoutOrder:n,itemPadding:r,fillHeight:l})),{},{[s]:o?"8px":void 0})}}));const SL={S:"Object.Listbox.Selected",A:"Object.Listbox.Alternative",O:"Object.Listbox.Optional",XS:"Object.Listbox.SelectedExcluded",L:"Object.Listbox.Locked",X:"Object.Listbox.Excluded",XL:"Object.Listbox.ExcludedLock"};function wL(e){var t;let{layout:n}=e;const{translator:r}=H.useContext(Oy),{qStateCounts:o={}}=(null==n||null===(t=n.qListObject)||void 0===t?void 0:t.qDimensionInfo)||{},a=o.qSelected+o.qSelectedExcluded+o.qLocked+o.qLockedExcluded;let i;switch(a){case 0:i="ScreenReader.ZeroSelected";break;case 1:i="ScreenReader.OneSelected";break;default:i="ScreenReader.ManySelected"}const l=r.get(i,[a]);return U.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},l)}const EL=Object.freeze({ENTER:13,ESCAPE:27,SPACE:32,TAB:9,BACKSPACE:8,DELETE:46,ALT:18,CTRL:17,SHIFT:16,ARROW_UP:38,ARROW_DOWN:40,ARROW_LEFT:37,ARROW_RIGHT:39,PAGE_DOWN:34,PAGE_UP:33,HOME:36,END:35,F10:121,A:65,F:70,ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,SUBTRACTION:189,DECIMAL:190,NUMPAD_DECIMAL:110,isArrow:e=>e===EL.ARROW_UP||e===EL.ARROW_DOWN||e===EL.ARROW_LEFT||e===EL.ARROW_RIGHT}),CL=e=>+e.getAttribute("data-n"),kL=e=>{const t=null==e?void 0:e.querySelector(".search input");return null==t||t.focus(),t},RL=e=>{const t=null==e?void 0:e.querySelector(".value.last-focused, .value.selector, .value");return null==t||t.setAttribute("tabIndex",0),null==t||t.focus(),t},LL=e=>{let{rowIndex:t,columnIndex:n,rowCount:r,columnCount:o,layoutOrder:a,keyCode:i,numCells:l}=e;const s=e=>{let t;return"row"===a?(t=l%o,e<t?r:r-1):(t=l%r,e<o-1?r:t)};let c=t,u=n;if(i===EL.ARROW_DOWN)if(t>=s(n)-1){if(n===o-1)return-1;c=0,u=n+1}else c=t+1;else if(0===t){if(0===n)return-1;c=s(n-1)-1,u=n-1}else c=t-1;if("row"===a)return c*o+u;const d=l%r;return 0===d||c<d?c*o+u:(c-d)*(o-1)+u+d*o};function OL(e){var t,n;let{index:r,rowIndex:o,columnIndex:i,style:l,data:s}=e;const{onChange:c,onClick:u,onMouseDown:d,onMouseUp:p,onMouseEnter:f,onTouchStart:h,onTouchEnd:m,pages:g,isLocked:v,column:b=!1,checkboxes:y=!1,textAlign:x,direction:S,layoutOptions:w={},freqIsAllowed:E,isSingleSelect:C,actions:k,frequencyMax:R="",histogram:L=!1,keyboard:O,showGray:I=!0,showTick:_=!0,columnCount:T=1,rowCount:P=1,dataOffset:M,deducedFrequencyMode:N,focusListItems:q,listCount:A,sizes:z,translator:D,showSearch:j,isModal:F,contentFontStyle:B,styles:$,fillHeight:W}=s,{dense:V=!1,dataLayout:G="singleColumn",layoutOrder:K}=w,{itemPadding:Z}=z;let X,Q;const J={max:null,currentIndex:null};if("number"==typeof o&&"number"==typeof i){"row"===K?(X=o*T+i,J.max=P,J.currentIndex=o):(X=i*P+o,J.max=T,J.currentIndex=i);const e=0;Q=a(a({},l),{},{height:W?"100%":l.height,left:e+(0===i?l.left:Number(l.left)+i*e),top:0===o?l.top:Number(l.top)+o*e})}else X=r,J.max=A,J.currentIndex=r,Q=a({},l);X+=M;const[Y,ee]=H.useState(null);H.useEffect((()=>{null!==Y&&(0===J.currentIndex&&q.first&&(Y.focus(),q.setFirst(!1)),J.currentIndex===J.max-1&&q.last&&(Y.focus(),q.setLast(!1)))}),[Y,q.first,q.last]);const te=H.useCallback(function(e){let{select:t,selectAll:n,onCtrlF:r,confirm:o,cancel:a,setScrollPosition:i,focusListItems:l,keyboard:s,isModal:c,rowCount:u,columnCount:d,rowIndex:p,columnIndex:f,layoutOrder:h}=e;const m=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e===EL.ARROW_LEFT||e===EL.ARROW_RIGHT||"number"!=typeof p||"number"!=typeof f){const e=null==t?void 0:t.parentElement[n?"nextElementSibling":"previousElementSibling"];return null==e?void 0:e.querySelector("[role]")}const r=null==t?void 0:t.parentElement.parentElement,o=null==r?void 0:r.childElementCount;if(o){const n=LL({rowIndex:p,columnIndex:f,rowCount:u,columnCount:d,layoutOrder:h,keyCode:e,numCells:o}),r=null==t?void 0:t.parentElement.parentElement.children[n];return null==r?void 0:r.querySelector("[role]")}};let g=!1;const v=e=>{g=e};return e=>{let u;const{currentTarget:d,nativeEvent:p}=e,{keyCode:f,shiftKey:h=!1,ctrlKey:b=!1,metaKey:y=!1}=p;switch(f){case EL.TAB:{const e=d.closest(".listbox-container"),t=c();if(d.classList.add("last-focused"),h){kL(e)||(t?s.focusSelection():s.blur(!0));break}t?s.focusSelection():(d.blur(),s.blur());break}case EL.SHIFT:v(!0);break;case EL.SPACE:t([CL(d)],!1,e);break;case EL.ARROW_DOWN:case EL.ARROW_RIGHT:u=m(f,d,!0),h&&u&&(g&&(t([CL(d)],!0),v(!1)),t([CL(u)],!0));break;case EL.ARROW_UP:case EL.ARROW_LEFT:u=m(f,d,!1),h&&u&&(g&&(t([CL(d)],!0),v(!1)),t([CL(u)],!0));break;case EL.ENTER:o();break;case EL.ESCAPE:if(!c())return;a();break;case EL.HOME:if(l.setFirst(!0),b){null==i||i("overflowStart");break}null==i||i("start");break;case EL.END:if(l.setLast(!0),b){null==i||i("overflowEnd");break}null==i||i("end");break;case EL.A:if(b||y){n();break}return;case EL.F:if(b||y){r();break}return;default:return}u&&u.focus(),e.preventDefault(),e.stopPropagation()}}(a(a({},k),{},{focusListItems:q,keyboard:O,isModal:F,rowCount:P,columnCount:T,rowIndex:o,columnIndex:i,layoutOrder:K})),[k,null==O?void 0:O.innerTabStops,P,T,o,i,K]),ne=H.useMemo((()=>function(e){let t,{pages:n,cellIndex:r}=e;const o=n.filter((e=>e.qArea.qTop<=r&&r<e.qArea.qTop+e.qArea.qHeight))[0];if(o){const e=o.qArea;r>=e.qTop&&r<e.qTop+e.qHeight&&([t]=o.qMatrix[r-e.qTop])}return t}({pages:g,cellIndex:X})),[g,X]),re="S"===(null==ne?void 0:ne.qState)||"XS"===(null==ne?void 0:ne.qState)||"L"===(null==ne?void 0:ne.qState)||"XL"===(null==ne?void 0:ne.qState),oe=H.useMemo((()=>qR({column:b,histogram:L,checkboxes:y,cell:ne,showGray:I})),[null==ne?void 0:ne.qState,L,V,y]),ae=H.useCallback((e=>{e.preventDefault()}),[y]),ie=H.useMemo((()=>ne&&function(e){let{direction:t,cell:n,textAlign:r}=e;const o=!["NaN",void 0].includes(null==n?void 0:n.qNum);let a;return a=!r||r.auto?o?"rtl"===t?"left":"right":{rtl:"right",ltr:"left"}[t]:(null==r?void 0:r.align)||"left",["left","center","right"].includes(a)?a:"left"}({direction:S,cell:ne,textAlign:x})),[S,ne,x]);if(!ne)return null;const le="grid"===G&&"column"===K,se=null!==(t=null==ne?void 0:ne.qText)&&void 0!==t?t:"";let ce;if(null!==(n=ne.qHighlightRanges)&&void 0!==n&&null!==(n=n.qRanges)&&void 0!==n&&n.length){const e=ne.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[];ce=function(e,t){if(!t.length)return[];const n=t.reduce(((n,r,o)=>{const a=0===o?0:t[o-1].qCharPos+t[o-1].qCharCount;n.push(...function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const{qCharPos:r,qCharCount:o}=t,a=[];return r>n&&a.push([e.slice(n,r),!1]),a.push([e.slice(r,r+o),!0]),a}(e,r,a));const i=o===t.length-1,l=t[o].qCharPos+t[o].qCharCount;return i&&l<e.length&&n.push([e.slice(l),!1]),n}),[]);return n}(se,e)}const ue={alignItems:"center",display:"flex",fontSize:"8px"},de="rtl"===S,pe={display:"flex",alignItems:"center",flexGrow:1,paddingLeft:de?8:y?0:void 0,paddingRight:y?0:de?8:0,justifyContent:ie},fe=0===r,he=re&&v,me=!y&&re&&!v,ge=!y&&_,ve=y||!_,be=function(e){let{translator:t,label:n,qState:r,isSelected:o,currentIndex:a,maxIndex:i,showSearch:l}=e;const s=SL[r],c=t.get(s),u=[];if(o){const e=l?"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu":"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",n=t.get(e);u.push(n)}const d="".concat(n," ").concat(c),p=t.get("CurrentSelections.Of",[a+1,i+1]);return u.unshift(d,p),u.join(". ").trim()}({translator:D,label:se,qState:ne.qState,currentIndex:J.currentIndex,maxIndex:J.max,showSearch:j}),ye=!de&&"right"===ie||de&&"left"===ie;return U.createElement(tL,{className:RR.barContainer,checkboxes:y,style:Q,styles:$,isGridCol:le,isGridMode:"grid"===G,dense:V,direction:S,sizes:z,frequencyMode:N,freqHitsValue:ye,contentFontStyle:B,"data-testid":"listbox.item"},U.createElement(xL,{role:"row","aria-label":be,"aria-selected":re,"aria-setsize":J.max,"aria-rowindex":J.currentIndex,ref:ee,container:!0,dataLayout:G,cellPaddingRight:ve,layoutOrder:K,itemPadding:Z,gap:0,className:VR(["value",...oe]),classes:{root:RR.fieldRoot},onClick:u,onMouseDown:d,onMouseUp:p,onMouseEnter:f,onKeyDown:te,onTouchStart:h,onTouchEnd:m,onContextMenu:ae,tabIndex:fe&&O.innerTabStops?0:-1,"data-n":null==ne?void 0:ne.qElemNumber,direction:S,fillHeight:W},(null==ne?void 0:ne.qFrequency)&&U.createElement(vL,{qFrequency:null==ne?void 0:ne.qFrequency,histogram:L,checkboxes:y,isSelected:re,frequencyMax:R}),U.createElement(rC,{item:!0,style:pe,className:VR([RR.cell,RR.selectedCell]),title:"".concat(se)},ce?U.createElement(mL,{onChange:c,labels:ce,checkboxes:y,dense:V,showGray:I,qElemNumber:ne.qElemNumber,isSelected:re,cell:ne,isGridCol:le,isSingleSelect:C,valueTextAlign:ie,styles:$}):U.createElement(gL,{onChange:c,label:se,qElemNumber:ne.qElemNumber,isSelected:re,dense:V,cell:ne,isGridCol:le,showGray:I,isSingleSelect:C,checkboxes:y,valueTextAlign:ie,styles:$})),E&&U.createElement(bL,{cell:ne,checkboxes:y,dense:V,showGray:I}),ge&&U.createElement(rC,{item:!0,className:RR.icon},he&&U.createElement(gR,{style:ue,size:"small"}),me&&U.createElement(TR,{style:ue,size:"small"}))))}var IL=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function _L(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||IL(r)&&IL(o)))return!1;var r,o;return!0}function TL(e,t){var n;void 0===t&&(t=_L);var r,o=[],a=!1;return function(){for(var i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return a&&n===this&&t(i,o)||(r=e.apply(this,i),a=!0,n=this,o=i),r}}var PL="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function ML(e){cancelAnimationFrame(e.id)}function NL(e,t){var n=PL();var r={id:requestAnimationFrame((function o(){PL()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var qL=-1;function AL(e){if(void 0===e&&(e=!1),-1===qL||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),qL=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return qL}var zL=null;function DL(e){if(void 0===e&&(e=!1),null===zL||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?zL="positive-descending":(t.scrollLeft=1,zL=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),zL}return zL}var jL=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function FL(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,a=e.getColumnWidth,i=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,u=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=h(r.props,zb(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:zb(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=TL((function(e,t,n,o,a,i,l,s){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:a,visibleColumnStopIndex:i,visibleRowStartIndex:l,visibleRowStopIndex:s})})),r._callOnScroll=void 0,r._callOnScroll=TL((function(e,t,n,o,a){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:a})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,i=r.props,l=i.columnWidth,s=i.direction,c=i.rowHeight,p=r._getItemStyleCache(m&&l,m&&s,m&&c),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=n(r.props,t,r._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(r.props,e,r._instanceProps),height:u(r.props,e,r._instanceProps),width:a(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=TL((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,a=t.scrollLeft,i=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===a&&e.scrollTop===i)return null;var t=r.props.direction,c=a;if("rtl"===t)switch(DL()){case"negative":c=-a;break;case"positive-descending":c=s-o-a}c=Math.max(0,Math.min(c,s-o));var u=Math.max(0,Math.min(i,l-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<a?"forward":"backward",scrollLeft:c,scrollTop:u,verticalScrollDirection:e.scrollTop<i?"forward":"backward",scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&ML(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=NL(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}Rb(t,e),t.getDerivedStateFromProps=function(e,t){return BL(e,t),g(e),null};var v=t.prototype;return v.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},v.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,a=this.props,u=a.columnCount,d=a.height,p=a.rowCount,f=a.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,v=AL();void 0!==r&&(r=Math.max(0,Math.min(r,u-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var b=i(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?v:0,x=b>d?v:0;this.scrollTo({scrollLeft:void 0!==r?s(this.props,r,n,m,this._instanceProps,x):m,scrollTop:void 0!==o?c(this.props,o,n,g,this._instanceProps,y):g})},v.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},v.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(DL()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var a=o.clientWidth,i=o.scrollWidth;o.scrollLeft=i-a-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},v.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&ML(this._resetIsScrollingTimeoutId)},v.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,a=e.height,s=e.innerRef,c=e.innerElementType,u=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?jL:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,v=e.style,b=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),w=S[0],E=S[1],C=this._getVerticalRangeToRender(),k=C[0],R=C[1],L=[];if(r>0&&g)for(var O=k;O<=R;O++)for(var I=w;I<=E;I++)L.push(H.createElement(t,{columnIndex:I,data:d,isScrolling:b?x:void 0,key:f({columnIndex:I,data:d,rowIndex:O}),rowIndex:O,style:this._getItemStyle(O,I)}));var _=i(this.props,this._instanceProps),T=l(this.props,this._instanceProps);return H.createElement(h||m||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:Eb({position:"relative",height:a,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},H.createElement(c||u||"div",{children:L,ref:s,style:{height:_,pointerEvents:x?"none":void 0,width:T}}))},v._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var a=this._getHorizontalRangeToRender(),i=a[0],l=a[1],s=a[2],c=a[3],u=this._getVerticalRangeToRender(),d=u[0],p=u[1],f=u[2],h=u[3];this._callOnItemsRendered(i,l,d,p,s,c,f,h)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,v=m.scrollLeft,b=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(v,b,g,x,y)}},v._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,a=e.overscanColumnsCount,i=e.overscanCount,l=e.rowCount,s=this.state,c=s.horizontalScrollDirection,u=s.isScrolling,d=s.scrollLeft,p=n||a||i||1;if(0===t||0===l)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=u&&"backward"!==c?1:Math.max(1,p),g=u&&"forward"!==c?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},v._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,a=e.rowCount,i=this.state,l=i.isScrolling,s=i.verticalScrollDirection,c=i.scrollTop,u=r||o||n||1;if(0===t||0===a)return[0,0,0,0];var d=p(this.props,c,this._instanceProps),h=f(this.props,d,c,this._instanceProps),m=l&&"backward"!==s?1:Math.max(1,u),g=l&&"forward"!==s?1:Math.max(1,u);return[Math.max(0,d-m),Math.max(0,Math.min(a-1,h+g)),d,h]},t}(H.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var BL=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},$L=function(e,t){return e};function WL(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,a=e.getOffsetForIndexAndAlignment,i=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,u=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=s(r.props,zb(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:zb(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=TL((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=TL((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,a=r.props,i=a.direction,l=a.itemSize,s=a.layout,u=r._getItemStyleCache(c&&l,c&&s,c&&i);if(u.hasOwnProperty(e))t=u[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===i||"horizontal"===s,h="rtl"===i,m=f?d:0;u[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=TL((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,a=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,i=o;if("rtl"===t)switch(DL()){case"negative":i=-o;break;case"positive-descending":i=a-n-o}return i=Math.max(0,Math.min(i,a-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<i?"forward":"backward",scrollOffset:i,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,a=t.scrollTop;r.setState((function(e){if(e.scrollOffset===a)return null;var t=Math.max(0,Math.min(a,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&ML(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=NL(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}Rb(t,e),t.getDerivedStateFromProps=function(e,t){return HL(e,t),u(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,i=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?AL():0:s.scrollHeight>s.clientHeight?AL():0}this.scrollTo(a(this.props,e,t,i,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var a=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(DL()){case"negative":a.scrollLeft=-o;break;case"positive-ascending":a.scrollLeft=o;break;default:var i=a.clientWidth,l=a.scrollWidth;a.scrollLeft=l-i-o}else a.scrollLeft=o;else a.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&ML(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,a=e.height,i=e.innerRef,l=e.innerElementType,s=e.innerTagName,c=e.itemCount,u=e.itemData,d=e.itemKey,p=void 0===d?$L:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,v=e.useIsScrolling,b=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,w=this._getRangeToRender(),E=w[0],C=w[1],k=[];if(c>0)for(var R=E;R<=C;R++)k.push(H.createElement(t,{data:u,key:p(R,u),index:R,isScrolling:v?y:void 0,style:this._getItemStyle(R)}));var L=r(this.props,this._instanceProps);return H.createElement(h||m||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:Eb({position:"relative",height:a,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},H.createElement(l||s||"div",{children:k,ref:i,style:{height:x?"100%":L,pointerEvents:y?"none":void 0,width:x?L:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var a=this.state,i=a.scrollDirection,l=a.scrollOffset,s=a.scrollUpdateWasRequested;this._callOnScroll(i,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,a=r.scrollDirection,s=r.scrollOffset;if(0===t)return[0,0,0,0];var c=i(this.props,s,this._instanceProps),u=l(this.props,c,s,this._instanceProps),d=o&&"backward"!==a?1:Math.max(1,n),p=o&&"forward"!==a?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+p)),c,u]},t}(H.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var HL=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},UL=FL({getColumnOffset:function(e,t){return t*e.columnWidth},getColumnWidth:function(e,t){return e.columnWidth},getRowOffset:function(e,t){return t*e.rowHeight},getRowHeight:function(e,t){return e.rowHeight},getEstimatedTotalHeight:function(e){var t=e.rowCount;return e.rowHeight*t},getEstimatedTotalWidth:function(e){var t=e.columnCount;return e.columnWidth*t},getOffsetForColumnAndAlignment:function(e,t,n,r,o,a){var i=e.columnCount,l=e.columnWidth,s=e.width,c=Math.max(0,i*l-s),u=Math.min(c,t*l),d=Math.max(0,t*l-s+a+l);switch("smart"===n&&(n=r>=d-s&&r<=u+s?"auto":"center"),n){case"start":return u;case"end":return d;case"center":var p=Math.round(d+(u-d)/2);return p<Math.ceil(s/2)?0:p>c+Math.floor(s/2)?c:p;default:return r>=d&&r<=u?r:d>u||r<d?d:u}},getOffsetForRowAndAlignment:function(e,t,n,r,o,a){var i=e.rowHeight,l=e.height,s=e.rowCount,c=Math.max(0,s*i-l),u=Math.min(c,t*i),d=Math.max(0,t*i-l+a+i);switch("smart"===n&&(n=r>=d-l&&r<=u+l?"auto":"center"),n){case"start":return u;case"end":return d;case"center":var p=Math.round(d+(u-d)/2);return p<Math.ceil(l/2)?0:p>c+Math.floor(l/2)?c:p;default:return r>=d&&r<=u?r:d>u||r<d?d:u}},getColumnStartIndexForOffset:function(e,t){var n=e.columnWidth,r=e.columnCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getColumnStopIndexForStartIndex:function(e,t,n){var r=e.columnWidth,o=e.columnCount,a=e.width,i=t*r,l=Math.ceil((a+n-i)/r);return Math.max(0,Math.min(o-1,t+l-1))},getRowStartIndexForOffset:function(e,t){var n=e.rowHeight,r=e.rowCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getRowStopIndexForStartIndex:function(e,t,n){var r=e.rowHeight,o=e.rowCount,a=e.height,i=t*r,l=Math.ceil((a+n-i)/r);return Math.max(0,Math.min(o-1,t+l-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}}),VL=WL({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,r,o,a){var i=e.direction,l=e.height,s=e.itemCount,c=e.itemSize,u=e.layout,d=e.width,p="horizontal"===i||"horizontal"===u?d:l,f=Math.max(0,s*c-p),h=Math.min(f,t*c),m=Math.max(0,t*c-p+c+a);switch("smart"===n&&(n=r>=m-p&&r<=h+p?"auto":"center"),n){case"start":return h;case"end":return m;case"center":var g=Math.round(m+(h-m)/2);return g<Math.ceil(p/2)?0:g>f+Math.floor(p/2)?f:g;default:return r>=m&&r<=h?r:r<m?m:h}},getStartIndexForOffset:function(e,t){var n=e.itemCount,r=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/r)))},getStopIndexForStartIndex:function(e,t,n){var r=e.direction,o=e.height,a=e.itemCount,i=e.itemSize,l=e.layout,s=e.width,c=t*i,u="horizontal"===r||"horizontal"===l?s:o,d=Math.ceil((u+n-c)/i);return Math.max(0,Math.min(a-1,t+d-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const GL="#BBB",KL="#f1f1f1",ZL={styledScrollbars:"".concat("ListBox","-styledScrollbars")};const XL=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStopIndex)||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex,QL=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStartIndex)||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex,JL=(e,t,n,r)=>e===t*n+r+n;function YL(e){let{renderProps:t,layoutOptions:n,maxCount:r,columnCount:o,rowCount:a,overflowDisclaimer:i,qCardinal:l,dataOffset:s}=e;const c="column"===(null==n?void 0:n.layoutOrder)&&"singleColumn"!==n.dataLayout,u=XL(t,c),d=c?r.column:r.row,p=(c?o:a)>=d,f=JL(l,u,c?a:o,s),h=!!s&&QL(t,c),m=p&&!f&&u>=d-1||h||i.state.show;i.set(m)}const{StyledFixedSizeList:eO,StyledFixedSizeGrid:tO}=function(){const e=e=>({scrollbarColor:"".concat(GL," ").concat(KL),overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:KL},"&::-webkit-scrollbar-thumb":{backgroundColor:GL,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:Uh(VL,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(ZL.styledScrollbars)]:e(n)}})),StyledFixedSizeGrid:Uh(UL,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(ZL.styledScrollbars)]:e(n)}}))}}();const nO=(e,t)=>{const n=(()=>{const e=document.createDocumentFragment(),t=document.createElement("canvas");return e.appendChild(t),t.getContext("2d")})();if(n.font=t,Array.isArray(e))return Math.max(...e.map((e=>n.measureText(e).width)));const r=n.measureText(e);return Math.ceil(r.width||0)},rO=e=>{const t=H.useMemo((()=>"text"in e?e:{}),[e]);return H.useMemo((()=>nO(t.text,t.font||"12px Source Sans Pro")),[t.text,t.font])};function oO(e){if(!e)return"";const t="number"==typeof e?e:e.qListObject.qDimensionInfo.qApprMaxGlyphCount;return Array(t).fill("M").join("")}function aO(e){let{isGridMode:t,dense:n}=e;let r=n?HR:t?$R:WR;return t&&(r+=UR),r}function iO(e){let{layout:t,width:n,height:r,listCount:o,count:a,freqIsAllowed:i,checkboxes:l,styles:s}=e;const{layoutOptions:c={}}=t||{},{layoutOrder:u,maxVisibleRows:d={},maxVisibleColumns:p,dense:f,dataLayout:h}=c,{fontSize:m="12px",fontFamily:g="Source sans pro"}=(null==s?void 0:s.content)||{},v="".concat(m," ").concat(g),b=rO({text:oO(t),font:v}),y=rO({text:oO(5),font:v}),x=rO({text:oO(8),font:v}),S=i?y:0,w=l?FR:0;let E=jR+S+w;!l&&E>=AR&&(E+=FR);let C,k,R,L,O=b+18+S+w;!l&&O>=AR&&(O+=FR),O=Math.min(DR,Math.max(O,E));const I=aO({isGridMode:"grid"===h,dense:f}),_=null!=r?r:8*I;if(u){let e=n;"row"===u?(C={overflowX:"hidden"},e+=2*UR,({rowCount:L,columnWidth:R,columnCount:k}=function(e){let{maxVisibleColumns:t,listCount:n,containerWidth:r,columnAutoWidth:o,itemMinWidth:a}=e;const i=(null==t?void 0:t.maxColumns)||3,l=r-zR;let s;const c=Math.min(n,Math.max(1,Math.round(l/Math.max(a,o))));s=!1!==(null==t?void 0:t.auto)?c:Math.min(n,i,c),s=Math.max(s,1);const u=l/s;return{rowCount:Math.ceil(n/s),columnWidth:u,columnCount:s}}({maxVisibleColumns:p,listCount:o,containerWidth:e,columnAutoWidth:O,itemMinWidth:E}))):(C={overflowY:"hidden"},({rowCount:L,columnWidth:R,columnCount:k}=function(e){let t,{maxVisibleRows:n,itemHeight:r,listCount:o,listHeight:a,columnAutoWidth:i,containerWidth:l,itemMinWidth:s}=e;const c=(null==n?void 0:n.maxRows)||3,u=Math.floor(a/r);t=!1!==n.auto?u:Math.min(o,c,u),t=Math.max(t,1);const d=Math.ceil(o/t);return{columnWidth:Math.max(i,l/d,s),columnCount:d,rowCount:t}}({maxVisibleRows:d,itemHeight:I,listCount:o,listHeight:_,columnAutoWidth:O,containerWidth:e,itemMinWidth:E})))}k=("singleColumn"===h?1:k)||1,L=("singleColumn"===h?a:L)||o;const T=c.dense?838e3:577e3;L=Math.min(L,T);const P=Math.floor(3355e4/R);k=Math.min(k,P)||1;const M=L*k,N=Math.min(o,M);return{columnCount:k,columnWidth:R,rowCount:L,overflowStyling:C,itemHeight:I,listHeight:_,listWidth:n,scrollBarWidth:zR,count:a,listCount:N,maxCount:{row:T,column:P},itemPadding:UR,textWidth:b,freqMinWidth:y,freqMaxWidth:x}}const lO=e=>{let{pages:t=[],minimumBatchSize:n,count:r}=e;const o=t.some((e=>e.qArea.qHeight<n)),a=Math.max(...t.map((e=>e.qArea.qTop+e.qArea.qHeight)));return o?a:r};const[sO,cO]=Ty({});function uO(e){const t="".concat(e.id),[n]=sO();return{setStoreValue:(e,r)=>n.set("".concat(t,"/").concat(e),r),getStoreValue:e=>n.get("".concat(t,"/").concat(e))}}const dO=yb(ix,{shouldForwardProp:e=>!["width","dense"].includes(e)})((e=>{let{width:t,dense:n}=e;return a({minWidth:"".concat(t,"px"),textAlign:"center",fontSize:"".concat(n?"12px":"14px")},n&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:t})}));function pO(e){let{width:t,text:n,dense:r,tooltip:o}=e;const{translator:a}=H.useContext(Oy);return U.createElement(nR,{title:o?a.get(n):""},U.createElement(dO,{width:t,dense:r,component:"div",variant:"body1",py:"12px"},a.get(n)))}var fO={},hO={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(hO);var mO,gO=hO.exports,vO={},bO=r(Fy);var yO=gO;Object.defineProperty(fO,"__esModule",{value:!0});var xO=fO.default=void 0,SO=yO((mO||(mO=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=bO}(vO)),vO)),wO=tm,EO=(0,SO.default)((0,wO.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");xO=fO.default=EO;const CO=yb(Gy)((e=>{let{theme:t,left:n}=e;return{position:"absolute",bottom:"12px",display:"flex",border:"1px solid ".concat(t.palette.divider),width:"calc(100% - 11px)",left:n}})),kO=yb("div")((()=>({paddingLeft:"6px",flexGrow:1}))),RO=yb("div")((e=>{let{dense:t}=e;return{display:"flex",alignItems:"".concat(t?"center":"flex-start")}})),LO=yb(xO)((()=>({fontSize:"14px"})));function OO(e){let{text:t,dismiss:n,dense:r,parentWidth:o=0}=e;const a="function"==typeof n,i=r?370:282,l=Math.max(o/2-i/2,0),s=Math.min(i,o)-42,c=r&&o<i;return U.createElement(CO,{left:l,style:{maxWidth:i}},U.createElement(kO,null,U.createElement(pO,{text:t,dense:r,width:s,tooltip:c})),U.createElement(RO,{dense:r},a&&U.createElement(Yy,{"aria-label":"close",onClick:()=>n()},U.createElement(LO,null))))}const IO=(e,t)=>e.qListObject.qDimensionInfo.qCardinal-t;const _O=80;function TO(e){let{itemWidth:t,layout:n,frequencyMode:r}=e;const o=t>_O,{frequencyEnabled:a=!1}=(null==n?void 0:n.qListObject)||{},i=!["N",void 0].includes(r);return!(!o||!i&&!a)}const PO=e=>{const t=(e=>e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)?e:"[".concat(e.replace(/\]/g,"]]"),"]"):e)(e);return"Max(AGGR(Count(".concat(t,"), ").concat(t,"))")},MO=(e,t)=>{const n=(e=>"fetch"===(null==e?void 0:e.frequencyMax))(t),[r,o]=H.useState(),[a,i]=H.useState(n);return H.useEffect((()=>{if(!n)return;(async()=>{const n=await(async(e,t)=>{const n=e.qListObject.qDimensionInfo,r=n.qGroupFieldDefs[n.qGroupPos],o=PO(r);return(await t.evaluateEx(o)).qNumber})(t,e);o(n),i(!1)})()}),[n&&t]),{frequencyMax:n?r:null==t?void 0:t.frequencyMax,awaitingFrequencyMax:a}};const NO=["isLoadingData"],qO=100,AO=yb("div")((()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}})));function zO(e){var t,n;let{model:r,app:o,constraints:i,layout:c,selections:u,selectionState:d,direction:p,checkboxes:f,height:h,width:m,frequencyMode:g,update:v,fetchStart:b,postProcessPages:y,calculatePagesHeight:x=!1,keyboard:S={},showGray:w=!0,scrollState:E,selectDisabled:C=(()=>!1),keyScroll:k={state:{},reset:()=>{}},currentScrollIndex:R={set:()=>{}},renderedCallback:L,onCtrlF:O,showSearch:I,isModal:_,styles:T}=e;const{translator:P}=H.useContext(Oy),[M,N]=H.useState(!1),q=!(!c||!c.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:A=f,histogram:z}=null!=c?c:{},[D,j]=H.useState(""),F=H.useRef(null),B=H.useRef({queue:[],validPages:!1,dataOffset:0}),$=H.useRef({pages:[]}),{frequencyMax:W,awaitingFrequencyMax:V}=MO(o,c),G=function(e){let{local:t,loaderRef:n,model:r,fetchStart:o,scrollTimeout:a,postProcessPages:i,listData:l}=e;const[s,c]=H.useState(!1),[u,d]=H.useState([]);let[p]=H.useState(0);const f=(e,s)=>{const u=t.current.dataOffset;t.current.queue.push({start:e+u,stop:s+u});const f=!!n.current&&n.current._listRef&&n.current._listRef.state.isScrolling;return t.current.queue.length>10&&t.current.queue.shift(),clearTimeout(t.current.timeout),c(!0),new Promise((e=>{t.current.timeout=setTimeout((()=>{const n=t.current.queue.slice(-1)[0],a=r.getListObjectData("/qListObjectDef",[{qTop:n.start>p?n.start-p:0,qHeight:p,qLeft:0,qWidth:1},{qTop:n.start,qHeight:p,qLeft:0,qWidth:1}]).then((n=>{const r=i?i(n):n;t.current.validPages=!0,l.current.pages=r,d(r),c(!1),e()}));o&&o(a)}),f?a:0)}))};return{loadMoreItems:{with(e){let{minimumBatchSize:t}=e;return t&&(p=t),f}},pages:u,isLoading:s}}({local:B,loaderRef:F,model:r,fetchStart:b,scrollTimeout:0,postProcessPages:y,listData:$}),K=s(G,NO),{getStoreValue:Z,setStoreValue:X}=uO(r),Q=H.useCallback(K.loadMoreItems,[c]),[J,Y]=H.useState({show:!1,dismissed:!1}),[ee,te]=H.useState([]);null!=K&&K.pages&&d.update({setPages:te,pages:K.pages,isSingleSelect:q,selectDisabled:C,layout:c});const ne=null==c?void 0:c.qListObject.qDimensionInfo.qCardinal;(null!=K&&K.pages.length&&!V||0===ne)&&(null==L||L());const re=H.useCallback((e=>{if(null==ee||!ee.length||!B.current.validPages)return!1;B.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=ee.filter((e=>t(e)))[0];return n&&t(n)}),[c,ee]),{interactionEvents:oe,select:ae}=IR({selectionState:d,selections:u,checkboxes:A,doc:document,loaderRef:F}),{layoutOptions:ie={}}=c||{};let le=!0;ie.dataLayout&&(le="singleColumn"===ie.dataLayout||"row"===(null==ie?void 0:ie.layoutOrder));const se="grid"===(null==ie?void 0:ie.dataLayout),ce=e=>{const t=a({},le?{rowIndex:e}:{columnIndex:e}),n=se?t:e;F.current._listRef.scrollToItem(n)},ue=()=>{if(B.current.queue=[],B.current.validPages=!1,F.current){F.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===k.state.scrollPosition;if(c&&c.qSelectionInfo.qInSelections||e)return void(e&&k.reset());B.current.dataOffset=0,ce(0)}};v&&v.call(null,ue),H.useEffect((()=>{E&&!M&&F.current&&(F.current._listRef.scrollToItem(E.initScrollPos),N(!0))}),[F.current]),H.useEffect((()=>{ue()}),[c,B.current.dataOffset]);let de=qO;const pe="grid"!==ie.dataLayout,fe=null==c||null===(t=c.qListObject.qSize)||void 0===t?void 0:t.qcy,he=function(e){let{pages:t,minimumBatchSize:n,count:r,calculatePagesHeight:o=!1}=e;return(null!=t&&t.length&&o?lO({pages:t,minimumBatchSize:n,count:r}):r)||0}({pages:ee,minimumBatchSize:de,count:fe,calculatePagesHeight:x,layoutOptions:ie,model:r});let me=TO({itemWidth:m,layout:c,frequencyMode:g});const ge=function(e){return e.some((e=>{let{qMatrix:t}=e;return t.some((e=>{var t;let[n]=e;return!(null===(t=n.qFrequency)||void 0===t||!t.match("%"))}))}))?"P":"-"}(ee),ve=iO({layout:c,width:m,height:h,listCount:he,count:fe,freqIsAllowed:me,checkboxes:A,styles:T});ve.columnWidth&&(me=TO({itemWidth:ve.columnWidth,layout:c,frequencyMode:g}));const{listCount:be}=ve;X("listCount",be);const ye=Z("inputText");H.useEffect((()=>{if(ye){const e=function(e){let t;switch(e){case 0:t="Listbox.NoMatchesForYourTerms";break;case 1:t="ScreenReader.OneSearchResult";break;default:t="ScreenReader.ManySearchResults"}return t}(be),t=P.get(e,[be]);j(t)}}),[ye,be]);const xe=e=>{const{scrollIndex:t,offset:n,triggerRerender:r}=function(e){let t,{position:n,isRow:r,sizes:o,layout:a,offset:i}=e,l=!1,s=null!=i?i:0;switch(n){case"start":t=0;break;case"end":t=r?o.rowCount:o.columnCount;break;case"overflowStart":s=0,t=0,l=!0;break;case"overflowEnd":s=IO(a,o.listCount),t=a.qListObject.qDimensionInfo.qCardinal,l=!0}return{scrollIndex:t,offset:s,triggerRerender:l}}({position:e,isRow:le,sizes:ve,layout:c,offset:B.current.dataOffset});B.current.dataOffset=n,r&&d.triggerStateChanged(),ce(t)};H.useEffect((()=>{const e=k.state;e.up?ce(R.state.start-e.up):e.down?ce(R.state.stop+e.down):e.scrollPosition&&xe(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&k.reset()}),[k.state.up,k.state.down,k.state.scrollPosition]);const{textAlign:Se}=(null==c?void 0:c.qListObject.qDimensionInfo)||{},[we,Ee]=H.useState({first:!1,last:!1}),{List:Ce,Grid:ke}=function(e){let{layout:t,width:n,checkboxes:r,local:o,isVertical:i,pages:s,selectDisabled:c,interactionEvents:u,deducedFrequencyMode:d,histogram:p,isSingleSelect:f,select:h,selectAll:m,onCtrlF:g,textAlign:v,selections:b,keyboard:y,showGray:x,scrollState:S,direction:w,sizes:E,listCount:C,overflowDisclaimer:k,setScrollPosition:R,focusListItems:L,setCurrentScrollIndex:O,constraints:I,frequencyMax:_,freqIsAllowed:T,translator:P,showSearch:M,isModal:N,styles:q}=e;const{layoutOptions:A={}}=t||{},{columnWidth:z,listHeight:D,itemHeight:j,rowCount:F,columnCount:B}=E||{},$=("grid"===A.dataLayout?z:n)>AR,W={direction:"rtl"===w?"rtl":"ltr",useIsScrolling:!0,className:ZL.styledScrollbars},H=null==t?void 0:t.qListObject.qDimensionInfo.qLocked,V=D<=j,G=a(a({isLocked:H,column:!i,pages:s},H||c()?{}:u),{},{checkboxes:r,layoutOptions:A,deducedFrequencyMode:d,freqIsAllowed:T,isSingleSelect:f,textAlign:v,sizes:E,actions:{select:h,confirm:()=>null==b?void 0:b.confirm.call(b),cancel:()=>null==b?void 0:b.cancel.call(b),setScrollPosition:R,selectAll:m,onCtrlF:g},frequencyMax:_,histogram:p,keyboard:y,showGray:x,showTick:$,dataOffset:o.current.dataOffset,focusListItems:L,direction:w,translator:P,showSearch:M,isModal:N,styles:q,fillHeight:V});return{List:e=>{let{onItemsRendered:r,ref:i}=e;return o.current.listRef=i,U.createElement(eO,l({},W,{dataTestid:"fixed-size-list",scrollDisabled:null==I?void 0:I.active,height:D,width:n,itemCount:C,itemData:a(a({},G),{},{listCount:C}),itemSize:j,onItemsRendered:e=>{var n;O({start:e.visibleStartIndex,stop:e.visibleStopIndex}),S&&S.setScrollPos(e.visibleStopIndex),YL({renderProps:e,layoutOptions:A,maxCount:E.maxCount,columnCount:B,rowCount:F,overflowDisclaimer:k,qCardinal:null==t||null===(n=t.qListObject)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.qCardinal,dataOffset:o.current.dataOffset}),r(a({},e))},ref:i}),OL)},Grid:e=>{let{onItemsRendered:r,ref:i}=e;const{overflowStyling:s,scrollBarWidth:c}=E,{layoutOrder:u}=A||{},d=Math.min(D,F*j+c);return o.current.listRef=i,U.createElement(tO,l({},W,{dataTestid:"fixed-size-grid",scrollDisabled:null==I?void 0:I.active,height:d,width:n,columnCount:B,columnWidth:z,rowCount:F,rowHeight:j,style:a({},s),itemData:a(a({},G),{},{column:void 0,columnCount:B,rowCount:F}),onItemsRendered:e=>{var n;const a="row"===u;O({start:a?e.visibleRowStartIndex:e.visibleColumnStartIndex,stop:a?e.visibleRowStopIndex:e.visibleColumnStopIndex});const i=function(e){const{renderProps:t,scrollState:n,layoutOrder:r,rowCount:o,columnCount:a}=e,{overscanRowStartIndex:i,overscanRowStopIndex:l,overscanColumnStartIndex:s,overscanColumnStopIndex:c,visibleStopIndex:u}=t;let d,p,f,h;return n&&n.setScrollPos(u),"column"===r?(d=s*o,p=i,f=c*o,h=l):(d=s,p=i*a,f=c,h=l*a),{visibleStartIndex:d+p,visibleStopIndex:f+h}}({renderProps:e,scrollState:S,layoutOrder:u,rowCount:F,columnCount:B});YL({renderProps:e,layoutOptions:A,maxCount:E.maxCount,columnCount:B,rowCount:F,overflowDisclaimer:k,qCardinal:null==t||null===(n=t.qListObject)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.qCardinal,dataOffset:o.current.dataOffset}),r(i)},ref:i}),OL)}}}({direction:p,layout:c,height:h,width:m,checkboxes:A,deducedFrequencyMode:ge,histogram:z,keyboard:S,showGray:w,interactionEvents:oe,select:ae,selectAll:()=>{d.clearItemStates(!1),r.selectListObjectAll("/qListObjectDef")},onCtrlF:O,textAlign:Se,isVertical:pe,pages:ee,selectDisabled:C,isSingleSelect:q,selections:u,scrollState:E,local:B,sizes:ve,listCount:be,overflowDisclaimer:{state:J,set:e=>Y((t=>a(a({},t),{},{show:e})))},setScrollPosition:xe,focusListItems:{first:we.first,setFirst:e=>Ee((t=>a(a({},t),{},{first:e}))),last:we.last,setLast:e=>Ee((t=>a(a({},t),{},{last:e})))},setCurrentScrollIndex:R.set,constraints:i,frequencyMax:W,freqIsAllowed:me,translator:P,showSearch:I,isModal:_,styles:T}),{columnWidth:Re,listHeight:Le,itemHeight:Oe}=ve||{};return pe||(de=function(e){let{width:t,columnWidth:n,listHeight:r,itemHeight:o}=e;return Math.ceil(t/n)*Math.ceil(r/o)*2}({width:m,columnWidth:Re,listHeight:Le,itemHeight:Oe})),U.createElement(AO,null,U.createElement(wL,{className:"screenReaderOnly",layout:c}),U.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},D),!be&&ne>0&&U.createElement(pO,{width:m,text:"Listbox.NoMatchesForYourTerms"}),U.createElement(xR,{isItemLoaded:re,itemCount:be||1,loadMoreItems:Q.with({minimumBatchSize:de}),threshold:0,minimumBatchSize:de,ref:F,role:"grid"},pe?Ce:ke),J.show&&!J.dismissed&&U.createElement(OO,{text:"Listbox.ItemsOverflow",dismiss:()=>Y((e=>a(a({},e),{},{dismissed:!0}))),parentWidth:null==F||null===(n=F.current)||void 0===n||null===(n=n._listRef)||void 0===n||null===(n=n.props)||void 0===n?void 0:n.width,dense:null==ie?void 0:ie.dense}))}const DO=e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M15.4,9 C15.8,9 16,9.3 16,9.6 L16,15.4 C16,15.7 15.8,16 15.4,16 L9.6,16 C9.3,16 9,15.8 9,15.4 L9,9.6 C9,9.3 9.3,9 9.6,9 L15.4,9 Z M15,10 L10,10 L10,15 L15,15 L15,10 Z M6.5,0 C6.8,0 7,0.3 7,0.6 L7,6.4 C7,6.8 6.8,7 6.5,7 L0.6,7 C0.3,7 0,6.8 0,6.5 L0,0.6 C0,0.3 0.3,0 0.6,0 L6.5,0 Z M6,2.8 C6.3,2.5 6.3,2.1 6.1,1.8 C5.9,1.5 5.4,1.6 5.1,1.9 L3.1,3.9 L2.4,3.2 C2.1,2.9 1.7,2.9 1.4,3.1 C1.2,3.3 1.2,3.8 1.5,4.1 L2.7,5.3 C3,5.6 3.4,5.6 3.7,5.3 L3.8,5.3 L6,2.8 Z M6.5,9 C6.8,9 7,9.3 7,9.6 L7,15.4 C7,15.8 6.8,16 6.5,16 L0.6,16 C0.3,16 0,15.8 0,15.4 L0,9.6 C0,9.3 0.3,9 0.6,9 L6.5,9 Z M6,11.8 C6.3,11.5 6.3,11.1 6.1,10.8 C5.9,10.6 5.4,10.6 5.1,10.8 L3.1,12.8 L2.3,12 C2,11.7 1.6,11.7 1.3,12 C1.1,12.3 1.1,12.7 1.4,13 L2.6,14.2 C2.9,14.5 3.3,14.5 3.6,14.3 L3.7,14.2 L6,11.8 Z M15.4,0 C15.8,0 16,0.3 16,0.6 L16,6.4 C16,6.8 15.8,7 15.4,7 L9.6,7 C9.3,7 9,6.8 9,6.5 L9,0.6 C9,0.3 9.3,0 9.6,0 L15.4,0 Z M15,2.8 C15.3,2.5 15.3,2.1 15.1,1.8 C14.9,1.5 14.4,1.6 14.1,1.9 L12.1,3.9 L11.3,3.1 C11,2.8 10.6,2.8 10.3,3 C10,3.2 10.1,3.7 10.3,4 L11.5,5.2 C11.8,5.5 12.2,5.5 12.5,5.2 L15,2.8 Z"}}]}),jO=e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),FO=e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),BO=e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]});var $O=e=>{let{layout:t,model:n,translator:r,selectionState:o,isDirectQuery:a=!1}=e;if(t.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];return[{key:"selectAll",type:"menu-icon-button",label:r.get("Selection.SelectAll"),getSvgIconShape:DO,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectAll("/qListObjectDef")}},{key:"selectPossible",type:"menu-icon-button",label:r.get("Selection.SelectPossible"),getSvgIconShape:FO,enabled:()=>["qOption"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectPossible("/qListObjectDef")}},!a&&{key:"selectAlternative",type:"menu-icon-button",label:r.get("Selection.SelectAlternative"),getSvgIconShape:jO,enabled:()=>["qAlternative"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectAlternative("/qListObjectDef")}},!a&&{key:"selectExcluded",type:"menu-icon-button",label:r.get("Selection.SelectExcluded"),getSvgIconShape:BO,enabled:()=>["qAlternative","qExcluded"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectExcluded("/qListObjectDef")}}].filter(Boolean)};const WO=e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M2,6.5 L3,6.5 C3.55228475,6.5 4,6.94771525 4,7.5 L4,8.5 C4,9.05228475 3.55228475,9.5 3,9.5 L2,9.5 C1.44771525,9.5 1,9.05228475 1,8.5 L1,7.5 C1,6.94771525 1.44771525,6.5 2,6.5 Z M7.5,6.5 L8.5,6.5 C9.05228475,6.5 9.5,6.94771525 9.5,7.5 L9.5,8.5 C9.5,9.05228475 9.05228475,9.5 8.5,9.5 L7.5,9.5 C6.94771525,9.5 6.5,9.05228475 6.5,8.5 L6.5,7.5 C6.5,6.94771525 6.94771525,6.5 7.5,6.5 Z M13,6.5 L14,6.5 C14.5522847,6.5 15,6.94771525 15,7.5 L15,8.5 C15,9.05228475 14.5522847,9.5 14,9.5 L13,9.5 C12.4477153,9.5 12,9.05228475 12,8.5 L12,7.5 C12,6.94771525 12.4477153,6.5 13,6.5 Z"}}]});function HO(e){const t=gb(),n="function"==typeof e.enabled?!e.enabled():!!e.disabled,r="function"==typeof e.getSvgIconShape;return{hidden:!0===e.hidden,disabled:n,style:{backgroundColor:e.active?t.palette.btn.active:void 0},hasSvgIconShape:r}}const UO={className:"njs-cell-action"},VO=U.forwardRef(((e,t)=>{let{ariaExpanded:n=!1,item:r,addAnchor:o=!1}=e;const a=gb(),{hidden:i,disabled:l,style:s,hasSvgIconShape:c}=HO(r);if(i)return null;const u=Number.parseInt(a.spacing(.5),10),d=r.keyboardAction||r.action,p=d?e=>["Enter"].includes(e.key)&&d():null,f=d?e=>[" ","Spacebar"].includes(e.key)&&d():null,h="actions-toolbar-".concat(r.key);return U.createElement(Yy,{ref:o?null:t,title:r.label,onClick:r.action,onKeyDown:p,onKeyUp:f,disabled:l,style:s,className:[UO.className,h].join(" "),size:"large",disableRipple:!0,"aria-expanded":n,"aria-controls":"moreMenuList","data-testid":h},c&&hR(r.getSvgIconShape()),o&&U.createElement("div",{ref:t,style:{bottom:-u,right:0,position:"absolute",width:"100%",height:0}}))})),GO=e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M9.34535242,8 L13.3273238,11.9819714 C13.6988326,12.3534802 13.6988326,12.955815 13.3273238,13.3273238 C12.955815,13.6988326 12.3534802,13.6988326 11.9819714,13.3273238 L8,9.34535242 L4.01802863,13.3273238 C3.64651982,13.6988326 3.04418502,13.6988326 2.67267621,13.3273238 C2.3011674,12.955815 2.3011674,12.3534802 2.67267621,11.9819714 L6.65464758,8 L2.67267621,4.01802863 C2.3011674,3.64651982 2.3011674,3.04418502 2.67267621,2.67267621 C3.04418502,2.3011674 3.64651982,2.3011674 4.01802863,2.67267621 L8,6.65464758 L11.9819714,2.67267621 C12.3534802,2.3011674 12.955815,2.3011674 13.3273238,2.67267621 C13.6988326,3.04418502 13.6988326,3.64651982 13.3273238,4.01802863 L9.34535242,8 Z"}}]}),KO=e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M9.1661442,6.1661442 C10.7210031,4.61128527 13.2789969,4.61128527 14.8338558,6.1661442 C16.3887147,7.72100313 16.3887147,10.2789969 14.8338558,11.8338558 C13.2789969,13.3887147 10.7210031,13.3887147 9.1661442,11.8338558 C7.61128527,10.2789969 7.61128527,7.77115987 9.1661442,6.1661442 Z M14.1316614,7.72100313 C14.3322884,7.52037618 14.3824451,7.169279 14.1316614,6.9184953 C13.8808777,6.6677116 13.5297806,6.71786834 13.3291536,6.9184953 L12.0250784,8.22257053 L10.7210031,6.9184953 C10.5203762,6.6677116 10.1191223,6.6677116 9.9184953,6.9184953 C9.6677116,7.11912226 9.6677116,7.52037618 9.9184953,7.72100313 L11.2225705,9.02507837 L9.9184953,10.3291536 C9.6677116,10.5297806 9.6677116,10.8808777 9.9184953,11.1316614 C10.169279,11.3824451 10.5203762,11.3824451 10.7210031,11.1316614 L12.0250784,9.82758621 L13.3291536,11.1316614 C13.5297806,11.3824451 13.8808777,11.3824451 14.1316614,11.1316614 C14.3322884,10.9310345 14.3824451,10.5297806 14.1316614,10.3291536 L12.8275862,9.02507837 L14.1316614,7.72100313 Z"}}]});var ZO=e=>hR(KO(e));const XO="njs-action-toolbar-more",QO={icon:"".concat("More","-icon")},JO=yb(fk)((e=>{let{theme:t}=e;return{pointerEvents:"none",["& .".concat(QO.icon," *")]:{color:t.palette.text.primary}}}));function YO(e){let{item:t,autoFocus:n,onActionClick:r=(()=>{})}=e;const{hidden:o,disabled:a,hasSvgIconShape:i}=HO(t);return o?null:U.createElement(xk,{autoFocus:n,title:t.label,onClick:()=>{t.action(),r()},disabled:a,tabindex:"0"},i&&U.createElement(GC,{className:QO.icon},hR(t.getSvgIconShape())),U.createElement(ix,{noWrap:!0},t.label))}const eI=U.forwardRef(((e,t)=>{let{actions:n=[],show:r=!0,alignTo:o,popoverProps:i={},popoverPaperStyle:s={},onCloseOrActionClick:c=(()=>{})}=e;const u=n.length>0,d=n.findIndex((e=>!e.disabled));return u&&U.createElement(JO,l({},i,{onClose:c,ref:t,open:r,anchorEl:o.current,getContentAnchorEl:null,container:o.current,disablePortal:!0,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:XO},paper:{style:a({pointerEvents:"auto",maxWidth:"250px"},s)}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}),U.createElement(tk,{id:"moreMenuList"},n.map(((e,t)=>U.createElement(YO,{key:t,item:e,autoFocus:t===d,onActionClick:c})))))})),tI=e=>{const t=e.closest("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");return Array.from(n).indexOf(e)},nI=e=>{const t=document.querySelector("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");if(!n.length)return;n[Math.min(Math.max(0,e),n.length-1)].focus()};const rI="ActionsToolbar",oI={item:"".concat(rI,"-item"),itemSpacing:"".concat(rI,"-itemSpacing")},aI=yb(fk)((e=>{let{theme:t}=e;return{["& .".concat(oI.itemSpacing)]:{padding:t.spacing(0,.25)}}})),iI={className:"njs-action-toolbar-popover"},lI=U.forwardRef(((e,t)=>{let{className:n,ariaExpanded:r=!1,actions:o=[],addAnchor:a=!1,isRtl:i=!1}=e;return o.length>0?U.createElement(rC,{item:!0,container:!0,gap:0,flexDirection:i?"row-reverse":"row",wrap:"nowrap",className:n},o.map(((e,n)=>U.createElement(rC,{item:!0,key:e.key,className:"".concat(oI.itemSpacing," ").concat(oI.item)},U.createElement(VO,{ariaExpanded:r,key:e.key,item:e,ref:0===n?t:null,addAnchor:a}))))):null})),sI={pointerEvents:"none"},cI={vertical:"bottom",horizontal:"right"};function uI(e){var t,n;let{show:r=!0,actions:o=[],maxItems:a=3,selections:i={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},more:l={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{}},popover:s={show:!1,anchorEl:null},focusHandler:c=null,actionsRefMock:u=null,direction:d="ltr",autoConfirm:p=!1}=e;const f=function(e){let{api:t,onConfirm:n=(()=>{}),onCancel:r=(()=>{}),onKeyDeactivate:o=(()=>{})}=e;const{translator:a}=H.useContext(Oy);return[{key:"clear",type:"icon-button",label:a.get("Selection.Clear"),enabled:()=>t.canClear(),action:()=>t.clear(),getSvgIconShape:KO},{key:"cancel",type:"icon-button",label:a.get("Selection.Cancel"),enabled:()=>t.canCancel(),action:()=>{r(),t.cancel()},keyboardAction:()=>{o(),r(),t.cancel()},getSvgIconShape:GO},{key:"confirm",type:"icon-button",label:a.get("Selection.Confirm"),enabled:()=>t.canConfirm(),action:()=>{n(),t.confirm()},keyboardAction:()=>{o(),n(),t.confirm()},getSvgIconShape:_R}]}(i),{translator:h,keyboardNavigation:m}=H.useContext(Oy),[g,v]=H.useState(!1),b={vertical:12,horizontal:(null!==(t=null===(n=s.anchorEl)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)-7},y=H.useRef(),x=H.useRef(),S=gb(),w=H.useMemo((()=>({margin:S.spacing(.5,0)}))),E=e=>{const t=y.current||u;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]},C=H.useMemo((()=>function(e){let{keyboardNavigation:t,focusHandler:n,getEnabledButton:r,selections:o}=e;return e=>{const{target:a,nativeEvent:i}=e,{keyCode:l}=i;switch(l){case EL.ARROW_LEFT:case EL.ARROW_DOWN:case EL.ARROW_RIGHT:case EL.ARROW_UP:if(a.classList.contains("njs-cell-action")){const e=tI(a),t=[EL.ARROW_LEFT,EL.ARROW_DOWN].includes(l);nI(t?e-1:e+1)}e.stopPropagation(),e.preventDefault();break;case EL.SPACE:e.preventDefault();break;case EL.TAB:t&&null!=n&&n.refocusContent&&(e.shiftKey&&r(!1)===e.target||!e.shiftKey&&r(!0)===e.target)&&(e.preventDefault(),e.stopPropagation(),n.refocusContent());break;case EL.ESCAPE:o&&(o.onCancel(),o.api.cancel(),e.preventDefault(),e.stopPropagation())}}}({keyboardNavigation:m,focusHandler:c,getEnabledButton:E,selections:i})),[m,c,E,i]);if(H.useEffect((()=>()=>{v(!1)}),[s.show,r,i.show]),H.useEffect((()=>{if(!c)return;c.on("focus_toolbar_first",(()=>{const e=E(!1);e&&e.focus()})),c.on("focus_toolbar_last",(()=>{const e=E(!0);e&&e.focus()}))}),[]),p)return;let k=l.enabled,R=l.actions;const L=l.alignTo||x,O=o.filter((e=>!e.hidden));if(O.length>a){const e=O.splice(-(O.length-a)-1);k=!0,R=[...e,...l.actions]}if(!i.show&&0===O.length)return null;const I={key:"more",label:h.get("Menu.More"),getSvgIconShape:WO,hidden:!1,active:g,enabled:()=>k,action:()=>v(!g)},_=O.length>0,T=R.length>0,P=_&&i.show||T&&i.show,M="rtl"===d,N=U.createElement(rC,{ref:y,onKeyDown:C,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:M?"row-reverse":"row"}},_&&U.createElement(lI,{actions:O}),T&&U.createElement(lI,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:x,ariaExpanded:g,actions:[I],addAnchor:!0}),P&&U.createElement(rC,{item:!0,className:oI.itemSpacing,style:w},U.createElement(zE,{orientation:"vertical"})),i.show&&U.createElement(lI,{className:"actions-toolbar-default-actions",actions:f,isRtl:M}),g&&U.createElement(eI,{show:g,actions:R,alignTo:L,popoverProps:l.popoverProps,popoverPaperStyle:l.popoverPaperStyle,onCloseOrActionClick:()=>{v(!1)}}));return s.show?U.createElement(aI,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:s.show,anchorEl:s.anchorEl,anchorOrigin:b,transformOrigin:cI,hideBackdrop:!0,style:sI,slotProps:{paper:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:iI.className,style:{pointerEvents:"auto",padding:S.spacing(.5,.25)}}}},N):r&&N}var dI=e=>hR((e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014l-4.128-4.026ZM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0Zm-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6.034 6.034 0 0 1-1.413 1.415Z"}}]}))(e));const pI="/qListObjectDef",fI="**",hI=yb(Ik,{shouldForwardProp:e=>!["styles","dense","isRtl"].includes(e)})((e=>{let{theme:t,styles:n,dense:r,isRtl:o}=e,i={};return r&&(i={fontSize:12,paddingLeft:t.spacing(1),"& input":{paddingTop:"5px",paddingBottom:"5px"}}),a({display:"flex",border:"none",fontSize:14,borderRadius:0,backgroundColor:n.search.backgroundColor,backdropFilter:n.background.backgroundImage?n.search.backdropFilter:void 0,paddingLeft:"".concat(9,"px"),flexDirection:o?"row-reverse":"row","& fieldset":{borderColor:"".concat(n.search.borderColor),borderWidth:"1px 0 1px 0",borderRadius:0},"&.Mui-focused fieldset":{borderColor:"".concat(n.search.highlightBorderColor," !important")},"& .MuiInputBase-root":a({},n.search),"& *":{color:n.search.color},"& input":{color:n.search.color,textAlign:o?"right":"left"}},i)}));function mI(e){let{selections:t,selectionState:n,model:r,keyboard:o,dense:a=!1,visible:i=!0,autoFocus:l=!0,wildCardSearch:s=!1,searchEnabled:c,direction:u,hide:d,styles:p}=e;const{translator:f}=H.useContext(Oy),[h,m]=H.useState(""),[g,v]=H.useState(!1),b=H.useRef(),{getStoreValue:y,setStoreValue:x}=uO(r),S="rtl"===u,w=async()=>{if(t.isModal())try{await r.abortListObjectSearch(pI)}finally{m("")}};H.useEffect((()=>{i||w()}),[i]),H.useEffect((()=>(t.on("deactivated",w),()=>{t.removeListener&&t.removeListener("deactivated",w)})),[]),H.useEffect((()=>{if(g&&b.current){const e=h.length-1;b.current.setSelectionRange(e,e),v(!1)}}),[g,b.current]),H.useEffect((()=>{x("inputText",h)}),[h]);const E=async()=>{let e;return await r.searchListObjectFor(pI,h)&&h.length&&y("listCount")>0&&(e=r.acceptListObjectSearch(pI,!0),t.selectionsMade=!0,n.clearItemStates(!1),m("")),e};function C(e){const t=(null==e?void 0:e.querySelector(".last-focused"))||(null==e?void 0:e.querySelector('[role="row"]:first-child'));t.setAttribute("tabIndex",0),null==t||t.focus()}return i&&!1!==c?U.createElement(hI,{styles:p,dense:a,isRtl:S,startAdornment:U.createElement(SC,{position:"start"},U.createElement(dI,{size:a?"small":"normal"})),className:"search",inputRef:b,size:"small",fullWidth:!0,placeholder:f.get("Listbox.Search"),value:h,onFocus:()=>{s&&(m(fI),v(!0)),t.isModal()||t.begin(["/qListObjectDef"])},onChange:async e=>(m(e.target.value),e.target.value.length?r.searchListObjectFor(pI,e.target.value):w()),onKeyDown:async e=>{const{currentTarget:n}=e,r=n.closest(".listbox-container");switch(e.key){case"Enter":E();break;case"Escape":C(r),t.isActive()&&t.cancel();break;case"Tab":e.shiftKey?o.focusSelection():(C(r),null==r||r.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")})));break;case"f":case"F":if(!e.ctrlKey&&!e.metaKey)return;d&&(d(),C(r));break;default:return}e.preventDefault(),e.stopPropagation()},autoFocus:l,inputProps:{tabIndex:o.innerTabStops?0:-1,"data-testid":"search-input-field","aria-label":f.get("Listbox.Search.ScreenReaderInstructions")}}):null}function gI(e){if(!e.session)return[];const{selectionStore:t}=H.useContext(Oy),[n]=t.useAppSelectionsStore(),r=e?e.id:null;let o=n.get(r);return H.useEffect((()=>{e&&!o&&(o=function(e){let{app:t,selectionStore:n}=e;const r="".concat(t.id),{modalObjectStore:o,appModalStore:a}=n,i=async function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const{model:t,objectSelections:n}=o.get(r)||{};t&&(await t.endSelections(e),o.clear(r),n.emit("deactivated"))},l={begin:async e=>{var n;let{model:a,paths:l,accept:s=!0,objectSelections:c}=e;if(c===(null===(n=o.get(r))||void 0===n?void 0:n.objectSelections))return;i(s),o.set(r,{model:a,objectSelections:c});const u=Array.isArray(l)?l:[l],d=async e=>{try{await a.beginSelections(u),o.set(r,{model:a,objectSelections:c})}catch(n){6003!==n.code||e?o.clear(r):(await t.abortModal(s),d(!0))}};await d()},end:i};a.set(r,l);const s={model:t,isInModal:()=>!!o.get(r),isModal(e){var t;return e?(null===(t=o.get(r))||void 0===t?void 0:t.objectSelections)===e:!!o.get(r)},forward:()=>l.end().then((()=>t.forward())),back:()=>l.end().then((()=>t.back())),clear:()=>l.end().then((()=>t.clearAll())),clearField(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$";return l.end().then((()=>t.getField(e,n).then((e=>e.clear()))))}};return s}({app:e,selectionStore:t}),n.set(r,o),n.dispatch(!0))}),[e]),[o]}function vI(e){return Object.keys(Y.prototype).forEach((t=>{e[t]=Y.prototype[t]})),Y.init(e),e}const bI=e=>{let t,{appSelections:n,appModal:r,model:o}=e,a=!1,i=!1;const l={id:o.id,setLayout(e){t=e},begin(e){const t=(()=>{let e=!1;return{isPrevented:()=>e,preventDefault:()=>{e=!0}}})();return this.emit("activate",t),t.isPrevented()?Promise.resolve():(a=!0,this.emit("activated"),r.begin({model:o,paths:e,accept:!0,objectSelections:l}))},clear(){return i=!1,this.emit("cleared"),t.qListObject?o.clearSelections("/qListObjectDef"):o.resetMadeSelections()},confirm(){return i=!1,a=!1,this.emit("confirmed"),this.emit("deactivated"),r.end(!0)},cancel(){return i=!1,a=!1,this.emit("canceled"),this.emit("deactivated"),r.end(!1)},async select(e){const t=this.begin([e.params[0]]);if(!n.isModal())return!1;await t;const r=await o[e.method](...e.params);return i="resetMadeSelections"!==e.method,!!r||(o.resetMadeSelections(),!1)},canClear:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked&&!t.qListObject.qDimensionInfo.qIsOneAndOnlyOne:i,canConfirm:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked:i,canCancel:()=>!(t&&t.qListObject&&t.qListObject.qDimensionInfo)||!t.qListObject.qDimensionInfo.qLocked,isActive:()=>a,isModal:()=>n.isModal(l),goModal:e=>r.begin({model:o,paths:e,accept:!1,objectSelections:l}),noModal:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return r.end(e)}};return vI(l),l},yI=e=>{let{elements:t,objectSelections:n,options:r={}}=e;const o=function(e){let{elements:t,handleClickOutside:n}=e;return e=>{if(!document.contains(e.target))return;const r=t.map((e=>"string"==typeof e?document.querySelector(e):null==e?void 0:e.current)).filter((e=>!!e&&!!document.contains(e)));r.length&&!r.some((t=>t.contains(e.target)))&&n(e)}}({elements:t,handleClickOutside:()=>n.confirm.call(n)});return{activateClickOut(){var e;document.addEventListener("mousedown",o),null==r||null===(e=r.onSelectionActivated)||void 0===e||e.call(r)},deactivateClickOut(){var e;document.removeEventListener("mousedown",o),null==r||null===(e=r.onSelectionDeactivated)||void 0===e||e.call(r)}}};function xI(e,t,n,r){const o=Array.isArray(n)?n:[n],[a]=gI(e),[i]=uR(t),{appModalStore:l}=H.useContext(Oy).selectionStore,s=l.get(e.id),[c,u]=H.useState();return H.useEffect((()=>{a&&t&&!c&&u(bI({appSelections:a,appModal:s,model:t}))}),[a,t]),H.useEffect((()=>{if(!c)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=yI({elements:o,objectSelections:c,options:r});return c.addListener("activated",e),c.addListener("deactivated",t),()=>{c.isActive()&&c.confirm(),c.removeListener("activated",e),c.removeListener("deactivated",t)}}),[c]),H.useEffect((()=>{c&&c.setLayout(i)}),[c,i]),[c]}function SI(){const e={itemStates:{},ignoreSelectionState:!1,selectedInEngine:[],enginePages:[],setPages:void 0,lastRowCount:void 0,lastApprMaxGlyphCount:void 0,update(t){var n,r;let{setPages:o,pages:a,isSingleSelect:i,selectDisabled:l,layout:s}=t;this.setPages=o;const c=this.lastRowCount===s.qListObject.qSize.qcy,u=this.lastApprMaxGlyphCount===s.qListObject.qDimensionInfo.qApprMaxGlyphCount;c&&u||(this.lastRowCount=s.qListObject.qSize.qcy,this.lastApprMaxGlyphCount=s.qListObject.qDimensionInfo.qApprMaxGlyphCount,this.clearItemStates(!1)),e.enginePages!==a&&void 0!==a&&(e.enginePages=null!=a?a:[],e.selectedInEngine=ER(a),e.selectableValuesUpdating=!1,e.triggerStateChanged()),e.isSingleSelect=i,e.selectDisabled=l,e.isDimCalculated=null!==(n=null==s||null===(r=s.qListObject)||void 0===r||null===(r=r.qDimensionInfo)||void 0===r?void 0:r.qIsCalculated)&&void 0!==n&&n},allowedToSelect:()=>!e.selectDisabled()&&!(e.isDimCalculated&&e.selectableValuesUpdating),setSelectableValuesUpdating(){e.selectableValuesUpdating=!0},useClientItemState:t=>e.ignoreSelectionState||t in e.itemStates,isSelected:t=>e.useClientItemState(t)?!!e.itemStates[t]:e.selectedInEngine.includes(t),getState(t){const{qElemNumber:n,qState:r}=t;return e.useClientItemState(n)?e.itemStates[n]?"XS"===r?"XS":"S":"S"===r||"XS"===r?"A":r:r},updateItemNoEvents(t,n,r){const o=e.isSelected(t);o&&!n?e.itemStates[t]=!1:o||(null==r||r.push(t),e.itemStates[t]=!0)},triggerStateChanged(){if(this.setPages){const t=e.applySelectionsOnPages(e.enginePages);this.setPages(t)}},applySelectionsOnPages(t){const n=t.map((t=>{const n=t.qMatrix.map((t=>{const[n]=t,r=e.getState(n);return[a(a({},n),{},{qState:r}),...t.slice(1)]}));return a(a({},t),{},{qMatrix:n})}));return n},updateItem(t,n,r){e.updateItemNoEvents(t,n,r),e.triggerStateChanged()},updateItems(t,n,r){t.forEach((t=>{e.updateItemNoEvents(t,n,r)})),e.triggerStateChanged()},clearItemStates(t){e.itemStates={},e.ignoreSelectionState=t}};return e}const wI=function(e,t){var n;let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return null!==(n=null==e?void 0:e[t])&&void 0!==n?n:r};const EI={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},CI=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,kI=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,RI=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,LI=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,OI=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,II=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,{floor:_I}=Math,{round:TI}=Math;class PI{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let r,o,a,i,l,s,c,u,d,p,f,h,m=0,g=0,v=0,b=1;if(this._invalid=!1,t[0]instanceof PI)m=t[0]._r,g=t[0]._g,v=t[0]._b,b=t[0]._a,this._invalid=t[0]._invalid;else if(t.length<3)if("string"==typeof t[0])if(h=t[0],f=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(h))m=parseInt(f[1],10),g=parseInt(f[2],10),v=parseInt(f[3],10);else if(f=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(h))m=parseInt(f[1],10),g=parseInt(f[2],10),v=parseInt(f[3],10),b=parseFloat(f[4]);else if(f=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(h))b=parseInt(f[1],10)/255,m=parseInt(f[2],10),g=parseInt(f[3],10),v=parseInt(f[4],10);else if(f=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(h))m=parseInt(f[1],16),g=parseInt(f[2],16),v=parseInt(f[3],16),b=1;else if(f=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(h))m=parseInt(f[1]+f[1],16),g=parseInt(f[2]+f[2],16),v=parseInt(f[3]+f[3],16),b=1;else if(f=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(h)){switch(r=parseFloat(f[1]),o=parseFloat(f[3]),i=parseFloat(f[5]),r%=360,o/=100,i/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,i=i<0?0:i>1?1:i,s=i<=.5?2*i*o:(2-2*i)*o,c=r/60,u=s*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[s,u,0];break;case 1:d=[u,s,0];break;case 2:d=[0,s,u];break;case 3:d=[0,u,s];break;case 4:d=[u,0,s];break;case 5:d=[s,0,u];break;default:d=[0,0,0]}p=i-.5*s,m=d[0]+p,g=d[1]+p,v=d[2]+p,m=TI(255*m),g=TI(255*g),v=TI(255*v),b=1}else if(f=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(h)){switch(r=parseFloat(f[1]),o=parseFloat(f[3]),i=parseFloat(f[5]),b=parseFloat(f[7]),r%=360,o/=100,i/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,i=i<0?0:i>1?1:i,s=i<=.5?2*i*o:(2-2*i)*o,c=r/60,u=s*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[s,u,0];break;case 1:d=[u,s,0];break;case 2:d=[0,s,u];break;case 3:d=[0,u,s];break;case 4:d=[u,0,s];break;case 5:d=[s,0,u];break;default:d=[0,0,0]}p=i-.5*s,m=d[0]+p,g=d[1]+p,v=d[2]+p,m=TI(255*m),g=TI(255*g),v=TI(255*v)}else if(f=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(h)){switch(r=parseFloat(f[1]),o=parseFloat(f[3]),l=parseFloat(f[5]),r%=360,o/=100,l/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,l=l<0?0:l>1?1:l,s=l*o,c=r/60,u=s*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[s,u,0];break;case 1:d=[u,s,0];break;case 2:d=[0,s,u];break;case 3:d=[0,u,s];break;case 4:d=[u,0,s];break;case 5:d=[s,0,u];break;default:d=[0,0,0]}p=l-s,m=d[0]+p,g=d[1]+p,v=d[2]+p,m=TI(255*m),g=TI(255*g),v=TI(255*v),b=1}else EI[h.toLowerCase()]?(a=h.toLowerCase(),m=EI[a].r,g=EI[a].g,v=EI[a].b,b="number"==typeof EI[a].a?EI[a].a:1):this._invalid=!0;else"number"==typeof t[0]&&t[0]>=0&&"argb"===t[1]?(b=(4278190080&t[0])>>>24,b/=255,m=(16711680&t[0])>>16,g=(65280&t[0])>>8,v=255&t[0]):"number"==typeof t[0]&&t[0]>=0?(m=(16711680&t[0])>>16,g=(65280&t[0])>>8,v=255&t[0]):this._invalid=!0;else t.length>=3?(m=t[0],g=t[1],v=t[2],b=arguments.length>=4?t[3]:1):this._invalid=!0;Number.isNaN(+m+g+v+b)&&(this._invalid=!0),this._r=_I(m),this._g=_I(g),this._b=_I(v),this._a=b,this._spaces={}}isInvalid(){return this._invalid}setAlpha(e){this._a=e,this._spaces={}}getAlpha(){return this._a}toRGB(){return this._spaces.rgb||(this._spaces.rgb=PI.toRGB(this)),this._spaces.rgb}toRGBA(){return this._spaces.rgba||(this._spaces.rgba=PI.toRGBA(this)),this._spaces.rgba}toString(){return this._spaces.rgb||(this._spaces.rgb=PI.toRGB(this)),this._spaces.rgb}toHex(){return this._spaces.hex||(this._spaces.hex=PI.toHex(this)),this._spaces.hex}toHSL(e){return this._spaces.hsl||(this._spaces.hsl=PI.toHSL(this,e)),this._spaces.hsl}toHSLA(e){return this._spaces.hsla||(this._spaces.hsla=PI.toHSLA(this,e)),this._spaces.hsla}toHSV(){const e=this.toHSVComponents();return"hsv(".concat(e.h,",").concat(e.s,",").concat(e.v,")")}toHSVComponents(){return this._spaces.hsvComp||(this._spaces.hsvComp=PI.toHSVComponents(this)),this._spaces.hsvComp}toNumber(){return this._spaces.num||(this._spaces.num=PI.toNumber(this)),this._spaces.num}isDark(){return this.isInvalid()||this.getLuminance()<125}getLuminance(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}shiftLuminance(e){const t=this.toHSLA(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),r=parseFloat(n[1]),o=parseFloat(n[3]);let a=parseFloat(n[5]);const i=parseFloat(n[7]);return a+=e,a=Math.max(0,Math.min(a,100)),"hsla(".concat(r,",").concat(o,",").concat(a,",").concat(i,")")}isEqual(e){return e instanceof PI||(e=new PI(e)),this._r===e._r&&this._g===e._g&&this._b===e._b&&this._a===e._a}blend(e,t){const n=_I(this._r+(e._r-this._r)*t),r=_I(this._g+(e._g-this._g)*t),o=_I(this._b+(e._b-this._b)*t),a=_I(this._a+(e._a-this._a)*t);return"rgba(".concat([n,r,o,a].join(","),")")}createShiftedColor(e){(void 0===e||Number.isNaN(+e))&&(e=1);const t=this.getLuminance(),n=this._g<126?1:1+this._g/512,r=this.shiftLuminance(20*(t*n<220?.8+1/(t+1)*4:-(.8+t/255*1))*e);return new PI(r)}static toRGB(e){if(e instanceof PI)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=PI.toNumber(e));const t=(65280&e)>>8,n=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(n,")")}static toRGBA(e,t){if(e instanceof PI)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=PI.toNumber(e));const n=(65280&e)>>8,r=255&e;return"rgba(".concat((16711680&e)>>16,",").concat(n,",").concat(r,",").concat(void 0!==t?t:e._a,")")}static toHex(e){let t,n,r;return e instanceof PI?(t=e._r.toString(16),n=e._g.toString(16),r=e._b.toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat([t,n,r].join(""))):("string"==typeof e&&(e=PI.toNumber(e)),t=((16711680&e)>>16).toString(16),n=((65280&e)>>8).toString(16),r=(255&e).toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat(t).concat(n).concat(r))}static toHSL(e,t){let n,r,o,a=0;"string"==typeof e&&(e=new PI(e));const i=e._r/255,l=e._g/255,s=e._b/255,c=Math.max(i,l,s),u=Math.min(i,l,s);if(r=t?.21*i+.72*l+.07*s:(c+u)/2,c===u)n=0,a=0;else{switch(o=c-u,n=r>.5?o/(2-c-u):o/(c+u),c){case i:a=(l-s)/o+(l<s?6:0);break;case l:a=(s-i)/o+2;break;case s:a=(i-l)/o+4}a/=6}return"hsl(".concat(360*a,",").concat(100*n,",").concat(100*r,")")}static toHSLA(e,t){let n,r,o,a=0;"string"==typeof e&&(e=new PI(e));const i=e._r/255,l=e._g/255,s=e._b/255,c=e._a,u=Math.max(i,l,s),d=Math.min(i,l,s);if(r=t?.21*i+.72*l+.07*s:(u+d)/2,u===d)n=0,a=0;else{switch(o=u-d,n=r>.5?o/(2-u-d):o/(u+d),u){case i:a=(l-s)/o+(l<s?6:0);break;case l:a=(s-i)/o+2;break;case s:a=(i-l)/o+4}a/=6}return"hsla(".concat(360*a,",").concat(100*n,",").concat(100*r,",").concat(c,")")}static toHSVComponents(e){let t,n,r=0;"string"==typeof e&&(e=new PI(e));const o=e._r/255,a=e._g/255,i=e._b/255,l=Math.max(o,a,i),s=Math.min(o,a,i),c=l;if(l===s)t=0,r=0;else{switch(n=l-s,t=0===n?0:n/c,l){case o:r=(a-i)/n+(a<i?6:0);break;case a:r=(i-o)/n+2;break;case i:r=(o-a)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*c}}static toNumber(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length&&t[0]instanceof PI)return(t[0]._r<<16)+(t[0]._g<<8)+t[0]._b;let r,o,a=0,i=0,l=0;return 1===t.length&&"string"==typeof t[0]&&(o=t[0],(r=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(o))?(a=parseInt(r[1],10),i=parseInt(r[2],10),l=parseInt(r[3],10)):(r=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(o))?(a=parseInt(r[1],16),i=parseInt(r[2],16),l=parseInt(r[3],16)):(r=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(o))&&(a=parseInt(r[1]+r[1],16),i=parseInt(r[2]+r[2],16),l=parseInt(r[3]+r[3],16))),(a<<16)+(i<<8)+l}static blend(e,t,n){const r=(16711680&(e=PI.toNumber(e)))>>16,o=(65280&e)>>8,a=255&e;return(r+(((16711680&(t=PI.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(a+((255&t)-a)*n)}static getBlend(e,t,n){const r=e._r+(t._r-e._r)*n,o=e._g+(t._g-e._g)*n,a=e._b+(t._b-e._b)*n,i=e._a+(t._a-e._a)*n;return new PI(r,o,a,i)}static isCSSColor(e){return!(arguments.length>1||"string"!=typeof e)&&(CI.test(e)||kI.test(e)||RI.test(e)||LI.test(e)||OI.test(e)||II.test(e)||EI[e.toLowerCase()])}static getBestContrast(e,t,n){const r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n}static getContrast(e,t){if(!e||!t)return;const n=e.getLuminance()/100,r=t.getLuminance()/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}static isDark(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new PI(...t).isDark(...t)}static useDarkLabel(e,t){return e._a>.5?!e.isDark():!t}}const MI=/,(?![^(]*\))/,NI=/\s(?![^(]*\))/,qI=/^[0-9]+[a-zA-Z%]+?$/,AI=["none","inset","initial","inherit"],zI=e=>{if(!e)return;const t=e.split(NI).filter((e=>!AI.includes(e.toLowerCase()))).at(-1),n=!t||(e=>"0"===e||qI.test(e))(t)||AI.includes(t.toLowerCase())?void 0:t;return n},DI=e=>e?e.split(MI).map((e=>e.trim())):[];function jI(e,t,n,r){return n&&r?n.getStyle("object.".concat(r),e,t):n?n.getStyle("",e,t):void 0}const FI=!0;function BI(e,t,n,r,o){return e&&r?"none"!==e.color?r.getColorPickerColor(e,FI):void 0:jI(t,n,r,o)}const $I={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},WI={"top-left":"top left","top-center":"top center","top-right":"top right","center-left":"center left","center-center":"center center","center-right":"center right","bottom-left":"bottom left","bottom-center":"bottom center","bottom-right":"bottom right"};function HI(e,t){return t?function(e){var t;let n,r,o,a;return null!=e&&null!==(t=e.session)&&void 0!==t&&t.config?(n=e.session.config,r=new URL(n.url),a="wss:"===r.protocol,o=a?"https://":"http://",o+r.host):""}(e)+t:void 0}function UI(e,t){const n=null==e?void 0:e.bgImage;if(n){let r="";if("media"===n.mode||"media"===e.useImage){const e=null==n?void 0:n.mediaUrl,{qUrl:o}=(null==e?void 0:e.qStaticContentUrl)||{};r=o?decodeURIComponent(o):void 0,r=HI(t,r)}"expression"===n.mode&&(r=n.expressionUrl?decodeURIComponent(n.expressionUrl):void 0);const o=function(e){var t;let n="center center";return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.position&&(n=WI[e.bgImage.position]),n}(e),a=function(e){var t;let n=$I.originalSize;const r=null==e||null===(t=e.bgImage)||void 0===t?void 0:t.sizing;return r&&(n=$I[r]),n}(e);return r?{url:r,pos:o,size:a}:void 0}}function VI(e,t,n){const r=null==e?void 0:e.bgColor;return r&&t&&(r.useExpression||r.useColorExpression)?t.validateColor(r.colorExpression):BI(null==r?void 0:r.color,"","backgroundColor",t,n)}function GI(e,t,n){var r,o;const a=jI("shadow","boxShadow",t,n);return((e,t,n)=>{if(e&&AI.includes(e.toLowerCase()))return e.toLowerCase();const r=DI(e);if(1!==r.length)return e;let o=n;if(!o){const n=DI(t);if(1!==n.length)return e;o=zI(n[0])}if(!o)return e;const a=zI(r[0]);return a?e.replace(a,o):"".concat(e," ").concat(o)})((null==e||null===(r=e.shadow)||void 0===r?void 0:r.boxShadow)||a,a,BI(null==e||null===(o=e.shadow)||void 0===o?void 0:o.boxShadowColor,"shadow","boxShadowColor",t,n))}function KI(e,t,n,r){var o;const a=(null==e||null===(o=e.title)||void 0===o?void 0:o[t])||{},i=function(e,t){return e&&Array.isArray(e)?e:"main"===t?["bold"]:[]}(a.fontStyle,t);return{fontFamily:a.fontFamily||n.getStyle("object.".concat(r),"title.".concat(t),"fontFamily"),color:a.color&&"none"!==a.color.color?n.getColorPickerColor(a.color,!0):n.getStyle("object.".concat(r),t,"color"),fontWeight:i.includes("bold")?"bold":"normal",fontStyle:i.includes("italic")?"italic":"normal",textDecoration:i.includes("underline")?"underline":"initial"}}const ZI="#FFF",XI="#000",QI=1.5,JI=3,YI=(e,t)=>{let n=!1;const r=new PI(e),o=new PI(t);if(!(o.isInvalid()||r.isInvalid()||o.getAlpha()<1||r.getAlpha()<1)){try{n=PI.getContrast(r,o)}catch(e){n=void 0}return n}};function e_(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:XI,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ZI;const o=new PI(r),a=new PI(e),i=new PI(t);if(a.isInvalid()||i.isInvalid()||a.getAlpha()<1||i.getAlpha()<1)return t;const l=YI(o,a),s=YI(i,a),c=l>s||l>JI;let u;return u=t&&s>QI&&!c?t:c?r:n,u}const t_=["theme","selections"];function n_(e){var t,n,r,o,a,i,l,s;let{app:c,themeApi:u,theme:d,components:p=[],checkboxes:f=!1}=e;const h=function(){const e={};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((t=>{const n=null==t?void 0:t.key;t_.includes(n)&&(e[n]=t)})),e}(p),m=(e,t)=>u.getStyle("object.listBox",e,t),g=e=>(null==e?void 0:e.index)>0||null!=e&&e.color?u.getColorPickerColor(e,!1):void 0,v=function(e){var t,n,r,o,a,i,l,s,c,u,d,p,f,h,m;let{getColorPickerColor:g,theme:v,getListboxStyle:b,overrides:y,checkboxes:x}=e;const S=g(null===(t=y.theme)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.fontColor)||b("content","color")||(null===(n=v.palette)||void 0===n?void 0:n.text.primary),w=!x&&(null===(r=null===(o=y.theme)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.useContrastColor)||void 0===r||r),E=(null===(a=y.selections)||void 0===a?void 0:a.colors)||{},C=g(E.selected)||(null===(i=v.palette)||void 0===i?void 0:i.selected.main)||"#009845",k=g(E.alternative)||(null===(l=v.palette)||void 0===l?void 0:l.selected.alternative)||"#E4E4E4",R=g(E.excluded)||(null===(s=v.palette)||void 0===s?void 0:s.selected.excluded)||"#A9A9A9",L=g(E.selectedExcluded)||(null===(c=v.palette)||void 0===c?void 0:c.selected.selectedExcluded)||"#A9A9A9",O=g(E.possible)||b("","backgroundColor")||(null===(u=v.palette)||void 0===u?void 0:u.selected.possible)||"#FFFFFF";let I=S||(null===(d=v.palette)||void 0===d?void 0:d.selected.selectedContrastText),_=S||(null===(p=v.palette)||void 0===p?void 0:p.selected.alternativeContrastText),T=S||(null===(f=v.palette)||void 0===f?void 0:f.selected.excludedContrastText),P=S||(null===(h=v.palette)||void 0===h?void 0:h.selected.selectedExcludedContrastText),M=S||(null===(m=v.palette)||void 0===m?void 0:m.selected.possibleContrastText);return w&&(I=e_(C,S),_=e_(k,S),T=e_(R,S),P=e_(L,S),M=e_(O,S)),{selected:C,alternative:k,excluded:R,selectedExcluded:L,possible:O,selectedContrast:I,alternativeContrast:_,excludedContrast:T,selectedExcludedContrast:P,possibleContrast:M}}({getColorPickerColor:g,theme:d,getListboxStyle:m,overrides:h,checkboxes:f}),b=h.theme||{},y=g(null===(t=b.header)||void 0===t?void 0:t.fontColor)||m("title.main","color"),x=function(e){let t,{themeApi:n,themeOverrides:r}=e;const o=null==r?void 0:r.background;return o?(t=null!=o&&o.useExpression?VI({bgColor:o},n,"listBox"):n.getColorPickerColor(null==o?void 0:o.color,!1),t):t}({themeApi:u,themeOverrides:b}),S=null!==(n=b.background)&&void 0!==n&&n.image?UI({bgImage:b.background.image},c):void 0,w=function(e){return e_("#fff",e("content","color"))}(m),E=(null===(r=b.header)||void 0===r?void 0:r.fontStyle)||{},C=(null===(o=b.content)||void 0===o?void 0:o.fontStyle)||{},k=(e,t,n)=>!0===e&&t||!1===e&&n||void 0;return{background:{backgroundColor:x||m("","backgroundColor")||d.palette.background.default,backgroundImage:null==S||!S.url||null!=S&&S.url.startsWith("url(")?void 0:"url('".concat(S.url,"')"),backgroundRepeat:"no-repeat",backgroundSize:null==S?void 0:S.size,backgroundPosition:null==S?void 0:S.pos},header:{color:y,fontSize:(null===(a=b.header)||void 0===a?void 0:a.fontSize)||m("title.main","fontSize"),fontFamily:(null===(i=b.header)||void 0===i?void 0:i.fontFamily)||m("title.main","fontFamily"),fontWeight:k(E.bold,"bold","normal")||m("title.main","fontWeight")||"bold",textDecoration:E.underline?"underline":"initial",fontStyle:k(E.italic,"italic","normal")||m("title.main","fontStyle")||"initial"},content:{backgroundColor:f?void 0:v.possible,color:v.possibleContrast||m("content","color"),fontSize:(null===(l=b.content)||void 0===l?void 0:l.fontSize)||m("content","fontSize"),fontFamily:(null===(s=b.content)||void 0===s?void 0:s.fontFamily)||m("content","fontFamily"),fontWeight:k(C.bold,"bold","normal")||m("content","fontWeight")||"normal",textDecoration:C.underline?"underline":"initial",fontStyle:k(C.italic,"italic","normal")||m("content","fontStyle")||"initial"},search:{color:w,borderColor:d.palette.divider,highlightBorderColor:d.palette.custom.focusBorder,backgroundColor:"rgba(255, 255, 255, 0.7)",backdropFilter:"blur(8px)"},selections:v}}function r_(e){let{alignTo:t,anchorOrigin:n={vertical:"bottom",horizontal:"center"},transformOrigin:r={vertical:"top",horizontal:"center"},show:o,close:a,app:i,fieldName:l,stateName:s="$",autoFocus:c,components:u,checkboxes:d}=e;const p=Boolean(null==l?void 0:l.qLibraryId),f=o&&Boolean(t.current),[h,m]=H.useState(0),g=gb(),v=H.useRef(),[b]=oR({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:s,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],qFieldDefs:p?void 0:[l]},qLibraryId:p?l.qLibraryId:void 0}},i,l,s),y=H.useCallback((()=>{b.lock("/qListObjectDef")}),[b]),x=H.useCallback((()=>{b.unlock("/qListObjectDef")}),[b]),{translator:S,themeApi:w}=H.useContext(Oy),E=H.useRef(),C=H.useRef(),[k]=xI(i,b,C),[R]=uR(b),[L]=H.useState((()=>SI())),{checkboxes:O=d}=R||{},I=n_({themeApi:w,theme:g,components:u,checkboxes:O});if(H.useEffect((()=>{k&&f&&(k.isModal(b)||k.goModal("/qListObjectDef"))}),[k,f]),!b||!R||!S)return null;const _=!0===R.qListObject.qDimensionInfo.qLocked,T=(e,t)=>{const n="escapeKeyDown"!==t;k.noModal(n),a()},P=$O({layout:R,model:b,translator:S,selectionState:L}),M=function(e){const t=(null==e?void 0:e.qListObject.qDimensionInfo.qStateCounts)||{};return wI(t,"qSelected",0)+wI(t,"qSelectedExcluded",0)+wI(t,"qLocked",0)+wI(t,"qLockedExcluded",0)>0}(R);return U.createElement(fk,{open:f,onClose:T,anchorEl:t.current,anchorOrigin:n,transformOrigin:r,PaperProps:{style:{minWidth:"250px"}}},U.createElement(rC,{container:!0,direction:"column",gap:0,ref:C},U.createElement(rC,{item:!0,container:!0,style:{padding:g.spacing(1)}},U.createElement(rC,{item:!0},_?U.createElement(Yy,{onClick:x,disabled:!_,size:"large"},U.createElement(gR,{title:S.get("Listbox.Unlock")})):U.createElement(Yy,{onClick:y,disabled:!M,size:"large"},U.createElement(vR,{title:S.get("Listbox.Lock")}))),U.createElement(rC,{item:!0,xs:!0}),U.createElement(rC,{item:!0},U.createElement(uI,{more:{enabled:!_,actions:P,alignTo:E,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:k,onConfirm:T,onCancel:()=>T(0,"escapeKeyDown")}}))),U.createElement(rC,{item:!0,xs:!0},U.createElement("div",{ref:E}),U.createElement(rC,{item:!0,ref:v},U.createElement(mI,{styles:I,visible:!0,model:b,listCount:h,selections:k,selectionState:L,keyboard:{enabled:!1},autoFocus:null==c||c})),U.createElement(zO,{model:b,app:i,layout:R,selections:k,selectionState:L,direction:"ltr",onSetListCount:e=>m(e),onCtrlF:()=>{const e=v.current.querySelector("input");null==e||e.focus()},styles:I}))))}function o_(e){let{field:t,api:n,stateIx:r=0,skipHandleShowListBoxPopover:o=!1,moreAlignTo:a=null,onClose:i=(()=>{})}=e;const{translator:l}=H.useContext(Oy),s=a||H.useRef(),c=gb(),[u,d]=H.useState(!1),p=e=>{e.currentTarget.contains(e.target)&&d(!u)},f=()=>{d(!1),i()},h=t.selections[r];void 0===h.qTotal&&(h.qTotal=0);const m=h.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},g=(m.qSelected+m.qLocked)/h.qTotal,v=m.qAlternative/h.qTotal,b=(m.qExcluded+m.qLockedExcluded+m.qSelectedExcluded)/h.qTotal,y=m.qSelected+m.qSelectedExcluded+m.qLocked+m.qLockedExcluded,x=0===y&&0===h.qTotal;let S="";h.qTotal===y&&h.qTotal>1?S=l.get("CurrentSelections.All"):y>1&&h.qTotal?S=l.get("CurrentSelections.Of",[y,h.qTotal]):h.qSelectedFieldSelectionInfo&&(S=h.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==t.states[r]&&(S="".concat(t.states[r],": ").concat(S));const w=[{color:c.palette.selected.main,ratio:g},{color:c.palette.selected.alternative,ratio:v},{color:c.palette.selected.excluded,ratio:b}];w.forEach(((e,t)=>{e.offset=t?w[t-1].offset+w[t-1].ratio:0}));let E=null,C=null,k=null,R=null;return a||(E=U.createElement(rC,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:h.qLocked?"0.3":""}},U.createElement(ix,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},h.qField),U.createElement(ix,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},S)),h.qLocked?C=U.createElement(rC,{item:!0},U.createElement(Yy,{size:"large"},U.createElement(gR,null))):h.qOneAndOnlyOne||(C=U.createElement(rC,{item:!0},U.createElement(Yy,{title:l.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),n.clearField(h.qField,t.states[r])},size:"large"},U.createElement(mR,null)))),k=U.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===x&&w.map((e=>U.createElement("div",{key:e.color,style:{position:"absolute",background:e.color,height:"100%",top:0,width:"".concat(100*e.ratio,"%"),left:"".concat(100*e.offset,"%")}})))),R=U.createElement(rC,{container:!0,gap:1,ref:s,sx:{backgroundColor:c.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:c.palette.action.hover}},onClick:!1===o&&p||null},E,C,k,u&&U.createElement(r_,{alignTo:s,show:u,close:f,app:n.model,fieldName:h.qField,stateName:t.states[r]}))),a?U.createElement(r_,{alignTo:s,show:!0,close:f,app:n.model,fieldName:h.qField,stateName:t.states[r]}):R}var a_=e=>hR((e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M8,9 L12.5,4.5 L14,6 L9.5,10.5 L8,12 L2,6 L3.5,4.5 L8,9 Z"}}]}))(e));const i_={item:"".concat("MultiState","-item")},l_=yb(rC)((e=>{let{theme:t}=e;return{["&.".concat(i_.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"}}}));function s_(e){let{field:t,api:n,moreAlignTo:r=null,onClose:o=(()=>{})}=e;const[a,i]=H.useState(!!r),[l,s]=H.useState(-1),[c,u]=H.useState(r?r.current:null),d=r||H.useRef(),{translator:p}=H.useContext(Oy),f=p.get("Selection.ClearAllStates"),h=()=>{s(-1),o()};let m=null;r||(m=U.createElement(U.Fragment,null,U.createElement(rC,{item:!0,xs:!0,zeroMinWidth:!0},U.createElement(Bw,{style:{padding:"0px 8px"},color:"secondary",badgeContent:t.states.length},U.createElement(ix,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},t.name))),U.createElement(rC,{item:!0},U.createElement("div",{style:{width:"12px"}})),U.createElement(rC,{item:!0},U.createElement(Yy,{size:"large"},U.createElement(a_,null)))));const g=U.createElement(LC,{dense:!0},U.createElement(BC,{title:f,onClick:()=>{t.states.forEach((e=>n.clearField(t.name,e)))}},U.createElement(xy,{variant:"contained",fullWidth:!0},f)),t.states.map(((e,r)=>U.createElement(BC,{key:r,title:t.name,onClick:e=>((e,t)=>{e.stopPropagation(),i(!1),s(t)})(e,r)},U.createElement(Uw,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},U.createElement(o_,{field:t,api:n,stateIx:r,skipHandleShowListBoxPopover:!0})))))),v=U.createElement(fk,{open:a,onClose:()=>{i(!1),o()},anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},g),b=r?v:U.createElement(l_,{container:!0,gap:0,className:i_.item,onClick:e=>{e.currentTarget.contains(e.target)&&(u(e.currentTarget),d.current=e.currentTarget,i(!a))}},m,a&&v,l>-1&&U.createElement(r_,{alignTo:d,show:l>-1,close:h,app:n.model,fieldName:t.selections[l].qField,stateName:t.states[l]}));return r&&l>-1?U.createElement(r_,{alignTo:d,show:l>-1,close:h,app:n.model,fieldName:t.selections[l].qField,stateName:t.states[l]}):b}const c_="More",u_={item:"".concat(c_,"-item"),badge:"".concat(c_,"-badge")},d_=yb(rC)((e=>{let{theme:t}=e;return{["&.".concat(u_.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(u_.badge)]:{padding:t.spacing(0,1)}}}));function p_(e){let{items:t=[],api:n}=e;const r=gb(),[o,a]=H.useState(!1),[i,l]=H.useState(-1),[s,c]=H.useState(null),u=H.useRef(),d=()=>{l(-1)};let p=null;return i>-1&&(p=t[i].states.length>1?U.createElement(s_,{field:t[i],api:n,moreAlignTo:u,onClose:d}):U.createElement(o_,{field:t[i],api:n,skipHandleShowListBoxPopover:!0,moreAlignTo:u,onClose:d})),U.createElement(d_,{container:!0,gap:0,className:u_.item,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),u.current=e.currentTarget,a(!o))}},U.createElement(rC,{item:!0},U.createElement(Uw,{borderRadius:r.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:r.palette.selected.main,color:r.palette.selected.mainContrastText}},U.createElement(ix,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",t.length))),U.createElement(rC,{item:!0},U.createElement(Yy,{size:"large"},U.createElement(a_,null))),o&&U.createElement(fk,{open:o,onClose:()=>{a(!1)},anchorEl:s,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},U.createElement(LC,{dense:!0},t.map(((e,t)=>U.createElement(BC,{key:t,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),a(!1),l(t)})(e,t)},U.createElement(Uw,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?U.createElement(s_,{field:e,api:n}):U.createElement(o_,{field:e,api:n}))))))),p)}const f_=120,h_=72;function m_(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"$";e.qSelections.forEach((e=>{const r=e.qField,o=t[r]=t[r]||{name:r,states:[],selections:[]};-1===o.states.indexOf(n)&&(o.states.push(n),o.selections.push(e))}))}function g_(e){let{api:t,app:n}=e;const r=gb(),[o]=iR(n),[a]=uR(o),[i,l]=H.useState({items:[],more:[]}),{modalObjectStore:s}=H.useContext(Oy).selectionStore,[c,u]=pR(),[d,p]=H.useState(0);return H.useEffect((()=>{if(!u)return;const{width:e}=u,t=Math.floor(e)-h_,n=Math.floor(t/f_);p(n)}),[u]),H.useEffect((()=>{if(!(n&&o&&a&&d))return;const e=function(e){if(!e)return[];const t={};return e.qSelectionObject&&m_(e.qSelectionObject,t),e.alternateStates&&e.alternateStates.forEach((e=>m_(e.qSelectionObject,t,e.stateName))),Object.keys(t).map((e=>t[e])).filter((e=>!e.selections.some((e=>e.qIsHidden))))}(a);l((t=>{const r=e;if((()=>{const{model:e}=s.get(n.id)||{};return"njsListbox"===(null==e?void 0:e.genericType)})()&&r.length+1===t.items.length){const e=t.items.filter((e=>!1===r.some((t=>e.name===t.name))))[0],{qField:n}=e.selections[0];e.selections=[{qField:n}];const o=t.items.indexOf(e);r.splice(o,0,e)}let o=[];return d<r.length&&(o=r.splice(d-r.length)),{items:r,more:o}}))}),[n,o,a,t.isInModal(),d]),U.createElement(rC,{ref:c,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},i.items.map((e=>U.createElement(rC,{item:!0,key:"".concat(e.states.join("::"),"::").concat(e.name),style:{position:"relative",maxWidth:"240px",minWidth:"".concat(f_,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},e.states.length>1?U.createElement(s_,{field:e,api:t}):U.createElement(o_,{field:e,api:t})))),i.more.length>0&&U.createElement(rC,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(h_,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},U.createElement(p_,{items:i.more,api:t})))}var v_=e=>hR((e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 Z M16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,-5.07265313e-17 13.5,0 L15,0 C15.5522847,1.01453063e-16 16,0.44771525 16,1 L16,2.5 Z M10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 C6,0.223857625 6.22385763,-5.07265313e-17 6.5,0 L9.5,0 C9.77614237,5.07265313e-17 10,0.223857625 10,0.5 Z M1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 5.18696197e-13,2.77614237 5.18696197e-13,2.5 L5.18696197e-13,1 C5.18696197e-13,0.44771525 0.44771525,-1.01453063e-16 1,0 L2.5,0 C2.77614237,5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 5.18696197e-13,15.5522847 5.18696197e-13,15 L5.18696197e-13,13.5 C5.18696197e-13,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M4,7 C7.49095643,7 10,10.1337595 10,12.1872632 C10,12.1872632 8.16051135,9.86624054 4,10 L4,12 C4,12 2.66666667,10.8333333 -1.0658141e-14,8.5 C-2.59348099e-13,8.5 1.33333333,7.33333333 4,5 C4,5 4,5.66666667 4,7 Z"}}]}))(e));var b_=e=>hR((e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M12,7 C12,5.66666667 12,5 12,5 C14.6666667,7.33333333 16,8.5 16,8.5 C13.3333333,10.8333333 12,12 12,12 L12,10 C7.83948865,9.86624054 6,12.1872632 6,12.1872632 C6,10.1337595 8.50904357,7 12,7 Z"}}]}))(e));const y_=(e,t,n)=>{const r=[...n.qStateNames||[]].map((e=>({stateName:e,qSelectionObjectDef:{qStateName:e}})));(t&&t.alternateStates?t.alternateStates.map((e=>e.stateName)):[]).join("::")!==(n.qStateNames||[]).map((e=>e)).join("::")&&e.applyPatches([{qOp:"replace",qPath:"/alternateStates",qValue:JSON.stringify(r)}],!0)};function x_(e){let{api:t,app:n}=e;const{translator:r}=H.useContext(Oy),[o]=function(e){const[t]=iR(e),[n]=uR(t),[r]=dR(e),[o,a]=H.useState(null);return H.useEffect((()=>{r&&t&&n&&y_(t,n,r)}),[r,t,n]),H.useEffect((()=>{if(!n)return;let e=!1,t=!1,r=!1;[n,...n.alternateStates||[]].forEach((n=>{e=e||n.qSelectionObject&&n.qSelectionObject.qBackCount>0,t=t||n.qSelectionObject&&n.qSelectionObject.qForwardCount>0,r=r||(n.qSelectionObject&&n.qSelectionObject.qSelections||[]).filter((e=>!0!==e.qLocked)).length>0})),a({canGoBack:e,canGoForward:t,canClear:r})}),[n]),[o,t,n]}(n);return U.createElement(rC,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},U.createElement(rC,{item:!0},U.createElement(Yy,{style:{marginRight:"8px"},disabled:!o||!o.canGoBack,title:r.get("Navigate.Back"),onClick:()=>t.back(),size:"large"},U.createElement(v_,null))),U.createElement(rC,{item:!0},U.createElement(Yy,{style:{marginRight:"8px"},disabled:!o||!o.canGoForward,title:r.get("Navigate.Forward"),onClick:()=>t.forward(),size:"large"},U.createElement(b_,null))),U.createElement(rC,{item:!0},U.createElement(Yy,{disabled:!o||!o.canClear,title:r.get("Selection.ClearAll"),onClick:()=>t.clear(),size:"large"},U.createElement(ZO,null))))}const S_=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function w_(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function E_(){return S_.map(w_).join("")}function C_(e){let{app:t}=e;const n=gb(),[r]=gI(t);return r?U.createElement(rC,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:n.palette.background.paper,minHeight:"40px"}},U.createElement(rC,{item:!0,style:{borderRight:"1px solid ".concat(n.palette.divider)}},U.createElement(x_,{api:r,app:t})),U.createElement(rC,{item:!0,xs:!0,style:{backgroundColor:n.palette.background.darker,overflow:"hidden"}},U.createElement(g_,{api:r,app:t}))):null}let k_;k_="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;let R_=null,L_=null;const O_=k_.clearTimeout,I_=k_.setTimeout,__=k_.cancelAnimationFrame||k_.mozCancelAnimationFrame||k_.webkitCancelAnimationFrame,T_=k_.requestAnimationFrame||k_.mozRequestAnimationFrame||k_.webkitRequestAnimationFrame;function P_(e){let t,n,r,o,a,i,l;const s="undefined"!=typeof document&&document.attachEvent;if(!s){i=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},a=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},l=function(e){if(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;i(this),this.__resizeRAF__&&R_(this.__resizeRAF__),this.__resizeRAF__=L_((function(){a(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))};let e=!1,s="";r="animationstart";const c="Webkit Moz O ms".split(" ");let u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),d="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){d=c[n],s="-"+d.toLowerCase()+"-",r=u[n],e=!0;break}}n="resizeanim",t="@"+s+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",o=s+"animation: 1ms "+n+"; "}return{addResizeListener:function(a,c){if(s)a.attachEvent("onresize",c);else{if(!a.__resizeTriggers__){const s=a.ownerDocument,c=k_.getComputedStyle(a);c&&"static"===c.position&&(a.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(o||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',a=n.head||n.getElementsByTagName("head")[0],i=n.createElement("style");i.id="detectElementResize",i.type="text/css",null!=e&&i.setAttribute("nonce",e),i.styleSheet?i.styleSheet.cssText=r:i.appendChild(n.createTextNode(r)),a.appendChild(i)}}(s),a.__resizeLast__={},a.__resizeListeners__=[],(a.__resizeTriggers__=s.createElement("div")).className="resize-triggers";const u=s.createElement("div");u.className="expand-trigger",u.appendChild(s.createElement("div"));const d=s.createElement("div");d.className="contract-trigger",a.__resizeTriggers__.appendChild(u),a.__resizeTriggers__.appendChild(d),a.appendChild(a.__resizeTriggers__),i(a),a.addEventListener("scroll",l,!0),r&&(a.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&i(a)},a.__resizeTriggers__.addEventListener(r,a.__resizeTriggers__.__animationListener__))}a.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(s)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",l,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}null==__||null==T_?(R_=O_,L_=function(e){return I_(e,20)}):(R_=function([e,t]){__(e),O_(t)},L_=function(e){const t=T_((function(){O_(n),e()})),n=I_((function(){__(t),e()}),20);return[t,n]});class M_ extends H.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){var r,o,a,i;const l=window.getComputedStyle(this._parentNode)||{},s=parseFloat(null!==(r=l.paddingLeft)&&void 0!==r?r:"0"),c=parseFloat(null!==(o=l.paddingRight)&&void 0!==o?o:"0"),u=parseFloat(null!==(a=l.paddingTop)&&void 0!==a?a:"0"),d=parseFloat(null!==(i=l.paddingBottom)&&void 0!==i?i:"0"),p=this._parentNode.getBoundingClientRect(),f=p.height-u-d,h=p.width-s-c,m=this._parentNode.offsetHeight-u-d,g=this._parentNode.offsetWidth-s-c;(e||this.state.height===m&&this.state.scaledHeight===f)&&(t||this.state.width===g&&this.state.scaledWidth===h)||(this.setState({height:m,width:g,scaledHeight:f,scaledWidth:h}),"function"==typeof n&&n({height:m,scaledHeight:f,scaledWidth:h,width:g}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,null!=this._parentNode&&("undefined"!=typeof ResizeObserver?(this._resizeObserver=new ResizeObserver((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(this._parentNode)):(this._detectElementResize=P_(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize)),this._onResize()))}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&(this._resizeObserver.observe(this._parentNode),this._resizeObserver.disconnect()))}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:r=!1,disableWidth:o=!1,nonce:a,onResize:i,style:l={},tagName:s="div",...c}=this.props,{height:u,scaledHeight:d,scaledWidth:p,width:f}=this.state,h={overflow:"visible"},m={};let g=!1;return r||(0===u&&(g=!0),h.height=0,m.height=u,m.scaledHeight=d),o||(0===f&&(g=!0),h.width=0,m.width=f,m.scaledWidth=p),H.createElement(s,{ref:this._setRef,style:{...h,...l},...c},!g&&e(m))}}var N_=e=>hR((e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M15.9993744,3 L15.9993744,5 L4.99937445,5 L4.99937445,3 L15.9993744,3 Z M8.99937445,7 L15.9993744,7 L15.9993744,9 L8.99937445,9 L8.99937445,7 Z M11.9993744,11 L15.9993744,11 L15.9993744,13 L11.9993744,13 L11.9993744,11 Z M2.2,11 L7,11 L7,9.00369263 C7,8.89323568 7.08954305,8.80369263 7.2,8.80369263 C7.2549016,8.80369263 7.30738916,8.82626165 7.34515712,8.86610844 L10.1852182,11.8624926 C10.2583124,11.93961 10.258346,12.0604218 10.1852948,12.13758 L7.34523376,15.1373102 C7.2692928,15.2175206 7.14270711,15.2209817 7.06249671,15.1450407 C7.02260076,15.1072683 7,15.0547472 7,14.9998069 L7,12.9043747 C4.79351111,12.9043747 2.8018683,12.9266213 1.02507156,12.9711145 L1.02507252,12.9711526 C0.472939773,12.9849787 0.014139487,12.5485949 0.000313396522,11.9964622 C0.000104473692,11.988119 -1.32268838e-12,11.9797736 -1.3231638e-12,11.9714278 L-1.83320026e-12,3 L2,3 L2,10.8 C2,10.9104569 2.08954305,11 2.2,11 Z"}}]}))(e));function q_(e){null==e||e.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")}))}function A_(e){return(null==e?void 0:e.closest(".njs-cell"))||(null==e?void 0:e.closest(".qv-gridcell"))}function z_(e){let{keyboard:t,hovering:n,updateKeyScroll:r,containerRef:o,currentScrollIndex:a,isModal:i,constraints:l}=e;return{handleKeyDown:e=>{const{keyCode:n,shiftKey:r=!1}=e.nativeEvent,a=()=>{e.stopPropagation(),e.preventDefault()};if(!t.enabled)return;const l=e.currentTarget.closest(".listbox-container"),s=i();switch(n){case EL.TAB:if(s)r?RL(l)||kL(l):kL(l)||RL(l);else{if(!r)break;t.blur(!0)}a();break;case EL.ENTER:case EL.SPACE:if(!e.target.classList.contains("listbox-container"))break;t.focus(),a();break;case EL.ESCAPE:(e=>{const{currentTarget:n,target:r}=e,a=r.classList.contains("listbox-container"),i=A_(n.closest(".listbox-container")),l=1===(null==i?void 0:i.querySelectorAll(".listbox-container").length);if(a||l)t.blur(!0);else{q_(o.current),n.classList.add("last-focused"),t.blur();const e=n.closest(".listbox-container");e.setAttribute("tabIndex",-1),null==e||e.focus()}})(e)}},handleOnMouseEnter:()=>{(()=>{const e=(null==l?void 0:l.select)||(null==l?void 0:l.active),t=i();return e||t})()||(n.current=!0)},handleOnMouseLeave:()=>{n.current&&(n.current=!1)},globalKeyDown:e=>{if(!n.current)return;const{keyCode:t,ctrlKey:o=!1,shiftKey:i=!1}=e;switch(t){case EL.ARROW_UP:r({up:1});break;case EL.ARROW_DOWN:r({down:1});break;case EL.PAGE_UP:r({up:a.stop-a.start});break;case EL.PAGE_DOWN:r({down:a.stop-a.start});break;case EL.HOME:r({scrollPosition:o&&i?"overflowStart":"start"});break;case EL.END:r({scrollPosition:o&&i?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const D_=yb("div")((()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"})));function j_(e){let{text:t}=e;const{translator:n}=H.useContext(Oy);return U.createElement(D_,null,n.get(t))}const F_="ListBoxInline",B_={listBoxHeader:"".concat(F_,"-listBoxHeader"),screenReaderOnly:"".concat(F_,"-screenReaderOnly"),listboxWrapper:"".concat(F_,"-listboxWrapper")},$_=yb(rC,{shouldForwardProp:e=>!["containerPadding","isGridMode","styles"].includes(e)})((e=>{let{theme:t,containerPadding:n,isGridMode:r,styles:o}=e;return a(a({},o.background),{},{["& .".concat(B_.listBoxHeader)]:{alignSelf:"center",display:"flex"},["& .".concat(B_.screenReaderOnly)]:{position:"absolute",height:0,width:0,overflow:"hidden"},["& .".concat(B_.listboxWrapper)]:{padding:n},"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus ::-webkit-scrollbar-track":{boxShadow:r?void 0:"inset -2px -2px 0px #3F8AB3"},"&:focus-visible":{outline:"none"}})})),W_=yb(rC,{shouldForwardProp:e=>!["styles","isRtl"].includes(e)})((e=>{let{styles:t,isRtl:n}=e;return a(a({flexDirection:n?"row-reverse":"row",wrap:"nowrap",minHeight:32,alignContent:"center"},t.header),{},{"& *":{color:t.header.color}})})),H_=yb(ix)((e=>{let{styles:t}=e;return a(a({},t.header),{},{paddingRight:"1px"})}));const U_=U.memo((function(e){var t,n,r,o;let{options:i,layout:s}=e;const{app:c,direction:u,frequencyMode:d,checkboxes:p,search:f=!0,focusSearch:h=!1,rangeSelect:m=!0,model:g,selections:v,update:b,fetchStart:y,selectDisabled:x=(()=>!1),postProcessPages:S,calculatePagesHeight:w,showGray:E=!0,scrollState:C,renderedCallback:k,toolbar:R=!0,isPopover:L=!1,components:O}=i,I=gb(),_=H.useCallback((()=>{g.unlock("/qListObjectDef")}),[g]),{translator:T,keyboardNavigation:P,themeApi:M,constraints:N}=H.useContext(Oy),{checkboxes:q=p}=s||{},A=n_({app:c,themeApi:M,theme:I,components:O,checkboxes:q}),z=function(e){let{appLayout:t}=e;return!(null==t||!t.qIsDirectQueryMode)}({appLayout:null==c?void 0:c.layout}),D=H.useRef(),[j,F]=pR(),[B,$]=(()=>{const[e,t]=H.useState({}),n=H.useCallback((e=>{t({current:e})}),[t]);return[e,n]})(),[W,V]=H.useState(!1),[G,K]=H.useState(!1),Z=H.useRef(!1),[X,Q]=H.useState({down:0,up:0,scrollPosition:""}),J=e=>Q((t=>a(a({},t),e))),[Y,ee]=H.useState({start:0,stop:0}),[te]=gI(c),ne=H.useRef(null),[re]=H.useState((()=>SI())),oe=function(e){let{containerRef:t,enabled:n}=e;const[r,o]=H.useState(!1),a={enabled:n,active:r,innerTabStops:!n||r,blur(e){var r;if(!n)return;o(!1);const a=A_(t.current)||(null===(r=t.current)||void 0===r?void 0:r.parentElement);var i;null==(i=t.current)||i.querySelectorAll('[tabIndex="0"]').forEach((e=>{e.setAttribute("tabIndex",-1)})),q_(t.current),e&&a&&(a.setAttribute("tabIndex",0),a.focus())},focus(){if(!n)return;o(!0);const e=t.current,r=null==e?void 0:e.querySelector(".search input"),a=null==e?void 0:e.querySelector(".value.last-focused"),i=null==e?void 0:e.querySelector(".value.selector, .value"),l=null==e?void 0:e.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),s=r||a||i||l;null==s||s.setAttribute("tabIndex",0),null==s||s.focus()},focusSelection(){const e=document.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm");null==e||e.setAttribute("tabIndex",0),null==e||e.focus()}};return a}({containerRef:D,enabled:P}),ae=H.useCallback((()=>(e=>{var t,n;let{app:r,appSelections:o}=e;return null!==(t=null===(n=r.isInModalSelection)||void 0===n?void 0:n.call(r))&&void 0!==t?t:o.isInModal()})({app:c,appSelections:te})),[c,te]),ie=null==s?void 0:s.qListObject.qDimensionInfo.qError,le=ie&&N.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",[se,ce]=H.useState(!1),{handleKeyDown:ue,handleOnMouseEnter:de,handleOnMouseLeave:pe,globalKeyDown:fe}=H.useMemo((()=>z_({keyboard:oe,hovering:Z,updateKeyScroll:J,containerRef:D,currentScrollIndex:Y,app:c,appSelections:te,constraints:N,isModal:ae})),[oe,Z,J,D,Y,c,te,N,ae]),he=R&&(""===(null==s?void 0:s.title)||!1===(null==s?void 0:s.showTitle))&&!L,me=R&&""!==(null==s?void 0:s.title)&&!1!==(null==s?void 0:s.showTitle)||L;H.useEffect((()=>(document.addEventListener("keydown",fe),()=>{document.removeEventListener("keydown",fe)})),[fe]),H.useEffect((()=>{const e=()=>{V(!0)},t=()=>{V(!1),"toggle"===f&&K(!1)};return L&&(v.isActive()||(v.begin("/qListObjectDef"),v.on("activated",e),v.on("deactivated",t)),V(L)),v&&(v.isModal()||(v.on("activated",e),v.on("deactivated",t)),V(v.isActive())),()=>{v&&v.removeListener&&(v.removeListener("activated",e),v.removeListener("deactivated",t))}}),[v,L]),H.useEffect((()=>{if(B&&B.current&&(f&&h||"toggle"===f&&G)){const e=B.current.querySelector("input");e&&e.focus()}}),[B&&B.current,G,f,h]);const{wildCardSearch:ge,searchEnabled:ve,autoConfirm:be=!1,layoutOptions:ye={}}=null!=s?s:{},xe=!1!==ve&&"toggle"===f,Se=!0===(null==s||null===(t=s.qListObject)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.qLocked),we=Se||xe,Ee="H"===(null==s||null===(n=s.qListObject)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.qGrouping),Ce=we||Ee,ke=(we?28:0)+(Ee?19:0),Re="rtl"===u,Le=9-(we?7:0),Oe=Re?9-(Ce?7:0):4;if(H.useEffect((()=>{if(!ne.current||!F)return;const e=function(e){var t,n,r,o;let{containerRect:a,titleRef:i,iconsWidth:l,headerPaddingLeft:s,headerPaddingRight:c}=e;const u=s+c,d=a.width<(null!==(t=null==i||null===(n=i.current)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)+l+u+2+128,p=(null==i||null===(r=i.current)||void 0===r?void 0:r.scrollWidth)>(null==i||null===(o=i.current)||void 0===o?void 0:o.offsetWidth);return!(!d&&!p)}({containerRect:F,titleRef:ne,iconsWidth:ke,headerPaddingLeft:Le,headerPaddingRight:Oe});ce(e)}),[ne.current,F]),!g||!s||!T)return null;const Ie=$O({layout:s,model:g,translator:T,selectionState:re,isDirectQuery:z}),_e=(!0===f||"toggle"===f&&G)&&!x()&&!1!==ve,Te=null!==(r=ye.dense)&&void 0!==r&&r,Pe=()=>{K(!G)},Me=()=>{if("toggle"===f)Pe();else{const e=B.current.querySelector("input");null==e||e.focus()}},Ne=e=>a(a({},function(e){let{isDetached:t,showToolbar:n,containerRef:r,isLocked:o,listboxSelectionToolbarItems:a,selections:i,keyboard:l}=e;return{show:n&&!t,popover:{show:n&&t,anchorEl:r.current},more:{enabled:!o,actions:a,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:n,api:i,onConfirm:()=>{null==l||l.focus()},onCancel:()=>{null==l||l.focus()}}}}({isDetached:!L&&e,showToolbar:W,containerRef:D,isLocked:Se,listboxSelectionToolbarItems:Ie,selections:v,keyboard:oe})),{},{autoConfirm:be}),qe=_e&&"toggle"===f,Ae="grid"===(null==ye?void 0:ye.dataLayout),ze=function(e){let t,{isGridMode:n,dense:r,height:o,layoutOrder:a}=e;if(n){let e;e=aO({isGridMode:n,dense:r})>o?"0px":"2px",t="row"===a?"".concat(e," 4px"):"".concat(e," 6px ").concat(e," 4px")}else t=void 0;return t}({isGridMode:Ae,dense:Te,height:null===(o=D.current)||void 0===o?void 0:o.clientHeight,layoutOrder:ye.layoutOrder}),De=null!=N&&N.active?U.createElement(dI,{title:T.get("Listbox.Search"),size:"large",style:{fontSize:"12px",padding:"7px"}}):U.createElement(Yy,{onClick:Pe,tabIndex:-1,title:T.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},U.createElement(dI,{style:{fontSize:"12px"}})),je=x()?U.createElement(gR,{size:"large",style:{fontSize:"12px",padding:"7px"}}):U.createElement(Yy,{title:T.get("SelectionToolbar.ClickToUnlock"),tabIndex:-1,onClick:_,size:"large"},U.createElement(gR,{disableRipple:!0,style:{fontSize:"12px"}}));ie&&(null==k||k());const Fe=me?HR+zR:0;return U.createElement(U.Fragment,null,he&&U.createElement(uI,l({direction:u},Ne(!0))),U.createElement($_,{className:"listbox-container",container:!0,tabIndex:oe.enabled?-1:void 0,direction:"column",gap:0,containerPadding:ze,styles:A,style:{height:"100%",flexFlow:"column nowrap"},onKeyDown:ue,onMouseEnter:de,onMouseLeave:pe,ref:e=>{D.current=e,j(e)},isGridMode:Ae,"aria-label":oe.active?T.get("Listbox.ScreenReaderInstructions"):""},me&&U.createElement(W_,{item:!0,container:!0,styles:A,isRtl:Re,marginY:1,paddingLeft:"".concat(Le,"px"),paddingRight:"".concat(Oe,"px")},Ce&&U.createElement(rC,{item:!0,container:!0,alignItems:"center",width:ke},Se?je:xe&&De,Ee&&U.createElement(N_,{tabIndex:-1,title:T.get("Listbox.DrillDown"),size:"large",style:{fontSize:"12px"}})),U.createElement(rC,{item:!0,xs:!0,minWidth:0,justifyContent:Re?"flex-end":"flex-start",className:B_.listBoxHeader},U.createElement(H_,{variant:"h6",noWrap:!0,ref:ne,title:s.title,styles:A},s.title)),U.createElement(rC,{item:!0,display:"flex"},U.createElement(uI,l({direction:u},Ne(se))))),U.createElement(rC,{item:!0,container:!0,direction:"column",height:"100%",minHeight:Fe,role:"region","aria-label":T.get("Listbox.ResultFilterLabel")},U.createElement(rC,{item:!0,ref:$},U.createElement(mI,{selections:v,selectionState:re,model:g,dense:Te,keyboard:oe,visible:_e,search:f,autoFocus:qe,wildCardSearch:ge,searchEnabled:ve,direction:u,hide:xe&&Pe,styles:A})),U.createElement(rC,{item:!0,xs:!0,className:B_.listboxWrapper},ie?U.createElement(j_,{text:le}):U.createElement(M_,null,(e=>{let{height:t,width:n}=e;return U.createElement(zO,{model:g,app:c,constraints:N,layout:s,selections:v,selectionState:re,direction:u,frequencyMode:d,rangeSelect:m,checkboxes:q,height:t,width:n,update:b,fetchStart:y,postProcessPages:S,calculatePagesHeight:w,selectDisabled:x,keyboard:oe,showGray:E,scrollState:C,keyScroll:{state:X,reset:()=>Q({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:Y,set:ee},renderedCallback:k,onCtrlF:Me,isModal:ae,styles:A})}))))))}));function V_(e){let{options:t={}}=e;const{model:n}=t,[r]=uR(n);return U.createElement(U_,{options:t,layout:r})}const G_={qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:"",qShowAlternatives:!0,frequencyEnabled:!1,qFrequencyMode:"N",qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},histogram:!1,frequencyMax:void 0,checkboxes:!1,searchEnabled:!0,showTitle:!0,wildCardSearch:!1,autoConfirm:!1,layoutOptions:{dense:!1,dataLayout:"singleColumn",layoutOrder:"row",maxVisibleColumns:{auto:!0,maxColumns:3},maxVisibleRows:{auto:!0,maxRows:3}},title:""};function K_(e){let t;switch(!0){case["none","N","NX_FREQUENCY_NONE"].includes(e):t="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(e):t="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(e):t="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(e):t="R";break;default:t="N"}return t}const Z_=["__DO_NOT_USE__"],X_=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{__DO_NOT_USE__:t={}}=e,n={update:void 0,fetchStart:void 0,showGray:!0,focusSearch:!1,sessionModel:void 0,selectionsApi:void 0,selectDisabled:void 0,postProcessPages:void 0,calculatePagesHeight:!1};return a(a(a({},s(e,Z_)),n),t)};function Q_(e){let{app:t,fieldIdentifier:n,qId:r,stateName:o,element:i,options:l,renderedCallback:s}=e;const{isExistingObject:c,hasExternalSelectionsApi:u}=function(e){let{qId:t,options:n}=e;return{isExistingObject:!(!t&&!n.sessionModel),hasExternalSelectionsApi:!!n.selectionsApi}}({qId:r,options:l});c||Object.assign(l,{frequencyMode:K_(l.frequencyMode)});const[d,p]=H.useState(0);H.useEffect((()=>{if(d)throw new Error("Source or selection Api can not change after a listbox has been mounted");p(d+1)}),[c,u]);const f=c?function(e){let{app:t,qId:n,options:r={}}=e;const[o,a]=H.useState(),[i]=rR(),{sessionModel:l}=r,s=["dense","frequencyMode","checkboxes","histogram","title","stateName","listLayout"],c=Object.keys(r).filter((e=>s.includes(e)));if(c.length)throw new Error('Option "'.concat(c.join(", "),'" is not applicable for existing objects.'));return H.useEffect((()=>{l?a(l):async function(){const e=i.get(n);if(e)a(e);else{const e=await t.getObject(n);i.set(e.id,e),e.once("closed",(()=>{i.clear(e.id)})),a(e)}}()}),[]),o}({app:t,qId:r,options:l}):function(e){var t;let{app:n,fieldIdentifier:r,stateName:o,options:a={}}=e;const[i,l]=H.useState(""),[s,c]=H.useState(!0),[u,d]=H.useState(),[p,f]=H.useState(),h=null!==(t=a.title)&&void 0!==t?t:p;let{histogram:m=!1,frequencyMode:g="N"}=a;i&&i.failedToFetchFieldDef&&(m=!1,g="N"),H.useEffect((()=>{const e=m||"N"!==g;r.qLibraryId&&e?async function(){try{const e=await n.getDimension(r.qLibraryId),t=await e.getLayout();f(t.qDim.title),"N"===t.qDim.qGrouping?l(t.qDim.qFieldDefs?t.qDim.qFieldDefs[0]:""):l({multiFieldDim:!0}),c(!1)}catch(e){throw c(!1),l({failedToFetchFieldDef:!0}),new Error("Disabling frequency count and histogram: ".concat(e&&e.message))}}():(c(!1),f(r))}),[]);const{dense:v,checkboxes:b,listLayout:y,properties:x={}}=a,S={dense:v};"horizontal"===y&&(S.dataLayout="grid",S.layoutOrder="column",S.maxVisibleColumns={auto:!0},S.maxVisibleRows={auto:!1,maxRows:1});const w=H.useRef();w.current||(w.current=E_());const E=We(!0,{},G_,{qInfo:{qId:w.current},qListObjectDef:{qStateName:o,qFrequencyMode:m&&"N"===g?"V":g},histogram:m,checkboxes:b,layoutOptions:S,title:h});let C;if(We(!0,E,x),r.qLibraryId?(E.qListObjectDef.qLibraryId=r.qLibraryId,C=r.qLibraryId):(E.qListObjectDef.qDef.qFieldDefs=[r],C=r),"P"!==g&&m)if(null!=i&&i.multiFieldDim)E.frequencyMax="fetch";else{const e=r.qLibraryId?i:C;E.frequencyMax={qValueExpression:PO(e)}}const[k]=oR(E,s?null:n,C,o);return H.useEffect((()=>{k&&d(k)}),[k]),u}({app:t,fieldIdentifier:n,stateName:o,options:l}),h=H.useRef(i),m=u?l.selectionsApi:xI(t,f,[h,".njs-action-toolbar-more",".njs-action-toolbar-popover"],l)[0],g=H.useMemo((()=>a(a({},l),{},{selections:m,model:f,app:t,renderedCallback:s})),[l,m,f,t]);return m&&f?U.createElement(V_,{options:g}):null}const J_={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function Y_(e){let{app:t,fieldIdentifier:n,stateName:r,element:o,options:a={}}=e;const[i,l]=H.useState(!!a.show);return U.createElement(r_,{show:i,app:t,alignTo:{current:o},anchorOrigin:a.anchorOrigin,transformOrigin:a.transformOrigin,close:()=>{l(!1),a.onPopoverClose&&a.onPopoverClose()},fieldName:n,stateName:r,autoFocus:a.autoFocus,components:a.components})}function eT(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function tT(e,t){let n=0;for(let r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n}const nT=e=>({qDef:{qFieldDefs:[e]}}),rT=e=>({qDef:{qDef:e}});function oT(e){let{dc:t,def:n,properties:r}=e;t.qDimensions=t.qDimensions||[],t.qMeasures=t.qMeasures||[],t.qInterColumnSortOrder=t.qInterColumnSortOrder||[],t.qInitialDataFetch=t.qInitialDataFetch||[],t.qColumnOrder=t.qColumnOrder||[],t.qExpansionState=t.qExpansionState||[];const o=r,i={dimensions:()=>t.qDimensions,measures:()=>t.qMeasures,addDimension(e){const r="string"==typeof e?nT(e):a(a({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||E_(),r.qDef.qSortCriterias=r.qDef.qSortCriterias||[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],r.qOtherTotalSpec=r.qOtherTotalSpec||{},r.qAttributeExpressions=r.qAttributeExpressions||[],r.qAttributeDimensions=r.qAttributeDimensions||[],t.qDimensions.length<i.maxDimensions()?(t.qDimensions.push(r),eT(t.qInterColumnSortOrder,t.qDimensions.length-1),n.dimensions.added(r,o)):(t.qLayoutExclude=t.qLayoutExclude||{},t.qLayoutExclude.qHyperCubeDef=t.qLayoutExclude.qHyperCubeDef||{},t.qLayoutExclude.qHyperCubeDef.qDimensions=t.qLayoutExclude.qHyperCubeDef.qDimensions||[],t.qLayoutExclude.qHyperCubeDef.qMeasures=t.qLayoutExclude.qHyperCubeDef.qMeasures||[],t.qLayoutExclude.qHyperCubeDef.qDimensions.push(r)),r},removeDimension(e){const r=t.qDimensions.splice(e,1)[0];return tT(t.qInterColumnSortOrder,e),n.dimensions.removed(r,o,e),r},addMeasure(e){const r="string"==typeof e?rT(e):a(a({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||E_(),r.qSortBy=r.qSortBy||{qSortByLoadOrder:1,qSortByNumeric:-1},r.qAttributeDimensions=r.qAttributeDimensions||[],r.qAttributeExpressions=r.qAttributeExpressions||[],t.qMeasures.length<i.maxMeasures()?(t.qMeasures.push(r),eT(t.qInterColumnSortOrder,t.qDimensions.length+t.qMeasures.length-1),n.measures.added(r,o)):(t.qLayoutExclude=t.qLayoutExclude||{},t.qLayoutExclude.qHyperCubeDef=t.qLayoutExclude.qHyperCubeDef||{},t.qLayoutExclude.qHyperCubeDef.qDimensions=t.qLayoutExclude.qHyperCubeDef.qDimensions||[],t.qLayoutExclude.qHyperCubeDef.qMeasures=t.qLayoutExclude.qHyperCubeDef.qMeasures||[],t.qLayoutExclude.qHyperCubeDef.qMeasures.push(r))},removeMeasure(e){const r=t.qMeasures.splice(e,1)[0];tT(t.qInterColumnSortOrder,t.qDimensions.length+e),n.measures.removed(r,o,e)},maxDimensions:()=>n.dimensions.max(t.qMeasures.length),maxMeasures:()=>n.measures.max(t.qDimensions.length),canAddDimension:()=>t.qDimensions.length<i.maxDimensions(),canAddMeasure:()=>t.qMeasures.length<i.maxMeasures()};return i}const aT=e=>({qDef:{qFieldDefs:[e]}});function iT(e){let{dc:t,def:n,properties:r}=e;t.qInitialDataFetch=t.qInitialDataFetch||[];const o=r,i={dimensions:()=>t.qLibraryId||t.qDef&&t.qDef.qFieldDefs&&0!==t.qDef.qFieldDefs.length?[t]:[],measures:()=>[],addDimension(e){const r="string"==typeof e?aT(e):a(a({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||E_(),r.qDef.qSortCriterias=t.qDef.qSortCriterias||[{qSortByState:1,qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],Object.keys(r).forEach((e=>{t[e]=r[e]})),n.dimensions.added(r,o),r},removeDimension(e){const r=t;return delete t.qDef,delete t.qLibraryId,n.dimensions.removed(r,o,e),r},addMeasure(){},removeMeasure(){},maxDimensions:()=>1,maxMeasures:()=>0,canAddDimension:()=>0===i.dimensions().length,canAddMeasure:()=>!1};return i}const lT=e=>({qDef:{qFieldDefs:[e]}}),sT=e=>{let t;return t="string"==typeof e?We(!0,{},G_,{qListObjectDef:lT(e)}):e.qListObjectDef?We(!0,{},G_,e):We(!0,{},G_,{qListObjectDef:e}),t};function cT(e){let{children:t,halo:n}=e;const r={async addDimension(e){const r=sT(e),o=r.qListObjectDef;if(o.qDef.cId=o.qDef.cId||E_(),!r.title)if(o.qLibraryId){const e=await n.app.getDimension(o.qLibraryId),t=await e.getProperties();t.qDim.qLabelExpression?r.title={qStringExpression:{qExpr:t.qDim.qLabelExpression}}:r.title=t.qDim.title}else{var a,i;r.title=o.qDef.title||(null===(a=o.qDef.qFieldLabels)||void 0===a?void 0:a[0])||(null===(i=o.qDef.qFieldDefs)||void 0===i?void 0:i[0])}t.push({qProperty:r,qChildren:[]})},addMeasure(){}};return r}function uT(e){return"string"==typeof e&&"="===e[0]||"object"==typeof e&&e.qDef&&e.qDef.qDef||"object"==typeof e&&e.qLibraryId&&"measure"===e.type?"measure":"dimension"}async function dT(e,t){let{sn:n,properties:r,fields:o,children:a}=e;if(!o.length)return;const i=n.qae.data.targets[0];if(!i)return;const{propertyPath:l}=i,s=l.split("/");let c=r;for(let e=0;e<s.length;e++){const t=s[e];c=t?c[t]:c}const u=function(e){return e.match("/qListObjectDef")?iT:e.match("/qChildListDef")?cT:oT}(l),d=u({dc:c,def:i,properties:r,children:a,halo:t});for(let e=0;e<o.length;++e){const t=o[e];"measure"===uT(t)?await d.addMeasure(t):await d.addDimension(t)}}var pT={getValue:(e,t,n)=>{if(null==e||null==t)return n;const r=t.split(".");let o=e;for(let e=0;e<r.length;++e){const t=r[e];if(""!==t){if(void 0===o[t]||null===o[t])return n;o=o[t]}}return o},setValue:(e,t,n)=>{if(null==e||null==t)return;const r=t.split("."),o=r[r.length-1];let a=e;for(let e=0;e<r.length-1;++e){const t=r[e];void 0!==a[t]&&null!==a[t]||(a[t]=Number.isNaN(+r[e+1])?{}:[]),a=a[t]}void 0!==n&&"__proto__"!==o&&"constructor"!==o?a[o]=n:delete a[o]},isEmpty:e=>0===Object.keys(e).length&&e.constructor===Object};var fT={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;let n=e.indexOf(t[0]);if(-1!==n){for(let r=0;r<t.length;r++){const o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){let n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r}};const hT=2**53-1;function mT(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function gT(e,t){const n=We(!0,{},t,e);return pT.getValue(n,"qOtherTotalSpec.qOtherCounted")||pT.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),pT.getValue(n,"qOtherTotalSpec.qOtherLimit")||pT.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function vT(e,t){return We(!0,{},t,e)}function bT(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var yT={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===pT.getValue(e,t)&&pT.setValue(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:mT,importCommonProperties:function(e,t,n){const r="masterobject"===pT.getValue(t,"properties.qInfo.qType")?"masterobject":pT.getValue(n,"qInfo.qType");pT.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},copyPropertyIfExist:function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},copyPropertyOrSetDefault:function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},createDefaultDimension:gT,createDefaultMeasure:vT,resolveValue:bT,getHypercubePath:function(e){const t=pT.getValue(e,"data.targets.0.propertyPath","").split("/");return t.length&&"qHyperCubeDef"===t[t.length-1]&&(t.length-=1),t.join(".")},getDefaultDimension:function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},getDefaultMeasure:function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},setInterColumnSortOrder:function(e){let{exportFormat:t,newHyperCubeDef:n}=e;const r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();let a=n.qInterColumnSortOrder.length;if(a!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());a!==o;)a<o?(fT.indexAdded(n.qInterColumnSortOrder,a),++a):(--a,fT.indexRemoved(n.qInterColumnSortOrder,a))},createNewProperties:function(e){let{exportFormat:t,initialProperties:n,hypercubePath:r}=e,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((e=>{"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=We(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?pT.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||mT(e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),o=We(!0,{},n,o),null===o.components&&(o.components=[]),o},getMaxMinDimensionMeasure:function(e){let{exportFormat:t,dataDefinition:n={}}=e;const r=t.data[0],o=n.dimensions||{max:0},a=n.measures||{max:0},i=bT(a.max,r.dimensions.length,hT),l=bT(a.min,r.dimensions.length,0);return{maxDimensions:bT(o.max,i,hT),minDimensions:bT(o.min,l,0),maxMeasures:i,minMeasures:l}},shouldInitLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:a}=e;const i=t.data[0];return i.dimensions.length>n&&n>0||i.measures.length>o&&o>0||i.excludedDimensions.length>0&&i.dimensions.length+i.excludedDimensions.length>r||i.excludedMeasures.length>0&&i.measures.length+i.excludedMeasures.length>a||!o&&i.measures.length>0||!n&&i.dimensions.length>0},initLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:a,newHyperCubeDef:i}=e;const l=t.data[0];i.qLayoutExclude||(i.qLayoutExclude={}),i.qLayoutExclude.qHyperCubeDef||(i.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>n&&n>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>r)&&(i.qLayoutExclude.qHyperCubeDef.qDimensions||(i.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>a)&&(i.qLayoutExclude.qHyperCubeDef.qMeasures||(i.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(i.qLayoutExclude.qHyperCubeDef.qMeasures||(i.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&l.dimensions.length&&(i.qLayoutExclude.qHyperCubeDef.qDimensions||(i.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},addDefaultDimensions:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,newHyperCubeDef:o,defaultDimension:a}=e;const i=t.data[0];let l;if(n>0)for(l=0;l<i.dimensions.length;++l)o.qDimensions.length<n?o.qDimensions.push(gT(i.dimensions[l],a)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(gT(i.dimensions[l],a));else if(i.dimensions.length)for(l=0;l<i.dimensions.length;++l)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(gT(i.dimensions[l],a));if(i.excludedDimensions.length)for(l=0;l<i.excludedDimensions.length;++l)o.qDimensions.length<r?o.qDimensions.push(gT(i.excludedDimensions[l],a)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(gT(i.excludedDimensions[l],a))},addDefaultMeasures:function(e){let{exportFormat:t,maxMeasures:n,minMeasures:r,newHyperCubeDef:o,defaultMeasure:a}=e;const i=t.data[0];let l;if(n>0)for(l=0;l<i.measures.length;++l)o.qMeasures.length<n?o.qMeasures.push(vT(i.measures[l],a)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(vT(i.measures[l],a));else if(i.measures.length)for(l=0;l<i.measures.length;++l)o.qLayoutExclude.qHyperCubeDef.qMeasures.push(vT(i.measures[l],a));if(i.excludedMeasures.length)for(l=0;l<i.excludedMeasures.length;++l)o.qMeasures.length<r?o.qMeasures.push(vT(i.excludedMeasures[l],a)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(vT(i.excludedMeasures[l],a))},updateDimensionsOnAdded:function(e){let{newProperties:t,dataDefinition:n,hypercubePath:r}=e;if(n.dimensions&&"function"==typeof n.dimensions.added){const e=pT.getValue(t,r||"").qHyperCubeDef,o=[...e.qDimensions];e.qDimensions=[],o.forEach((r=>{e.qDimensions.push(r),n.dimensions.added(r,t)}))}},updateMeasuresOnAdded:function(e){let{newProperties:t,dataDefinition:n,hypercubePath:r}=e;if(n.measures&&"function"==typeof n.measures.added){const e=pT.getValue(t,r||"").qHyperCubeDef,o=[...e.qMeasures];e.qMeasures=[],o.forEach((r=>{e.qMeasures.push(r),n.measures.added(r,t)}))}}};var xT={exportProperties:e=>function(e){let{propertyTree:t,hypercubePath:n}=e;const r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;const t={data:[],properties:{}};for(let n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),o=t.qProperty,a=pT.getValue(o,n||""),i=a.qHyperCubeDef,l=r.data[0];if(i.qInterColumnSortOrder||(i.qInterColumnSortOrder=[]),l.dimensions.push(...i.qDimensions),i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef&&i.qLayoutExclude.qHyperCubeDef.qDimensions&&l.excludedDimensions.push(...i.qLayoutExclude.qHyperCubeDef.qDimensions),l.measures.push(...i.qMeasures),i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef&&i.qLayoutExclude.qHyperCubeDef.qMeasures&&l.excludedMeasures.push(...i.qLayoutExclude.qHyperCubeDef.qMeasures),l.interColumnSortOrder=i.qInterColumnSortOrder.concat(),i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef&&i.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const e=i.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();fT.isOrderedSubset(e,l.interColumnSortOrder)&&(l.interColumnSortOrder=e)}return delete i.qLayoutExclude,Object.keys(o).forEach((e=>{r.properties[e]=o[e]})),n&&(r.properties.qHyperCubeDef=a.qHyperCubeDef,delete a.qHyperCubeDef),o.qLayoutExclude||(o.qLayoutExclude={}),o.qLayoutExclude.disabled&&(Object.keys(o.qLayoutExclude.disabled).forEach((e=>{r.properties.hasOwnProperty(e)||(r.properties[e]=o.qLayoutExclude.disabled[e])})),delete o.qLayoutExclude.disabled),o.qLayoutExclude.changed&&(yT.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!pT.isEmpty(o.qLayoutExclude.quarantine)||delete o.qLayoutExclude,r}(e),importProperties:e=>function(e){let{exportFormat:t,initialProperties:n={},dataDefinition:r={},defaultPropertyValues:o={},hypercubePath:a}=e;const i={qChildren:[]},l=yT.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:a}),s=pT.getValue(n,a||"").qHyperCubeDef,c=pT.getValue(l,a||"").qHyperCubeDef,{maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f}=yT.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:h=yT.getDefaultDimension(),defaultMeasure:m=yT.getDefaultMeasure()}=o;return c.qDimensions.length=0,c.qMeasures.length=0,yT.shouldInitLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f})&&yT.initLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f,newHyperCubeDef:c}),yT.addDefaultDimensions({exportFormat:t,maxDimensions:u,minDimensions:d,newHyperCubeDef:c,defaultDimension:h}),yT.addDefaultMeasures({exportFormat:t,maxMeasures:p,minMeasures:f,newHyperCubeDef:c,defaultMeasure:m}),yT.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:c}),yT.copyPropertyIfExist("qMaxStackedCells",s,c),yT.copyPropertyIfExist("qNoOfLeftDims",s,c),yT.copyPropertyOrSetDefault("qInitialDataFetch",s,c,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),yT.copyPropertyOrSetDefault("qMode",s,c,"S"),yT.copyPropertyOrSetDefault("qReductionMode",s,c,"N"),yT.copyPropertyOrSetDefault("qSortbyYValue",s,c),yT.copyPropertyOrSetDefault("qIndentMode",s,c),yT.copyPropertyOrSetDefault("qShowTotalsAbove",s,c),yT.importCommonProperties(l,t,n),yT.updateDimensionsOnAdded({newProperties:l,dataDefinition:r,hypercubePath:a}),yT.updateMeasuresOnAdded({newProperties:l,dataDefinition:r,hypercubePath:a}),i.qProperty=l,i}(e)};const ST=e=>pT.getValue(e,"data.targets.0.propertyPath"),wT=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return xT.exportProperties})(ST(e))},ET=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return xT.importProperties})(ST(e))},CT=async e=>{let{halo:t,model:n,cellRef:r,newType:o,properties:i,viewDataMode:l=!1}=e;const s=i?{qProperty:i}:await n.getFullPropertyTree(),c=r.current.getQae(),u=wT(c);if(!u)throw new Error("Source chart does not support conversion");const d=await(async e=>{let{halo:t,name:n,version:r}=e;const{types:o}=t;return await o.get({name:n,version:r}).supernova()})({halo:t,name:o}),p=d.qae,f=ET(p);if(!f)throw new Error("Target chart does not support conversion");return f({exportFormat:u({propertyTree:s,hypercubePath:yT.getHypercubePath(c),viewDataMode:l}),initialProperties:a({qInfo:{qType:o},visualization:o},pT.getValue(p,"properties.initial",{})),dataDefinition:pT.getValue(p,"data.targets.0.",{}),hypercubePath:yT.getHypercubePath(p),viewDataMode:l})},kT={hypercube:xT};var RT=e=>hR((e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M8.86225926,1.6 L15.7815749,13.5 C16.2829746,14.3 15.8818548,15 14.9793354,15 L1.04042422,15 C0.0853772072,15 -0.232971797,14.3650794 0.172002787,13.6135407 L7.05722041,1.6 C7.55862009,0.8 8.36085958,0.8 8.86225926,1.6 Z M7.962,2.007 C7.95987183,2.02476599 7.95607967,2.03712023 7.94920396,2.05249845 L1.1033193,14 L14.915544,14 L7.99777452,2.10265906 L7.97779697,2.06138411 L7.96394459,2.01964415 L7.962,2.007 Z M7.5,11 L8.5,11 C8.76666667,11 8.95432099,11.1580247 8.99272977,11.4038409 L9,11.5 L9,12.5 C9,12.7666667 8.84197531,12.954321 8.59615912,12.9927298 L8.5,13 L7.5,13 C7.23333333,13 7.04567901,12.8419753 7.00727023,12.5961591 L7,12.5 L7,11.5 C7,11.2333333 7.15802469,11.045679 7.40384088,11.0072702 L7.5,11 L8.5,11 L7.5,11 Z M7.5,5 L8.5,5 C8.76666667,5 8.95432099,5.15802469 8.99272977,5.40384088 L9,5.5 L9,9.5 C9,9.76666667 8.84197531,9.95432099 8.59615912,9.99272977 L8.5,10 L7.5,10 C7.23333333,10 7.04567901,9.84197531 7.00727023,9.59615912 L7,9.5 L7,5.5 C7,5.23333333 7.15802469,5.04567901 7.40384088,5.00727023 L7.5,5 L8.5,5 L7.5,5 Z"}}]}))(e));function LT(e){let{d:t}=e;const n=gb();let r="inherit",o=n.palette.success.main;t.missing?o=n.palette.warning.main:t.error&&(r="error",o=n.palette.error.main);const a={color:o},i=U.createElement(ix,{style:{lineHeight:"30px",paddingRight:n.spacing(1)}},U.createElement(hC,null,t.missing||t.error?U.createElement(RT,{style:a}):U.createElement(TR,{style:a})));return U.createElement(rC,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},U.createElement(rC,{item:!0},i),U.createElement(rC,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},U.createElement(ix,{noWrap:!0,component:"p"},U.createElement(ix,{component:"span",variant:"subtitle2",color:r},t.description),U.createElement(ix,{component:"span"}," "),U.createElement(ix,{component:"span",variant:"subtitle2",color:t.error?"error":"inherit",style:{fontWeight:400}},t.label))))}function OT(e){let{data:t}=e;const n=gb();return U.createElement(rC,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},t.map(((e,t)=>{const r=e.descriptions.map(((e,t)=>U.createElement(LT,{d:e,key:t})));return r.length>0&&U.createElement(rC,{container:!0,item:!0,key:t,direction:"column",style:{paddingBottom:n.spacing(2)}},U.createElement(ix,{noWrap:!0,key:t,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),r)})))}function IT(e){let{title:t="Error",message:n="",data:r=[]}=e;return U.createElement(rC,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},U.createElement(rC,{item:!0},U.createElement(RT,{style:{fontSize:"38px"}})),U.createElement(rC,{item:!0},U.createElement(ix,{variant:"h6",align:"center","data-tid":"error-title"},t)),U.createElement(rC,{item:!0},U.createElement(ix,{variant:"subtitle1",align:"center","data-tid":"error-message"},n)),U.createElement(OT,{data:r}))}const _T=["size"],TT="Progress",PT={root:"".concat(TT,"-root"),front:"".concat(TT,"-front"),back:"".concat(TT,"-back")},MT=yb("div")((e=>{let{theme:t}=e;return{["&.".concat(PT.root)]:{position:"relative",display:"inline-block"},["& .".concat(PT.front)]:{color:t.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(PT.back)]:{color:t.palette.divider}}})),NT={small:16,medium:32,large:64,xlarge:128};function qT(e){let{size:t="medium"}=e,n=s(e,_T);const r=NT[t];return U.createElement(MT,{className:PT.root},U.createElement(CE,l({variant:"determinate",value:100,className:PT.back,size:r,thickness:3},n)),U.createElement(CE,l({variant:"indeterminate",disableShrink:!0,className:PT.front,size:r,thickness:3},n)))}const AT=["cancel","translator"],zT=["retry","translator"],DT={stripes:"".concat("LongRunningQuery","-stripes")},jT=yb(rC)((()=>({["& .".concat(DT.stripes)]:{"&::before":{position:"absolute",height:"100%",width:"100%",top:0,left:0,content:'""',backgroundSize:"14.14px 14.14px",backgroundImage:"linear-gradient(135deg, currentColor 10%, rgba(0,0,0,0) 10%, rgba(0,0,0,0) 50%, currentColor 50%, currentColor 59%, rgba(0,0,0,0) 60%, rgba(0,0,0,0) 103%)",opacity:.1}}})));function FT(e){let{cancel:t,translator:n}=e,r=s(e,AT);return U.createElement(U.Fragment,null,U.createElement(jT,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},U.createElement(rC,{item:!0},U.createElement(qT,null)),U.createElement(rC,{item:!0},U.createElement(ix,{variant:"h6",align:"center","data-tid":"update-active"},n.get("Object.Update.Active")))),U.createElement(rC,l({item:!0},r),U.createElement(xy,{variant:"contained",onClick:t},n.get("Cancel"))))}function BT(e){let{retry:t,translator:n}=e,r=s(e,zT);return U.createElement(U.Fragment,null,U.createElement(rC,{item:!0},U.createElement(RT,{style:{fontSize:"38px"}})),U.createElement(rC,{item:!0},U.createElement(ix,{variant:"h6",align:"center","data-tid":"update-cancelled"},n.get("Object.Update.Cancelled"))),U.createElement(rC,{item:!0},U.createElement(xy,l({variant:"contained",onClick:t},r),n.get("Retry"))))}function $T(e){let{canCancel:t,canRetry:n,api:r}=e;const{translator:o}=H.useContext(Oy);return U.createElement(rC,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:DT.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t&&U.createElement(FT,{cancel:r.cancel,translator:o,className:DT.cancel}),n&&U.createElement(BT,{retry:r.retry,translator:o,className:DT.retry}))}function WT(){return U.createElement(rC,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},U.createElement(qT,{size:"large"}))}const HT="Header",UT={containerStyle:"".concat(HT,"-containerStyle"),containerTitleStyle:"".concat(HT,"-containerTitleStyle")},VT=yb(rC)((e=>{let{theme:t}=e;return{["&.".concat(UT.containerStyle)]:{flexGrow:0},["&.".concat(UT.containerTitleStyle)]:{paddingBottom:t.spacing(1)}}})),GT="njs-cell-title",KT="njs-cell-sub-title";function ZT(e){let{layout:t,sn:n,anchorEl:r,hovering:o,focusHandler:a,titleStyles:i={}}=e;const l=t.showTitles&&!!t.title,s=t.showTitles&&!!t.subtitle,c=t.qSelectionInfo&&t.qSelectionInfo.qInSelections,[u,d]=H.useState([]),[p,f]=pR(),[h,m]=H.useState(!1);H.useEffect((()=>{n&&n.component&&n.component.isHooked&&n.component.observeActions((e=>{d([...e,...n&&n.selectionToolbar&&n.selectionToolbar.items||[]])}))}),[n]),H.useEffect((()=>{if(!f)return;const{width:e}=f;m(e<221)}),[f]);const g=l||s,v=[UT.containerStyle,...g?[UT.containerTitleStyle]:[]],b=(o||c)&&(h||!g),y=g&&!b&&!h,x=U.createElement(uI,{show:y,selections:{show:c,api:n.component.selections,onKeyDeactivate:a.refocusContent},actions:u,popover:{show:b,anchorEl:r},focusHandler:a});return U.createElement(VT,{ref:p,item:!0,container:!0,wrap:"nowrap",className:v.join(" ")},U.createElement(rC,{item:!0,zeroMinWidth:!0,xs:!0},U.createElement(rC,{container:!0,wrap:"nowrap",direction:"column"},l&&U.createElement(ix,{variant:"h6",noWrap:!0,className:GT,style:i.main},t.title),s&&U.createElement(ix,{variant:"body2",noWrap:!0,className:KT,style:i.subTitle},t.subtitle))),U.createElement(rC,{item:!0},x))}const XT={itemStyle:"".concat("Footer","-itemStyle")},QT=yb(rC)((e=>{let{theme:t}=e;return{["& .".concat(XT.itemStyle)]:{minWidth:0,paddingTop:t.spacing(1)}}})),JT="njs-cell-footer";function YT(e){let{layout:t,titleStyles:n={}}=e;return t&&t.showTitles&&t.footnote?U.createElement(QT,{container:!0},U.createElement(rC,{item:!0,className:XT.itemStyle},U.createElement(ix,{noWrap:!0,variant:"body2",className:JT,style:n.footer},t.footnote))):null}class eP{constructor(){this.timer=null,this.next=null,this.running=!1}start(){this.running||(this.running=!0,this.scheduleNext())}scheduleNext(){this.timer=setTimeout((()=>{this.doNext()}),10)}async doNext(){const e=this.next;this.next=null,e?(await e(),this.scheduleNext()):this.stop()}schedule(e){this.next=e,this.start()}stop(){this.running&&(clearTimeout(this.timer),this.timer=null,this.running=!1)}}const tP="njs-viz";function nP(e){let{sn:t,snOptions:n,snPlugins:r,layout:o,appLayout:i,halo:l}=e;const{component:s}=t,{theme:c,language:u,constraints:d,interactions:p,keyboardNavigation:f}=H.useContext(Oy),[h]=H.useState((()=>new eP)),[m,g]=H.useState(!1),[v,b]=H.useState(0),[y,x,S]=pR(),[w,E]=H.useState(null),C=H.useCallback((e=>{e&&E(e)}),[]);return H.useEffect((()=>{if(w)return s.created({options:n}),s.mounted(w),g(!0),()=>{h.stop(),s.willUnmount()}}),[w,s]),H.useEffect((()=>{m&&w&&x&&(!s.isHooked&&o&&o.qSelectionInfo&&o.qSelectionInfo.qInSelections||h.schedule((()=>{const e=[];return d.passive||e.push("passive"),d.active||e.push("interact"),d.select||e.push("select"),d.edit||e.push("edit"),l.app&&l.app.session&&e.push("fetch"),Promise.resolve(s.render({layout:o,options:n,plugins:r,embed:l.public.nebbie,context:a({constraints:d,interactions:p,theme:l.public.theme,appLayout:i,keyboardNavigation:f},s.isHooked?{}:{logicalSize:t.logicalSize({layout:o}),localeInfo:(i||{}).qLocaleInfo,permissions:e})})).then((e=>{!1!==e&&(0===v&&"function"==typeof n.onInitialRender&&n.onInitialRender.call(null),b(v+1))}))})))}),[x,n,r,w,S,o,i,c,u,d,p,m,f]),U.createElement("div",{ref:y,"data-render-count":v,style:{position:"relative",height:"100%"},className:tP},U.createElement("div",{ref:C,style:{position:"absolute",width:"100%",height:"100%"}}))}const rP=(e,t,n,r)=>{const o=H.useMemo((()=>{if(e&&t){const r=e.components?e.components.find((e=>"general"===e.key)):null,o={main:KI(r,"main",t,e.visualization),footer:KI(r,"footer",t,e.visualization),subTitle:KI(r,"subTitle",t,e.visualization)},a=VI(r,t,e.visualization),i=UI(r,n),l=function(e,t,n){const r=BI(null==e?void 0:e.borderColor,"","borderColor",t,n),o=(null==e?void 0:e.borderWidth)||jI("","borderWidth",t,n);return o&&r?"".concat(o," solid ").concat(r):void 0}(r,t,e.visualization),s=function(e,t,n){return(null==e?void 0:e.borderRadius)||jI("","borderRadius",t,n)}(r,t,e.visualization);return{titleStyles:o,bgColor:a,bgImage:i,border:l,borderRadius:s,boxShadow:GI(r,t,e.visualization)}}return{}}),[e,t,n,r]);return o},oP="njs-cell",aP=(e,t)=>{switch(t.type){case"LOADING":return a(a({},e),{},{loading:!0});case"LOADED":return a(a({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization});case"RENDER":return a(a({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null});case"LONG_RUNNING_QUERY":return a(a({},e),{},{longRunningQuery:!0});case"ERROR":return a(a({},e),{},{loading:!1,longRunningQuery:!1,error:t.error});default:throw new Error("Unhandled type: ".concat(t.type))}};function iP(e){let{delay:t=750}=e;const[n,r]=H.useState(!1);return H.useEffect((()=>{const e=setTimeout((()=>r(!0)),t);return()=>clearTimeout(e)}),[]),n?U.createElement(WT,null):null}const lP=e=>!e.qError||7005===e.qError.qErrorCode,sP=(e,t,n,r,o)=>[...Array(e).keys()].map((e=>{const a=!(!t||!t[e]),i=a&&t[e].qError&&7005===t[e].qError.qErrorCode,l=a&&!i&&t[e].qError,s=i&&t[e].qCalcCondMsg,c="".concat(l?r:i?s||o:a&&t[e].qFallbackTitle||""),u=n(e);return{description:u?"".concat(u).concat(c.length?":":""):null,label:c,missing:t&&!a&&!l&&e>=t.length||i,error:l}})),cP=e=>e&&(Array.isArray(e)?e:[e])||[],uP=(e,t,n,r)=>{const o=r.dimensions.min(),a=r.measures.min(),i=r.resolveLayout(t);return{reqDimErrors:sP(o,cP(i.qDimensionInfo||i.qItems),(e=>r.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:sP(a,cP(i.qMeasureInfo),(e=>r.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},dP=async(e,t,n,r)=>{let{targets:o}=n;const{hasUnfulfilledErrors:a,aggMinD:i,aggMinM:l,hasLayoutErrors:s,layoutErrors:c}=((e,t,n)=>{let r=!1,o=0,a=0,i=!1,l=!1;const s=[];for(let c=0;c<t.length;++c){const u=t[c],d=u.dimensions.min(),p=u.measures.min(),f=u.resolveLayout(n),h=cP(f.qDimensionInfo||f.qItems).filter(lP),m=cP(f.qMeasureInfo).filter(lP);if(o+=d,a+=p,(h.length<d||m.length<p)&&(r=!0),f.qError){i=!0,l=7005===f.qError.qErrorCode;const t=l&&f.qCalcCondMsg?f.qCalcCondMsg:l?e.get("Visualization.UnfulfilledCalculationCondition"):e.get("Visualization.LayoutError");s.push({title:t,descriptions:[]})}}return{hasUnfulfilledErrors:r,aggMinD:o,aggMinM:a,hasLayoutErrors:i,layoutErrors:s}})(e,o,t),u=[],d=[];let p=null;for(let n=0;n<o.length;++n){const i=o[n];if(!s&&a){const n=p||await r.getProperties();p=n;const o=uP(e,t,n,i);u.push(...o.reqDimErrors),d.push(...o.reqMeasErrors)}}const f=u.filter((e=>!(e.missing||e.error))).length,h=e.get("Visualization.Incomplete.Dimensions",[f,i]),m=d.filter((e=>!(e.missing||e.error))).length,g=e.get("Visualization.Incomplete.Measures",[m,l]),v=[{title:h,descriptions:[...u]},{title:g,descriptions:[...d]}],b=s?c:v;return[s||a,{title:s?c[0].title:e.get("Visualization.Incomplete"),data:b}]},pP=H.forwardRef(((e,t)=>{let{halo:n,model:r,initialSnOptions:o,initialSnPlugins:i,initialError:l,onMount:s,currentId:c,emitter:u}=e;const{app:d,types:p}=n,{nebbie:f}=n.public,{theme:h,translator:m,language:g,keyboardNavigation:v,disableCellPadding:b=!1}=H.useContext(Oy),y=gb(),[x,S,w]=pR(),[E,C]=H.useReducer(aP,{loading:!1,loaded:!1,longRunningQuery:!1,error:(k=l)?{title:k.message}:null,sn:null,visualization:null});var k;const[R,L]=H.useState(r),[O,{validating:I,canCancel:_,canRetry:T},P]=uR(R),[M]=dR(d),[N,q,A]=pR(),[z,D]=H.useState(o),[j,F]=H.useState(i),B="njs-cell-".concat(c),[$]=xI(d,R,["#".concat(B),".njs-action-toolbar-popover"]),[W,V]=H.useState(!1),G=H.useRef({enter:null,leave:null}),{titleStyles:K,bgColor:Z,bgImage:X,border:Q,borderRadius:J,boxShadow:Y}=rP(O,n.public.theme,n.app,h),ee=H.useRef({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});H.useEffect((()=>{vI(ee.current)}),[]),ee.current.blurCallback=e=>{n.root.toggleFocusOfCells(),e&&A&&A.focus()},ee.current.refocusContent=()=>{E.sn.component&&"function"==typeof E.sn.component.focus&&E.sn.component.focus()};H.useEffect((()=>{if(l)return void s();if(!M||!O)return;if(E.visualization===O.visualization&&E.sn)return void(async e=>{const[t,n]=await dP(m,O,e.generator.qae.data,R);C(t?{type:"ERROR",error:n}:{type:"RENDER"}),(e=>{let{sn:t,layout:n,model:r}=e;const o=t&&t.component&&t.component.selections;if(o&&o.id&&r.id&&o.id===r.id){if(n&&n.qSelectionInfo&&n.qSelectionInfo.qInSelections&&!o.isModal()){const{targets:e}=t.generator.qae.data,n=e[0].propertyPath;o.goModal(n)}n.qSelectionInfo&&n.qSelectionInfo.qInSelections||o.isModal()&&o.noModal()}})({sn:E.sn,layout:O,model:R})})(E.sn);const e=p.getSupportedVersion(O.visualization,O.version);return(async(e,t)=>{C({type:"LOADING"}),await(async e=>{let{dispatch:t,types:n,visualization:r,version:o,model:a,app:i,selections:l,nebbie:s,focusHandler:c,emitter:u,onMount:d}=e;try{const e=await(async e=>{let{types:t,name:n,version:r}=e;return await t.get({name:n,version:r}).supernova()})({types:n,name:r,version:o}),p=e.create({model:a,app:i,selections:l,nebbie:s,focusHandler:c,emitter:u});p&&(t({type:"LOADED",sn:p,visualization:r}),d())}catch(e){t(o?{type:"ERROR",error:{title:e.message}}:{type:"ERROR",error:{title:"Could not find a version of '".concat(r,"' that supports current object version. Did you forget to register ").concat(r,"?")}}),d()}})({dispatch:C,types:p,visualization:e,version:t,model:R,app:d,selections:$,nebbie:f,focusHandler:ee.current,emitter:u,onMount:s})})(O.visualization,e),()=>{}}),[p,E.sn,R,$,O,M,g]),H.useEffect((()=>{if(!I)return;const e=setTimeout((()=>C({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[I]),H.useImperativeHandle(t,(()=>({getQae:()=>E.sn.generator.qae,toggleFocus(e){"function"==typeof E.sn.component.focus&&(e?E.sn.component.focus():E.sn.component.blur())},setSnOptions:D,setSnPlugins:F,setModel:L,getImperativeHandle(){var e;return null!==(e=E.sn)&&void 0!==e&&e.component&&"function"==typeof E.sn.component.getImperativeHandle?E.sn.component.getImperativeHandle():{}},async takeSnapshot(){const{width:e,height:t}=S;let n=JSON.parse(JSON.stringify(O));return"function"==typeof E.sn.component.setSnapshotData&&(n=await E.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:m.language(),theme:y.name,appLayout:M,size:{width:Math.round(e),height:Math.round(t)}},layout:n}},async exportImage(){if("function"!=typeof n.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const e=await this.takeSnapshot();return n.config.snapshot.capture(e)}})),[E.sn,q,S,O,y.name,M]);let te=null;return E.loading&&!E.longRunningQuery?te=U.createElement(iP,null):E.error?te=U.createElement(IT,E.error):E.loaded&&(te=U.createElement(nP,{key:O.visualization,sn:E.sn,halo:n,snOptions:z,snPlugins:j,layout:O,appLayout:M})),U.createElement(Gy,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:Z||"unset",backgroundImage:X&&X.url?"url(".concat(X.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:X&&X.size,backgroundPosition:X&&X.pos,border:Q,borderRadius:J,boxShadow:Y,boxSizing:"border-box"},elevation:0,square:!0,className:oP,ref:x,id:B,onMouseEnter:()=>{G.current.leave&&clearTimeout(G.current.leave),G.enter||(G.current.enter=setTimeout((()=>{V(!0),G.current.enter=null}),250))},onMouseLeave:()=>{G.current.enter&&clearTimeout(G.current.enter),G.current.leave||(G.current.leave=setTimeout((()=>{V(!1),G.current.leave=null}),750))}},U.createElement(rC,{container:!0,direction:"column",gap:0,style:a(a({position:"relative",width:"100%",height:"100%"},b?{}:{padding:y.spacing(1)}),E.longRunningQuery?{opacity:"0.3"}:{})},w&&O&&E.sn&&U.createElement(ZT,{layout:O,sn:E.sn,anchorEl:w,hovering:W,focusHandler:ee.current,titleStyles:K}," "),U.createElement(rC,{tabIndex:v?0:-1,onKeyDown:v?e=>{["Enter"," ","Spacebar"].includes(e.key)&&n.root.toggleFocusOfCells(c)}:null,item:!0,xs:!0,style:{height:"100%"},ref:N},te),w&&O&&E.sn&&U.createElement(YT,{layout:O,titleStyles:K})),E.longRunningQuery&&U.createElement($T,{canCancel:_,canRetry:T,api:P}))}));function fP(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function hP(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;const r=[];return Object.keys(t).forEach((o=>{const a=t[o];"object"!=typeof n[o]||"object"!=typeof a||Array.isArray(a)?function(e,t){return fP(e)&&fP(t)?JSON.stringify(e)===JSON.stringify(t):!Array.isArray(e)&&!Array.isArray(t)&&e===t}(a,n[o])||r.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])}):r.push(...hP("".concat(e).concat(o,"/"),t[o],n[o]))})),r}function mP(e){if(!Array.isArray(e))throw new Error("Invalid plugin format: plugins should be an array!");e.forEach((e=>{if("object"!=typeof e)throw new Error("Invalid plugin format: a plugin should be an object");if("object"!=typeof e.info||"string"!=typeof e.info.name)throw new Error("Invalid plugin format: a plugin should have an info object containing a name");if("function"!=typeof e.fn)throw new Error('Invalid plugin format: The plugin "'.concat(e.info.name,'" has no "fn" function'))}))}const gP=e=>{var t;return!(!e||e.qHasSoftPatches||e.qExtendsId||!(((null===(t=e.qMeta)||void 0===t?void 0:t.privileges)||[]).indexOf("update")>-1))},vP=(e,t)=>e.__snInterceptor?e.__snInterceptor.setProperties.call(e,t):e.setProperties(t),bP=We.bind(null,!0),yP={},{isArray:xP}=Array;function SP(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function wP(e){return void 0===e}function EP(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function CP(e,t){const n=t.substring(1).split("/").slice(0,-1);let r;return n.forEach(((t,o)=>{if(o===n.length)return;r=+t;const a=isNaN(r)?{}:[];e[r||t]=wP(e[r||t])?a:e[t],e=e[r||t]})),e}function kP(e,t){let n=!0;if(SP(e)&&SP(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{kP(e[r],t[r])||(n=!1)})),n);if(xP(e)&&xP(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!kP(e[n],t[n]))return!1;return!0}return e===t}yP.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const a=function(e){return e?bP({},{val:e}).val:e}(t[o]),i=e[o],l="".concat(n,"/").concat(o);kP(a,i)||EP(t,o)||(wP(i)?r.push({op:"add",path:l,value:a}):SP(a)&&SP(i)?r=r.concat(yP.generate(i,a,l)):xP(a)&&xP(i)?r=r.concat(function(e,t,n){let r=[];const o=e.slice();let a=-1;function i(e,t,n){if(e[n]&&wP(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(let n=0,r=e.length;n<r;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(kP(t,o))return r;if(!wP(t[0])&&wP(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(let e=o.length-1;e>=0;e-=1)a=i(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===a?(r.push({op:"remove",path:"".concat(n,"/").concat(e)}),o.splice(e,1)):r=r.concat(yP.generate(o[e],t[a],"".concat(n,"/").concat(e)));for(let e=0,l=t.length;e<l;e+=1)a=i(o,t[e].qInfo&&t[e].qInfo.qId),-1===a?(r.push({op:"add",path:"".concat(n,"/").concat(e),value:t[e]}),o.splice(e,0,t[e])):a!==e&&(r.push({op:"move",path:"".concat(n,"/").concat(e),from:"".concat(n,"/").concat(a)}),o.splice(e,0,o.splice(a,1)[0]));return r}(i,a,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:a}))})),Object.keys(e).forEach((o=>{wP(t[o])&&!EP(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},yP.apply=function(e,t){t.forEach((t=>{let n=CP(e,t.path),r=t.path.split("/").splice(-1)[0],o=r&&isNaN(+r)?n[r]:n[+r]||n;const a=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(xP(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(xP(o)&&xP(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(SP(o)&&SP(t.value))i=o,Object.keys(i).forEach((e=>{Object.getOwnPropertyDescriptor(i,e).configurable&&!EP(i,e)&&delete i[e]})),bP(o,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[r]=t.value}else if("move"===t.op){const o=CP(e,t.from);xP(n)?n.splice(+r,0,o.splice(+a,1)[0]):(n[r]=o[a],delete o[a])}else"remove"===t.op&&(xP(n)?n.splice(+r,1):delete n[r]);var i}))},yP.clone=function(e){return bP({},e)},yP.createPatch=function(e,t,n){const r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},yP.updateObject=function(e,t){Object.keys(e).length?yP.apply(e,yP.generate(e,t)):bP(e,t)};const RP=e=>t=>{const n=(r=a(a({},t),{},{action(){"function"==typeof t.action&&t.action.call(n,e),n.emit("changed")},enabled:()=>"function"!=typeof t.enabled||t.enabled.call(n,e),active:"function"==typeof t.active?function(){return t.active.call(n,e)}:void 0}),Object.keys(Y.prototype).forEach((e=>{r[e]=Y.prototype[e]})),Y.init(r),r);var r;return n};let LP,OP;function IP(e,t){if(!e)return!0;if(t.length!==e.length)return!0;for(let n=0;n<t.length;n++)if(e[n]!==t[n])return!0;return!1}function _P(e){let{explicitResize:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.__hooks={obsolete:!1,error:!1,waitForData:!1,chain:{promise:null,resolve:()=>{}},list:[],snaps:[],menus:[],actions:{list:[]},pendingEffects:[],pendingLayoutEffects:[],pendingPromises:[],resizer:{setters:[],explicitResize:t},accessibility:{setter:null}}}function TP(e){MP(e.__hooks.list,!0),e.__hooks.obsolete=!0,e.__hooks.list.length=0,e.__hooks.pendingEffects.length=0,e.__hooks.pendingLayoutEffects.length=0,e.__hooks.actions=null,e.__hooks.imperativeHandle=null,e.__hooks.resizer=null,e.__hooks.accessibility=null,e.__actionsDispatch=null,clearTimeout(e.__hooks.micro),cancelAnimationFrame(e.__hooks.macro)}async function PP(e){if(e.__hooks.obsolete)return Promise.resolve();OP=-1,LP=e,LP.__hooks.initiated&&LP.__hooks.list.length;try{LP.fn.call(null)}catch(e){console.error(e)}LP.__hooks.initiated=!0;const t=LP.__hooks;return zP(LP),OP=void 0,LP=void 0,t.chain.promise||(t.chain.promise=new Promise((e=>{t.chain.resolve=e}))),function(e){MP(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame((()=>{!function(e){MP(e.pendingEffects),e.macro=null,function(e){if(e.pendingPromises.length||e.micro||e.macro)return;e.chain.promise=null,e.chain.resolve(!e.waitForData)}(e)}(e)}))}(t),t.chain.promise}function MP(e,t){try{e.forEach((e=>{"function"==typeof e.teardown&&e.teardown(),t||(e.teardown=e.value[0]())}))}catch(e){console.error(e)}e.length=0}function NP(e,t){try{return Promise.all(e.__hooks.snaps.map((e=>Promise.resolve(e.fn(t))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function qP(e,t,n,r){try{return Promise.all(e.__hooks.menus.map((e=>Promise.resolve(e.fn(t,n,r))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function AP(e){return e.__hooks.imperativeHandle}function zP(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function DP(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,zP(e))}function jP(e){if(void 0===LP)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=LP.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function FP(e){jP(++OP);return LP.context[e]}function BP(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function $P(e){return{__hooked:!0,fn:e,initiate:_P,run:PP,teardown:TP,runSnaps:NP,runMenu:qP,focus:KP,blur:ZP,observeActions:DP,getImperativeHandle:AP,updateRectOnNextRun:BP}}function WP(e){const t=jP(++OP);if(!t.value){t.component=LP;const n=e=>{if(t.component.__hooks.obsolete)return;const n="function"==typeof e?e(t.value[0]):e;var r;n!==t.value[0]&&(t.value[0]=n,(r=t.component).__hooks.micro||(r.__hooks.micro=setTimeout((()=>{r.__hooks.micro=null,PP(r)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function HP(e,t){const n=jP(++OP);IP(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===LP.__hooks.pendingEffects.indexOf(n)&&LP.__hooks.pendingEffects.push(n))}function UP(e,t){const n=jP(++OP);IP(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],LP.__hooks.pendingLayoutEffects.push(n))}function VP(e,t){const n=jP(++OP);return IP(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function GP(){return FP("element")}function KP(e){const t=e.__hooks.accessibility;t.active||(t.active=!0,t&&t.setter&&t.setter({active:!0,enabled:t.enabled,blur:t.exitFunction,focus:t.focusFunction,focusSelection:t.focusSelectionFunction}))}function ZP(e){const t=e.__hooks.accessibility;t&&t.active&&(t.active=!1,t&&t.setter&&t.setter({active:!1,enabled:t.enabled,blur:t.exitFunction,focus:t.focusFunction,focusSelection:t.focusSelectionFunction}))}const XP={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},QP=Object.keys(XP),JP=e=>(Object.keys(Y.prototype).forEach((t=>{e[t]=Y.prototype[t]})),Y.init(e),e);function YP(e,t){const n=a({},XP);JP(n);const r={emit(){n.emit(...arguments)}};Object.keys(e.component||{}).forEach((t=>{-1!==QP.indexOf(t)?n[t]=e.component[t].bind(r):r[t]=e.component[t]}));const o=function(e){let{sn:t,component:n}=e;const r={},o=[],a=RP(n);return((t.definition.selectionToolbar||{}).items||[]).forEach((e=>{const t=a(e);r[e.key]=t,o.push(t)})),(t.definition.actions||[]).forEach((e=>{const t=a(e);r[e.key]=t})),{actions:r,selectionToolbarItems:o,destroy(){o.length=0}}}({sn:e,component:r}),i=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(r,{model:t.model,app:t.app,global:i,selections:t.selections,actions:o.actions}),Object.assign(n,{actions:o.actions,model:t.model,app:t.app,selections:t.selections}),[n,o]}function eM(e,t,n){"function"==typeof e.component&&(e.component=$P(e.component));const[r,o]=e.component&&e.component.__hooked?function(e,t,n){const r=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):void 0;let o=!1;const i={},l=["appLayout","constraints","interactions"],s={},c={};t.model&&t.model.session||(s.select=!0,s.edit=!0,c.select=!1,c.edit=!1);const u={context:{model:t.model,app:t.app,global:r,selections:t.selections,nebbie:t.nebbie,element:void 0,emitter:t.emitter,deviceType:n.deviceType,theme:void 0,translator:n.translator,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,focusHandler:t.focusHandler,constraints:s,interactions:c,options:{},plugins:[]},fn:e.component.fn,created(){},mounted(n){this.context.element=n,e.component.initiate(u,{explicitResize:!!t.explicitResize})},render(t){let n=!o||!1;if(t){if(t.layout&&t.layout!==this.context.layout&&(n=!0,this.context.layout=t.layout),t.context&&t.context.theme&&(this.context.theme=t.context.theme),t.context&&!!t.context.keyboardNavigation!=!!this.context.keyboardNavigation&&(this.context.keyboardNavigation=!!t.context.keyboardNavigation,n=!0),t.context&&t.context.focusHandler&&(this.context.focusHandler=t.context.focusHandler),t.options){const e={};let r=!1;Object.keys(t.options).forEach((n=>{e[n]=t.options[n],this.context.options[n]!==t.options[n]&&(r=!0)})),r&&(this.context.options=e,n=!0)}if(t.plugins){let e=this.context.plugins.length!==t.plugins.length;t.plugins.forEach(((t,n)=>{this.context.plugins[n]!==t&&(e=!0)})),e&&(this.context.plugins=[...t.plugins],n=!0)}l.forEach((e=>{const r=t.context;if(r&&Object.prototype.hasOwnProperty.call(r,e)){let t=JSON.stringify(r[e]);"constraints"===e&&(t=JSON.stringify(a(a({},r[e]),s))),"interactions"===e&&(t=JSON.stringify(a(a({},r[e]),c))),t!==i[e]&&(n=!0,i[e]=t,this.context[e]=JSON.parse(t))}}))}else n=!0;return this.context.theme&&this.context.theme.name()!==i.themeName&&(n=!0,i.themeName=this.context.theme.name()),this.context.translator.language()!==i.language&&(n=!0,i.language=u.context.translator.language()),n?(o=!0,this.currentResult=e.component.run(this),this.currentResult):this.currentResult||Promise.resolve()},resize(){return e.component.updateRectOnNextRun(this),this.render()},willUnmount(){e.component.teardown(this)},setSnapshotData(t){return e.component.runSnaps(this,t)},onContextMenu(t,n,r){return e.component.runMenu(this,t,n,r)},focus(){e.component.focus(this)},blur(){e.component.blur(this)},getImperativeHandle(){return e.component.getImperativeHandle(this)},destroy(){},observeActions(t){e.component.observeActions(this,t)},isHooked:!0};return l.forEach((e=>{i[e]=JSON.stringify(u.context[e])})),i.themeName=u.context.theme?u.context.theme.name():void 0,i.language=u.context.translator?u.context.translator.language():void 0,Object.assign(u,{selections:t.selections}),[u,null]}(e,t,n):YP(e,t),i=[];return t.model.__snInterceptor&&t.model.__snInterceptor.teardown(),e.qae.properties.onChange&&(t.model.__snInterceptor={setProperties:t.model.setProperties,applyPatches:t.model.applyPatches,teardown:void 0},t.model.setProperties=function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return e.qae.properties.onChange.call({model:t.model},...r),t.model.__snInterceptor.setProperties.call(this,...r)},t.model.applyPatches=function(n,r){const o=r?"getEffectiveProperties":"getProperties";return t.model[o]().then((o=>{const a=yP.clone(o),i=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));yP.apply(o,i),e.qae.properties.onChange.call({model:t.model},o);const l=yP.generate(a,o).map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path})));return t.model.__snInterceptor.applyPatches.call(this,l,r)}))},t.model.__snInterceptor.teardown=()=>{t.model.setProperties=t.model.__snInterceptor.setProperties,delete t.model.__snInterceptor},i.push(t.model.__snInterceptor.teardown)),{generator:e,component:r,selectionToolbar:{items:o?o.selectionToolbarItems:[]},destroy(){i.forEach((e=>e()))},logicalSize:e.definition.logicalSize||(()=>!1)}}const tM=()=>{};function nM(e,t){return void 0===e?()=>t:()=>e}function rM(e){const t=e||{};return{min:"function"==typeof t.min?t.min:nM(t.min,0),max:"function"==typeof t.max?t.max:nM(t.max,1e3),added:t.added||t.add||tM,description:t.description||tM,moved:t.moved||t.move||tM,removed:t.removed||t.remove||tM,replaced:t.replaced||t.replace||tM,isDefined:()=>!!e}}const oM=(e,t,n)=>{const r=t.split("/");let o=e;if(void 0===o)return n;for(let e=0;e<r.length;++e)if(""!==r[e]){if(void 0===o[r[e]])return n;o=o[r[e]]}return o};function aM(e){const t=e.path||"/qHyperCubeDef",n=t.slice(0,-3);if(!1===/\/(qHyperCube|qListObject|qChildList)$/.test(n)){const e=n.includes("/qHyperCube")?"qHyperCubeDef":"qListObjectDef";throw new Error("Incorrect definition for ".concat(e," at ").concat(t,". Valid paths include /qHyperCubeDef, /qListObjectDef, or /qChildListDef, e.g. data/qHyperCubeDef"))}return{propertyPath:t,layoutPath:n,resolveLayout:e=>oM(e,n,{}),dimensions:rM(e.dimensions),measures:rM(e.measures)}}function iM(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.properties||{};t.properties&&(t.properties.initial||t.properties.onChange)&&(n=t.properties.initial,e=t.properties.onChange);return{properties:{initial:n,onChange:e},data:{targets:((t.data||{}).targets||[]).map(aM)},exportProperties:t.exportProperties,importProperties:t.importProperties}}function lM(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:iM(n.qae),component:n.component||{},create:e=>eM(r,e,t),definition:{}};return Object.keys(n).forEach((e=>{r[e]||(r.definition[e]=n[e])})),r}const sM=(e,t,n)=>{if(!e)return Promise.resolve();let r=yP.generate(t,n);return We(!0,t,n),r&&r.length?(r=r.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.__snInterceptor?e.__snInterceptor.applyPatches.call(e,r,!0):e.applyPatches(r,!0)):Promise.resolve()},cM=()=>{};function uM(){let e,{model:t,halo:n,initialError:r,onDestroy:o=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=cM,l=null,s=null,c=null,u=null;const d=new Promise((e=>{c=e})),p=new Promise((e=>{u=e})),f=e=>()=>{e&&e(),u()};let h={},m=[];const g=new Y,v={id:t.id,model:t,async destroy(){await o(),i(),i=cM},async convertTo(e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]){const o=await t.getLayout();if(gP(o)&&!r){const r=await CT({halo:n,model:t,cellRef:l,newType:e});return await vP(t,r.qProperty),r}const a=await t.getEffectiveProperties(),i=await CT({halo:n,model:t,cellRef:l,newType:e,properties:a}),s=i.qProperty;return await sM(t,a,s),i}return await CT({halo:n,model:t,cellRef:l,newType:e})},async toggleDataView(r){let o;if(e||!1===r)e&&!0!==r&&(o=t,await n.app.destroySessionObject(e),e=void 0);else{let r=n.config.context.dataViewType;const a=await t.getEffectiveProperties();if(!n.types.getSupportedVersion(r)){if(!n.types.getSupportedVersion("table"))throw new Error("No data view type registered");r="table"}const i=await CT({halo:n,model:t,cellRef:l,newType:r,properties:a,viewDataMode:!0});o=await n.app.createSessionObject(i.qProperty),e=o.id}o&&l.current.setModel(o)},addListener(e,t){g.addListener(e,t)},removeListener(e,t){g.removeListener(e,t)},getImperativeHandle:async()=>(await p,l.current.getImperativeHandle()),__DO_NOT_USE__:{mount(e){if(s)throw new Error("Already mounted");if(!(e instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return s=e,[i,l]=function(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:a,onMount:i,emitter:l,initialError:s}=e;const{root:c}=t,u=U.createRef(),d=E_(),p=xp.createPortal(U.createElement(pP,{ref:u,halo:t,model:r,currentId:d,initialSnOptions:o,initialSnPlugins:a,initialError:s,onMount:i,emitter:l}),n,d),f=()=>{c.remove(p),r.removeListener("closed",f)};return r.on("closed",f),c.add(p),c.addCell(d,u),[f,u]}({halo:n,element:e,model:t,initialSnOptions:h,initialSnPlugins:m,initialError:r,onMount:c,emitter:g}),d},async applyProperties(e){const n=hP("/",e,await t.getEffectiveProperties());if(n.length)return t.applyPatches(n,!0)},options(e){(async e=>{const t=e.onInitialRender;s?(async()=>{await d,l.current.setSnOptions(a(a(a({},h),e),{onInitialRender:f(t)}))})():h=a(a(a({},h),e),{onInitialRender:f(t)})})(e)},plugins(e){(async e=>{mP(e),s?(async()=>{await d,l.current.setSnPlugins(e)})():m=e})(e)},exportImage:()=>l.current.exportImage(),takeSnapshot:()=>l.current.takeSnapshot(),getModel:()=>t,convert:{async toType(e){const r=await t.getEffectiveProperties(),o=await CT({halo:n,model:t,cellRef:l,newType:e,properties:r}),a=o.qProperty;return await sM(t,r,a),o},async revert(){await t.clearSoftPatches()}}}};return v}async function dM(e,t,n,r){const o=uM({model:e,halo:n,initialError:r,onDestroy:arguments.length>4&&void 0!==arguments[4]?arguments[4]:async()=>{}});return t.options&&o.__DO_NOT_USE__.options(t.options),t.plugins&&o.__DO_NOT_USE__.plugins(t.plugins),t.element&&await o.__DO_NOT_USE__.mount(t.element),o}async function pM(e,t,n,r){let{type:o,version:a,fields:i,properties:l,extendProperties:s}=e,c={};const u=[],{modelStore:d}=r;try{const e=t.types.get({name:o,version:a});c=await e.initialProperties(l,s);const n=await e.supernova();i&&await dT({sn:n,properties:c,fields:i,children:u},t),l&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},c)}catch(e){c=n?null:{qInfo:{qType:o},visualization:o}}if(!n){const e=await t.app.createObject(c);return u.length>0&&await e.setFullPropertyTree({qProperty:c,qChildren:u}),d.set(e.id,e),e}return c}const fM={className:"njs-sheet"};function hM(e,t,n){return e.bounds?e.bounds:{y:e.row/n*100,x:e.col/t*100,width:e.colspan/t*100,height:e.rowspan/n*100}}function mM(e){let{model:t,halo:n,initialSnOptions:r,initialSnPlugins:o,initialError:a,onMount:i}=e;const{root:l}=n,[s]=uR(t),{theme:c,modelStore:u}=H.useContext(Oy),[d,p]=H.useState([]),[f,h]=H.useState(void 0),[m,g]=H.useState(void 0),[v,b]=H.useState("");H.useEffect((()=>{if(s){const e=JSON.stringify(s.cells);if(e===v)return;b(e);const t=async()=>{d.forEach((e=>{l.removeCell(e.currentId)}));const e=s.cells,{columns:t,rows:r}=s,o=await Promise.all(e.map((async e=>{let o;const a=new Promise((e=>{o=e})),i=d.find((t=>t.id===e.name));if(i)return i.bounds=hM(e,t,r),delete i.mountedPromise,i;const l=await async function(e,t,n){let{id:r,options:o,plugins:a,element:i}=e;const{modelStore:l,rpcRequestModelStore:s}=n,c="".concat(r);let u=s.get(c);u||(u=t.app.getObject(r),s.set(c,u));const d=await u;return l.set(c,d),dM(d,{options:o,plugins:a,element:i},t)}({id:e.name},n,u);return{model:l.model,id:e.name,bounds:hM(e,t,r),cellRef:U.createRef(),currentId:E_(),mounted:o,mountedPromise:a}})));o.forEach((e=>l.addCell(e.currentId,e.cellRef))),p(o)};t()}}),[s]);const y=H.useMemo((()=>d?d.map((e=>function(e,t,n,r,o,a){const{x:i,y:l,width:s,height:c}=e.bounds;return U.createElement("div",{style:{left:"".concat(i,"%"),top:"".concat(l,"%"),width:"".concat(s,"%"),height:"".concat(c,"%"),position:"absolute"}},U.createElement(pP,{ref:e.cellRef,halo:t,model:e.model,currentId:e.currentId,initialSnOptions:n,initialSnPlugins:r,initialError:o,onMount:a}))}(e,n,r,o,a,e.mounted))):[]),[d]);H.useEffect((()=>{const e=null!=s&&s.components?s.components.find((e=>"general"===e.key)):null;h(VI(e,n.public.theme)),g(UI(e,n.app))}),[s,n.public.theme,n.app,c]);const x=!s||Number.isNaN(s.height)?"100%":"".concat(Number(s.height),"%"),S=d.map((e=>e.mountedPromise)),w=S.filter((e=>!!e));return w.length&&Promise.all(S).then((()=>{i()})),U.createElement("div",{className:fM.className,style:{width:"100%",height:x,position:"relative",backgroundColor:f,backgroundImage:m&&m.url?"url(".concat(m.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:m&&m.size,backgroundPosition:m&&m.pos}},y)}const gM=()=>{};function vM(){let{model:e,halo:t,initialError:n,onDestroy:r=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=gM,i=null,l=null,s=null;const c=new Promise((e=>{s=e}));let u={},d=[];const p={id:e.id,model:e,async destroy(){await r(),o(),o=gM},__DO_NOT_USE__:{mount(r){if(l)throw new Error("Already mounted");if(!(r instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return l=r,[o,i]=function(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:a,onMount:i,initialError:l}=e;const{root:s}=t,c=U.createRef(),u=xp.createPortal(U.createElement(mM,{ref:c,halo:t,model:r,initialSnOptions:o,initialSnPlugins:a,initialError:l,onMount:i}),n,r.id),d=()=>{s.remove(u),r.removeListener("closed",d)};return r.on("closed",d),s.add(u),[d,c]}({halo:t,element:r,model:e,initialSnOptions:u,initialSnPlugins:d,initialError:n,onMount:s}),c},async applyProperties(t){const n=hP("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{l?(async()=>{await c,i.current.setSnOptions(a(a({},u),e))})():u=a(a({},u),e)})(e)},plugins(e){(async e=>{mP(e),l?(async()=>{await c,i.current.setSnPlugins(e)})():d=e})(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return p}async function bM(e,t,n){let{id:r,options:o,plugins:a,element:i}=e;const{modelStore:l,rpcRequestModelStore:s}=n,c="".concat(r);let u=s.get(c);u||(u=t.app.getObject(r),s.set(c,u));const d=await u;return l.set(c,d),"sheet"===d.genericType?async function(e,t,n,r){const o=vM({model:e,halo:n,initialError:r,onDestroy:arguments.length>4&&void 0!==arguments[4]?arguments[4]:async()=>{}});return t.options&&o.__DO_NOT_USE__.options(t.options),t.plugins&&o.__DO_NOT_USE__.plugins(t.plugins),t.element&&await o.__DO_NOT_USE__.mount(t.element),o}(d,{options:o,plugins:a,element:i},t):dM(d,{options:o,plugins:a,element:i},t)}function yM(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}var xM,SM;var wM=EM;function EM(e){var t=this;if(t instanceof EM||(t=new EM),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var n=0,r=arguments.length;n<r;n++)t.push(arguments[n]);return t}function CM(e,t,n){var r=t===e.head?new LM(n,null,t,e):new LM(n,t,t.next,e);return null===r.next&&(e.tail=r),null===r.prev&&(e.head=r),e.length++,r}function kM(e,t){e.tail=new LM(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function RM(e,t){e.head=new LM(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function LM(e,t,n,r){if(!(this instanceof LM))return new LM(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}EM.Node=LM,EM.create=EM,EM.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},EM.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},EM.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},EM.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)kM(this,arguments[e]);return this.length},EM.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)RM(this,arguments[e]);return this.length},EM.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},EM.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},EM.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;null!==n;r++)e.call(t,n.value,r,this),n=n.next},EM.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;null!==n;r--)e.call(t,n.value,r,this),n=n.prev},EM.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},EM.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},EM.prototype.map=function(e,t){t=t||this;for(var n=new EM,r=this.head;null!==r;)n.push(e.call(t,r.value,this)),r=r.next;return n},EM.prototype.mapReverse=function(e,t){t=t||this;for(var n=new EM,r=this.tail;null!==r;)n.push(e.call(t,r.value,this)),r=r.prev;return n},EM.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var o=0;null!==r;o++)n=e(n,r.value,o),r=r.next;return n},EM.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var o=this.length-1;null!==r;o--)n=e(n,r.value,o),r=r.prev;return n},EM.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},EM.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},EM.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new EM;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=0,o=this.head;null!==o&&r<e;r++)o=o.next;for(;null!==o&&r<t;r++,o=o.next)n.push(o.value);return n},EM.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new EM;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=this.length,o=this.tail;null!==o&&r>t;r--)o=o.prev;for(;null!==o&&r>e;r--,o=o.prev)n.push(o.value);return n},EM.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,o=this.head;null!==o&&r<e;r++)o=o.next;var a=[];for(r=0;o&&r<t;r++)a.push(o.value),o=this.removeNode(o);null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(r=0;r<n.length;r++)o=CM(this,o,n[r]);return a},EM.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};try{(SM||(SM=1,xM=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}),xM)(EM)}catch(e){}const OM=wM,IM=Symbol("max"),_M=Symbol("length"),TM=Symbol("lengthCalculator"),PM=Symbol("allowStale"),MM=Symbol("maxAge"),NM=Symbol("dispose"),qM=Symbol("noDisposeOnSet"),AM=Symbol("lruList"),zM=Symbol("cache"),DM=Symbol("updateAgeOnGet"),jM=()=>1;const FM=(e,t,n)=>{const r=e[zM].get(t);if(r){const t=r.value;if(BM(e,t)){if(WM(e,r),!e[PM])return}else n&&(e[DM]&&(r.value.now=Date.now()),e[AM].unshiftNode(r));return t.value}},BM=(e,t)=>{if(!t||!t.maxAge&&!e[MM])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[MM]&&n>e[MM]},$M=e=>{if(e[_M]>e[IM])for(let t=e[AM].tail;e[_M]>e[IM]&&null!==t;){const n=t.prev;WM(e,t),t=n}},WM=(e,t)=>{if(t){const n=t.value;e[NM]&&e[NM](n.key,n.value),e[_M]-=n.length,e[zM].delete(n.key),e[AM].removeNode(t)}};class HM{constructor(e,t,n,r,o){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=o||0}}const UM=(e,t,n,r)=>{let o=n.value;BM(e,o)&&(WM(e,n),e[PM]||(o=void 0)),o&&t.call(r,o.value,o.key,e)};var VM=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[IM]=e.max||1/0;const t=e.length||jM;if(this[TM]="function"!=typeof t?jM:t,this[PM]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[MM]=e.maxAge||0,this[NM]=e.dispose,this[qM]=e.noDisposeOnSet||!1,this[DM]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[IM]=e||1/0,$M(this)}get max(){return this[IM]}set allowStale(e){this[PM]=!!e}get allowStale(){return this[PM]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[MM]=e,$M(this)}get maxAge(){return this[MM]}set lengthCalculator(e){"function"!=typeof e&&(e=jM),e!==this[TM]&&(this[TM]=e,this[_M]=0,this[AM].forEach((e=>{e.length=this[TM](e.value,e.key),this[_M]+=e.length}))),$M(this)}get lengthCalculator(){return this[TM]}get length(){return this[_M]}get itemCount(){return this[AM].length}rforEach(e,t){t=t||this;for(let n=this[AM].tail;null!==n;){const r=n.prev;UM(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[AM].head;null!==n;){const r=n.next;UM(this,e,n,t),n=r}}keys(){return this[AM].toArray().map((e=>e.key))}values(){return this[AM].toArray().map((e=>e.value))}reset(){this[NM]&&this[AM]&&this[AM].length&&this[AM].forEach((e=>this[NM](e.key,e.value))),this[zM]=new Map,this[AM]=new OM,this[_M]=0}dump(){return this[AM].map((e=>!BM(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[AM]}set(e,t,n){if((n=n||this[MM])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const r=n?Date.now():0,o=this[TM](t,e);if(this[zM].has(e)){if(o>this[IM])return WM(this,this[zM].get(e)),!1;const a=this[zM].get(e).value;return this[NM]&&(this[qM]||this[NM](e,a.value)),a.now=r,a.maxAge=n,a.value=t,this[_M]+=o-a.length,a.length=o,this.get(e),$M(this),!0}const a=new HM(e,t,o,r,n);return a.length>this[IM]?(this[NM]&&this[NM](e,t),!1):(this[_M]+=a.length,this[AM].unshift(a),this[zM].set(e,this[AM].head),$M(this),!0)}has(e){if(!this[zM].has(e))return!1;const t=this[zM].get(e).value;return!BM(this,t)}get(e){return FM(this,e,!0)}peek(e){return FM(this,e,!1)}pop(){const e=this[AM].tail;return e?(WM(this,e),e.value):null}del(e){WM(this,this[zM].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const r=e[n],o=r.e||0;if(0===o)this.set(r.k,r.v);else{const e=o-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[zM].forEach(((e,t)=>FM(this,t,!1)))}};const GM=Object.freeze({loose:!0}),KM=Object.freeze({});var ZM=e=>e?"object"!=typeof e?GM:e:KM,XM={exports:{}};var QM={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const JM="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error("SEMVER",...t)}:()=>{};var YM=JM;!function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=QM,a=YM,i=(t=e.exports={}).re=[],l=t.safeRe=[],s=t.src=[],c=t.t={};let u=0;const d="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",o],[d,r]],f=(e,t,n)=>{const r=(e=>{for(const[t,n]of p)e=e.split("".concat(t,"*")).join("".concat(t,"{0,").concat(n,"}")).split("".concat(t,"+")).join("".concat(t,"{1,").concat(n,"}"));return e})(t),o=u++;a(e,o,t),c[e]=o,s[o]=t,i[o]=new RegExp(t,n?"g":void 0),l[o]=new RegExp(r,n?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","\\d+"),f("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-]".concat(d,"*")),f("MAINVERSION","(".concat(s[c.NUMERICIDENTIFIER],")\\.")+"(".concat(s[c.NUMERICIDENTIFIER],")\\.")+"(".concat(s[c.NUMERICIDENTIFIER],")")),f("MAINVERSIONLOOSE","(".concat(s[c.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(s[c.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(s[c.NUMERICIDENTIFIERLOOSE],")")),f("PRERELEASEIDENTIFIER","(?:".concat(s[c.NUMERICIDENTIFIER],"|").concat(s[c.NONNUMERICIDENTIFIER],")")),f("PRERELEASEIDENTIFIERLOOSE","(?:".concat(s[c.NUMERICIDENTIFIERLOOSE],"|").concat(s[c.NONNUMERICIDENTIFIER],")")),f("PRERELEASE","(?:-(".concat(s[c.PRERELEASEIDENTIFIER],"(?:\\.").concat(s[c.PRERELEASEIDENTIFIER],")*))")),f("PRERELEASELOOSE","(?:-?(".concat(s[c.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(s[c.PRERELEASEIDENTIFIERLOOSE],")*))")),f("BUILDIDENTIFIER","".concat(d,"+")),f("BUILD","(?:\\+(".concat(s[c.BUILDIDENTIFIER],"(?:\\.").concat(s[c.BUILDIDENTIFIER],")*))")),f("FULLPLAIN","v?".concat(s[c.MAINVERSION]).concat(s[c.PRERELEASE],"?").concat(s[c.BUILD],"?")),f("FULL","^".concat(s[c.FULLPLAIN],"$")),f("LOOSEPLAIN","[v=\\s]*".concat(s[c.MAINVERSIONLOOSE]).concat(s[c.PRERELEASELOOSE],"?").concat(s[c.BUILD],"?")),f("LOOSE","^".concat(s[c.LOOSEPLAIN],"$")),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE","".concat(s[c.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),f("XRANGEIDENTIFIER","".concat(s[c.NUMERICIDENTIFIER],"|x|X|\\*")),f("XRANGEPLAIN","[v=\\s]*(".concat(s[c.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(s[c.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(s[c.XRANGEIDENTIFIER],")")+"(?:".concat(s[c.PRERELEASE],")?").concat(s[c.BUILD],"?")+")?)?"),f("XRANGEPLAINLOOSE","[v=\\s]*(".concat(s[c.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(s[c.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(s[c.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(s[c.PRERELEASELOOSE],")?").concat(s[c.BUILD],"?")+")?)?"),f("XRANGE","^".concat(s[c.GTLT],"\\s*").concat(s[c.XRANGEPLAIN],"$")),f("XRANGELOOSE","^".concat(s[c.GTLT],"\\s*").concat(s[c.XRANGEPLAINLOOSE],"$")),f("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(n,"})")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:$|[^\\d])"),f("COERCERTL",s[c.COERCE],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM","(\\s*)".concat(s[c.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",f("TILDE","^".concat(s[c.LONETILDE]).concat(s[c.XRANGEPLAIN],"$")),f("TILDELOOSE","^".concat(s[c.LONETILDE]).concat(s[c.XRANGEPLAINLOOSE],"$")),f("LONECARET","(?:\\^)"),f("CARETTRIM","(\\s*)".concat(s[c.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",f("CARET","^".concat(s[c.LONECARET]).concat(s[c.XRANGEPLAIN],"$")),f("CARETLOOSE","^".concat(s[c.LONECARET]).concat(s[c.XRANGEPLAINLOOSE],"$")),f("COMPARATORLOOSE","^".concat(s[c.GTLT],"\\s*(").concat(s[c.LOOSEPLAIN],")$|^$")),f("COMPARATOR","^".concat(s[c.GTLT],"\\s*(").concat(s[c.FULLPLAIN],")$|^$")),f("COMPARATORTRIM","(\\s*)".concat(s[c.GTLT],"\\s*(").concat(s[c.LOOSEPLAIN],"|").concat(s[c.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE","^\\s*(".concat(s[c.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(s[c.XRANGEPLAIN],")")+"\\s*$"),f("HYPHENRANGELOOSE","^\\s*(".concat(s[c.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(s[c.XRANGEPLAINLOOSE],")")+"\\s*$"),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(XM,XM.exports);var eN=XM.exports;const tN=/^[0-9]+$/,nN=(e,t)=>{const n=tN.test(e),r=tN.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1};var rN={compareIdentifiers:nN,rcompareIdentifiers:(e,t)=>nN(t,e)};const oN=YM,{MAX_LENGTH:aN,MAX_SAFE_INTEGER:iN}=QM,{safeRe:lN,t:sN}=eN,cN=ZM,{compareIdentifiers:uN}=rN;var dN=class e{constructor(t,n){if(n=cN(n),t instanceof e){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError('Invalid version. Must be a string. Got type "'.concat(typeof t,'".'));if(t.length>aN)throw new TypeError("version is longer than ".concat(aN," characters"));oN("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?lN[sN.LOOSE]:lN[sN.FULL]);if(!r)throw new TypeError("Invalid Version: ".concat(t));if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>iN||this.major<0)throw new TypeError("Invalid major version");if(this.minor>iN||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>iN||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<iN)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}toString(){return this.version}compare(t){if(oN("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if("string"==typeof t&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),uN(this.major,t.major)||uN(this.minor,t.minor)||uN(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const e=this.prerelease[n],r=t.prerelease[n];if(oN("prerelease compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return uN(e,r)}while(++n)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let n=0;do{const e=this.build[n],r=t.build[n];if(oN("prerelease compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return uN(e,r)}while(++n)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===uN(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error("invalid increment argument: ".concat(e))}return this.raw=this.format(),this.build.length&&(this.raw+="+".concat(this.build.join("."))),this}};const pN=dN;var fN=(e,t,n)=>new pN(e,n).compare(new pN(t,n));const hN=fN;var mN=(e,t,n)=>0===hN(e,t,n);const gN=fN;var vN=(e,t,n)=>0!==gN(e,t,n);const bN=fN;var yN=(e,t,n)=>bN(e,t,n)>0;const xN=fN;var SN=(e,t,n)=>xN(e,t,n)>=0;const wN=fN;var EN=(e,t,n)=>wN(e,t,n)<0;const CN=fN;var kN=(e,t,n)=>CN(e,t,n)<=0;const RN=mN,LN=vN,ON=yN,IN=SN,_N=EN,TN=kN;var PN,MN,NN,qN,AN=(e,t,n,r)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return RN(e,n,r);case"!=":return LN(e,n,r);case">":return ON(e,n,r);case">=":return IN(e,n,r);case"<":return _N(e,n,r);case"<=":return TN(e,n,r);default:throw new TypeError("Invalid operator: ".concat(t))}};function zN(){if(qN)return NN;qN=1;class e{constructor(t,o){if(o=n(o),t instanceof e)return t.loose===!!o.loose&&t.includePrerelease===!!o.includePrerelease?t:new e(t.raw,o);if(t instanceof r)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=o,this.loose=!!o.loose,this.includePrerelease=!!o.includePrerelease,this.raw=t.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError("Invalid SemVer Range: ".concat(this.raw));if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!f(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&h(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const n=((this.options.includePrerelease&&d)|(this.options.loose&&p))+":"+e,a=t.get(n);if(a)return a;const h=this.options.loose,m=h?i[l.HYPHENRANGELOOSE]:i[l.HYPHENRANGE];e=e.replace(m,R(this.options.includePrerelease)),o("hyphen replace",e),e=e.replace(i[l.COMPARATORTRIM],s),o("comparator trim",e),e=e.replace(i[l.TILDETRIM],c),o("tilde trim",e),e=e.replace(i[l.CARETTRIM],u),o("caret trim",e);let v=e.split(" ").map((e=>g(e,this.options))).join(" ").split(/\s+/).map((e=>k(e,this.options)));h&&(v=v.filter((e=>(o("loose invalid filter",e,this.options),!!e.match(i[l.COMPARATORLOOSE]))))),o("range list",v);const b=new Map,y=v.map((e=>new r(e,this.options)));for(const e of y){if(f(e))return[e];b.set(e.value,e)}b.size>1&&b.has("")&&b.delete("");const x=[...b.values()];return t.set(n,x),x}intersects(t,n){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some((e=>m(e,n)&&t.set.some((t=>m(t,n)&&e.every((e=>t.every((t=>e.intersects(t,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(L(this.set[t],e,this.options))return!0;return!1}}NN=e;const t=new VM({max:1e3}),n=ZM,r=function(){if(MN)return PN;MN=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(r,o){if(o=n(o),r instanceof t){if(r.loose===!!o.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),i("comparator",r,o),this.options=o,this.loose=!!o.loose,this.parse(r),this.semver===e?this.value="":this.value=this.operator+this.semver.version,i("comp",this)}parse(t){const n=this.options.loose?r[o.COMPARATORLOOSE]:r[o.COMPARATOR],a=t.match(n);if(!a)throw new TypeError("Invalid comparator: ".concat(t));this.operator=void 0!==a[1]?a[1]:"","="===this.operator&&(this.operator=""),a[2]?this.semver=new l(a[2],this.options.loose):this.semver=e}toString(){return this.value}test(t){if(i("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;if("string"==typeof t)try{t=new l(t,this.options)}catch(e){return!1}return a(t,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new s(e.value,r).test(this.value):""===e.operator?""===e.value||new s(this.value,r).test(e.semver):!((r=n(r)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(a(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(a(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}PN=t;const n=ZM,{safeRe:r,t:o}=eN,a=AN,i=YM,l=dN,s=zN();return PN}(),o=YM,a=dN,{safeRe:i,t:l,comparatorTrimReplace:s,tildeTrimReplace:c,caretTrimReplace:u}=eN,{FLAG_INCLUDE_PRERELEASE:d,FLAG_LOOSE:p}=QM,f=e=>"<0.0.0-0"===e.value,h=e=>""===e.value,m=(e,t)=>{let n=!0;const r=e.slice();let o=r.pop();for(;n&&r.length;)n=r.every((e=>o.intersects(e,t))),o=r.pop();return n},g=(e,t)=>(o("comp",e,t),e=x(e,t),o("caret",e),e=b(e,t),o("tildes",e),e=w(e,t),o("xrange",e),e=C(e,t),o("stars",e),e),v=e=>!e||"x"===e.toLowerCase()||"*"===e,b=(e,t)=>e.trim().split(/\s+/).map((e=>y(e,t))).join(" "),y=(e,t)=>{const n=t.loose?i[l.TILDELOOSE]:i[l.TILDE];return e.replace(n,((t,n,r,a,i)=>{let l;return o("tilde",e,t,n,r,a,i),v(n)?l="":v(r)?l=">=".concat(n,".0.0 <").concat(+n+1,".0.0-0"):v(a)?l=">=".concat(n,".").concat(r,".0 <").concat(n,".").concat(+r+1,".0-0"):i?(o("replaceTilde pr",i),l=">=".concat(n,".").concat(r,".").concat(a,"-").concat(i," <").concat(n,".").concat(+r+1,".0-0")):l=">=".concat(n,".").concat(r,".").concat(a," <").concat(n,".").concat(+r+1,".0-0"),o("tilde return",l),l}))},x=(e,t)=>e.trim().split(/\s+/).map((e=>S(e,t))).join(" "),S=(e,t)=>{o("caret",e,t);const n=t.loose?i[l.CARETLOOSE]:i[l.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,a,i,l)=>{let s;return o("caret",e,t,n,a,i,l),v(n)?s="":v(a)?s=">=".concat(n,".0.0").concat(r," <").concat(+n+1,".0.0-0"):v(i)?s="0"===n?">=".concat(n,".").concat(a,".0").concat(r," <").concat(n,".").concat(+a+1,".0-0"):">=".concat(n,".").concat(a,".0").concat(r," <").concat(+n+1,".0.0-0"):l?(o("replaceCaret pr",l),s="0"===n?"0"===a?">=".concat(n,".").concat(a,".").concat(i,"-").concat(l," <").concat(n,".").concat(a,".").concat(+i+1,"-0"):">=".concat(n,".").concat(a,".").concat(i,"-").concat(l," <").concat(n,".").concat(+a+1,".0-0"):">=".concat(n,".").concat(a,".").concat(i,"-").concat(l," <").concat(+n+1,".0.0-0")):(o("no pr"),s="0"===n?"0"===a?">=".concat(n,".").concat(a,".").concat(i).concat(r," <").concat(n,".").concat(a,".").concat(+i+1,"-0"):">=".concat(n,".").concat(a,".").concat(i).concat(r," <").concat(n,".").concat(+a+1,".0-0"):">=".concat(n,".").concat(a,".").concat(i," <").concat(+n+1,".0.0-0")),o("caret return",s),s}))},w=(e,t)=>(o("replaceXRanges",e,t),e.split(/\s+/).map((e=>E(e,t))).join(" ")),E=(e,t)=>{e=e.trim();const n=t.loose?i[l.XRANGELOOSE]:i[l.XRANGE];return e.replace(n,((n,r,a,i,l,s)=>{o("xRange",e,n,r,a,i,l,s);const c=v(a),u=c||v(i),d=u||v(l),p=d;return"="===r&&p&&(r=""),s=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&p?(u&&(i=0),l=0,">"===r?(r=">=",u?(a=+a+1,i=0,l=0):(i=+i+1,l=0)):"<="===r&&(r="<",u?a=+a+1:i=+i+1),"<"===r&&(s="-0"),n="".concat(r+a,".").concat(i,".").concat(l).concat(s)):u?n=">=".concat(a,".0.0").concat(s," <").concat(+a+1,".0.0-0"):d&&(n=">=".concat(a,".").concat(i,".0").concat(s," <").concat(a,".").concat(+i+1,".0-0")),o("xRange return",n),n}))},C=(e,t)=>(o("replaceStars",e,t),e.trim().replace(i[l.STAR],"")),k=(e,t)=>(o("replaceGTE0",e,t),e.trim().replace(i[t.includePrerelease?l.GTE0PRE:l.GTE0],"")),R=e=>(t,n,r,o,a,i,l,s,c,u,d,p,f)=>(n=v(r)?"":v(o)?">=".concat(r,".0.0").concat(e?"-0":""):v(a)?">=".concat(r,".").concat(o,".0").concat(e?"-0":""):i?">=".concat(n):">=".concat(n).concat(e?"-0":""),s=v(c)?"":v(u)?"<".concat(+c+1,".0.0-0"):v(d)?"<".concat(c,".").concat(+u+1,".0-0"):p?"<=".concat(c,".").concat(u,".").concat(d,"-").concat(p):e?"<".concat(c,".").concat(u,".").concat(+d+1,"-0"):"<=".concat(s),"".concat(n," ").concat(s).trim()),L=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(o(e[n].semver),e[n].semver!==r.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return NN}const DN=zN();var jN=(e,t,n)=>{try{t=new DN(t,n)}catch(e){return!1}return t.test(e)},FN=n(jN);const BN={};function $N(e,t){let n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{meta:i}=o,l={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&i&&i.deps&&i.deps.properties)||FN(e,i.deps.properties),supernova:()=>async function(e,t,n,r){let{config:o}=n;const a="".concat(e,"__").concat(t);if(!BN[a]){const n="".concat(e).concat(t&&" v".concat(t)||"");if(r&&"function"!=typeof r)throw new Error("load of visualization '".concat(n,"' is not a fuction, wrap load promise in function"));const i=(r||o.load)({name:e,version:t}),l=Promise.resolve(i);BN[a]=l.then((e=>{if(!e)throw new Error("load() of visualization '".concat(n,"' resolved to an invalid object"));return e})).catch((e=>{throw new Error("Failed to load visualization: '".concat(n,"'"))}))}return BN[a]}(l.name,l.version,t,o.load).then((e=>(n=n||lM(e,t.public.galaxy),r=JSON.stringify(n.qae.properties.initial),n))),initialProperties(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.supernova().then((()=>{const n=a({qInfo:{qType:l.name},visualization:l.name,version:l.version,showTitles:!0},JSON.parse(r));return t?(We(!0,n,e),n):a(a({},n),e)}))}};return l}function WN(e,t){const n={};let r=null;return{get:e=>n[e],register:(o,a)=>{if(n[o])throw new Error("Supernova '".concat(e,"@").concat(o,"' already registered."));n[o]=$N({name:e,version:o},t,a),r=null},getMatchingVersionFromProperties:e=>{r||(r=function(e){const t=e.filter((e=>"undefined"===e));return[...t,...e.filter((e=>"undefined"!==e)).map((e=>e.split(".").map((e=>parseInt(e,10))))).sort(((e,t)=>e[0]-t[0]||e[1]-t[1]||e[2]-t[2])).map((e=>e.join(".")))]}(Object.keys(n)));for(let t=r.length-1;t>=0;t--){if(n[r[t]].supportsPropertiesVersion(e))return r[t]}return null},versions:n}}function HN(e){let{halo:t,parent:n}=e;const r={},o=n||{get:()=>{}};return{register:(e,n)=>{r[e.name]||(r[e.name]=WN(e.name,t)),r[e.name].register(e.version,n)},getSupportedVersion:(e,t)=>{if(r[e])return r[e].getMatchingVersionFromProperties(t)},get(e){const{name:t}=e;let{version:n}=e;if(r[t]){if(!r[t].versions[n]){n=Object.keys(r[t].versions)[0]}}else this.register({name:t,version:n});return r[t].get(n)||o.get(e)},getList:()=>Object.keys(r).map((e=>({name:e,versions:Object.keys(r[e].versions).map((e=>"undefined"===e?void 0:e))}))),clearFromCache:e=>{r[e]&&(r[e]=void 0),function(e){Object.keys(BN).forEach((t=>{t.split("__")[0]===e&&(BN[t]=void 0)}))}(e)}}}const UN={get:async e=>{const t=await fetch("/njs/snapshot/".concat(e));if(!t.ok)throw new Error(t.statusText);return t.json()},capture:e=>fetch("/njs/capture",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then((e=>e.json()))},VN={context:{},load:()=>{},types:[],themes:[],anything:{},snapshot:UN};VN.context={theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1,dataViewType:"sn-table"};const GN=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a(a({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),e)},KN=function(){return[...arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],...arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]].filter(((e,t,n)=>n.indexOf(e)===t))};var ZN=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=Z(t.context.language);function r(e,o){if(o)return r.createConfiguration(o)(e);let i=a(a({},t.context),{},{translator:n.translator});const[l,s]=My({app:e,context:i}),c=function(){let{themes:e=[],loadTheme:t,root:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=lt();return{setTheme:async o=>{let a=e.filter((e=>e.id===o))[0],i="dark"===o?"dark":"light";if(!a&&t&&(a={load:t}),a&&a.load)try{const e=await Promise.race([a.load(o),st(ct,{__timedOut:!0})]);e.__timedOut||(i="dark"===e.type?"dark":"light",r.internalAPI.setTheme(e,o),n.setMuiThemeName(i))}catch(e){}else r.internalAPI.setTheme({type:i},o),n.setMuiThemeName(i)},externalAPI:r.externalAPI}}({themes:t.themes,loadTheme:t.loadTheme,root:l});i.themeApi=c.externalAPI;const u={galaxy:{translator:n.translator,flags:yM(t.flags),deviceType:ut(t.context.deviceType),anything:t.anything},theme:c.externalAPI,translator:n.translator,nebbie:null},d={app:e,root:l,config:t,public:u,context:i,types:null},p=HN({halo:d});t.types.forEach((e=>p.register({name:e.name,version:e.version},{meta:e.meta,load:e.load})));let f=c.setTheme(t.context.theme),h=null,m=null;const g={render:async e=>(await f,e.id?bM(e,d,s):async function(e,t,n){let{type:r,version:o,fields:a,properties:i,options:l,plugins:s,element:c,extendProperties:u}=e,d={};const p=[],{modelStore:f,subscribe:h}=n;let m;try{const e=t.types.get({name:r,version:o});d=await e.initialProperties(i,u);const n=await e.supernova();a&&await dT({sn:n,properties:d,fields:a,children:p},t),i&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},d)}catch(e){m=e,d={qInfo:{qType:r},visualization:r}}const g=await t.app.createSessionObject(d);p.length>0&&await g.setFullPropertyTree({qProperty:d,qChildren:p}),f.set(g.id,g);const v=h(g);return dM(g,{options:l,plugins:s,element:c},t,m,(async()=>{await t.app.destroySessionObject(g.id),v()}))}(e,d,s)),create:async e=>pM(e,d,!1,s),generateProperties:async e=>pM(e,d,!0),context:async e=>{let t;["theme","language","constraints","interactions","keyboardNavigation"].forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==i[n]&&(t||(t={}),t[n]=e[n])})),t&&(i=a(a(a({},i),t),{},{translator:n.translator}),t.theme&&(f=c.setTheme(t.theme),await f),t.language&&d.public.translator.language(t.language),l.context(i))},selections:async()=>(h||(h={mount(t){m||(m=function(e){let{element:t,app:n}=e;return xp.createPortal(U.createElement(C_,{app:n}),t,E_())}({element:t,app:e}),l.add(m))},unmount(){m&&(l.remove(m),m=null)}}),h),field:async t=>{let n;const r="string"==typeof t?t:t.qLibraryId;if(t.qId)n=t.qId;else if(!r)throw new Error("Field identifier or object id must be provided");const o={fieldName:r,async mount(i){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!i)throw new Error("Element for ".concat(r||n," not provided"));if(this._instance)throw new Error("Field or object ".concat(r||n," already mounted"));const c=()=>o.emit("selectionActivated"),u=()=>o.emit("selectionDeactivated");return new Promise((r=>{this._instance=function(e){let{element:t,app:n,fieldIdentifier:r,qId:o,stateName:a="$",options:i={},renderedCallback:l}=e;return xp.createPortal(U.createElement(Q_,{app:n,element:t,fieldIdentifier:r,qId:o,stateName:a,options:i,renderedCallback:l}),t,E_())}({element:i,app:e,fieldIdentifier:t,qId:n,options:X_(a({onSelectionActivated:c,onSelectionDeactivated:u},s)),stateName:s.stateName||"$",renderedCallback:r}),l.add(this._instance)}))},unmount(){this._instance&&(l.remove(this._instance),this._instance=null)}};return vI(o),o},getRegisteredTypes:p.getList,__DO_NOT_USE__:{types:p,popover(t,n,r){g._popoverInstance&&(l.remove(g._popoverInstance),g._popoverInstance=null);const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=a({},J_);return We(!0,t,e),t}(a({onPopoverClose:()=>g.emit("fieldPopoverClose")},r));g._popoverInstance=U.createElement(Y_,{element:t,key:E_(),app:e,fieldIdentifier:n,options:o,stateName:r.stateName||"$"}),l.add(g._popoverInstance)}}};return d.public.nebbie=g,d.types=p,vI(g),g}return r.createConfiguration=n=>e(((e,t)=>({context:GN(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:a({},t.snapshot||e.snapshot),types:KN(e.types,t.types),themes:KN(e.themes,t.themes),flags:GN(e.flags,t.flags),anything:GN(e.anything,t.anything)}))(t,n)),r.config=t,r}(VN);function XN(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}const QN=globalThis.crypto||{getRandomValues:()=>123456};function JN(e){return t=>{const n=We({},t);n.qInfo=n.qInfo||{},n.qInfo.qId=n.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^QN.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))));const r=n._mock;let o=n;return r&&(delete n._mock,o=We({},n,r)),Promise.resolve({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(o),getProperties:()=>Promise.resolve(n),getEffectiveProperties:()=>Promise.resolve(n),removeListener:()=>{},id:n.qInfo.qId,properties:n,session:e})}}const YN=function(e){let{args:t=[],defaultValue:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"function"==typeof e?e(...t):void 0!==e?e:n},eq=function(e){let{defaultValue:t,async:n=!0,delay:r=0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(){for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];const l=YN(e,{defaultValue:t,args:a});return n?new Promise((e=>{setTimeout((()=>e(l)),r)})):l}},tq=["id","session"],nq=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function rq(e){return!nq.includes(e)}function oq(e){const t=YN(e.getLayout);return t.qInfo&&t.qInfo.qId}function aq(e,t){return e.reduce(((e,n)=>a(a({},e),function(e,t){let n=oq(e);const{delay:r}=t,{id:o,session:i}=e,l=s(e,tq);if(o&&n&&o!==n)throw new Error("Generic object has multiple IDs, qInfo.qId: ".concat(n,", id: ").concat(o));return n=n||o||"object - ".concat(+Date.now()),{[n]:a(a({id:n,session:YN(i,{defaultValue:!0}),on:()=>{},once:()=>{}},Object.entries(l).reduce(((e,t)=>{let[n,o]=t;return a(a({},e),{},{[n]:eq(o,{async:rq(n),delay:r})})}),{})),{},{genericType:e.type})}}(n,t))),{})}function iq(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!oq(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function lq(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Array.isArray(e)||0===e.length)return()=>{throw new Error('No "genericObjects" specified')};e.forEach(iq);const n=aq(e,t);return async e=>Promise.resolve(n[e])}function sq(){return()=>Promise.resolve({id:"app-layout"})}const cq={fromGenericObjects(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new XN,r=new JN(n),o=new lq(e,t),a=new sq,i={id:"app - ".concat(+Date.now()),session:n,createSessionObject:r,destroySessionObject:async()=>{},getObject:o,getAppLayout:a};return Promise.resolve(i)}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}},uq={generator:lM,hook:$P,theme:lt,locale:G};e.EnigmaMocker=cq,e.__DO_NOT_USE__=uq,e.conversion=kT,e.embed=ZN,e.onContextMenu=function(e){const t=jP(++OP);t.value||(t.value=1,LP.__hooks.menus.push(t)),t.fn=e},e.onTakeSnapshot=function(e){const t=jP(++OP);t.value||(t.value=1,LP.__hooks.snaps.push(t)),t.fn=e},e.useAction=function(e,t){const[n]=WP({action(){n._config.action.call(null)}});return n.component||(n.component=LP,LP.__hooks.actions.list.push(n)),VP((()=>{const t=e();n._config=t,n.active=t.active||!1,n.disabled=t.disabled||!1,n.hidden=t.hidden||!1,n.label=t.label||"",n.getSvgIconShape=t.icon?()=>t.icon:void 0,n.key=t.key||n.component.__hooks.actions.list.length,n.component.__hooks.actions.changed=!0}),t),n.action},e.useApp=function(){const e=FP("app");return e&&e.session?e:void 0},e.useAppLayout=function(){return FP("appLayout")},e.useConstraints=function(){return FP("constraints")},e.useDeviceType=function(){return FP("deviceType")},e.useEffect=HP,e.useElement=GP,e.useEmbed=function(){return FP("nebbie")},e.useEmitter=function(){return FP("emitter")},e.useGlobal=function(){const e=FP("global");return e&&e.session?e:void 0},e.useImperativeHandle=function(e,t){const n=jP(++OP);if(n.imperative||(n.imperative=!0),IP(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],LP.__hooks.imperativeHandle=r}},e.useInteractionState=function(){return FP("interactions")},e.useKeyboard=function(){const e=FP("keyboardNavigation"),t=FP("focusHandler");if(!LP.__hooks.accessibility.exitFunction){const e=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const n=this.__hooks.accessibility;n.enabled&&n.active&&(ZP(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(LP);LP.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),KP(this))}.bind(LP);LP.__hooks.accessibility.focusFunction=n;const r=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(LP);LP.__hooks.accessibility.focusSelectionFunction=r}const n=LP.__hooks.accessibility.focusFunction,r=LP.__hooks.accessibility.exitFunction,o=LP.__hooks.accessibility.focusSelectionFunction,[a,i]=WP({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return LP.__hooks.accessibility.setter=i,LP.__hooks.accessibility.enabled=e,HP((()=>i({active:!1,enabled:e,blur:r,focus:n,focusSelection:o})),[e]),a},e.useLayout=function(){return FP("layout")},e.useMemo=VP,e.useModel=function(){const e=FP("model");return e&&e.session?e:void 0},e.useOptions=function(){return FP("options")},e.usePlugins=function(){return FP("plugins")},e.usePromise=function(e,t){const[n,r]=WP((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=jP(++OP);return o.component||(o.component=LP),UP((()=>{let t=!1;return o.teardown=()=>{t=!0,o.teardown=null;const e=o.component.__hooks.pendingPromises.indexOf(o);e>-1&&o.component.__hooks.pendingPromises.splice(e,1)},e().then((e=>{t||(o.teardown&&o.teardown(),r({resolved:e,rejected:void 0,state:"resolved"}))})).catch((e=>{t||(o.teardown&&o.teardown(),r({resolved:void 0,rejected:e,state:"resolved"}))})),o.component.__hooks.pendingPromises.push(o),()=>{o.teardown&&o.teardown()}}),t),[n.resolved,n.rejected]},e.useRect=function(){const e=GP(),t=LP.__hooks.resizer,[n,r]=WP((()=>{const{left:t,top:n,width:r,height:o}=e.getBoundingClientRect();return{left:t,top:n,width:r,height:o}}));return t.current=n,-1===t.setters.indexOf(r)&&t.setters.push(r),t.update&&t.resize&&(t.update=!1,t.resize()),UP((()=>{if(t.initiated)return;t.initiated=!0;const n=()=>{const{left:n,top:r,width:o,height:a}=e.getBoundingClientRect(),i=t.current;i.width===o&&i.height===a&&i.left===n&&i.top===r||t.setters.forEach((e=>e({left:n,top:r,width:o,height:a})))};if(t.resize=()=>{n()},t.explicitResize)return()=>{t.resize=void 0};if("function"==typeof ResizeObserver){let r=new ResizeObserver(n);return r.observe(e),()=>{r.unobserve(e),r.disconnect(e),r=null,t.resize=void 0}}}),[e]),n},e.useRenderState=function(){jP(++OP);const e=LP.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}},e.useSelections=function(){return FP("selections")},e.useStaleLayout=function(){const e=FP("layout"),[t]=WP({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current},e.useState=WP,e.useTheme=function(){return FP("theme")},e.useTranslator=function(){return FP("translator")}}));
133
+ `),DC))),BC=U.forwardRef((function(e,t){const n=Qb({props:e,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:a=!1,size:i=40,style:l,thickness:s=3.6,value:c=0,variant:u="indeterminate"}=n,d=Rp(n,_C),p=Lp({},n,{color:o,disableShrink:a,size:i,thickness:s,value:c,variant:u}),f=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e;return Dv({root:["root",n,`color${_m(r)}`],svg:["svg"],circle:["circle",`circle${_m(n)}`,o&&"circleDisableShrink"]},OC,t)})(p),h={},m={},g={};if("determinate"===u){const e=2*Math.PI*((qC-s)/2);h.strokeDasharray=e.toFixed(3),g["aria-valuenow"]=Math.round(c),h.strokeDashoffset=`${((100-c)/100*e).toFixed(3)}px`,m.transform="rotate(-90deg)"}return om.jsx(zC,Lp({className:jg(f.root,r),style:Lp({width:i,height:i},m,l),ownerState:p,ref:t,role:"progressbar"},g,d,{children:om.jsx(jC,{className:f.svg,ownerState:p,viewBox:"22 22 44 44",children:om.jsx(FC,{className:f.circle,style:h,ownerState:p,cx:qC,cy:qC,r:(qC-s)/2,fill:"none",strokeWidth:s})})}))}));var $C=BC;function WC(e){return $g("MuiModal",e)}Wg("MuiModal",["root","hidden","backdrop"]);const HC=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],UC=_y("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Lp({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),VC=_y(QE,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),GC=U.forwardRef((function(e,t){var n,r,o,a,i,l;const s=Qb({name:"MuiModal",props:e}),{BackdropComponent:c=VC,BackdropProps:u,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:w=!1,disableScrollLock:E=!1,hideBackdrop:C=!1,keepMounted:k=!1,onBackdropClick:L,open:R,slotProps:O,slots:_}=s,I=Rp(s,HC),T=Lp({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:w,disableScrollLock:E,hideBackdrop:C,keepMounted:k}),{getRootProps:P,getBackdropProps:M,getTransitionProps:N,portalRef:q,isTopModal:A,exited:D,hasTransition:z}=RS(Lp({},T,{rootRef:t})),j=Lp({},T,{exited:D}),F=(e=>{const{open:t,exited:n,classes:r}=e;return Dv({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},WC,r)})(j),B={};if(void 0===f.props.tabIndex&&(B.tabIndex="-1"),z){const{onEnter:e,onExited:t}=N();B.onEnter=e,B.onExited=t}const $=null!=(n=null!=(r=null==_?void 0:_.root)?r:g.Root)?n:UC,W=null!=(o=null!=(a=null==_?void 0:_.backdrop)?a:g.Backdrop)?o:c,H=null!=(i=null==O?void 0:O.root)?i:v.root,V=null!=(l=null==O?void 0:O.backdrop)?l:v.backdrop,G=fS({elementType:$,externalSlotProps:H,externalForwardedProps:I,getSlotProps:P,additionalProps:{ref:t,as:m},ownerState:j,className:jg(d,null==H?void 0:H.className,null==F?void 0:F.root,!j.open&&j.exited&&(null==F?void 0:F.hidden))}),K=fS({elementType:W,externalSlotProps:V,additionalProps:u,getSlotProps:e=>M(Lp({},e,{onClick:t=>{L&&L(t),null!=e&&e.onClick&&e.onClick(t)}})),className:jg(null==V?void 0:V.className,null==u?void 0:u.className,null==F?void 0:F.backdrop),ownerState:j});return k||R||z&&!D?om.jsx(xS,{ref:q,container:h,disablePortal:S,children:om.jsxs($,Lp({},G,{children:[!C&&c?om.jsx(W,Lp({},K)):null,om.jsx(yS,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:w,isEnabled:A,open:R,children:U.cloneElement(f,B)})]}))}):null}));var KC=GC;function ZC(e){return $g("MuiDivider",e)}var XC=Wg("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const QC=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],JC=_y("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>Lp({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:ab(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>Lp({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Lp({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>Lp({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>Lp({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),YC=_y("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Lp({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),ek=U.forwardRef((function(e,t){const n=Qb({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:a,component:i=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:c="horizontal",role:u=("hr"!==i?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=Rp(n,QC),h=Lp({},n,{absolute:r,component:i,flexItem:l,light:s,orientation:c,role:u,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:a,orientation:i,textAlign:l,variant:s}=e;return Dv({root:["root",t&&"absolute",s,a&&"light","vertical"===i&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===i&&"withChildrenVertical","right"===l&&"vertical"!==i&&"textAlignRight","left"===l&&"vertical"!==i&&"textAlignLeft"],wrapper:["wrapper","vertical"===i&&"wrapperVertical"]},ZC,r)})(h);return om.jsx(JC,Lp({as:i,className:jg(m.root,a),role:u,ref:t,ownerState:h},f,{children:o?om.jsx(YC,{className:m.wrapper,ownerState:h,children:o}):null}))}));ek.muiSkipListHighlight=!0;var tk=ek;const nk=function(e={}){const{createStyledComponent:t=Gv,useThemeProps:n=Kv,componentName:r="MuiStack"}=e,o=t(Xv),a=U.forwardRef((function(e,t){const a=Ng(n(e)),{component:i="div",direction:l="column",spacing:s=0,divider:c,children:u,className:d,useFlexGap:p=!1}=a,f=pm(a,Uv),h={direction:l,spacing:s,useFlexGap:p},m=Dv({root:["root"]},(e=>$g(r,e)),{});return om.jsx(o,dm({as:i,ownerState:h,ref:t,className:jg(m.root,d)},f,{children:c?Zv(u,c):u}))}));return a}({createStyledComponent:_y("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Qb({props:e,name:"MuiStack"})});var rk=nk;function ok(e){return $g("MuiFormControlLabel",e)}var ak=Wg("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);const ik=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],lk=_y("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ak.label}`]:t.label},t.root,t[`labelPlacement${_m(n.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>Lp({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${ak.disabled}`]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${ak.label}`]:{[`&.${ak.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),sk=_y("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${ak.error}`]:{color:(e.vars||e).palette.error.main}}))),ck=U.forwardRef((function(e,t){var n,r;const o=Qb({props:e,name:"MuiFormControlLabel"}),{className:a,componentsProps:i={},control:l,disabled:s,disableTypography:c,label:u,labelPlacement:d="end",required:p,slotProps:f={}}=o,h=Rp(o,ik),m=OE(),g=null!=(n=null!=s?s:l.props.disabled)?n:null==m?void 0:m.disabled,v=null!=p?p:l.props.required,b={disabled:g,required:v};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===l.props[e]&&void 0!==o[e]&&(b[e]=o[e])}));const y=LE({props:o,muiFormControl:m,states:["error"]}),x=Lp({},o,{disabled:g,labelPlacement:d,required:v,error:y.error}),S=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:a}=e;return Dv({root:["root",n&&"disabled",`labelPlacement${_m(r)}`,o&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]},ok,t)})(x),w=null!=(r=f.typography)?r:i.typography;let E=u;return null==E||E.type===gE||c||(E=om.jsx(gE,Lp({component:"span"},w,{className:jg(S.label,null==w?void 0:w.className),children:E}))),om.jsxs(lk,Lp({className:jg(S.root,a),ownerState:x,ref:t},h,{children:[U.cloneElement(l,b),v?om.jsxs(rk,{display:"block",children:[E,om.jsxs(sk,{ownerState:x,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]}):E]}))}));var uk=ck;var dk=U.createContext();function pk(e){return $g("MuiGrid",e)}const fk=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],hk=Wg("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>`spacing-xs-${e}`)),...["column-reverse","column","row-reverse","row"].map((e=>`direction-xs-${e}`)),...["nowrap","wrap-reverse","wrap"].map((e=>`wrap-xs-${e}`)),...fk.map((e=>`grid-xs-${e}`)),...fk.map((e=>`grid-sm-${e}`)),...fk.map((e=>`grid-md-${e}`)),...fk.map((e=>`grid-lg-${e}`)),...fk.map((e=>`grid-xl-${e}`))]),mk=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function gk(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function vk({breakpoints:e,values:t}){let n="";Object.keys(t).forEach((e=>{""===n&&0!==t[e]&&(n=e)}));const r=Object.keys(e).sort(((t,n)=>e[t]-e[n]));return r.slice(0,r.indexOf(n))}const bk=_y("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:a,spacing:i,wrap:l,zeroMinWidth:s,breakpoints:c}=n;let u=[];r&&(u=function(e,t,n={}){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach((t=>{const o=e[t];Number(o)>0&&r.push(n[`spacing-${t}-${String(o)}`])})),r}(i,c,t));const d=[];return c.forEach((e=>{const r=n[e];r&&d.push(t[`grid-${e}-${String(r)}`])})),[t.root,r&&t.container,a&&t.item,s&&t.zeroMinWidth,...u,"row"!==o&&t[`direction-xs-${String(o)}`],"wrap"!==l&&t[`wrap-xs-${String(l)}`],...d]}})((({ownerState:e})=>Lp({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},"wrap"!==e.wrap&&{flexWrap:e.wrap})),(function({theme:e,ownerState:t}){return km({theme:e},Om({values:t.direction,breakpoints:e.breakpoints.values}),(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${hk.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&0!==r){const t=Om({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=vk({breakpoints:e.breakpoints.values,values:t})),o=km({theme:e},t,((t,r)=>{var o;const a=e.spacing(t);return"0px"!==a?{marginTop:`-${gk(a)}`,[`& > .${hk.item}`]:{paddingTop:gk(a)}}:null!=(o=n)&&o.includes(r)?{}:{marginTop:0,[`& > .${hk.item}`]:{paddingTop:0}}}))}return o}),(function({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&0!==r){const t=Om({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=vk({breakpoints:e.breakpoints.values,values:t})),o=km({theme:e},t,((t,r)=>{var o;const a=e.spacing(t);return"0px"!==a?{width:`calc(100% + ${gk(a)})`,marginLeft:`-${gk(a)}`,[`& > .${hk.item}`]:{paddingLeft:gk(a)}}:null!=(o=n)&&o.includes(r)?{}:{width:"100%",marginLeft:0,[`& > .${hk.item}`]:{paddingLeft:0}}}))}return o}),(function({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce(((r,o)=>{let a={};if(t[o]&&(n=t[o]),!n)return r;if(!0===n)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===n)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=Om({values:t.columns,breakpoints:e.breakpoints.values}),l="object"==typeof i?i[o]:i;if(null==l)return r;const s=Math.round(n/l*1e8)/1e6+"%";let c={};if(t.container&&t.item&&0!==t.columnSpacing){const n=e.spacing(t.columnSpacing);if("0px"!==n){const e=`calc(${s} + ${gk(n)})`;c={flexBasis:e,maxWidth:e}}}a=Lp({flexBasis:s,flexGrow:0,maxWidth:s},c)}return 0===e.breakpoints.values[o]?Object.assign(r,a):r[e.breakpoints.up(o)]=a,r}),{})}));const yk=e=>{const{classes:t,container:n,direction:r,item:o,spacing:a,wrap:i,zeroMinWidth:l,breakpoints:s}=e;let c=[];n&&(c=function(e,t){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[`spacing-xs-${String(e)}`];const n=[];return t.forEach((t=>{const r=e[t];if(Number(r)>0){const e=`spacing-${t}-${String(r)}`;n.push(e)}})),n}(a,s));const u=[];s.forEach((t=>{const n=e[t];n&&u.push(`grid-${t}-${String(n)}`)}));return Dv({root:["root",n&&"container",o&&"item",l&&"zeroMinWidth",...c,"row"!==r&&`direction-xs-${String(r)}`,"wrap"!==i&&`wrap-xs-${String(i)}`,...u]},pk,t)},xk=U.forwardRef((function(e,t){const n=Qb({props:e,name:"MuiGrid"}),{breakpoints:r}=Xb(),o=Ng(n),{className:a,columns:i,columnSpacing:l,component:s="div",container:c=!1,direction:u="row",item:d=!1,rowSpacing:p,spacing:f=0,wrap:h="wrap",zeroMinWidth:m=!1}=o,g=Rp(o,mk),v=p||f,b=l||f,y=U.useContext(dk),x=c?i||12:y,S={},w=Lp({},g);r.keys.forEach((e=>{null!=g[e]&&(S[e]=g[e],delete w[e])}));const E=Lp({},o,{columns:x,container:c,direction:u,item:d,rowSpacing:v,columnSpacing:b,wrap:h,zeroMinWidth:m,spacing:f},S,{breakpoints:r.keys}),C=yk(E);return om.jsx(dk.Provider,{value:x,children:om.jsx(bk,Lp({ownerState:E,className:jg(C.root,a),as:s,ref:t},w))})}));var Sk=xk;const wk=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Ek(e){return`scale(${e}, ${e**2})`}const Ck={entering:{opacity:1,transform:Ek(1)},entered:{opacity:1,transform:"none"}},kk="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Lk=U.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:a,in:i,onEnter:l,onEntered:s,onEntering:c,onExit:u,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=Vy}=e,g=Rp(e,wk),v=kv(),b=U.useRef(),y=Xb(),x=U.useRef(null),S=Sv(x,o.ref,t),w=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},E=w(c),C=w(((e,t)=>{Qx(e);const{duration:n,delay:r,easing:o}=Jx({style:f,timeout:h,easing:a},{mode:"enter"});let i;"auto"===h?(i=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=i):i=n,e.style.transition=[y.transitions.create("opacity",{duration:i,delay:r}),y.transitions.create("transform",{duration:kk?i:.666*i,delay:r,easing:o})].join(","),l&&l(e,t)})),k=w(s),L=w(p),R=w((e=>{const{duration:t,delay:n,easing:r}=Jx({style:f,timeout:h,easing:a},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:kk?o:.666*o,delay:kk?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Ek(.75),u&&u(e)})),O=w(d);return om.jsx(m,Lp({appear:r,in:i,nodeRef:x,onEnter:C,onEntered:k,onEntering:E,onExit:R,onExited:O,onExiting:L,addEndListener:e=>{"auto"===h&&v.start(b.current||0,e),n&&n(x.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>U.cloneElement(o,Lp({style:Lp({opacity:0,transform:Ek(.75),visibility:"exited"!==e||i?void 0:"hidden"},Ck[e],f,o.props.style),ref:S},t))}))}));Lk.muiSupportAuto=!0;var Rk=Lk;function Ok(e){return $g("MuiIcon",e)}Wg("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const _k=["baseClassName","className","color","component","fontSize"],Ik=_y("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${_m(n.color)}`],t[`fontSize${_m(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:e.typography.pxToRem(20),medium:e.typography.pxToRem(24),large:e.typography.pxToRem(36)}[t.fontSize],color:{primary:(e.vars||e).palette.primary.main,secondary:(e.vars||e).palette.secondary.main,info:(e.vars||e).palette.info.main,success:(e.vars||e).palette.success.main,warning:(e.vars||e).palette.warning.main,action:(e.vars||e).palette.action.active,error:(e.vars||e).palette.error.main,disabled:(e.vars||e).palette.action.disabled,inherit:void 0}[t.color]}))),Tk=U.forwardRef((function(e,t){const n=Qb({props:e,name:"MuiIcon"}),{baseClassName:r="material-icons",className:o,color:a="inherit",component:i="span",fontSize:l="medium"}=n,s=Rp(n,_k),c=Lp({},n,{baseClassName:r,color:a,component:i,fontSize:l}),u=(e=>{const{color:t,fontSize:n,classes:r}=e;return Dv({root:["root","inherit"!==t&&`color${_m(t)}`,`fontSize${_m(n)}`]},Ok,r)})(c);return om.jsx(Ik,Lp({as:i,className:jg(r,"notranslate",u.root,o),ownerState:c,"aria-hidden":!0,ref:t},s))}));Tk.muiName="Icon";var Pk=Tk;function Mk(e){return $g("MuiInputAdornment",e)}var Nk,qk=Wg("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);const Ak=["children","className","component","disablePointerEvents","disableTypography","position","variant"],Dk=_y("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${_m(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>Lp({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${qk.positionStart}&:not(.${qk.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),zk=U.forwardRef((function(e,t){const n=Qb({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:a="div",disablePointerEvents:i=!1,disableTypography:l=!1,position:s,variant:c}=n,u=Rp(n,Ak),d=OE()||{};let p=c;c&&d.variant,d&&!p&&(p=d.variant);const f=Lp({},n,{hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:i,position:s,variant:p}),h=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:a,variant:i}=e;return Dv({root:["root",n&&"disablePointerEvents",o&&`position${_m(o)}`,i,r&&"hiddenLabel",a&&`size${_m(a)}`]},Mk,t)})(f);return om.jsx(RE.Provider,{value:null,children:om.jsx(Dk,Lp({as:a,ownerState:f,className:jg(h.root,o),ref:t},u,{children:"string"!=typeof r||l?om.jsxs(U.Fragment,{children:["start"===s?Nk||(Nk=om.jsx("span",{className:"notranslate",children:"​"})):null,r]}):om.jsx(gE,{color:"text.secondary",children:r})}))})}));var jk=zk;var Fk=U.createContext({});function Bk(e){return $g("MuiList",e)}Wg("MuiList",["root","padding","dense","subheader"]);const $k=["children","className","component","dense","disablePadding","subheader"],Wk=_y("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>Lp({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),Hk=U.forwardRef((function(e,t){const n=Qb({props:e,name:"MuiList"}),{children:r,className:o,component:a="ul",dense:i=!1,disablePadding:l=!1,subheader:s}=n,c=Rp(n,$k),u=U.useMemo((()=>({dense:i})),[i]),d=Lp({},n,{component:a,dense:i,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Dv({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Bk,t)})(d);return om.jsx(Fk.Provider,{value:u,children:om.jsxs(Wk,Lp({as:a,className:jg(p.root,o),ref:t,ownerState:d},c,{children:[s,r]}))})}));var Uk=Hk;function Vk(e){return $g("MuiListItem",e)}var Gk=Wg("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);var Kk=Wg("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Zk(e){return $g("MuiListItemSecondaryAction",e)}Wg("MuiListItemSecondaryAction",["root","disableGutters"]);const Xk=["className"],Qk=_y("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>Lp({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),Jk=U.forwardRef((function(e,t){const n=Qb({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=Rp(n,Xk),a=Lp({},n,{disableGutters:U.useContext(Fk).disableGutters}),i=(e=>{const{disableGutters:t,classes:n}=e;return Dv({root:["root",t&&"disableGutters"]},Zk,n)})(a);return om.jsx(Qk,Lp({className:jg(i.root,r),ownerState:a,ref:t},o))}));Jk.muiName="ListItemSecondaryAction";var Yk=Jk;const eL=["className"],tL=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],nL=_y("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})((({theme:e,ownerState:t})=>Lp({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&Lp({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Kk.root}`]:{paddingRight:48}},{[`&.${Gk.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Gk.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ab(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Gk.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ab(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Gk.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Gk.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ab(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ab(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),rL=_y("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),oL=U.forwardRef((function(e,t){const n=Qb({props:e,name:"MuiListItem"}),{alignItems:r="center",autoFocus:o=!1,button:a=!1,children:i,className:l,component:s,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:p}={},dense:f=!1,disabled:h=!1,disableGutters:m=!1,disablePadding:g=!1,divider:v=!1,focusVisibleClassName:b,secondaryAction:y,selected:x=!1,slotProps:S={},slots:w={}}=n,E=Rp(n.ContainerProps,eL),C=Rp(n,tL),k=U.useContext(Fk),L=U.useMemo((()=>({dense:f||k.dense||!1,alignItems:r,disableGutters:m})),[r,k.dense,f,m]),R=U.useRef(null);lv((()=>{o&&R.current&&R.current.focus()}),[o]);const O=U.Children.toArray(i),_=O.length&&pv(O[O.length-1],["ListItemSecondaryAction"]),I=Lp({},n,{alignItems:r,autoFocus:o,button:a,dense:L.dense,disabled:h,disableGutters:m,disablePadding:g,divider:v,hasSecondaryAction:_,selected:x}),T=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:a,disableGutters:i,disablePadding:l,divider:s,hasSecondaryAction:c,selected:u}=e;return Dv({root:["root",o&&"dense",!i&&"gutters",!l&&"padding",s&&"divider",a&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},Vk,r)})(I),P=Sv(R,t),M=w.root||c.Root||nL,N=S.root||u.root||{},q=Lp({className:jg(T.root,N.className,l),disabled:h},C);let A=s||"li";return a&&(q.component=s||"div",q.focusVisibleClassName=jg(Gk.focusVisible,b),A=yx),_?(A=q.component||s?A:"div","li"===d&&("li"===A?A="div":"li"===q.component&&(q.component="div")),om.jsx(Fk.Provider,{value:L,children:om.jsxs(rL,Lp({as:d,className:jg(T.container,p),ref:P,ownerState:I},E,{children:[om.jsx(M,Lp({},N,!aS(M)&&{as:A,ownerState:Lp({},I,N.ownerState)},q,{children:O})),O.pop()]}))})):om.jsx(Fk.Provider,{value:L,children:om.jsxs(M,Lp({},N,{as:A,ref:P},!aS(M)&&{ownerState:Lp({},I,N.ownerState)},q,{children:[O,y&&om.jsx(Yk,{children:y})]}))})}));var aL=oL;function iL(e){return $g("MuiListItemIcon",e)}var lL=Wg("MuiListItemIcon",["root","alignItemsFlexStart"]);const sL=["className"],cL=_y("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>Lp({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),uL=U.forwardRef((function(e,t){const n=Qb({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Rp(n,sL),a=Lp({},n,{alignItems:U.useContext(Fk).alignItems}),i=(e=>{const{alignItems:t,classes:n}=e;return Dv({root:["root","flex-start"===t&&"alignItemsFlexStart"]},iL,n)})(a);return om.jsx(cL,Lp({className:jg(i.root,r),ownerState:a,ref:t},o))}));var dL=uL;var pL=Wg("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const fL=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function hL(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function mL(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function gL(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function vL(e,t,n,r,o,a){let i=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(i)return!1;i=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&gL(l,a)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}const bL=U.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:a,className:i,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:c,variant:u="selectedMenu"}=e,d=Rp(e,fL),p=U.useRef(null),f=U.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});lv((()=>{r&&p.current.focus()}),[r]),U.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${qv(fv(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const h=Sv(p,t);let m=-1;U.Children.forEach(a,((e,t)=>{U.isValidElement(e)?(e.props.disabled||("selectedMenu"===u&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=a.length&&(m=-1))):m===t&&(m+=1,m>=a.length&&(m=-1))}));const g=U.Children.map(a,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===u&&(t.tabIndex=0),U.cloneElement(e,t)}return e}));return om.jsx(Uk,Lp({role:"menu",ref:h,className:i,onKeyDown:e=>{const t=p.current,n=e.key,r=fv(t).activeElement;if("ArrowDown"===n)e.preventDefault(),vL(t,r,s,l,hL);else if("ArrowUp"===n)e.preventDefault(),vL(t,r,s,l,mL);else if("Home"===n)e.preventDefault(),vL(t,null,s,l,hL);else if("End"===n)e.preventDefault(),vL(t,null,s,l,mL);else if(1===n.length){const o=f.current,a=n.toLowerCase(),i=performance.now();o.keys.length>0&&(i-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&a!==o.keys[0]&&(o.repeating=!1)),o.lastTime=i,o.keys.push(a);const s=r&&!o.repeating&&gL(r,o);o.previousKeyMatched&&(s||vL(t,r,!1,l,hL,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1},d,{children:g}))}));var yL=bL;function xL(e){return $g("MuiPopover",e)}Wg("MuiPopover",["root","paper"]);const SL=["onEntering"],wL=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],EL=["slotProps"];function CL(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function kL(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function LL(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function RL(e){return"function"==typeof e?e():e}const OL=_y(KC,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_L=_y(rS,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),IL=U.forwardRef((function(e,t){var n,r,o;const a=Qb({props:e,name:"MuiPopover"}),{action:i,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=Rk,transitionDuration:w="auto",TransitionProps:{onEntering:E}={},disableScrollLock:C=!1}=a,k=Rp(a.TransitionProps,SL),L=Rp(a,wL),R=null!=(n=null==y?void 0:y.paper)?n:v,O=U.useRef(),_=Sv(O,R.ref),I=Lp({},a,{anchorOrigin:s,anchorReference:u,elevation:h,marginThreshold:m,externalPaperSlotProps:R,transformOrigin:x,TransitionComponent:S,transitionDuration:w,TransitionProps:k}),T=(e=>{const{classes:t}=e;return Dv({root:["root"],paper:["paper"]},xL,t)})(I),P=U.useCallback((()=>{if("anchorPosition"===u)return c;const e=RL(l),t=(e&&1===e.nodeType?e:fv(O.current).body).getBoundingClientRect();return{top:t.top+CL(t,s.vertical),left:t.left+kL(t,s.horizontal)}}),[l,s.horizontal,s.vertical,c,u]),M=U.useCallback((e=>({vertical:CL(e,x.vertical),horizontal:kL(e,x.horizontal)})),[x.horizontal,x.vertical]),N=U.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=M(t);if("none"===u)return{top:null,left:null,transformOrigin:LL(n)};const r=P();let o=r.top-n.vertical,a=r.left-n.horizontal;const i=o+t.height,s=a+t.width,c=hv(RL(l)),d=c.innerHeight-m,p=c.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,n.vertical+=e}else if(null!==m&&i>d){const e=i-d;o-=e,n.vertical+=e}if(null!==m&&a<m){const e=a-m;a-=e,n.horizontal+=e}else if(s>p){const e=s-p;a-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(a)}px`,transformOrigin:LL(n)}}),[l,u,P,M,m]),[q,A]=U.useState(g),D=U.useCallback((()=>{const e=O.current;if(!e)return;const t=N(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,A(!0)}),[N]);U.useEffect((()=>(C&&window.addEventListener("scroll",D),()=>window.removeEventListener("scroll",D))),[l,C,D]);U.useEffect((()=>{g&&D()})),U.useImperativeHandle(i,(()=>g?{updatePosition:()=>{D()}}:null),[g,D]),U.useEffect((()=>{if(!g)return;const e=dv((()=>{D()})),t=hv(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,D]);let z=w;"auto"!==w||S.muiSupportAuto||(z=void 0);const j=f||(l?fv(RL(l)).body:void 0),F=null!=(r=null==b?void 0:b.root)?r:OL,B=null!=(o=null==b?void 0:b.paper)?o:_L,$=fS({elementType:B,externalSlotProps:Lp({},R,{style:q?R.style:Lp({},R.style,{opacity:0})}),additionalProps:{elevation:h,ref:_},ownerState:I,className:jg(T.paper,null==R?void 0:R.className)}),W=fS({elementType:F,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:L,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:j,open:g},ownerState:I,className:jg(T.root,p)}),{slotProps:H}=W,V=Rp(W,EL);return om.jsx(F,Lp({},V,!aS(F)&&{slotProps:H,disableScrollLock:C},{children:om.jsx(S,Lp({appear:!0,in:g,onEntering:(e,t)=>{E&&E(e,t),D()},onExited:()=>{A(!1)},timeout:z},k,{children:om.jsx(B,Lp({},$,{children:d}))}))}))}));var TL=IL;function PL(e){return $g("MuiMenuItem",e)}var ML=Wg("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const NL=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],qL=_y(yx,{shouldForwardProp:e=>Oy(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Lp({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ML.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ab(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ML.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ab(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ML.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ab(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ab(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ML.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ML.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${XC.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${XC.inset}`]:{marginLeft:52},[`& .${pL.root}`]:{marginTop:0,marginBottom:0},[`& .${pL.inset}`]:{paddingLeft:36},[`& .${lL.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Lp({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${lL.root} svg`]:{fontSize:"1.25rem"}})))),AL=U.forwardRef((function(e,t){const n=Qb({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:a=!1,divider:i=!1,disableGutters:l=!1,focusVisibleClassName:s,role:c="menuitem",tabIndex:u,className:d}=n,p=Rp(n,NL),f=U.useContext(Fk),h=U.useMemo((()=>({dense:a||f.dense||!1,disableGutters:l})),[f.dense,a,l]),m=U.useRef(null);lv((()=>{r&&m.current&&m.current.focus()}),[r]);const g=Lp({},n,{dense:h.dense,divider:i,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:i}=e;return Lp({},i,Dv({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},PL,i))})(n),b=Sv(m,t);let y;return n.disabled||(y=void 0!==u?u:-1),om.jsx(Fk.Provider,{value:h,children:om.jsx(qL,Lp({ref:b,role:c,tabIndex:y,component:o,focusVisibleClassName:jg(v.focusVisible,s),className:jg(v.root,d)},p,{ownerState:g,classes:v}))})}));var DL,zL=AL;const jL=["children","classes","className","label","notched"],FL=_y("fieldset",{shouldForwardProp:Oy})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),BL=_y("legend",{shouldForwardProp:Oy})((({ownerState:e,theme:t})=>Lp({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&Lp({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}))));const $L=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],WL=_y(AE,{shouldForwardProp:e=>Oy(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:NE})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Lp({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${$E.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${$E.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${$E.focused} .${$E.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${$E.error} .${$E.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${$E.disabled} .${$E.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Lp({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),HL=_y((function(e){const{className:t,label:n,notched:r}=e,o=Rp(e,jL),a=null!=n&&""!==n,i=Lp({},e,{notched:r,withLabel:a});return om.jsx(FL,Lp({"aria-hidden":!0,className:t,ownerState:i},o,{children:om.jsx(BL,{ownerState:i,children:a?om.jsx("span",{children:n}):DL||(DL=om.jsx("span",{className:"notranslate",children:"​"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),UL=_y(DE,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:qE})((({theme:e,ownerState:t})=>Lp({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),VL=U.forwardRef((function(e,t){var n,r,o,a,i;const l=Qb({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:c=!1,inputComponent:u="input",label:d,multiline:p=!1,notched:f,slots:h={},type:m="text"}=l,g=Rp(l,$L),v=(e=>{const{classes:t}=e;return Lp({},t,Dv({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},BE,t))})(l),b=OE(),y=LE({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=Lp({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:b,fullWidth:c,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:m}),S=null!=(n=null!=(r=h.root)?r:s.Root)?n:WL,w=null!=(o=null!=(a=h.input)?a:s.Input)?o:UL;return om.jsx(FE,Lp({slots:{root:S,input:w},renderSuffix:e=>om.jsx(HL,{ownerState:x,className:v.notchedOutline,label:null!=d&&""!==d&&y.required?i||(i=om.jsxs(U.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:u,multiline:p,ref:t,type:m},g,{classes:Lp({},v,{notchedOutline:null})}))}));VL.muiName="Input";var GL=VL,KL=Kx(om.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),ZL=Kx(om.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked");const XL=_y("span",{shouldForwardProp:Oy})({position:"relative",display:"flex"}),QL=_y(KL)({transform:"scale(1)"}),JL=_y(ZL)((({theme:e,ownerState:t})=>Lp({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})})));function YL(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=Lp({},e,{checked:t});return om.jsxs(XL,{className:n.root,ownerState:o,children:[om.jsx(QL,{fontSize:r,className:n.background,ownerState:o}),om.jsx(JL,{fontSize:r,className:n.dot,ownerState:o})]})}var eR=U.createContext(void 0);function tR(e){return $g("MuiRadio",e)}const nR=Wg("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),rR=["checked","checkedIcon","color","icon","name","onChange","size","className"],oR=_y(mC,{shouldForwardProp:e=>Oy(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"medium"!==n.size&&t[`size${_m(n.size)}`],t[`color${_m(n.color)}`]]}})((({theme:e,ownerState:t})=>Lp({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:ab("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${nR.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${nR.disabled}`]:{color:(e.vars||e).palette.action.disabled}})));const aR=om.jsx(YL,{checked:!0}),iR=om.jsx(YL,{}),lR=U.forwardRef((function(e,t){var n,r;const o=Qb({props:e,name:"MuiRadio"}),{checked:a,checkedIcon:i=aR,color:l="primary",icon:s=iR,name:c,onChange:u,size:d="medium",className:p}=o,f=Rp(o,rR),h=Lp({},o,{color:l,size:d}),m=(e=>{const{classes:t,color:n,size:r}=e;return Lp({},t,Dv({root:["root",`color${_m(n)}`,"medium"!==r&&`size${_m(r)}`]},tR,t))})(h),g=U.useContext(eR);let v=a;const b=uv(u,g&&g.onChange);let y=c;return g&&(void 0===v&&(v=function(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}(g.value,o.value)),void 0===y&&(y=g.name)),om.jsx(oR,Lp({type:"radio",icon:U.cloneElement(s,{fontSize:null!=(n=iR.props.fontSize)?n:d}),checkedIcon:U.cloneElement(i,{fontSize:null!=(r=aR.props.fontSize)?r:d}),ownerState:h,classes:m,name:y,checked:v,onChange:b,ref:t,className:jg(m.root,p)},f))}));var sR=lR;function cR(e){return $g("MuiTooltip",e)}var uR=Wg("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);const dR=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];const pR=_y(kE,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})((({theme:e,ownerState:t,open:n})=>Lp({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${uR.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${uR.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${uR.arrow}`]:Lp({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${uR.arrow}`]:Lp({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),fR=_y("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${_m(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return Lp({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:ab(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(n=16/14,Math.round(1e5*n)/1e5)+"em",fontWeight:e.typography.fontWeightRegular},{[`.${uR.popper}[data-popper-placement*="left"] &`]:Lp({transformOrigin:"right center"},t.isRtl?Lp({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):Lp({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${uR.popper}[data-popper-placement*="right"] &`]:Lp({transformOrigin:"left center"},t.isRtl?Lp({marginRight:"14px"},t.touch&&{marginRight:"24px"}):Lp({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${uR.popper}[data-popper-placement*="top"] &`]:Lp({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${uR.popper}[data-popper-placement*="bottom"] &`]:Lp({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n})),hR=_y("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:ab(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let mR=!1;const gR=new Cv;let vR={x:0,y:0};function bR(e,t){return n=>{t&&t(n),e(n)}}const yR=U.forwardRef((function(e,t){var n,r,o,a,i,l,s,c,u,d,p,f,h,m,g,v,b,y,x;const S=Qb({props:e,name:"MuiTooltip"}),{arrow:w=!1,children:E,components:C={},componentsProps:k={},describeChild:L=!1,disableFocusListener:R=!1,disableHoverListener:O=!1,disableInteractive:_=!1,disableTouchListener:I=!1,enterDelay:T=100,enterNextDelay:P=0,enterTouchDelay:M=700,followCursor:N=!1,id:q,leaveDelay:A=0,leaveTouchDelay:D=1500,onClose:z,onOpen:j,open:F,placement:B="bottom",PopperComponent:$,PopperProps:W={},slotProps:H={},slots:V={},title:G,TransitionComponent:K=Rk,TransitionProps:Z}=S,X=Rp(S,dR),Q=U.isValidElement(E)?E:om.jsx("span",{children:E}),J=Xb(),Y="rtl"===J.direction,[ee,te]=U.useState(),[ne,re]=U.useState(null),oe=U.useRef(!1),ae=_||N,ie=kv(),le=kv(),se=kv(),ce=kv(),[ue,de]=yv({controlled:F,default:!1,name:"Tooltip",state:"open"});let pe=ue;const fe=bv(q),he=U.useRef(),me=xv((()=>{void 0!==he.current&&(document.body.style.WebkitUserSelect=he.current,he.current=void 0),ce.clear()}));U.useEffect((()=>me),[me]);const ge=e=>{gR.clear(),mR=!0,de(!0),j&&!pe&&j(e)},ve=xv((e=>{gR.start(800+A,(()=>{mR=!1})),de(!1),z&&pe&&z(e),ie.start(J.transitions.duration.shortest,(()=>{oe.current=!1}))})),be=e=>{oe.current&&"touchstart"!==e.type||(ee&&ee.removeAttribute("title"),le.clear(),se.clear(),T||mR&&P?le.start(mR?P:T,(()=>{ge(e)})):ge(e))},ye=e=>{le.clear(),se.start(A,(()=>{ve(e)}))},{isFocusVisibleRef:xe,onBlur:Se,onFocus:we,ref:Ee}=Nv(),[,Ce]=U.useState(!1),ke=e=>{Se(e),!1===xe.current&&(Ce(!1),ye(e))},Le=e=>{ee||te(e.currentTarget),we(e),!0===xe.current&&(Ce(!0),be(e))},Re=e=>{oe.current=!0;const t=Q.props;t.onTouchStart&&t.onTouchStart(e)},Oe=e=>{Re(e),se.clear(),ie.clear(),me(),he.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ce.start(M,(()=>{document.body.style.WebkitUserSelect=he.current,be(e)}))},_e=e=>{Q.props.onTouchEnd&&Q.props.onTouchEnd(e),me(),se.start(D,(()=>{ve(e)}))};U.useEffect((()=>{if(pe)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||ve(e)}}),[ve,pe]);const Ie=Sv(Q.ref,Ee,te,t);G||0===G||(pe=!1);const Te=U.useRef(),Pe={},Me="string"==typeof G;L?(Pe.title=pe||!Me||O?null:G,Pe["aria-describedby"]=pe?fe:null):(Pe["aria-label"]=Me?G:null,Pe["aria-labelledby"]=pe&&!Me?fe:null);const Ne=Lp({},Pe,X,Q.props,{className:jg(X.className,Q.props.className),onTouchStart:Re,ref:Ie},N?{onMouseMove:e=>{const t=Q.props;t.onMouseMove&&t.onMouseMove(e),vR={x:e.clientX,y:e.clientY},Te.current&&Te.current.update()}}:{}),qe={};I||(Ne.onTouchStart=Oe,Ne.onTouchEnd=_e),O||(Ne.onMouseOver=bR(be,Ne.onMouseOver),Ne.onMouseLeave=bR(ye,Ne.onMouseLeave),ae||(qe.onMouseOver=be,qe.onMouseLeave=ye)),R||(Ne.onFocus=bR(Le,Ne.onFocus),Ne.onBlur=bR(ke,Ne.onBlur),ae||(qe.onFocus=Le,qe.onBlur=ke));const Ae=U.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(ne),options:{element:ne,padding:4}}];return null!=(e=W.popperOptions)&&e.modifiers&&(t=t.concat(W.popperOptions.modifiers)),Lp({},W.popperOptions,{modifiers:t})}),[ne,W]),De=Lp({},S,{isRtl:Y,arrow:w,disableInteractive:ae,placement:B,PopperComponentProp:$,touch:oe.current}),ze=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e;return Dv({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${_m(a.split("-")[0])}`],arrow:["arrow"]},cR,t)})(De),je=null!=(n=null!=(r=V.popper)?r:C.Popper)?n:pR,Fe=null!=(o=null!=(a=null!=(i=V.transition)?i:C.Transition)?a:K)?o:Rk,Be=null!=(l=null!=(s=V.tooltip)?s:C.Tooltip)?l:fR,$e=null!=(c=null!=(u=V.arrow)?u:C.Arrow)?c:hR,We=iS(je,Lp({},W,null!=(d=H.popper)?d:k.popper,{className:jg(ze.popper,null==W?void 0:W.className,null==(p=null!=(f=H.popper)?f:k.popper)?void 0:p.className)}),De),He=iS(Fe,Lp({},Z,null!=(h=H.transition)?h:k.transition),De),Ue=iS(Be,Lp({},null!=(m=H.tooltip)?m:k.tooltip,{className:jg(ze.tooltip,null==(g=null!=(v=H.tooltip)?v:k.tooltip)?void 0:g.className)}),De),Ve=iS($e,Lp({},null!=(b=H.arrow)?b:k.arrow,{className:jg(ze.arrow,null==(y=null!=(x=H.arrow)?x:k.arrow)?void 0:y.className)}),De);return om.jsxs(U.Fragment,{children:[U.cloneElement(Q,Ne),om.jsx(je,Lp({as:null!=$?$:kE,placement:B,anchorEl:N?{getBoundingClientRect:()=>({top:vR.y,left:vR.x,right:vR.x,bottom:vR.y,width:0,height:0})}:ee,popperRef:Te,open:!!ee&&pe,id:fe,transition:!0},qe,We,{popperOptions:Ae,children:({TransitionProps:e})=>om.jsx(Fe,Lp({timeout:J.transitions.duration.shorter},e,He,{children:om.jsxs(Be,Lp({},Ue,{children:[G,w?om.jsx($e,Lp({},Ve,{ref:re})):null]}))}))}))]})}));var xR=yR;function SR(){const{useModelStore:e}=U.useContext(zx).modelStore;return e()}function wR(e,t){const n=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[r]=SR(),[o]=function(){const{useRpcRequestSessionModelStore:e}=U.useContext(zx).modelStore;return e()}(),[a,i]=U.useState();for(var l=arguments.length,s=new Array(l>2?l-2:0),c=2;c<l;c++)s[c-2]=arguments[c];return U.useEffect((()=>{if(!t)return;(async()=>{let a=o.get(n);a||(a=t.createSessionObject(e),o.set(n,a));const l=await a;r.set(n,l),i(l)})()}),[t,...s]),[a]}const ER={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function CR(e){return wR(ER,e)}const kR=e=>new Promise((t=>{setTimeout(t,e)})),LR=(e,t)=>{const{rpcResultStore:n,key:r,method:o}=t;let i;switch(t.type){case"INVALID":i=a(a({},e),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":i={result:a({},t.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":i=a(a({},e),{},{invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1});break;default:throw new Error("Undefined action")}let l=n.get(r);return l||(l={}),l[o]=i,n.set(r,l),i};function RR(e,t){const n=e?"".concat(e.id):null,[r]=function(){const{useRpcResultStore:e}=U.useContext(zx).modelStore;return e()}(),[o,a]=U.useReducer(LR,n?r.get(n):null),[i]=function(){const{useModelChangedStore:e}=U.useContext(zx).modelStore;return e()}(),[l]=function(){const{useRpcRequestStore:e}=U.useContext(zx).modelStore;return e()}();let s;n&&(s=l.get(n),s||(s={},l.set(n,s)));const c=async o=>{let i=s[t];if(!i||i&&i.rpcRetry){i={rpc:e[t](),rpcRetry:!1},s[t]=i,a({type:"INVALID",method:t,key:n,model:e,rpcResultStore:r,canCancel:!0})}try{await kR(0);const o=await i.rpc;a({type:"VALID",result:o,key:n,method:t,model:e,rpcResultStore:r})}catch(e){15!==e.code||o||(i.rpcRetry||(i.rpcRetry=!0),c(!0))}},u={cancel:async()=>{const o=e.session.getObjectApi({handle:-1});await o.cancelRequest(s[t].rpc.requestId),a({type:"CANCELLED",key:n,method:t,model:e,rpcResultStore:r})},retry:()=>{s[t].rpcRetry=!0,c()}};return U.useEffect((()=>{e&&c()}),[e,i.get(e&&e.id),n,t]),[o&&o.result,{validating:o&&o.validating,canCancel:o&&o.canCancel,canRetry:o&&o.canRetry},u]}function OR(e){return RR(e,"getLayout")}function _R(e){return RR(e,"getAppLayout")}function IR(){const[e,t]=U.useState(),[n,r]=U.useState(),o=U.useCallback((e=>{e&&t(e)}),[]),a=()=>{const{left:t,top:n,width:o,height:a}=e.getBoundingClientRect();r({left:t,top:n,width:o,height:a})};return U.useLayoutEffect((()=>{if(e){if("function"==typeof ResizeObserver){let t=new ResizeObserver(a);return t.observe(e),()=>{t.unobserve(e),t.disconnect(e),t=null}}return a(),window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a)}}}),[e]),[o,n,e]}function TR(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function PR(e){let{size:t,style:n={},viewBox:r="0 0 16 16",shapes:o=[]}=e;const i=a({fontSize:TR(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},n);return V.createElement("i",{style:i},V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},o.map(((e,t)=>{let{type:n,attrs:r}=e;return V.createElement(n,s({key:t},r))}))))}var MR=e=>PR((e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M9.41421356,8 L11.8890873,5.52512627 C12.065864,5.34834957 12.0305087,4.95944084 11.8183766,4.74730881 L11.2526912,4.18162338 C11.0405592,3.96949135 10.6516504,3.93413601 10.4748737,4.1109127 L8,6.58578644 L5.52512627,4.1109127 C5.34834957,3.93413601 4.95944084,3.96949135 4.74730881,4.18162338 L4.25233406,4.67659813 C3.96949135,4.95944084 3.93413601,5.34834957 4.1109127,5.52512627 L6.58578644,8 L4.1109127,10.4748737 C3.93413601,10.6516504 3.96949135,11.0405592 4.18162338,11.2526912 L4.67659813,11.7476659 C4.95944084,12.0305087 5.34834957,12.065864 5.52512627,11.8890873 L8,9.41421356 L10.4748737,11.8890873 C10.6516504,12.065864 11.0405592,12.0305087 11.2526912,11.8183766 L11.8183766,11.2526912 C12.0305087,11.0405592 12.065864,10.6516504 11.8890873,10.4748737 L9.41421356,8 Z M8,0 C12.4,0 16,3.6 16,8 C16,12.4 12.4,16 8,16 C3.6,16 0,12.4 0,8 C0,3.6 3.6,0 8,0 Z"}}]}))(e));var NR=e=>PR((e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10ZM3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0v1.652ZM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9Zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0Z"}}]}))(e));const qR=e=>a(a({},e),{},{viewBox:"0 0 12 16",shapes:[{type:"path",attrs:{d:"M2.5,7 L11,7 C11.5522847,7 12,7.44771525 12,8 L12,15 C12,15.5522847 11.5522847,16 11,16 L1,16 C0.44771525,16 0,15.5522847 0,15 L0,8 C0,7.44771525 0.44771525,7 1,7 L1,4.98151367 C1,2.23029964 3.23857625,0 6,0 C8.4241995,0 10.4454541,1.71883353 10.9029715,4 L9.34209114,4 C8.9671727,2.54028848 7.9088888,1.5 6,1.5 C3.54860291,1.5 2.5,3.21561511 2.5,5.33193359 L2.5,7 Z"}}]});var AR=e=>PR(qR(e));var DR=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),zR=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},jR=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=zR(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r._lastRenderedStartIndex=-1,r._lastRenderedStopIndex=-1,r._memoizedUnloadedRanges=[],r._onItemsRendered=function(e){var t=e.visibleStartIndex,n=e.visibleStopIndex;r._lastRenderedStartIndex=t,r._lastRenderedStopIndex=n,r._ensureRowsLoaded(t,n)},r._setRef=function(e){r._listRef=e},zR(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),DR(t,[{key:"resetloadMoreItemsCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._memoizedUnloadedRanges=[],e&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){return(0,this.props.children)({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(e,t){var n=this.props,r=n.isItemLoaded,o=n.itemCount,a=n.minimumBatchSize,i=void 0===a?10:a,l=n.threshold,s=void 0===l?15:l,c=function(e){for(var t=e.isItemLoaded,n=e.itemCount,r=e.minimumBatchSize,o=e.startIndex,a=e.stopIndex,i=[],l=null,s=null,c=o;c<=a;c++)t(c)?null!==s&&(i.push(l,s),l=s=null):(s=c,null===l&&(l=c));if(null!==s){for(var u=Math.min(Math.max(s,l+r-1),n-1),d=s+1;d<=u&&!t(d);d++)s=d;i.push(l,s)}if(i.length)for(;i[1]-i[0]+1<r&&i[0]>0;){var p=i[0]-1;if(t(p))break;i[0]=p}return i}({isItemLoaded:r,itemCount:o,minimumBatchSize:i,startIndex:Math.max(0,e-s),stopIndex:Math.min(o-1,t+s)});(this._memoizedUnloadedRanges.length!==c.length||this._memoizedUnloadedRanges.some((function(e,t){return c[t]!==e})))&&(this._memoizedUnloadedRanges=c,this._loadUnloadedRanges(c))}},{key:"_loadUnloadedRanges",value:function(e){for(var t=this,n=this.props.loadMoreItems||this.props.loadMoreRows,r=function(r){var o=e[r],a=e[r+1],i=n(o,a);null!=i&&i.then((function(){if(function(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,r=e.startIndex,o=e.stopIndex;return!(r>n||o<t)}({lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:o,stopIndex:a})){if(null==t._listRef)return;"function"==typeof t._listRef.resetAfterIndex?t._listRef.resetAfterIndex(o,!0):("function"==typeof t._listRef._getItemStyleCache&&t._listRef._getItemStyleCache(-1),t._listRef.forceUpdate())}}))},o=0;o<e.length;o+=2)r(o)}}]),t}(U.PureComponent);const FR=["S","XS"],BR=e=>e.reduce(((e,t)=>e.concat(t)));function $R(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[t]=e;return n=t.qState,!!FR.includes(n)&&t.qElemNumber;var n}));return t.filter((e=>!1!==e))}));return BR(t)}async function WR(e){let{selections:t,elemNumbers:n,toggle:r,isSingleSelect:o}=e;if(0===n.length)return!1;let a=!1;if(!n.some((e=>Number.isNaN(e)))){const e=n;try{a=!1!==await t.select({method:"selectListObjectValues",params:["/qListObjectDef",e,r]})}catch(e){a=!1}a||(o?t.cancel():t.clear())}return a}const HR="RowColumn",UR={row:"".concat(HR,"-row"),rowBorderBottom:"".concat(HR,"-rowBorderBottom"),column:"".concat(HR,"-column"),fieldRoot:"".concat(HR,"-fieldRoot"),cell:"".concat(HR,"-cell"),labelText:"".concat(HR,"-labelText"),labelDense:"".concat(HR,"-labelDense"),highlighted:"".concat(HR,"-highlighted"),checkboxLabel:"".concat(HR,"-checkboxLabel"),icon:"".concat(HR,"-icon"),S:"".concat(HR,"-S"),XS:"".concat(HR,"-XS"),A:"".concat(HR,"-A"),X:"".concat(HR,"-X"),frequencyCount:"".concat(HR,"-frequencyCount"),barContainer:"".concat(HR,"-barContainer"),bar:"".concat(HR,"-bar"),barSelected:"".concat(HR,"-barSelected"),barWithCheckbox:"".concat(HR,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(HR,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(HR,"-excludedTextWithCheckbox")},VR=".".concat(UR.fieldRoot),GR=e=>!(null!=e&&e.metaKey||null!=e&&e.ctrlKey);function KR(e){var t;let{selectionState:n,selections:r,checkboxes:o=!1,doc:a=document,loaderRef:i}=e;const l=U.useRef({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});U.useEffect((()=>{var e;if(null===(e=i.current)||void 0===e||null===(e=e._listRef)||void 0===e||!e._outerRef)return;const t=e=>e.preventDefault(),n=e=>e.preventDefault(),r=e=>e.preventDefault(),o=i.current._listRef._outerRef;return o.addEventListener("gesturestart",t),o.addEventListener("gesturechange",n),o.addEventListener("gestureend",r),()=>{o.removeEventListener("gesturestart",t),o.removeEventListener("gesturechange",n),o.removeEventListener("gestureend",r)}}),[null===(t=i.current)||void 0===t||null===(t=t._listRef)||void 0===t?void 0:t._outerRef]);const s=async()=>{var e;return(null===(e=n.selectDisabled)||void 0===e||!e.call(n))&&(n.setSelectableValuesUpdating(),WR({selections:r,elemNumbers:l.current.elemNumbers,isSingleSelect:n.isSingleSelect,toggle:l.current.toggle}))},c=(e,t)=>{const r=function(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[{qElemNumber:t}]=e;return t}));return t}));return BR(t)}(n.enginePages);return function(e,t){if(!e)return[];if(e.length<=1)return e;const{min:n,max:r}=function(e,t){let n=1/0,r=-1/0;return e.forEach((e=>{const o=t.indexOf(e);n=o<n?o:n,r=o>r?o:r})),{min:n,max:r}}(e,t);return t.slice(n,r+1)}([e,t],r)},u=e=>{const{startElemNumber:t}=l.current;if(t===e)return;const r=c(l.current.startElemNumber,e);n.updateItems(r,!0,l.current.elemNumbers)},d=U.useCallback((e=>{if(n.selectDisabled())return;const t=+e.target.getAttribute("data-n"),r=!n.isSingleSelect&&GR(e.nativeEvent);l.current.elemNumbers=[t],l.current.toggle=r,r||n.clearItemStates(!0),n.updateItem(t),l.current.active=!1,s()}),[]),p=U.useCallback((e=>{if(0!==e.button||n.selectDisabled())return;const t=+e.currentTarget.getAttribute("data-n"),r=!n.isSingleSelect&&GR(e);l.current.isRange=!1,l.current.startElemNumber=t,l.current.elemNumbers=[t],l.current.toggle=r,l.current.active=!0,r||n.clearItemStates(!0),n.updateItem(t),n.isSingleSelect&&(l.current.active=!1,s()),((e,t)=>{(e.ctrlKey||e.metaKey)&&(t.focus(),e.preventDefault())})(e,e.currentTarget)}),[]),f=U.useCallback((e=>{if(0===e.button&&l.current.active){if(l.current.active=!1,l.current.isRange){const t=+e.currentTarget.getAttribute("data-n");u(t)}s()}}),[]),h=U.useCallback((e=>{0===e.button&&l.current.active&&(l.current.active=!1,s())}),[]),m=U.useCallback((e=>{if(!l.current.active)return;l.current.isRange||(l.current.isRange=!0,n.isSelected(l.current.startElemNumber)||(n.updateItem(l.current.startElemNumber,!0),l.current.elemNumbers=[]));const t=+e.currentTarget.getAttribute("data-n");u(t)}),[]),g=U.useCallback((e=>{var t,r;if(l.current.active||l.current.isRange||n.isSingleSelect||e.touches.length<=1)return;if(e.touches.length>2)return void s();const o=Number(null===(t=e.touches[0].target)||void 0===t||null===(t=t.closest(VR))||void 0===t?void 0:t.getAttribute("data-n")),a=Number(null===(r=e.touches[1].target)||void 0===r||null===(r=r.closest(VR))||void 0===r?void 0:r.getAttribute("data-n"));if(Number.isNaN(o)||Number.isNaN(o))return void s();l.current.active=!0;c(o,a).length<7&&(l.current.touchRangeSmall=!0),l.current.elemNumbers=[],l.current.touchElemNumbers=[o,a]}),[]),v=U.useCallback((()=>{if(2!==l.current.touchElemNumbers.length)return;if(l.current.touchRangeSmall)return l.current.touchRangeSmall=!1,l.current.touchElemNumbers=[],void(l.current.active=!1);const[e,t]=l.current.touchElemNumbers;l.current.startElemNumber=e,u(t),l.current.touchElemNumbers=[],l.current.active=!1,l.current.toggle=!0,s()}),[]);U.useEffect((()=>(a.addEventListener("mouseup",h),()=>{a.removeEventListener("mouseup",h)})),[h]),U.useEffect((()=>{const e=()=>{n.clearItemStates(!1)},t=()=>{n.clearItemStates(!0),n.triggerStateChanged()};return r.on("clearItemStates",e),r.on("deactivated",e),r.on("cleared",t),()=>{r.removeListener("clearItemStates",e),r.removeListener("deactivated",e),r.removeListener("cleared",t)}}),[r]);const b={};return o?Object.assign(b,{onChange:d}):Object.assign(b,{onMouseUp:f,onMouseDown:p,onMouseEnter:m,onTouchStart:g,onTouchEnd:v}),{interactionEvents:b,select:async function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(null!==(e=n.selectDisabled)&&void 0!==e&&e.call(n))return!1;const i=!n.isSingleSelect&&GR(null==a?void 0:a.nativeEvent);i||n.clearItemStates(!0);const l=[];return n.updateItems(t,o,l),n.setSelectableValuesUpdating(),WR({selections:r,elemNumbers:o?l:t,isSingleSelect:n.isSingleSelect,toggle:i})}}}const ZR=e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]});var XR=e=>PR(ZR(e));const QR=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,JR=e=>e?"A"===e.qState:null,YR=e=>{let{cell:t,checkboxes:n}=e;return(JR(t)||QR(t))&&n},eO=e=>{let{column:t,histogram:n,checkboxes:r,cell:o,showGray:a}=e;const i=[t?UR.column:UR.row];return n||i.push(UR.rowBorderBottom),o?(r||("XS"===o.qState?i.push(a?UR.XS:UR.S):"S"===o.qState||"L"===o.qState?i.push(UR.S):a&&JR(o)?i.push(UR.A):a&&QR(o)&&i.push(UR.X)),i):[]},tO=9,nO=4,rO=7,oO=12+2*(rO+1),aO=80,iO=10,lO=150,sO=56,cO=20,uO="-",dO=32,pO=29,fO=20,hO=4,mO=e=>e.filter((e=>!!e)).join(" ").trim(),gO=e=>{let{qFrequency:t,frequencyMax:n}=e;const r=String(t),o="%"===r.substring(r.length-1),a=parseFloat(o?r:t);return"".concat(o?a:a/n*100,"%")},vO=e=>e||uO,bO=["backgroundColor"],yO=e=>{let{sizes:t,frequencyMode:n,isGridMode:r,freqHitsValue:o}=e;if("P"===n)return"".concat(t.freqMinWidth,"px");return r&&!o?"max-content":"25%"},xO=e=>{let{sizes:t,frequencyMode:n,isGridMode:r}=e;return r?"max-content":"P"===n?t.freqMinWidth:t.freqMaxWidth},SO=e=>{let{theme:t,styles:n,selectedState:r}=e;const o=n.selections,a=o[r],i=o["".concat(r,"Contrast")];return{background:a,color:i,"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder),outline:"none"},"& $cell":{paddingRight:0},["& .".concat(UR.labelText)]:{color:i},["& .".concat(UR.icon)]:{color:i}}},wO={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},EO=_y("div",{shouldForwardProp:e=>!["checkboxes","isGridMode","isGridCol","dense","direction","sizes","frequencyMode","freqHitsValue","layout","styles"].includes(e)})((e=>{let{theme:t,checkboxes:n,isGridMode:r,isGridCol:o,dense:i,direction:l,sizes:s,frequencyMode:u,freqHitsValue:d,styles:p}=e;const f=c(p.content,bO),h=SO({theme:t,styles:p,selectedState:"selected"}),m=SO({theme:t,styles:p,selectedState:"excluded"});return{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"},"& .value":{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"}},["& .".concat(UR.row)]:a({flexWrap:"nowrap"},p.content),["& .".concat(UR.rowBorderBottom)]:{borderBottom:o?"none":"1px solid ".concat(t.palette.divider),borderLeft:o?"1px solid ".concat(t.palette.divider):"none"},["& .".concat(UR.column)]:a({flexWrap:"nowrap",borderRight:"1px solid ".concat(t.palette.divider)},p.content),["& .".concat(UR.cell)]:{zIndex:2,display:"flex",alignItems:"center",flexGrow:1,minWidth:n?"52px":"26px",flexBasis:n?"auto":"max-content",paddingLeft:"".concat(tO,"px"),paddingRight:0},["& .".concat(UR.labelText)]:a(a({lineHeight:"16px",userSelect:"none",paddingRight:"1px"},wO),f),["& .".concat(UR.labelDense)]:{fontSize:12},["& .".concat(UR.highlighted)]:{backgroundColor:"#FFC72A"},["& .".concat(UR.checkboxLabel)]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":a(a({},wO),{},{display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"})},["& .".concat(UR.icon)]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24,color:f.color},["& .".concat(UR.S)]:a(a({},h),{},{border:r?"none":void 0}),["& .".concat(UR.XS)]:a(a({},SO({theme:t,styles:p,selectedState:"selectedExcluded"})),{},{border:r?"none":void 0}),["& .".concat(UR.A)]:a(a({},SO({theme:t,styles:p,selectedState:"alternative"})),{},{border:r?"none":void 0}),["& .".concat(UR.X)]:a(a({},m),{},{border:r?"none":void 0}),["& .".concat(UR.frequencyCount)]:a(a({zIndex:3,justifyContent:"flex-end"},wO),{},{flex:"0 0 ".concat(yO({sizes:s,frequencyMode:u,isGridMode:r,freqHitsValue:d})),minWidth:!r&&"P"!==u&&d?s.freqMinWidth:"max-content",maxWidth:xO({sizes:s,frequencyMode:u,isGridMode:r}),textAlign:"rtl"===l?"left":"right",paddingLeft:"rtl"!==l?"8px":0}),["&.".concat(UR.barContainer)]:{height:"100%",display:"flex",alignItems:"center"},["& .".concat(UR.bar)]:{height:i?"16px":"20px",position:"absolute",zIndex:1,alignSelf:"center",left:4,width:"calc(100% - ".concat(8,"px)"),display:"flex",alignItems:"center","& .bar-filled":{border:"".concat(1,"px solid"),borderColor:"#D9D9D9",transition:"width 0.2s",backgroundColor:"#FAFAFA",height:"100%"}},["& .".concat(UR.barSelected)]:{"& .bar-filled":{opacity:"30%",background:t.palette.background.lighter}},["& .".concat(UR.barWithCheckbox)]:{left:"rtl"===l?4:29,width:"calc(100% - ".concat(33,"px)")},["& .".concat(UR.barSelectedWithCheckbox)]:{"& .bar-filled":{opacity:"30%",background:h.background||"#BFE5D0",borderColor:h.background||"#BFE5D0"}},["& .".concat(UR.excludedTextWithCheckbox)]:{color:"#828282",fontStyle:"italic"}}}));var CO=V.memo(EO);const kO="ListBoxCheckbox",LO={cbIcon:"".concat(kO,"-cbIcon"),cbIconChecked:"".concat(kO,"-cbIconChecked"),cbIconExcluded:"".concat(kO,"-cbIconExcluded"),cbIconAlternative:"".concat(kO,"-cbIconAlternative"),checkbox:"".concat(kO,"-checkbox"),dense:"".concat(kO,"-dense")},RO=_y(RC,{shouldForwardProp:e=>"styles"!==e})((e=>{let{styles:t}=e;return{["& .".concat(LO.cbIcon)]:{borderRadius:3,width:16,height:16,boxShadow:"inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)",backgroundColor:"#f5f8fa",backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.8),hsla(0,0%,100%,0))",display:"flex",alignItems:"center",justifyContent:"center"},["& .".concat(LO.cbIconChecked)]:{borderRadius:3,backgroundColor:t.selections.selected,backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))","&:before":{display:"block",width:16,height:16,backgroundImage:"url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23fff'/%3E%3C/svg%3E\")",content:'""'}},["& .".concat(LO.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:t.selections.excluded},["& .".concat(LO.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:t.selections.alternative},["&.".concat(LO.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(LO.dense)]:{padding:"4px 8px"}}})),OO=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return V.createElement("span",{className:e.cbIcon},n&&V.createElement("span",{className:t&&n?e.cbIconExcluded:""}))};function _O(e){let{onChange:t,checked:n,label:r,dense:o,excluded:a,styles:i,showGray:l=!0,dataN:s}=e;return V.createElement(RO,{edge:"start",onChange:t,checked:n,disableRipple:!0,className:[LO.checkbox,o&&LO.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":r,"data-n":s},name:r,icon:OO(LO,l,a),checkedIcon:V.createElement("span",{className:LO.cbIconChecked}),styles:i})}const IO={radioButton:"".concat("ListBoxRadioButton","-radioButton")},TO=_y(sR,{shouldForwardProp:e=>!["dense","styles"].includes(e)})((e=>{let{checked:t,styles:n,dense:r}=e;return{["&.".concat(IO.radioButton)]:{right:"5px",color:t?n.selections.selected:n.content.color,padding:r?"0px 0px 0px 12px":void 0,backgroundColor:"transparent"}}}));function PO(e){let{onChange:t,checked:n,label:r,dense:o,dataN:a,styles:i}=e;return V.createElement(TO,{checked:n,onChange:t,value:r,name:r,className:IO.radioButton,inputProps:{"data-n":a},disableRipple:!0,size:o?"small":"medium",dense:o,styles:i})}function MO(e){let{label:t,dense:n,showGray:r=!0,checkboxes:o,cell:a,valueTextAlign:i}=e;return V.createElement(gE,{component:"span",variant:"body2",className:mO([UR.labelText,n&&UR.labelDense,r&&YR({cell:a,checkboxes:o})&&UR.excludedTextWithCheckbox]),align:i,dir:"auto"},V.createElement("span",null,t))}function NO(e){let{label:t,color:n,dense:r,showGray:o,checkboxes:a,cell:i,valueTextAlign:l}=e;return"string"==typeof t?V.createElement(MO,{label:t,color:n,dense:r,showGray:o,checkboxes:a,cell:i,valueTextAlign:l}):t}function qO(e){let{onChange:t,label:n,qElemNumber:r,isSelected:o,dense:a,cell:i,isGridCol:l,showGray:s,isSingleSelect:c,checkboxes:u,valueTextAlign:d,styles:p}=e;const f=V.createElement(_O,{onChange:t,label:n,checked:o,dense:a,excluded:QR(i),isGridCol:l,showGray:s,dataN:r,styles:p}),h=V.createElement(PO,{onChange:t,label:n,checked:o,dense:a,dataN:r,styles:p});return V.createElement(uk,{control:c?h:f,className:UR.checkboxLabel,label:V.createElement(NO,{label:n,dense:a,showGray:s,checkboxes:u,cell:i,valueTextAlign:d}),key:r})}function AO(e){let{labels:t,dense:n,showGray:r,checkboxes:o}=e;const a=t.map(((e,t)=>{let[n,r]=e;return V.createElement("span",{id:t,className:r?UR.highlighted:""},n)}));return V.createElement(MO,{label:a,dense:n,showGray:r,checkboxes:o})}function DO(e){let{onChange:t,labels:n,checkboxes:r,dense:o,showGray:a,qElemNumber:i,isSelected:l,cell:s,isGridCol:c,isSingleSelect:u,valueTextAlign:d,styles:p}=e;const f=V.createElement(AO,{labels:n,dense:o,showGray:a,checkboxes:r});return r?V.createElement(qO,{onChange:t,label:f,qElemNumber:i,isSelected:l,dense:o,cell:s,isGridCol:c,showGray:a,isSingleSelect:u,checkboxes:r,valueTextAlign:d,styles:p}):f}var zO=V.memo((function(e){let{onChange:t,label:n,qElemNumber:r,isSelected:o,dense:a,cell:i,isGridCol:l,showGray:s,isSingleSelect:c,checkboxes:u,valueTextAlign:d,styles:p}=e;return u?V.createElement(qO,{onChange:t,label:n,qElemNumber:r,isSelected:o,dense:a,cell:i,isGridCol:l,showGray:s,isSingleSelect:c,checkboxes:u,valueTextAlign:d,styles:p}):V.createElement(MO,{label:n,dense:a,showGray:!0,checkboxes:u,cell:i,valueTextAlign:d})}));function jO(e){let{qFrequency:t,histogram:n,checkboxes:r,isSelected:o,frequencyMax:a}=e;if(!(t&&n&&vO(t)!==uO))return;const i=gO({qFrequency:t,checkboxes:r,frequencyMax:a});return V.createElement(cC,{className:mO([UR.bar,r&&UR.barWithCheckbox,o&&(r?UR.barSelectedWithCheckbox:UR.barSelected)])},V.createElement(cC,{className:"bar-filled",width:i}))}function FO(e){let{cell:t,checkboxes:n,dense:r,showGray:o}=e;const a=vO(null==t?void 0:t.qFrequency);return V.createElement(Sk,{item:!0,style:{display:"flex",alignItems:"center"},className:UR.frequencyCount,"aria-label":a,title:a},V.createElement(gE,{noWrap:!0,color:"inherit",variant:"body2",className:mO([r&&UR.labelDense,UR.labelText,o&&YR({cell:t,checkboxes:n})&&UR.excludedTextWithCheckbox])},a))}function BO(e){let{dataLayout:t,layoutOrder:n,itemPadding:r,fillHeight:o}=e;if("singleColumn"===t)return{height:"100%",width:"100%"};switch(n){case"row":case"column":return{height:o?"100%":"calc(100% - ".concat(r,"px)"),width:"calc(100% - ".concat(2*r,"px)"),position:"absolute",left:4};default:return{}}}const $O=_y(Sk,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction","fillHeight"].includes(e)})((e=>{let{dataLayout:t,layoutOrder:n,itemPadding:r,cellPaddingRight:o,direction:i,fillHeight:l}=e;const s="padding".concat("rtl"===i?"Left":"Right");return{["&.".concat(UR.fieldRoot)]:a(a({},BO({dataLayout:t,layoutOrder:n,itemPadding:r,fillHeight:l})),{},{[s]:o?"8px":void 0})}}));const WO={S:"Object.Listbox.Selected",A:"Object.Listbox.Alternative",O:"Object.Listbox.Optional",XS:"Object.Listbox.SelectedExcluded",L:"Object.Listbox.Locked",X:"Object.Listbox.Excluded",XL:"Object.Listbox.ExcludedLock"};function HO(e){var t;let{layout:n}=e;const{translator:r}=U.useContext(zx),{qStateCounts:o={}}=(null==n||null===(t=n.qListObject)||void 0===t?void 0:t.qDimensionInfo)||{},a=o.qSelected+o.qSelectedExcluded+o.qLocked+o.qLockedExcluded;let i;switch(a){case 0:i="ScreenReader.ZeroSelected";break;case 1:i="ScreenReader.OneSelected";break;default:i="ScreenReader.ManySelected"}const l=r.get(i,[a]);return V.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},l)}const UO=Object.freeze({ENTER:13,ESCAPE:27,SPACE:32,TAB:9,BACKSPACE:8,DELETE:46,ALT:18,CTRL:17,SHIFT:16,ARROW_UP:38,ARROW_DOWN:40,ARROW_LEFT:37,ARROW_RIGHT:39,PAGE_DOWN:34,PAGE_UP:33,HOME:36,END:35,F10:121,A:65,F:70,ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,SUBTRACTION:189,DECIMAL:190,NUMPAD_DECIMAL:110,isArrow:e=>e===UO.ARROW_UP||e===UO.ARROW_DOWN||e===UO.ARROW_LEFT||e===UO.ARROW_RIGHT}),VO=e=>+e.getAttribute("data-n"),GO=e=>{const t=null==e?void 0:e.querySelector(".search input");return null==t||t.focus(),t},KO=e=>{const t=null==e?void 0:e.querySelector(".value.last-focused, .value.selector, .value");return null==t||t.setAttribute("tabIndex",0),null==t||t.focus(),t},ZO=e=>{let{rowIndex:t,columnIndex:n,rowCount:r,columnCount:o,layoutOrder:a,keyCode:i,numCells:l}=e;const s=e=>{let t;return"row"===a?(t=l%o,e<t?r:r-1):(t=l%r,e<o-1?r:t)};let c=t,u=n;if(i===UO.ARROW_DOWN)if(t>=s(n)-1){if(n===o-1)return-1;c=0,u=n+1}else c=t+1;else if(0===t){if(0===n)return-1;c=s(n-1)-1,u=n-1}else c=t-1;if("row"===a)return c*o+u;const d=l%r;return 0===d||c<d?c*o+u:(c-d)*(o-1)+u+d*o};function XO(e){var t,n;let{index:r,rowIndex:o,columnIndex:i,style:l,data:s}=e;const{onChange:c,onClick:u,onMouseDown:d,onMouseUp:p,onMouseEnter:f,onTouchStart:h,onTouchEnd:m,pages:g,isLocked:v,column:b=!1,checkboxes:y=!1,textAlign:x,direction:S,layoutOptions:w={},freqIsAllowed:E,isSingleSelect:C,actions:k,frequencyMax:L="",histogram:R=!1,keyboard:O,showGray:_=!0,showTick:I=!0,columnCount:T=1,rowCount:P=1,dataOffset:M,deducedFrequencyMode:N,focusListItems:q,listCount:A,sizes:D,translator:z,showSearch:j,isModal:F,contentFontStyle:B,styles:$,fillHeight:W}=s,{dense:H=!1,dataLayout:G="singleColumn",layoutOrder:K}=w,{itemPadding:Z}=D;let X,Q;const J={max:null,currentIndex:null};if("number"==typeof o&&"number"==typeof i){"row"===K?(X=o*T+i,J.max=P,J.currentIndex=o):(X=i*P+o,J.max=T,J.currentIndex=i);const e=0;Q=a(a({},l),{},{height:W?"100%":l.height,left:e+(0===i?l.left:Number(l.left)+i*e),top:0===o?l.top:Number(l.top)+o*e})}else X=r,J.max=A,J.currentIndex=r,Q=a({},l);X+=M;const[Y,ee]=U.useState(null);U.useEffect((()=>{null!==Y&&(0===J.currentIndex&&q.first&&(Y.focus(),q.setFirst(!1)),J.currentIndex===J.max-1&&q.last&&(Y.focus(),q.setLast(!1)))}),[Y,q.first,q.last]);const te=U.useCallback(function(e){let{select:t,selectAll:n,onCtrlF:r,confirm:o,cancel:a,setScrollPosition:i,focusListItems:l,keyboard:s,isModal:c,rowCount:u,columnCount:d,rowIndex:p,columnIndex:f,layoutOrder:h}=e;const m=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e===UO.ARROW_LEFT||e===UO.ARROW_RIGHT||"number"!=typeof p||"number"!=typeof f){const e=null==t?void 0:t.parentElement[n?"nextElementSibling":"previousElementSibling"];return null==e?void 0:e.querySelector("[role]")}const r=null==t?void 0:t.parentElement.parentElement,o=null==r?void 0:r.childElementCount;if(o){const n=ZO({rowIndex:p,columnIndex:f,rowCount:u,columnCount:d,layoutOrder:h,keyCode:e,numCells:o}),r=null==t?void 0:t.parentElement.parentElement.children[n];return null==r?void 0:r.querySelector("[role]")}};let g=!1;const v=e=>{g=e};return e=>{let u;const{currentTarget:d,nativeEvent:p}=e,{keyCode:f,shiftKey:h=!1,ctrlKey:b=!1,metaKey:y=!1}=p;switch(f){case UO.TAB:{const e=d.closest(".listbox-container"),t=c();if(d.classList.add("last-focused"),h){GO(e)||(t?s.focusSelection():s.blur(!0));break}t?s.focusSelection():(d.blur(),s.blur());break}case UO.SHIFT:v(!0);break;case UO.SPACE:t([VO(d)],!1,e);break;case UO.ARROW_DOWN:case UO.ARROW_RIGHT:u=m(f,d,!0),h&&u&&(g&&(t([VO(d)],!0),v(!1)),t([VO(u)],!0));break;case UO.ARROW_UP:case UO.ARROW_LEFT:u=m(f,d,!1),h&&u&&(g&&(t([VO(d)],!0),v(!1)),t([VO(u)],!0));break;case UO.ENTER:o();break;case UO.ESCAPE:if(!c())return;a();break;case UO.HOME:if(l.setFirst(!0),b){null==i||i("overflowStart");break}null==i||i("start");break;case UO.END:if(l.setLast(!0),b){null==i||i("overflowEnd");break}null==i||i("end");break;case UO.A:if(b||y){n();break}return;case UO.F:if(b||y){r();break}return;default:return}u&&u.focus(),e.preventDefault(),e.stopPropagation()}}(a(a({},k),{},{focusListItems:q,keyboard:O,isModal:F,rowCount:P,columnCount:T,rowIndex:o,columnIndex:i,layoutOrder:K})),[k,null==O?void 0:O.innerTabStops,P,T,o,i,K]),ne=U.useMemo((()=>function(e){let t,{pages:n,cellIndex:r}=e;const o=n.filter((e=>e.qArea.qTop<=r&&r<e.qArea.qTop+e.qArea.qHeight))[0];if(o){const e=o.qArea;r>=e.qTop&&r<e.qTop+e.qHeight&&([t]=o.qMatrix[r-e.qTop])}return t}({pages:g,cellIndex:X})),[g,X]),re="S"===(null==ne?void 0:ne.qState)||"XS"===(null==ne?void 0:ne.qState)||"L"===(null==ne?void 0:ne.qState)||"XL"===(null==ne?void 0:ne.qState),oe=U.useMemo((()=>eO({column:b,histogram:R,checkboxes:y,cell:ne,showGray:_})),[null==ne?void 0:ne.qState,R,H,y]),ae=U.useCallback((e=>{e.preventDefault()}),[y]),ie=U.useMemo((()=>ne&&function(e){let{direction:t,cell:n,textAlign:r}=e;const o=!["NaN",void 0].includes(null==n?void 0:n.qNum);let a;return a=!r||r.auto?o?"rtl"===t?"left":"right":{rtl:"right",ltr:"left"}[t]:(null==r?void 0:r.align)||"left",["left","center","right"].includes(a)?a:"left"}({direction:S,cell:ne,textAlign:x})),[S,ne,x]);if(!ne)return null;const le="grid"===G&&"column"===K,se=null!==(t=null==ne?void 0:ne.qText)&&void 0!==t?t:"";let ce;if(null!==(n=ne.qHighlightRanges)&&void 0!==n&&null!==(n=n.qRanges)&&void 0!==n&&n.length){const e=ne.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[];ce=function(e,t){if(!t.length)return[];const n=t.reduce(((n,r,o)=>{const a=0===o?0:t[o-1].qCharPos+t[o-1].qCharCount;n.push(...function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const{qCharPos:r,qCharCount:o}=t,a=[];return r>n&&a.push([e.slice(n,r),!1]),a.push([e.slice(r,r+o),!0]),a}(e,r,a));const i=o===t.length-1,l=t[o].qCharPos+t[o].qCharCount;return i&&l<e.length&&n.push([e.slice(l),!1]),n}),[]);return n}(se,e)}const ue={alignItems:"center",display:"flex",fontSize:"8px"},de="rtl"===S,pe={display:"flex",alignItems:"center",flexGrow:1,paddingLeft:de?8:y?0:void 0,paddingRight:y?0:de?8:0,justifyContent:ie,textAlign:ie},fe=0===r,he=re&&v,me=!y&&re&&!v,ge=!y&&I,ve=y||!I,be=function(e){let{translator:t,label:n,qState:r,isSelected:o,currentIndex:a,maxIndex:i,showSearch:l}=e;const s=WO[r],c=t.get(s),u=[];if(o){const e=l?"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu":"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",n=t.get(e);u.push(n)}const d="".concat(n," ").concat(c),p=t.get("CurrentSelections.Of",[a+1,i+1]);return u.unshift(d,p),u.join(". ").trim()}({translator:z,label:se,qState:ne.qState,currentIndex:J.currentIndex,maxIndex:J.max,showSearch:j}),ye=!de&&"right"===ie||de&&"left"===ie;return V.createElement(CO,{className:UR.barContainer,checkboxes:y,style:Q,styles:$,isGridCol:le,isGridMode:"grid"===G,dense:H,direction:S,sizes:D,frequencyMode:N,freqHitsValue:ye,contentFontStyle:B,"data-testid":"listbox.item"},V.createElement($O,{role:"row","aria-label":be,"aria-selected":re,"aria-setsize":J.max,"aria-rowindex":J.currentIndex,ref:ee,container:!0,dataLayout:G,cellPaddingRight:ve,layoutOrder:K,itemPadding:Z,gap:0,className:mO(["value",...oe]),classes:{root:UR.fieldRoot},onClick:u,onMouseDown:d,onMouseUp:p,onMouseEnter:f,onKeyDown:te,onTouchStart:h,onTouchEnd:m,onContextMenu:ae,tabIndex:fe&&O.innerTabStops?0:-1,"data-n":null==ne?void 0:ne.qElemNumber,direction:S,fillHeight:W},(null==ne?void 0:ne.qFrequency)&&V.createElement(jO,{qFrequency:null==ne?void 0:ne.qFrequency,histogram:R,checkboxes:y,isSelected:re,frequencyMax:L}),V.createElement(Sk,{item:!0,style:pe,className:mO([UR.cell,UR.selectedCell]),title:"".concat(se)},ce?V.createElement(DO,{onChange:c,labels:ce,checkboxes:y,dense:H,showGray:_,qElemNumber:ne.qElemNumber,isSelected:re,cell:ne,isGridCol:le,isSingleSelect:C,valueTextAlign:ie,styles:$}):V.createElement(zO,{onChange:c,label:se,qElemNumber:ne.qElemNumber,isSelected:re,dense:H,cell:ne,isGridCol:le,showGray:_,isSingleSelect:C,checkboxes:y,valueTextAlign:ie,styles:$})),E&&V.createElement(FO,{cell:ne,checkboxes:y,dense:H,showGray:_}),ge&&V.createElement(Sk,{item:!0,className:UR.icon},he&&V.createElement(NR,{style:ue,size:"small"}),me&&V.createElement(XR,{style:ue,size:"small"}))))}var QO=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function JO(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||QO(r)&&QO(o)))return!1;var r,o;return!0}function YO(e,t){var n;void 0===t&&(t=JO);var r,o=[],a=!1;return function(){for(var i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return a&&n===this&&t(i,o)||(r=e.apply(this,i),a=!0,n=this,o=i),r}}var e_="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function t_(e){cancelAnimationFrame(e.id)}function n_(e,t){var n=e_();var r={id:requestAnimationFrame((function o(){e_()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var r_=-1;function o_(e){if(void 0===e&&(e=!1),-1===r_||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),r_=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return r_}var a_=null;function i_(e){if(void 0===e&&(e=!1),null===a_||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?a_="positive-descending":(t.scrollLeft=1,a_=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),a_}return a_}var l_=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function s_(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,a=e.getColumnWidth,i=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,u=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=h(r.props,Gy(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:Gy(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=YO((function(e,t,n,o,a,i,l,s){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:a,visibleColumnStopIndex:i,visibleRowStartIndex:l,visibleRowStopIndex:s})})),r._callOnScroll=void 0,r._callOnScroll=YO((function(e,t,n,o,a){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:a})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,i=r.props,l=i.columnWidth,s=i.direction,c=i.rowHeight,p=r._getItemStyleCache(m&&l,m&&s,m&&c),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=n(r.props,t,r._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(r.props,e,r._instanceProps),height:u(r.props,e,r._instanceProps),width:a(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=YO((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,a=t.scrollLeft,i=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===a&&e.scrollTop===i)return null;var t=r.props.direction,c=a;if("rtl"===t)switch(i_()){case"negative":c=-a;break;case"positive-descending":c=s-o-a}c=Math.max(0,Math.min(c,s-o));var u=Math.max(0,Math.min(i,l-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<a?"forward":"backward",scrollLeft:c,scrollTop:u,verticalScrollDirection:e.scrollTop<i?"forward":"backward",scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&t_(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=n_(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}Ay(t,e),t.getDerivedStateFromProps=function(e,t){return c_(e,t),g(e),null};var v=t.prototype;return v.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},v.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,a=this.props,u=a.columnCount,d=a.height,p=a.rowCount,f=a.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,v=o_();void 0!==r&&(r=Math.max(0,Math.min(r,u-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var b=i(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?v:0,x=b>d?v:0;this.scrollTo({scrollLeft:void 0!==r?s(this.props,r,n,m,this._instanceProps,x):m,scrollTop:void 0!==o?c(this.props,o,n,g,this._instanceProps,y):g})},v.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},v.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(i_()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var a=o.clientWidth,i=o.scrollWidth;o.scrollLeft=i-a-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},v.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&t_(this._resetIsScrollingTimeoutId)},v.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,a=e.height,s=e.innerRef,c=e.innerElementType,u=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?l_:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,v=e.style,b=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),w=S[0],E=S[1],C=this._getVerticalRangeToRender(),k=C[0],L=C[1],R=[];if(r>0&&g)for(var O=k;O<=L;O++)for(var _=w;_<=E;_++)R.push(U.createElement(t,{columnIndex:_,data:d,isScrolling:b?x:void 0,key:f({columnIndex:_,data:d,rowIndex:O}),rowIndex:O,style:this._getItemStyle(O,_)}));var I=i(this.props,this._instanceProps),T=l(this.props,this._instanceProps);return U.createElement(h||m||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:My({position:"relative",height:a,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},U.createElement(c||u||"div",{children:R,ref:s,style:{height:I,pointerEvents:x?"none":void 0,width:T}}))},v._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var a=this._getHorizontalRangeToRender(),i=a[0],l=a[1],s=a[2],c=a[3],u=this._getVerticalRangeToRender(),d=u[0],p=u[1],f=u[2],h=u[3];this._callOnItemsRendered(i,l,d,p,s,c,f,h)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,v=m.scrollLeft,b=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(v,b,g,x,y)}},v._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,a=e.overscanColumnsCount,i=e.overscanCount,l=e.rowCount,s=this.state,c=s.horizontalScrollDirection,u=s.isScrolling,d=s.scrollLeft,p=n||a||i||1;if(0===t||0===l)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=u&&"backward"!==c?1:Math.max(1,p),g=u&&"forward"!==c?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},v._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,a=e.rowCount,i=this.state,l=i.isScrolling,s=i.verticalScrollDirection,c=i.scrollTop,u=r||o||n||1;if(0===t||0===a)return[0,0,0,0];var d=p(this.props,c,this._instanceProps),h=f(this.props,d,c,this._instanceProps),m=l&&"backward"!==s?1:Math.max(1,u),g=l&&"forward"!==s?1:Math.max(1,u);return[Math.max(0,d-m),Math.max(0,Math.min(a-1,h+g)),d,h]},t}(U.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var c_=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},u_=function(e,t){return e};function d_(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,a=e.getOffsetForIndexAndAlignment,i=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,u=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=s(r.props,Gy(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Gy(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=YO((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=YO((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,a=r.props,i=a.direction,l=a.itemSize,s=a.layout,u=r._getItemStyleCache(c&&l,c&&s,c&&i);if(u.hasOwnProperty(e))t=u[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===i||"horizontal"===s,h="rtl"===i,m=f?d:0;u[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=YO((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,a=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,i=o;if("rtl"===t)switch(i_()){case"negative":i=-o;break;case"positive-descending":i=a-n-o}return i=Math.max(0,Math.min(i,a-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<i?"forward":"backward",scrollOffset:i,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,a=t.scrollTop;r.setState((function(e){if(e.scrollOffset===a)return null;var t=Math.max(0,Math.min(a,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&t_(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=n_(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}Ay(t,e),t.getDerivedStateFromProps=function(e,t){return p_(e,t),u(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,i=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?o_():0:s.scrollHeight>s.clientHeight?o_():0}this.scrollTo(a(this.props,e,t,i,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var a=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(i_()){case"negative":a.scrollLeft=-o;break;case"positive-ascending":a.scrollLeft=o;break;default:var i=a.clientWidth,l=a.scrollWidth;a.scrollLeft=l-i-o}else a.scrollLeft=o;else a.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&t_(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,a=e.height,i=e.innerRef,l=e.innerElementType,s=e.innerTagName,c=e.itemCount,u=e.itemData,d=e.itemKey,p=void 0===d?u_:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,v=e.useIsScrolling,b=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,w=this._getRangeToRender(),E=w[0],C=w[1],k=[];if(c>0)for(var L=E;L<=C;L++)k.push(U.createElement(t,{data:u,key:p(L,u),index:L,isScrolling:v?y:void 0,style:this._getItemStyle(L)}));var R=r(this.props,this._instanceProps);return U.createElement(h||m||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:My({position:"relative",height:a,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},U.createElement(l||s||"div",{children:k,ref:i,style:{height:x?"100%":R,pointerEvents:y?"none":void 0,width:x?R:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var a=this.state,i=a.scrollDirection,l=a.scrollOffset,s=a.scrollUpdateWasRequested;this._callOnScroll(i,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,a=r.scrollDirection,s=r.scrollOffset;if(0===t)return[0,0,0,0];var c=i(this.props,s,this._instanceProps),u=l(this.props,c,s,this._instanceProps),d=o&&"backward"!==a?1:Math.max(1,n),p=o&&"forward"!==a?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+p)),c,u]},t}(U.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var p_=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},f_=s_({getColumnOffset:function(e,t){return t*e.columnWidth},getColumnWidth:function(e,t){return e.columnWidth},getRowOffset:function(e,t){return t*e.rowHeight},getRowHeight:function(e,t){return e.rowHeight},getEstimatedTotalHeight:function(e){var t=e.rowCount;return e.rowHeight*t},getEstimatedTotalWidth:function(e){var t=e.columnCount;return e.columnWidth*t},getOffsetForColumnAndAlignment:function(e,t,n,r,o,a){var i=e.columnCount,l=e.columnWidth,s=e.width,c=Math.max(0,i*l-s),u=Math.min(c,t*l),d=Math.max(0,t*l-s+a+l);switch("smart"===n&&(n=r>=d-s&&r<=u+s?"auto":"center"),n){case"start":return u;case"end":return d;case"center":var p=Math.round(d+(u-d)/2);return p<Math.ceil(s/2)?0:p>c+Math.floor(s/2)?c:p;default:return r>=d&&r<=u?r:d>u||r<d?d:u}},getOffsetForRowAndAlignment:function(e,t,n,r,o,a){var i=e.rowHeight,l=e.height,s=e.rowCount,c=Math.max(0,s*i-l),u=Math.min(c,t*i),d=Math.max(0,t*i-l+a+i);switch("smart"===n&&(n=r>=d-l&&r<=u+l?"auto":"center"),n){case"start":return u;case"end":return d;case"center":var p=Math.round(d+(u-d)/2);return p<Math.ceil(l/2)?0:p>c+Math.floor(l/2)?c:p;default:return r>=d&&r<=u?r:d>u||r<d?d:u}},getColumnStartIndexForOffset:function(e,t){var n=e.columnWidth,r=e.columnCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getColumnStopIndexForStartIndex:function(e,t,n){var r=e.columnWidth,o=e.columnCount,a=e.width,i=t*r,l=Math.ceil((a+n-i)/r);return Math.max(0,Math.min(o-1,t+l-1))},getRowStartIndexForOffset:function(e,t){var n=e.rowHeight,r=e.rowCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getRowStopIndexForStartIndex:function(e,t,n){var r=e.rowHeight,o=e.rowCount,a=e.height,i=t*r,l=Math.ceil((a+n-i)/r);return Math.max(0,Math.min(o-1,t+l-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}}),h_=d_({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,r,o,a){var i=e.direction,l=e.height,s=e.itemCount,c=e.itemSize,u=e.layout,d=e.width,p="horizontal"===i||"horizontal"===u?d:l,f=Math.max(0,s*c-p),h=Math.min(f,t*c),m=Math.max(0,t*c-p+c+a);switch("smart"===n&&(n=r>=m-p&&r<=h+p?"auto":"center"),n){case"start":return h;case"end":return m;case"center":var g=Math.round(m+(h-m)/2);return g<Math.ceil(p/2)?0:g>f+Math.floor(p/2)?f:g;default:return r>=m&&r<=h?r:r<m?m:h}},getStartIndexForOffset:function(e,t){var n=e.itemCount,r=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/r)))},getStopIndexForStartIndex:function(e,t,n){var r=e.direction,o=e.height,a=e.itemCount,i=e.itemSize,l=e.layout,s=e.width,c=t*i,u="horizontal"===r||"horizontal"===l?s:o,d=Math.ceil((u+n-c)/i);return Math.max(0,Math.min(a-1,t+d-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const m_="#BBB",g_="#f1f1f1",v_={styledScrollbars:"".concat("ListBox","-styledScrollbars")};const b_=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStopIndex)||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex,y_=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStartIndex)||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex,x_=(e,t,n,r)=>e===t*n+r+n;function S_(e){let{renderProps:t,layoutOptions:n,maxCount:r,columnCount:o,rowCount:a,overflowDisclaimer:i,qCardinal:l,dataOffset:s}=e;const c="column"===(null==n?void 0:n.layoutOrder)&&"singleColumn"!==n.dataLayout,u=b_(t,c),d=c?r.column:r.row,p=(c?o:a)>=d,f=x_(l,u,c?a:o,s),h=!!s&&y_(t,c),m=p&&!f&&u>=d-1||h||i.state.show;i.set(m)}const{StyledFixedSizeList:w_,StyledFixedSizeGrid:E_}=function(){const e=e=>({scrollbarColor:"".concat(m_," ").concat(g_),overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:g_},"&::-webkit-scrollbar-thumb":{backgroundColor:m_,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:Kh(h_,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(v_.styledScrollbars)]:e(n)}})),StyledFixedSizeGrid:Kh(f_,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(v_.styledScrollbars)]:e(n)}}))}}();const C_=(e,t)=>{const n=(()=>{const e=document.createDocumentFragment(),t=document.createElement("canvas");return e.appendChild(t),t.getContext("2d")})();if(n.font=t,Array.isArray(e))return Math.max(...e.map((e=>n.measureText(e).width)));const r=n.measureText(e);return Math.ceil(r.width||0)},k_=e=>{const t=U.useMemo((()=>"text"in e?e:{}),[e]);return U.useMemo((()=>C_(t.text,t.font||"12px Source Sans Pro")),[t.text,t.font])};function L_(e){if(!e)return"";const t="number"==typeof e?e:e.qListObject.qDimensionInfo.qApprMaxGlyphCount;return Array(t).fill("M").join("")}function R_(e){let{isGridMode:t,dense:n}=e;let r=n?fO:t?dO:pO;return t&&(r+=hO),r}function O_(e){let{layout:t,width:n,height:r,listCount:o,count:a,freqIsAllowed:i,checkboxes:l,styles:s}=e;const{layoutOptions:c={}}=t||{},{layoutOrder:u,maxVisibleRows:d={},maxVisibleColumns:p,dense:f,dataLayout:h}=c,{fontSize:m="12px",fontFamily:g="Source sans pro"}=(null==s?void 0:s.content)||{},v="".concat(m," ").concat(g),b=k_({text:L_(t),font:v}),y=k_({text:L_(5),font:v}),x=k_({text:L_(8),font:v}),S=i?y:0,w=l?cO:0;let E=sO+S+w;!l&&E>=aO&&(E+=cO);let C,k,L,R,O=b+18+S+w;!l&&O>=aO&&(O+=cO),O=Math.min(lO,Math.max(O,E));const _=R_({isGridMode:"grid"===h,dense:f}),I=null!=r?r:8*_;if(u){let e=n;"row"===u?(C={overflowX:"hidden"},e+=2*hO,({rowCount:R,columnWidth:L,columnCount:k}=function(e){let{maxVisibleColumns:t,listCount:n,containerWidth:r,columnAutoWidth:o,itemMinWidth:a}=e;const i=(null==t?void 0:t.maxColumns)||3,l=r-iO;let s;const c=Math.min(n,Math.max(1,Math.round(l/Math.max(a,o))));s=!1!==(null==t?void 0:t.auto)?c:Math.min(n,i,c),s=Math.max(s,1);const u=l/s;return{rowCount:Math.ceil(n/s),columnWidth:u,columnCount:s}}({maxVisibleColumns:p,listCount:o,containerWidth:e,columnAutoWidth:O,itemMinWidth:E}))):(C={overflowY:"hidden"},({rowCount:R,columnWidth:L,columnCount:k}=function(e){let t,{maxVisibleRows:n,itemHeight:r,listCount:o,listHeight:a,columnAutoWidth:i,containerWidth:l,itemMinWidth:s}=e;const c=(null==n?void 0:n.maxRows)||3,u=Math.floor(a/r);t=!1!==n.auto?u:Math.min(o,c,u),t=Math.max(t,1);const d=Math.ceil(o/t);return{columnWidth:Math.max(i,l/d,s),columnCount:d,rowCount:t}}({maxVisibleRows:d,itemHeight:_,listCount:o,listHeight:I,columnAutoWidth:O,containerWidth:e,itemMinWidth:E})))}k=("singleColumn"===h?1:k)||1,R=("singleColumn"===h?a:R)||o;const T=c.dense?838e3:577e3;R=Math.min(R,T);const P=Math.floor(3355e4/L);k=Math.min(k,P)||1;const M=R*k,N=Math.min(o,M);return{columnCount:k,columnWidth:L,rowCount:R,overflowStyling:C,itemHeight:_,listHeight:I,listWidth:n,scrollBarWidth:iO,count:a,listCount:N,maxCount:{row:T,column:P},itemPadding:hO,textWidth:b,freqMinWidth:y,freqMaxWidth:x}}const __=e=>{let{pages:t=[],minimumBatchSize:n,count:r}=e;const o=t.some((e=>e.qArea.qHeight<n)),a=Math.max(...t.map((e=>e.qArea.qTop+e.qArea.qHeight)));return o?a:r};const[I_,T_]=Bx({});function P_(e){const t="".concat(e.id),[n]=I_();return{setStoreValue:(e,r)=>n.set("".concat(t,"/").concat(e),r),getStoreValue:e=>n.get("".concat(t,"/").concat(e))}}const M_=_y(gE,{shouldForwardProp:e=>!["width","dense"].includes(e)})((e=>{let{width:t,dense:n}=e;return a({minWidth:"".concat(t,"px"),textAlign:"center",fontSize:"".concat(n?"12px":"14px")},n&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:t})}));function N_(e){let{width:t,text:n,dense:r,tooltip:o}=e;const{translator:a}=U.useContext(zx);return V.createElement(xR,{title:o?a.get(n):""},V.createElement(M_,{width:t,dense:r,component:"div",variant:"body1",py:"12px"},a.get(n)))}var q_={},A_={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(A_);var D_,z_=A_.exports,j_={},F_=r(Xx);var B_=z_;Object.defineProperty(q_,"__esModule",{value:!0});var $_=q_.default=void 0,W_=B_((D_||(D_=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=F_}(j_)),j_)),H_=om;$_=q_.default=(0,W_.default)((0,H_.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");const U_=_y(rS)((e=>{let{theme:t,left:n}=e;return{position:"absolute",bottom:"12px",display:"flex",border:"1px solid ".concat(t.palette.divider),width:"calc(100% - 11px)",left:n}})),V_=_y("div")((()=>({paddingLeft:"6px",flexGrow:1}))),G_=_y("div")((e=>{let{dense:t}=e;return{display:"flex",alignItems:"".concat(t?"center":"flex-start")}})),K_=_y($_)((()=>({fontSize:"14px"})));function Z_(e){let{text:t,dismiss:n,dense:r,parentWidth:o=0}=e;const a="function"==typeof n,i=r?370:282,l=Math.max(o/2-i/2,0),s=Math.min(i,o)-42,c=r&&o<i;return V.createElement(U_,{left:l,style:{maxWidth:i}},V.createElement(V_,null,V.createElement(N_,{text:t,dense:r,width:s,tooltip:c})),V.createElement(G_,{dense:r},a&&V.createElement(cE,{"aria-label":"close",onClick:()=>n()},V.createElement(K_,null))))}const X_=(e,t)=>e.qListObject.qDimensionInfo.qCardinal-t;const Q_=80;function J_(e){let{itemWidth:t,layout:n,frequencyMode:r}=e;const o=t>Q_,{frequencyEnabled:a=!1}=(null==n?void 0:n.qListObject)||{},i=!["N",void 0].includes(r);return!(!o||!i&&!a)}const Y_=e=>{const t=(e=>e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)?e:"[".concat(e.replace(/\]/g,"]]"),"]"):e)(e);return"Max(AGGR(Count(".concat(t,"), ").concat(t,"))")},eI=(e,t)=>{const n=(e=>"fetch"===(null==e?void 0:e.frequencyMax))(t),[r,o]=U.useState(),[a,i]=U.useState(n);return U.useEffect((()=>{if(!n)return;(async()=>{const n=await(async(e,t)=>{const n=e.qListObject.qDimensionInfo,r=n.qGroupFieldDefs[n.qGroupPos],o=Y_(r);return(await t.evaluateEx(o)).qNumber})(t,e);o(n),i(!1)})()}),[n&&t]),{frequencyMax:n?r:null==t?void 0:t.frequencyMax,awaitingFrequencyMax:a}};const tI=["isLoadingData"],nI=100,rI=_y("div")((()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}})));function oI(e){var t,n;let{model:r,app:o,constraints:i,layout:l,selections:u,selectionState:d,direction:p,checkboxes:f,height:h,width:m,frequencyMode:g,update:v,fetchStart:b,postProcessPages:y,calculatePagesHeight:x=!1,keyboard:S={},showGray:w=!0,scrollState:E,keyScroll:C={state:{},reset:()=>{}},currentScrollIndex:k={set:()=>{}},renderedCallback:L,onCtrlF:R,showSearch:O,isModal:_,styles:I}=e;const{translator:T}=U.useContext(zx),[P,M]=U.useState(!1),N=!(!l||!l.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:q=f,histogram:A}=null!=l?l:{},[D,z]=U.useState(""),j=U.useRef(null),F=U.useRef({queue:[],validPages:!1,dataOffset:0}),B=U.useRef({pages:[]}),{frequencyMax:$,awaitingFrequencyMax:W}=eI(o,l),H=function(e){let{local:t,loaderRef:n,model:r,fetchStart:o,scrollTimeout:a,postProcessPages:i,listData:l}=e;const[s,c]=U.useState(!1),[u,d]=U.useState([]);let[p]=U.useState(0);const f=(e,s)=>{const u=t.current.dataOffset;t.current.queue.push({start:e+u,stop:s+u});const f=!!n.current&&n.current._listRef&&n.current._listRef.state.isScrolling;return t.current.queue.length>10&&t.current.queue.shift(),clearTimeout(t.current.timeout),c(!0),new Promise((e=>{t.current.timeout=setTimeout((()=>{const n=t.current.queue.slice(-1)[0],a=r.getListObjectData("/qListObjectDef",[{qTop:n.start>p?n.start-p:0,qHeight:p,qLeft:0,qWidth:1},{qTop:n.start,qHeight:p,qLeft:0,qWidth:1}]).then((n=>{const r=i?i(n):n;t.current.validPages=!0,l.current.pages=r,d(r),c(!1),e()}));o&&o(a)}),f?a:0)}))};return{loadMoreItems:{with(e){let{minimumBatchSize:t}=e;return t&&(p=t),f}},pages:u,isLoading:s}}({local:F,loaderRef:j,model:r,fetchStart:b,scrollTimeout:0,postProcessPages:y,listData:B}),G=c(H,tI),{getStoreValue:K,setStoreValue:Z}=P_(r),X=U.useCallback(G.loadMoreItems,[l]),[Q,J]=U.useState({show:!1,dismissed:!1}),[Y,ee]=U.useState([]);null!=G&&G.pages&&d.update({setPages:ee,pages:G.pages,isSingleSelect:N,layout:l});const te=null==l?void 0:l.qListObject.qDimensionInfo.qCardinal;(null!=G&&G.pages.length&&!W||0===te)&&(null==L||L());const ne=U.useCallback((e=>{if(null==Y||!Y.length||!F.current.validPages)return!1;F.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=Y.filter((e=>t(e)))[0];return n&&t(n)}),[l,Y]),{interactionEvents:re,select:oe}=KR({selectionState:d,selections:u,checkboxes:q,doc:document,loaderRef:j}),{layoutOptions:ae={}}=l||{};let ie=!0;ae.dataLayout&&(ie="singleColumn"===ae.dataLayout||"row"===(null==ae?void 0:ae.layoutOrder));const le="grid"===(null==ae?void 0:ae.dataLayout),se=e=>{const t=a({},ie?{rowIndex:e}:{columnIndex:e}),n=le?t:e;j.current._listRef.scrollToItem(n)},ce=()=>{if(F.current.queue=[],F.current.validPages=!1,j.current){j.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===C.state.scrollPosition;if(l&&l.qSelectionInfo.qInSelections||e)return void(e&&C.reset());F.current.dataOffset=0,se(0)}};v&&v.call(null,ce),U.useEffect((()=>{E&&!P&&j.current&&(j.current._listRef.scrollToItem(E.initScrollPos),M(!0))}),[j.current]),U.useEffect((()=>{ce()}),[l,F.current.dataOffset]);let ue=nI;const de="grid"!==ae.dataLayout,pe=null==l||null===(t=l.qListObject.qSize)||void 0===t?void 0:t.qcy,fe=function(e){let{pages:t,minimumBatchSize:n,count:r,calculatePagesHeight:o=!1}=e;return(null!=t&&t.length&&o?__({pages:t,minimumBatchSize:n,count:r}):r)||0}({pages:Y,minimumBatchSize:ue,count:pe,calculatePagesHeight:x,layoutOptions:ae,model:r});let he=J_({itemWidth:m,layout:l,frequencyMode:g});const me=function(e){return e.some((e=>{let{qMatrix:t}=e;return t.some((e=>{var t;let[n]=e;return!(null===(t=n.qFrequency)||void 0===t||!t.match("%"))}))}))?"P":"-"}(Y),ge=O_({layout:l,width:m,height:h,listCount:fe,count:pe,freqIsAllowed:he,checkboxes:q,styles:I});ge.columnWidth&&(he=J_({itemWidth:ge.columnWidth,layout:l,frequencyMode:g}));const{listCount:ve}=ge;Z("listCount",ve);const be=K("inputText");U.useEffect((()=>{if(be){const e=function(e){let t;switch(e){case 0:t="Listbox.NoMatchesForYourTerms";break;case 1:t="ScreenReader.OneSearchResult";break;default:t="ScreenReader.ManySearchResults"}return t}(ve),t=T.get(e,[ve]);z(t)}}),[be,ve]);const ye=e=>{const{scrollIndex:t,offset:n,triggerRerender:r}=function(e){let t,{position:n,isRow:r,sizes:o,layout:a,offset:i}=e,l=!1,s=null!=i?i:0;switch(n){case"start":t=0;break;case"end":t=r?o.rowCount:o.columnCount;break;case"overflowStart":s=0,t=0,l=!0;break;case"overflowEnd":s=X_(a,o.listCount),t=a.qListObject.qDimensionInfo.qCardinal,l=!0}return{scrollIndex:t,offset:s,triggerRerender:l}}({position:e,isRow:ie,sizes:ge,layout:l,offset:F.current.dataOffset});F.current.dataOffset=n,r&&d.triggerStateChanged(),se(t)};U.useEffect((()=>{const e=C.state;e.up?se(k.state.start-e.up):e.down?se(k.state.stop+e.down):e.scrollPosition&&ye(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&C.reset()}),[C.state.up,C.state.down,C.state.scrollPosition]);const{textAlign:xe}=(null==l?void 0:l.qListObject.qDimensionInfo)||{},[Se,we]=U.useState({first:!1,last:!1}),{List:Ee,Grid:Ce}=function(e){let{layout:t,width:n,checkboxes:r,local:o,isVertical:i,pages:l,selectionState:c,interactionEvents:u,deducedFrequencyMode:d,histogram:p,isSingleSelect:f,select:h,selectAll:m,onCtrlF:g,textAlign:v,selections:b,keyboard:y,showGray:x,scrollState:S,direction:w,sizes:E,listCount:C,overflowDisclaimer:k,setScrollPosition:L,focusListItems:R,setCurrentScrollIndex:O,constraints:_,frequencyMax:I,freqIsAllowed:T,translator:P,showSearch:M,isModal:N,styles:q}=e;const{layoutOptions:A={}}=t||{},{columnWidth:D,listHeight:z,itemHeight:j,rowCount:F,columnCount:B}=E||{},$=("grid"===A.dataLayout?D:n)>aO,W={direction:"rtl"===w?"rtl":"ltr",useIsScrolling:!0,className:v_.styledScrollbars},H=null==t?void 0:t.qListObject.qDimensionInfo.qLocked,U=z<=j,G=a(a({isLocked:H,column:!i,pages:l},H||c.selectDisabled()?{}:u),{},{checkboxes:r,layoutOptions:A,deducedFrequencyMode:d,freqIsAllowed:T,isSingleSelect:f,textAlign:v,sizes:E,actions:{select:h,confirm:()=>null==b?void 0:b.confirm.call(b),cancel:()=>null==b?void 0:b.cancel.call(b),setScrollPosition:L,selectAll:m,onCtrlF:g},frequencyMax:I,histogram:p,keyboard:y,showGray:x,showTick:$,dataOffset:o.current.dataOffset,focusListItems:R,direction:w,translator:P,showSearch:M,isModal:N,styles:q,fillHeight:U});return{List:e=>{let{onItemsRendered:r,ref:i}=e;return o.current.listRef=i,V.createElement(w_,s({},W,{dataTestid:"fixed-size-list",scrollDisabled:null==_?void 0:_.active,height:z,width:n,itemCount:C,itemData:a(a({},G),{},{listCount:C}),itemSize:j,onItemsRendered:e=>{var n;O({start:e.visibleStartIndex,stop:e.visibleStopIndex}),S&&S.setScrollPos(e.visibleStopIndex),S_({renderProps:e,layoutOptions:A,maxCount:E.maxCount,columnCount:B,rowCount:F,overflowDisclaimer:k,qCardinal:null==t||null===(n=t.qListObject)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.qCardinal,dataOffset:o.current.dataOffset}),r(a({},e))},ref:i}),XO)},Grid:e=>{let{onItemsRendered:r,ref:i}=e;const{overflowStyling:l,scrollBarWidth:c}=E,{layoutOrder:u}=A||{},d=Math.min(z,F*j+c);return o.current.listRef=i,V.createElement(E_,s({},W,{dataTestid:"fixed-size-grid",scrollDisabled:null==_?void 0:_.active,height:d,width:n,columnCount:B,columnWidth:D,rowCount:F,rowHeight:j,style:a({},l),itemData:a(a({},G),{},{column:void 0,columnCount:B,rowCount:F}),onItemsRendered:e=>{var n;const a="row"===u;O({start:a?e.visibleRowStartIndex:e.visibleColumnStartIndex,stop:a?e.visibleRowStopIndex:e.visibleColumnStopIndex});const i=function(e){const{renderProps:t,scrollState:n,layoutOrder:r,rowCount:o,columnCount:a}=e,{overscanRowStartIndex:i,overscanRowStopIndex:l,overscanColumnStartIndex:s,overscanColumnStopIndex:c,visibleStopIndex:u}=t;let d,p,f,h;return n&&n.setScrollPos(u),"column"===r?(d=s*o,p=i,f=c*o,h=l):(d=s,p=i*a,f=c,h=l*a),{visibleStartIndex:d+p,visibleStopIndex:f+h}}({renderProps:e,scrollState:S,layoutOrder:u,rowCount:F,columnCount:B});S_({renderProps:e,layoutOptions:A,maxCount:E.maxCount,columnCount:B,rowCount:F,overflowDisclaimer:k,qCardinal:null==t||null===(n=t.qListObject)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.qCardinal,dataOffset:o.current.dataOffset}),r(i)},ref:i}),XO)}}}({direction:p,layout:l,height:h,width:m,checkboxes:q,deducedFrequencyMode:me,histogram:A,keyboard:S,showGray:w,interactionEvents:re,select:oe,selectAll:()=>{d.clearItemStates(!1),r.selectListObjectAll("/qListObjectDef")},onCtrlF:R,textAlign:xe,isVertical:de,pages:Y,selectionState:d,isSingleSelect:N,selections:u,scrollState:E,local:F,sizes:ge,listCount:ve,overflowDisclaimer:{state:Q,set:e=>J((t=>a(a({},t),{},{show:e})))},setScrollPosition:ye,focusListItems:{first:Se.first,setFirst:e=>we((t=>a(a({},t),{},{first:e}))),last:Se.last,setLast:e=>we((t=>a(a({},t),{},{last:e})))},setCurrentScrollIndex:k.set,constraints:i,frequencyMax:$,freqIsAllowed:he,translator:T,showSearch:O,isModal:_,styles:I}),{columnWidth:ke,listHeight:Le,itemHeight:Re}=ge||{};return de||(ue=function(e){let{width:t,columnWidth:n,listHeight:r,itemHeight:o}=e;return Math.ceil(t/n)*Math.ceil(r/o)*2}({width:m,columnWidth:ke,listHeight:Le,itemHeight:Re})),V.createElement(rI,null,V.createElement(HO,{className:"screenReaderOnly",layout:l}),V.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},D),!ve&&te>0&&V.createElement(N_,{width:m,text:"Listbox.NoMatchesForYourTerms"}),V.createElement(jR,{isItemLoaded:ne,itemCount:ve||1,loadMoreItems:X.with({minimumBatchSize:ue}),threshold:0,minimumBatchSize:ue,ref:j,role:"grid"},de?Ee:Ce),Q.show&&!Q.dismissed&&V.createElement(Z_,{text:"Listbox.ItemsOverflow",dismiss:()=>J((e=>a(a({},e),{},{dismissed:!0}))),parentWidth:null==j||null===(n=j.current)||void 0===n||null===(n=n._listRef)||void 0===n||null===(n=n.props)||void 0===n?void 0:n.width,dense:null==ae?void 0:ae.dense}))}const aI=e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M15.4,9 C15.8,9 16,9.3 16,9.6 L16,15.4 C16,15.7 15.8,16 15.4,16 L9.6,16 C9.3,16 9,15.8 9,15.4 L9,9.6 C9,9.3 9.3,9 9.6,9 L15.4,9 Z M15,10 L10,10 L10,15 L15,15 L15,10 Z M6.5,0 C6.8,0 7,0.3 7,0.6 L7,6.4 C7,6.8 6.8,7 6.5,7 L0.6,7 C0.3,7 0,6.8 0,6.5 L0,0.6 C0,0.3 0.3,0 0.6,0 L6.5,0 Z M6,2.8 C6.3,2.5 6.3,2.1 6.1,1.8 C5.9,1.5 5.4,1.6 5.1,1.9 L3.1,3.9 L2.4,3.2 C2.1,2.9 1.7,2.9 1.4,3.1 C1.2,3.3 1.2,3.8 1.5,4.1 L2.7,5.3 C3,5.6 3.4,5.6 3.7,5.3 L3.8,5.3 L6,2.8 Z M6.5,9 C6.8,9 7,9.3 7,9.6 L7,15.4 C7,15.8 6.8,16 6.5,16 L0.6,16 C0.3,16 0,15.8 0,15.4 L0,9.6 C0,9.3 0.3,9 0.6,9 L6.5,9 Z M6,11.8 C6.3,11.5 6.3,11.1 6.1,10.8 C5.9,10.6 5.4,10.6 5.1,10.8 L3.1,12.8 L2.3,12 C2,11.7 1.6,11.7 1.3,12 C1.1,12.3 1.1,12.7 1.4,13 L2.6,14.2 C2.9,14.5 3.3,14.5 3.6,14.3 L3.7,14.2 L6,11.8 Z M15.4,0 C15.8,0 16,0.3 16,0.6 L16,6.4 C16,6.8 15.8,7 15.4,7 L9.6,7 C9.3,7 9,6.8 9,6.5 L9,0.6 C9,0.3 9.3,0 9.6,0 L15.4,0 Z M15,2.8 C15.3,2.5 15.3,2.1 15.1,1.8 C14.9,1.5 14.4,1.6 14.1,1.9 L12.1,3.9 L11.3,3.1 C11,2.8 10.6,2.8 10.3,3 C10,3.2 10.1,3.7 10.3,4 L11.5,5.2 C11.8,5.5 12.2,5.5 12.5,5.2 L15,2.8 Z"}}]}),iI=e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),lI=e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),sI=e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]});var cI=e=>{let{layout:t,model:n,translator:r,selectionState:o,isDirectQuery:a=!1}=e;if(t.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];return[{key:"selectAll",type:"menu-icon-button",label:r.get("Selection.SelectAll"),getSvgIconShape:aI,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectAll("/qListObjectDef")}},{key:"selectPossible",type:"menu-icon-button",label:r.get("Selection.SelectPossible"),getSvgIconShape:lI,enabled:()=>["qOption"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectPossible("/qListObjectDef")}},!a&&{key:"selectAlternative",type:"menu-icon-button",label:r.get("Selection.SelectAlternative"),getSvgIconShape:iI,enabled:()=>["qAlternative"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectAlternative("/qListObjectDef")}},!a&&{key:"selectExcluded",type:"menu-icon-button",label:r.get("Selection.SelectExcluded"),getSvgIconShape:sI,enabled:()=>["qAlternative","qExcluded"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectExcluded("/qListObjectDef")}}].filter(Boolean)};const uI=e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M2,6.5 L3,6.5 C3.55228475,6.5 4,6.94771525 4,7.5 L4,8.5 C4,9.05228475 3.55228475,9.5 3,9.5 L2,9.5 C1.44771525,9.5 1,9.05228475 1,8.5 L1,7.5 C1,6.94771525 1.44771525,6.5 2,6.5 Z M7.5,6.5 L8.5,6.5 C9.05228475,6.5 9.5,6.94771525 9.5,7.5 L9.5,8.5 C9.5,9.05228475 9.05228475,9.5 8.5,9.5 L7.5,9.5 C6.94771525,9.5 6.5,9.05228475 6.5,8.5 L6.5,7.5 C6.5,6.94771525 6.94771525,6.5 7.5,6.5 Z M13,6.5 L14,6.5 C14.5522847,6.5 15,6.94771525 15,7.5 L15,8.5 C15,9.05228475 14.5522847,9.5 14,9.5 L13,9.5 C12.4477153,9.5 12,9.05228475 12,8.5 L12,7.5 C12,6.94771525 12.4477153,6.5 13,6.5 Z"}}]});function dI(e){const t=Xb(),n="function"==typeof e.enabled?!e.enabled():!!e.disabled,r="function"==typeof e.getSvgIconShape;return{hidden:!0===e.hidden,disabled:n,style:{backgroundColor:e.active?t.palette.btn.active:void 0},hasSvgIconShape:r}}const pI={className:"njs-cell-action"},fI=V.forwardRef(((e,t)=>{let{ariaExpanded:n=!1,item:r,addAnchor:o=!1}=e;const a=Xb(),{hidden:i,disabled:l,style:s,hasSvgIconShape:c}=dI(r);if(i)return null;const u=Number.parseInt(a.spacing(.5),10),d=r.keyboardAction||r.action,p=d?e=>["Enter"].includes(e.key)&&d():null,f=d?e=>[" ","Spacebar"].includes(e.key)&&d():null,h="actions-toolbar-".concat(r.key);return V.createElement(cE,{ref:o?null:t,title:r.label,onClick:r.action,onKeyDown:p,onKeyUp:f,disabled:l,style:s,className:[pI.className,h].join(" "),size:"large",disableRipple:!0,"aria-expanded":n,"aria-controls":"moreMenuList","data-testid":h},c&&PR(r.getSvgIconShape()),o&&V.createElement("div",{ref:t,style:{bottom:-u,right:0,position:"absolute",width:"100%",height:0}}))})),hI=e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M9.34535242,8 L13.3273238,11.9819714 C13.6988326,12.3534802 13.6988326,12.955815 13.3273238,13.3273238 C12.955815,13.6988326 12.3534802,13.6988326 11.9819714,13.3273238 L8,9.34535242 L4.01802863,13.3273238 C3.64651982,13.6988326 3.04418502,13.6988326 2.67267621,13.3273238 C2.3011674,12.955815 2.3011674,12.3534802 2.67267621,11.9819714 L6.65464758,8 L2.67267621,4.01802863 C2.3011674,3.64651982 2.3011674,3.04418502 2.67267621,2.67267621 C3.04418502,2.3011674 3.64651982,2.3011674 4.01802863,2.67267621 L8,6.65464758 L11.9819714,2.67267621 C12.3534802,2.3011674 12.955815,2.3011674 13.3273238,2.67267621 C13.6988326,3.04418502 13.6988326,3.64651982 13.3273238,4.01802863 L9.34535242,8 Z"}}]}),mI=e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M9.1661442,6.1661442 C10.7210031,4.61128527 13.2789969,4.61128527 14.8338558,6.1661442 C16.3887147,7.72100313 16.3887147,10.2789969 14.8338558,11.8338558 C13.2789969,13.3887147 10.7210031,13.3887147 9.1661442,11.8338558 C7.61128527,10.2789969 7.61128527,7.77115987 9.1661442,6.1661442 Z M14.1316614,7.72100313 C14.3322884,7.52037618 14.3824451,7.169279 14.1316614,6.9184953 C13.8808777,6.6677116 13.5297806,6.71786834 13.3291536,6.9184953 L12.0250784,8.22257053 L10.7210031,6.9184953 C10.5203762,6.6677116 10.1191223,6.6677116 9.9184953,6.9184953 C9.6677116,7.11912226 9.6677116,7.52037618 9.9184953,7.72100313 L11.2225705,9.02507837 L9.9184953,10.3291536 C9.6677116,10.5297806 9.6677116,10.8808777 9.9184953,11.1316614 C10.169279,11.3824451 10.5203762,11.3824451 10.7210031,11.1316614 L12.0250784,9.82758621 L13.3291536,11.1316614 C13.5297806,11.3824451 13.8808777,11.3824451 14.1316614,11.1316614 C14.3322884,10.9310345 14.3824451,10.5297806 14.1316614,10.3291536 L12.8275862,9.02507837 L14.1316614,7.72100313 Z"}}]});var gI=e=>PR(mI(e));const vI="njs-action-toolbar-more",bI={icon:"".concat("More","-icon")},yI=_y(TL)((e=>{let{theme:t}=e;return{pointerEvents:"none",["& .".concat(bI.icon," *")]:{color:t.palette.text.primary}}}));function xI(e){let{item:t,autoFocus:n,onActionClick:r=(()=>{})}=e;const{hidden:o,disabled:a,hasSvgIconShape:i}=dI(t);return o?null:V.createElement(zL,{autoFocus:n,title:t.label,onClick:()=>{t.action(),r()},disabled:a,tabindex:"0"},i&&V.createElement(dL,{className:bI.icon},PR(t.getSvgIconShape())),V.createElement(gE,{noWrap:!0},t.label))}const SI=V.forwardRef(((e,t)=>{let{actions:n=[],show:r=!0,alignTo:o,popoverProps:i={},popoverPaperStyle:l={},onCloseOrActionClick:c=(()=>{})}=e;const u=n.length>0,d=n.findIndex((e=>!e.disabled));return u&&V.createElement(yI,s({},i,{onClose:c,ref:t,open:r,anchorEl:o.current,getContentAnchorEl:null,container:o.current,disablePortal:!0,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:vI},paper:{style:a({pointerEvents:"auto",maxWidth:"250px"},l)}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}),V.createElement(yL,{id:"moreMenuList"},n.map(((e,t)=>V.createElement(xI,{key:t,item:e,autoFocus:t===d,onActionClick:c})))))})),wI=e=>{const t=e.closest("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");return Array.from(n).indexOf(e)},EI=e=>{const t=document.querySelector("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");if(!n.length)return;n[Math.min(Math.max(0,e),n.length-1)].focus()};const CI="ActionsToolbar",kI={item:"".concat(CI,"-item"),itemSpacing:"".concat(CI,"-itemSpacing")},LI=_y(TL)((e=>{let{theme:t}=e;return{["& .".concat(kI.itemSpacing)]:{padding:t.spacing(0,.25)}}})),RI={className:"njs-action-toolbar-popover"},OI=V.forwardRef(((e,t)=>{let{className:n,ariaExpanded:r=!1,actions:o=[],addAnchor:a=!1,isRtl:i=!1}=e;return o.length>0?V.createElement(Sk,{item:!0,container:!0,gap:0,flexDirection:i?"row-reverse":"row",wrap:"nowrap",className:n},o.map(((e,n)=>V.createElement(Sk,{item:!0,key:e.key,className:"".concat(kI.itemSpacing," ").concat(kI.item)},V.createElement(fI,{ariaExpanded:r,key:e.key,item:e,ref:0===n?t:null,addAnchor:a}))))):null})),_I={pointerEvents:"none"},II={vertical:"bottom",horizontal:"right"};function TI(e){var t,n;let{show:r=!0,actions:o=[],maxItems:i=3,selections:l={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},extraItems:s,more:c={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{}},popover:u={show:!1,anchorEl:null},focusHandler:d=null,actionsRefMock:p=null,isRtl:f,autoConfirm:h=!1,layout:m}=e;const g=function(e){let{api:t,layout:n,onConfirm:r=(()=>{}),onCancel:o=(()=>{}),onKeyDeactivate:a=(()=>{})}=e;const{translator:i}=U.useContext(zx);return[{key:"clear",type:"icon-button",label:i.get("Selection.Clear"),enabled:()=>t.canClear(n),action:()=>t.clear(),getSvgIconShape:mI},{key:"cancel",type:"icon-button",label:i.get("Selection.Cancel"),enabled:()=>t.canCancel(n),action:()=>{o(),t.cancel()},keyboardAction:()=>{a(),o(),t.cancel()},getSvgIconShape:hI},{key:"confirm",type:"icon-button",label:i.get("Selection.Confirm"),enabled:()=>t.canConfirm(n),action:()=>{r(),t.confirm()},keyboardAction:()=>{a(),r(),t.confirm()},getSvgIconShape:ZR}]}(a(a({},l),{},{layout:m})),{translator:v,keyboardNavigation:b}=U.useContext(zx),[y,x]=U.useState(!1),S={vertical:12,horizontal:(null!==(t=null===(n=u.anchorEl)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)-7},w=U.useRef(),E=U.useRef(),C=Xb(),k=U.useMemo((()=>({margin:C.spacing(.5,0)}))),L=e=>{const t=w.current||p;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]},R=U.useMemo((()=>function(e){let{keyboardNavigation:t,focusHandler:n,getEnabledButton:r,selections:o,isRtl:a}=e;return e=>{const{target:i,nativeEvent:l}=e,{keyCode:s}=l;switch(s){case UO.ARROW_LEFT:case UO.ARROW_DOWN:case UO.ARROW_RIGHT:case UO.ARROW_UP:if(i.classList.contains("njs-cell-action")){const e=wI(i);let t=[UO.ARROW_LEFT,UO.ARROW_DOWN].includes(s);t=a?!t:t,EI(t?e-1:e+1)}e.stopPropagation(),e.preventDefault();break;case UO.SPACE:e.preventDefault();break;case UO.TAB:t&&null!=n&&n.refocusContent&&(e.shiftKey&&r(!1)===e.target||!e.shiftKey&&r(!0)===e.target)&&(e.preventDefault(),e.stopPropagation(),n.refocusContent());break;case UO.ESCAPE:o&&(o.onCancel(),o.api.cancel(),e.preventDefault(),e.stopPropagation())}}}({keyboardNavigation:b,focusHandler:d,getEnabledButton:L,selections:l,isRtl:f})),[b,d,L,l,f]);if(U.useEffect((()=>()=>{x(!1)}),[u.show,r,l.show]),U.useEffect((()=>{if(!d)return;d.on("focus_toolbar_first",(()=>{const e=L(!1);null==e||e.focus()})),d.on("focus_toolbar_last",(()=>{const e=L(!0);null==e||e.focus()}))}),[]),h)return;let O=c.enabled,_=c.actions;const I=c.alignTo||E,T=o.filter((e=>!e.hidden));if(T.length>i){const e=T.splice(-(T.length-i)-1);O=!0,_=[...e,...c.actions]}if(!l.show&&0===T.length)return null;const P={key:"more",label:v.get("Menu.More"),getSvgIconShape:uI,hidden:!1,active:y,enabled:()=>O,action:()=>x(!y)},M=T.length>0,N=_.length>0,q=M&&l.show||N&&l.show,A=V.createElement(Sk,{ref:w,onKeyDown:R,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:f?"row-reverse":"row"}},(null==s?void 0:s.length)&&V.createElement(OI,{className:"actions-toolbar-extra-actions",actions:s,isRtl:f}),M&&V.createElement(OI,{actions:T}),N&&V.createElement(OI,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:E,ariaExpanded:y,actions:[P],addAnchor:!0}),q&&V.createElement(Sk,{item:!0,className:kI.itemSpacing,style:k},V.createElement(tk,{orientation:"vertical"})),l.show&&V.createElement(OI,{className:"actions-toolbar-default-actions",actions:g,isRtl:f}),y&&V.createElement(SI,{show:y,actions:_,alignTo:I,popoverProps:c.popoverProps,popoverPaperStyle:c.popoverPaperStyle,onCloseOrActionClick:()=>{x(!1)}}));return u.show?V.createElement(LI,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:u.show,anchorEl:u.anchorEl,anchorOrigin:S,transformOrigin:II,hideBackdrop:!0,style:_I,slotProps:{paper:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:RI.className,style:{pointerEvents:"auto",padding:C.spacing(.5,.25)}}}},A):r&&A}var PI=e=>PR((e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014l-4.128-4.026ZM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0Zm-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6.034 6.034 0 0 1-1.413 1.415Z"}}]}))(e));const MI="/qListObjectDef",NI="**",qI=_y(GL,{shouldForwardProp:e=>!["styles","dense","isRtl"].includes(e)})((e=>{let{theme:t,styles:n,dense:r,isRtl:o}=e,i={};return r&&(i={fontSize:12,paddingLeft:t.spacing(1),"& input":{paddingTop:"5px",paddingBottom:"5px"}}),a({display:"flex",border:"none",fontSize:14,borderRadius:0,backgroundColor:n.search.backgroundColor,backdropFilter:n.background.backgroundImage?n.search.backdropFilter:void 0,paddingLeft:"".concat(tO,"px"),flexDirection:o?"row-reverse":"row","& fieldset":{borderColor:"".concat(n.search.borderColor),borderWidth:"1px 0 1px 0",borderRadius:0},"&.Mui-focused fieldset":{borderColor:"".concat(n.search.highlightBorderColor," !important")},"& .MuiInputBase-root":a({},n.search),"& *":{color:n.search.color},"& input":{color:n.search.color,textAlign:o?"right":"left"}},i)}));function AI(e){let{selections:t,selectionState:n,model:r,keyboard:o,dense:a=!1,visible:i=!0,autoFocus:l=!0,wildCardSearch:s=!1,searchEnabled:c,direction:u,hide:d,styles:p}=e;const{translator:f}=U.useContext(zx),[h,m]=U.useState(""),[g,v]=U.useState(!1),b=U.useRef(),{getStoreValue:y,setStoreValue:x}=P_(r),S="rtl"===u,w=async()=>{if(!(!n.selectDisabled()&&!t.isModal()))try{await r.abortListObjectSearch(MI)}finally{m("")}};U.useEffect((()=>{i||w()}),[i]),U.useEffect((()=>(t.on("deactivated",w),()=>{t.removeListener&&t.removeListener("deactivated",w)})),[]),U.useEffect((()=>{if(g&&b.current){const e=h.length-1;b.current.setSelectionRange(e,e),v(!1)}}),[g,b.current]),U.useEffect((()=>{x("inputText",h)}),[h]);const E=async()=>{let e;const o=await r.searchListObjectFor(MI,h);return n.selectDisabled()?o:(o&&h.length&&y("listCount")>0&&(e=r.acceptListObjectSearch(MI,!0),t.selectionsMade=!0,n.clearItemStates(!1),m("")),e)};function C(e){const t=(null==e?void 0:e.querySelector(".last-focused"))||(null==e?void 0:e.querySelector('[role="row"]:first-child'));null==t||t.setAttribute("tabIndex",0),null==t||t.focus()}return i&&!1!==c?V.createElement(qI,{styles:p,dense:a,isRtl:S,startAdornment:V.createElement(jk,{position:"start"},V.createElement(PI,{size:a?"small":"normal"})),className:"search",inputRef:b,size:"small",fullWidth:!0,placeholder:f.get("Listbox.Search"),value:h,onFocus:()=>{s&&(m(NI),v(!0)),n.selectDisabled()||t.isModal()||t.begin(["/qListObjectDef"])},onChange:async e=>(m(e.target.value),e.target.value.length?r.searchListObjectFor(MI,e.target.value):w()),onKeyDown:async e=>{const{currentTarget:n}=e,r=n.closest(".listbox-container");switch(e.key){case"Enter":E();break;case"Escape":C(r),t.isActive()&&t.cancel();break;case"Tab":e.shiftKey?o.focusSelection():(C(r),null==r||r.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")})));break;case"f":case"F":if(!e.ctrlKey&&!e.metaKey)return;d&&(d(),C(r));break;default:return}e.preventDefault(),e.stopPropagation()},autoFocus:l,inputProps:{tabIndex:o.innerTabStops?0:-1,"data-testid":"search-input-field","aria-label":f.get("Listbox.Search.ScreenReaderInstructions")}}):null}function DI(e){if(!e.session)return[];const{selectionStore:t}=U.useContext(zx),[n]=t.useAppSelectionsStore(),r=e?e.id:null;let o=n.get(r);return U.useEffect((()=>{e&&!o&&(o=function(e){let{app:t,selectionStore:n}=e;const r="".concat(t.id),{modalObjectStore:o,appModalStore:a}=n,i=async function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const{model:t,objectSelections:n}=o.get(r)||{};t&&(await t.endSelections(e),o.clear(r),n.emit("deactivated"))},l={begin:async e=>{var n;let{model:a,paths:l,accept:s=!0,objectSelections:c}=e;if(c===(null===(n=o.get(r))||void 0===n?void 0:n.objectSelections))return;i(s),o.set(r,{model:a,objectSelections:c});const u=Array.isArray(l)?l:[l],d=async e=>{try{await a.beginSelections(u),o.set(r,{model:a,objectSelections:c})}catch(n){6003!==n.code||e?o.clear(r):(await t.abortModal(s),d(!0))}};await d()},end:i};a.set(r,l);const s={model:t,isInModal:()=>!!o.get(r),isModal(e){var t;return e?(null===(t=o.get(r))||void 0===t?void 0:t.objectSelections)===e:!!o.get(r)},forward:()=>l.end().then((()=>t.forward())),back:()=>l.end().then((()=>t.back())),clear:()=>l.end().then((()=>t.clearAll())),clearField(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$";return l.end().then((()=>t.getField(e,n).then((e=>e.clear()))))}};return s}({app:e,selectionStore:t}),n.set(r,o),n.dispatch(!0))}),[e]),[o]}function zI(e){return Object.keys(ee.prototype).forEach((t=>{e[t]=ee.prototype[t]})),ee.init(e),e}const jI=e=>{let t,{appSelections:n,appModal:r,model:o}=e,a=!1,i=!1;const l={id:o.id,setLayout(e){t=e},begin(e){const t=(()=>{let e=!1;return{isPrevented:()=>e,preventDefault:()=>{e=!0}}})();return this.emit("activate",t),t.isPrevented()?Promise.resolve():(a=!0,this.emit("activated"),r.begin({model:o,paths:e,accept:!0,objectSelections:l}))},clear(){return i=!1,this.emit("cleared"),t.qListObject?o.clearSelections("/qListObjectDef"):o.resetMadeSelections()},confirm(){return i=!1,a=!1,this.emit("confirmed"),this.emit("deactivated"),r.end(!0)},cancel(){return i=!1,a=!1,this.emit("canceled"),this.emit("deactivated"),r.end(!1)},async select(e){const t=this.begin([e.params[0]]);if(!n.isModal())return!1;await t;const r=await o[e.method](...e.params);return i="resetMadeSelections"!==e.method,!!r||(o.resetMadeSelections(),!1)},canClear:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked&&!t.qListObject.qDimensionInfo.qIsOneAndOnlyOne:i,canConfirm:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked:i,canCancel:()=>!(t&&t.qListObject&&t.qListObject.qDimensionInfo)||!t.qListObject.qDimensionInfo.qLocked,isActive:()=>a,isModal:()=>n.isModal(l),goModal:e=>r.begin({model:o,paths:e,accept:!1,objectSelections:l}),noModal:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return r.end(e)}};return zI(l),l},FI=e=>{let{elements:t,objectSelections:n,options:r={}}=e;const o=function(e){let{elements:t,handleClickOutside:n}=e;return e=>{if(!document.contains(e.target))return;const r=t.map((e=>"string"==typeof e?document.querySelector(e):null==e?void 0:e.current)).filter((e=>!!e&&!!document.contains(e)));r.length&&!r.some((t=>t.contains(e.target)))&&n(e)}}({elements:t,handleClickOutside:()=>n.confirm.call(n)});return{activateClickOut(){var e;document.addEventListener("mousedown",o),null==r||null===(e=r.onSelectionActivated)||void 0===e||e.call(r)},deactivateClickOut(){var e;document.removeEventListener("mousedown",o),null==r||null===(e=r.onSelectionDeactivated)||void 0===e||e.call(r)}}};function BI(e,t,n,r){const o=Array.isArray(n)?n:[n],[a]=DI(e),[i]=OR(t),{appModalStore:l}=U.useContext(zx).selectionStore,s=l.get(e.id),[c,u]=U.useState();return U.useEffect((()=>{a&&t&&!c&&u(jI({appSelections:a,appModal:s,model:t}))}),[a,t]),U.useEffect((()=>{if(!c)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=FI({elements:o,objectSelections:c,options:r});return c.addListener("activated",e),c.addListener("deactivated",t),()=>{c.isActive()&&c.confirm(),c.removeListener("activated",e),c.removeListener("deactivated",t)}}),[c]),U.useEffect((()=>{c&&c.setLayout(i)}),[c,i]),[c]}function $I(){const e=a(a({itemStates:{},ignoreSelectionState:!1,selectedInEngine:[],enginePages:[],setPages:void 0,lastRowCount:void 0,lastApprMaxGlyphCount:void 0,selectDisabled:void 0},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),{},{update(t){var n,r;let{setPages:o,pages:a,isSingleSelect:i,selectDisabled:l,layout:s}=t;this.setPages=o;const c=this.lastRowCount===s.qListObject.qSize.qcy,u=this.lastApprMaxGlyphCount===s.qListObject.qDimensionInfo.qApprMaxGlyphCount;c&&u||(this.lastRowCount=s.qListObject.qSize.qcy,this.lastApprMaxGlyphCount=s.qListObject.qDimensionInfo.qApprMaxGlyphCount,this.clearItemStates(!1)),e.enginePages!==a&&void 0!==a&&(e.enginePages=null!=a?a:[],e.selectedInEngine=$R(a),e.selectableValuesUpdating=!1,e.triggerStateChanged()),e.isSingleSelect=i,e.selectDisabled=l||e.selectDisabled,e.isDimCalculated=null!==(n=null==s||null===(r=s.qListObject)||void 0===r||null===(r=r.qDimensionInfo)||void 0===r?void 0:r.qIsCalculated)&&void 0!==n&&n},allowedToSelect:()=>!e.selectDisabled()&&!(e.isDimCalculated&&e.selectableValuesUpdating),setSelectableValuesUpdating(){e.selectableValuesUpdating=!0},useClientItemState:t=>e.ignoreSelectionState||t in e.itemStates,isSelected:t=>e.useClientItemState(t)?!!e.itemStates[t]:e.selectedInEngine.includes(t),getState(t){const{qElemNumber:n,qState:r}=t;return e.useClientItemState(n)?e.itemStates[n]?"XS"===r?"XS":"S":"S"===r||"XS"===r?"A":r:r},updateItemNoEvents(t,n,r){const o=e.isSelected(t);o&&!n?e.itemStates[t]=!1:o||(null==r||r.push(t),e.itemStates[t]=!0)},triggerStateChanged(){if(this.setPages){const t=e.applySelectionsOnPages(e.enginePages);this.setPages(t)}},applySelectionsOnPages(t){const n=t.map((t=>{const n=t.qMatrix.map((t=>{const[n]=t,r=e.getState(n);return[a(a({},n),{},{qState:r}),...t.slice(1)]}));return a(a({},t),{},{qMatrix:n})}));return n},updateItem(t,n,r){e.updateItemNoEvents(t,n,r),e.triggerStateChanged()},updateItems(t,n,r){t.forEach((t=>{e.updateItemNoEvents(t,n,r)})),e.triggerStateChanged()},clearItemStates(t){e.itemStates={},e.ignoreSelectionState=t}});return e}const WI=function(e,t){var n;let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return null!==(n=null==e?void 0:e[t])&&void 0!==n?n:r};function HI(e){const t=(null==e?void 0:e.qListObject.qDimensionInfo.qStateCounts)||{};return WI(t,"qSelected",0)+WI(t,"qSelectedExcluded",0)+WI(t,"qLocked",0)+WI(t,"qLockedExcluded",0)>0}const UI={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},VI=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,GI=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,KI=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,ZI=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,XI=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,QI=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,{floor:JI}=Math,{round:YI}=Math;class eT{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let r,o,a,i,l,s,c,u,d,p,f,h,m=0,g=0,v=0,b=1;if(this._invalid=!1,t[0]instanceof eT)m=t[0]._r,g=t[0]._g,v=t[0]._b,b=t[0]._a,this._invalid=t[0]._invalid;else if(t.length<3)if("string"==typeof t[0])if(h=t[0],f=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(h))m=parseInt(f[1],10),g=parseInt(f[2],10),v=parseInt(f[3],10);else if(f=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(h))m=parseInt(f[1],10),g=parseInt(f[2],10),v=parseInt(f[3],10),b=parseFloat(f[4]);else if(f=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(h))b=parseInt(f[1],10)/255,m=parseInt(f[2],10),g=parseInt(f[3],10),v=parseInt(f[4],10);else if(f=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(h))m=parseInt(f[1],16),g=parseInt(f[2],16),v=parseInt(f[3],16),b=1;else if(f=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(h))m=parseInt(f[1]+f[1],16),g=parseInt(f[2]+f[2],16),v=parseInt(f[3]+f[3],16),b=1;else if(f=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(h)){switch(r=parseFloat(f[1]),o=parseFloat(f[3]),i=parseFloat(f[5]),r%=360,o/=100,i/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,i=i<0?0:i>1?1:i,s=i<=.5?2*i*o:(2-2*i)*o,c=r/60,u=s*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[s,u,0];break;case 1:d=[u,s,0];break;case 2:d=[0,s,u];break;case 3:d=[0,u,s];break;case 4:d=[u,0,s];break;case 5:d=[s,0,u];break;default:d=[0,0,0]}p=i-.5*s,m=d[0]+p,g=d[1]+p,v=d[2]+p,m=YI(255*m),g=YI(255*g),v=YI(255*v),b=1}else if(f=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(h)){switch(r=parseFloat(f[1]),o=parseFloat(f[3]),i=parseFloat(f[5]),b=parseFloat(f[7]),r%=360,o/=100,i/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,i=i<0?0:i>1?1:i,s=i<=.5?2*i*o:(2-2*i)*o,c=r/60,u=s*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[s,u,0];break;case 1:d=[u,s,0];break;case 2:d=[0,s,u];break;case 3:d=[0,u,s];break;case 4:d=[u,0,s];break;case 5:d=[s,0,u];break;default:d=[0,0,0]}p=i-.5*s,m=d[0]+p,g=d[1]+p,v=d[2]+p,m=YI(255*m),g=YI(255*g),v=YI(255*v)}else if(f=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(h)){switch(r=parseFloat(f[1]),o=parseFloat(f[3]),l=parseFloat(f[5]),r%=360,o/=100,l/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,l=l<0?0:l>1?1:l,s=l*o,c=r/60,u=s*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[s,u,0];break;case 1:d=[u,s,0];break;case 2:d=[0,s,u];break;case 3:d=[0,u,s];break;case 4:d=[u,0,s];break;case 5:d=[s,0,u];break;default:d=[0,0,0]}p=l-s,m=d[0]+p,g=d[1]+p,v=d[2]+p,m=YI(255*m),g=YI(255*g),v=YI(255*v),b=1}else UI[h.toLowerCase()]?(a=h.toLowerCase(),m=UI[a].r,g=UI[a].g,v=UI[a].b,b="number"==typeof UI[a].a?UI[a].a:1):this._invalid=!0;else"number"==typeof t[0]&&t[0]>=0&&"argb"===t[1]?(b=(4278190080&t[0])>>>24,b/=255,m=(16711680&t[0])>>16,g=(65280&t[0])>>8,v=255&t[0]):"number"==typeof t[0]&&t[0]>=0?(m=(16711680&t[0])>>16,g=(65280&t[0])>>8,v=255&t[0]):this._invalid=!0;else t.length>=3?(m=t[0],g=t[1],v=t[2],b=arguments.length>=4?t[3]:1):this._invalid=!0;Number.isNaN(+m+g+v+b)&&(this._invalid=!0),this._r=JI(m),this._g=JI(g),this._b=JI(v),this._a=b,this._spaces={}}isInvalid(){return this._invalid}setAlpha(e){this._a=e,this._spaces={}}getAlpha(){return this._a}toRGB(){return this._spaces.rgb||(this._spaces.rgb=eT.toRGB(this)),this._spaces.rgb}toRGBA(){return this._spaces.rgba||(this._spaces.rgba=eT.toRGBA(this)),this._spaces.rgba}toString(){return this._spaces.rgb||(this._spaces.rgb=eT.toRGB(this)),this._spaces.rgb}toHex(){return this._spaces.hex||(this._spaces.hex=eT.toHex(this)),this._spaces.hex}toHSL(e){return this._spaces.hsl||(this._spaces.hsl=eT.toHSL(this,e)),this._spaces.hsl}toHSLA(e){return this._spaces.hsla||(this._spaces.hsla=eT.toHSLA(this,e)),this._spaces.hsla}toHSV(){const e=this.toHSVComponents();return"hsv(".concat(e.h,",").concat(e.s,",").concat(e.v,")")}toHSVComponents(){return this._spaces.hsvComp||(this._spaces.hsvComp=eT.toHSVComponents(this)),this._spaces.hsvComp}toNumber(){return this._spaces.num||(this._spaces.num=eT.toNumber(this)),this._spaces.num}isDark(){return this.isInvalid()||this.getLuminance()<125}getLuminance(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}shiftLuminance(e){const t=this.toHSLA(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),r=parseFloat(n[1]),o=parseFloat(n[3]);let a=parseFloat(n[5]);const i=parseFloat(n[7]);return a+=e,a=Math.max(0,Math.min(a,100)),"hsla(".concat(r,",").concat(o,",").concat(a,",").concat(i,")")}isEqual(e){return e instanceof eT||(e=new eT(e)),this._r===e._r&&this._g===e._g&&this._b===e._b&&this._a===e._a}blend(e,t){const n=JI(this._r+(e._r-this._r)*t),r=JI(this._g+(e._g-this._g)*t),o=JI(this._b+(e._b-this._b)*t),a=JI(this._a+(e._a-this._a)*t);return"rgba(".concat([n,r,o,a].join(","),")")}createShiftedColor(e){(void 0===e||Number.isNaN(+e))&&(e=1);const t=this.getLuminance(),n=this._g<126?1:1+this._g/512,r=this.shiftLuminance(20*(t*n<220?.8+1/(t+1)*4:-(.8+t/255*1))*e);return new eT(r)}static toRGB(e){if(e instanceof eT)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=eT.toNumber(e));const t=(65280&e)>>8,n=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(n,")")}static toRGBA(e,t){if(e instanceof eT)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=eT.toNumber(e));const n=(65280&e)>>8,r=255&e;return"rgba(".concat((16711680&e)>>16,",").concat(n,",").concat(r,",").concat(void 0!==t?t:e._a,")")}static toHex(e){let t,n,r;return e instanceof eT?(t=e._r.toString(16),n=e._g.toString(16),r=e._b.toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat([t,n,r].join(""))):("string"==typeof e&&(e=eT.toNumber(e)),t=((16711680&e)>>16).toString(16),n=((65280&e)>>8).toString(16),r=(255&e).toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat(t).concat(n).concat(r))}static toHSL(e,t){let n,r,o,a=0;"string"==typeof e&&(e=new eT(e));const i=e._r/255,l=e._g/255,s=e._b/255,c=Math.max(i,l,s),u=Math.min(i,l,s);if(r=t?.21*i+.72*l+.07*s:(c+u)/2,c===u)n=0,a=0;else{switch(o=c-u,n=r>.5?o/(2-c-u):o/(c+u),c){case i:a=(l-s)/o+(l<s?6:0);break;case l:a=(s-i)/o+2;break;case s:a=(i-l)/o+4}a/=6}return"hsl(".concat(360*a,",").concat(100*n,",").concat(100*r,")")}static toHSLA(e,t){let n,r,o,a=0;"string"==typeof e&&(e=new eT(e));const i=e._r/255,l=e._g/255,s=e._b/255,c=e._a,u=Math.max(i,l,s),d=Math.min(i,l,s);if(r=t?.21*i+.72*l+.07*s:(u+d)/2,u===d)n=0,a=0;else{switch(o=u-d,n=r>.5?o/(2-u-d):o/(u+d),u){case i:a=(l-s)/o+(l<s?6:0);break;case l:a=(s-i)/o+2;break;case s:a=(i-l)/o+4}a/=6}return"hsla(".concat(360*a,",").concat(100*n,",").concat(100*r,",").concat(c,")")}static toHSVComponents(e){let t,n,r=0;"string"==typeof e&&(e=new eT(e));const o=e._r/255,a=e._g/255,i=e._b/255,l=Math.max(o,a,i),s=Math.min(o,a,i),c=l;if(l===s)t=0,r=0;else{switch(n=l-s,t=0===n?0:n/c,l){case o:r=(a-i)/n+(a<i?6:0);break;case a:r=(i-o)/n+2;break;case i:r=(o-a)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*c}}static toNumber(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length&&t[0]instanceof eT)return(t[0]._r<<16)+(t[0]._g<<8)+t[0]._b;let r,o,a=0,i=0,l=0;return 1===t.length&&"string"==typeof t[0]&&(o=t[0],(r=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(o))?(a=parseInt(r[1],10),i=parseInt(r[2],10),l=parseInt(r[3],10)):(r=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(o))?(a=parseInt(r[1],16),i=parseInt(r[2],16),l=parseInt(r[3],16)):(r=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(o))&&(a=parseInt(r[1]+r[1],16),i=parseInt(r[2]+r[2],16),l=parseInt(r[3]+r[3],16))),(a<<16)+(i<<8)+l}static blend(e,t,n){const r=(16711680&(e=eT.toNumber(e)))>>16,o=(65280&e)>>8,a=255&e;return(r+(((16711680&(t=eT.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(a+((255&t)-a)*n)}static getBlend(e,t,n){const r=e._r+(t._r-e._r)*n,o=e._g+(t._g-e._g)*n,a=e._b+(t._b-e._b)*n,i=e._a+(t._a-e._a)*n;return new eT(r,o,a,i)}static isCSSColor(e){return!(arguments.length>1||"string"!=typeof e)&&(VI.test(e)||GI.test(e)||KI.test(e)||ZI.test(e)||XI.test(e)||QI.test(e)||UI[e.toLowerCase()])}static getBestContrast(e,t,n){const r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n}static getContrast(e,t){if(!e||!t)return;const n=e.getLuminance()/100,r=t.getLuminance()/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}static isDark(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new eT(...t).isDark(...t)}static useDarkLabel(e,t){return e._a>.5?!e.isDark():!t}}const tT=/,(?![^(]*\))/,nT=/\s(?![^(]*\))/,rT=/^[0-9]+[a-zA-Z%]+?$/,oT=["none","inset","initial","inherit"],aT=e=>{if(!e)return;const t=e.split(nT).filter((e=>!oT.includes(e.toLowerCase()))).at(-1),n=!t||(e=>"0"===e||rT.test(e))(t)||oT.includes(t.toLowerCase())?void 0:t;return n},iT=e=>e?e.split(tT).map((e=>e.trim())):[];function lT(e,t,n,r){return n&&r?n.getStyle("object.".concat(r),e,t):n?n.getStyle("",e,t):void 0}const sT=!0;function cT(e,t,n,r,o){return e&&r?"none"!==e.color?r.getColorPickerColor(e,sT):void 0:lT(t,n,r,o)}const uT={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},dT={"top-left":"top left","top-center":"top center","top-right":"top right","center-left":"center left","center-center":"center center","center-right":"center right","bottom-left":"bottom left","bottom-center":"bottom center","bottom-right":"bottom right"};function pT(e,t){return t?function(e){var t;let n,r,o,a;return null!=e&&null!==(t=e.session)&&void 0!==t&&t.config?(n=e.session.config,r=new URL(n.url),a="wss:"===r.protocol,o=a?"https://":"http://",o+r.host):""}(e)+t:void 0}function fT(e,t){const n=null==e?void 0:e.bgImage;if(n){let r="";if("media"===n.mode||"media"===e.useImage){const e=null==n?void 0:n.mediaUrl,{qUrl:o}=(null==e?void 0:e.qStaticContentUrl)||{};r=o?decodeURIComponent(o):void 0,r=pT(t,r)}"expression"===n.mode&&(r=n.expressionUrl?decodeURIComponent(n.expressionUrl):void 0);const o=function(e){var t;let n="center center";return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.position&&(n=dT[e.bgImage.position]),n}(e),a=function(e){var t;let n=uT.originalSize;const r=null==e||null===(t=e.bgImage)||void 0===t?void 0:t.sizing;return r&&(n=uT[r]),n}(e);return r?{url:r,pos:o,size:a}:void 0}}function hT(e,t,n){const r=null==e?void 0:e.bgColor;return r&&t&&(r.useExpression||r.useColorExpression)?t.validateColor(r.colorExpression):cT(null==r?void 0:r.color,"","backgroundColor",t,n)}function mT(e,t,n){var r,o;const a=lT("shadow","boxShadow",t,n);return((e,t,n)=>{if(e&&oT.includes(e.toLowerCase()))return e.toLowerCase();const r=iT(e);if(1!==r.length)return e;let o=n;if(!o){const n=iT(t);if(1!==n.length)return e;o=aT(n[0])}if(!o)return e;const a=aT(r[0]);return a?e.replace(a,o):"".concat(e," ").concat(o)})((null==e||null===(r=e.shadow)||void 0===r?void 0:r.boxShadow)||a,a,cT(null==e||null===(o=e.shadow)||void 0===o?void 0:o.boxShadowColor,"shadow","boxShadowColor",t,n))}function gT(e,t,n,r){var o;const a=(null==e||null===(o=e.title)||void 0===o?void 0:o[t])||{},i=function(e,t){return e&&Array.isArray(e)?e:"main"===t?["bold"]:[]}(a.fontStyle,t);return{fontFamily:a.fontFamily||n.getStyle("object.".concat(r),"title.".concat(t),"fontFamily"),fontSize:a.fontSize||n.getStyle("object.".concat(r),"title.".concat(t),"fontSize"),color:a.color&&"none"!==a.color.color?n.getColorPickerColor(a.color,!0):n.getStyle("object.".concat(r),t,"color"),fontWeight:i.includes("bold")?"bold":"normal",fontStyle:i.includes("italic")?"italic":"normal",textDecoration:i.includes("underline")?"underline":"initial"}}const vT="#FFF",bT="#000",yT=1.5,xT=3,ST=(e,t)=>{let n=!1;const r=new eT(e),o=new eT(t);if(!(o.isInvalid()||r.isInvalid()||o.getAlpha()<1||r.getAlpha()<1)){try{n=eT.getContrast(r,o)}catch(e){n=void 0}return n}};function wT(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:bT,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:vT;const o=new eT(r),a=new eT(e),i=new eT(t);if(a.isInvalid()||i.isInvalid()||a.getAlpha()<1||i.getAlpha()<1)return t;const l=ST(o,a),s=ST(i,a),c=l>s||l>xT;let u;return u=t&&s>yT&&!c?t:c?r:n,u}const ET=["theme","selections"];function CT(e){var t,n,r,o,a,i,l,s;let{app:c,themeApi:u,theme:d,components:p=[],checkboxes:f=!1}=e;const h=function(){const e={};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((t=>{const n=null==t?void 0:t.key;ET.includes(n)&&(e[n]=t)})),e}(p),m=(e,t)=>u.getStyle("object.listBox",e,t),g=e=>(null==e?void 0:e.index)>0||null!=e&&e.color?u.getColorPickerColor(e,!1):void 0,v=function(e){var t,n,r,o,a,i,l,s,c,u,d,p,f,h,m;let{getColorPickerColor:g,theme:v,getListboxStyle:b,overrides:y,checkboxes:x}=e;const S=g(null===(t=y.theme)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.fontColor)||b("content","color")||(null===(n=v.palette)||void 0===n?void 0:n.text.primary),w=!x&&(null===(r=null===(o=y.theme)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.useContrastColor)||void 0===r||r),E=(null===(a=y.selections)||void 0===a?void 0:a.colors)||{},C=g(E.selected)||(null===(i=v.palette)||void 0===i?void 0:i.selected.main)||"#009845",k=g(E.alternative)||(null===(l=v.palette)||void 0===l?void 0:l.selected.alternative)||"#E4E4E4",L=g(E.excluded)||(null===(s=v.palette)||void 0===s?void 0:s.selected.excluded)||"#A9A9A9",R=g(E.selectedExcluded)||(null===(c=v.palette)||void 0===c?void 0:c.selected.selectedExcluded)||"#A9A9A9",O=g(E.possible)||b("","backgroundColor")||(null===(u=v.palette)||void 0===u?void 0:u.selected.possible)||"#FFFFFF";let _=S||(null===(d=v.palette)||void 0===d?void 0:d.selected.selectedContrastText),I=S||(null===(p=v.palette)||void 0===p?void 0:p.selected.alternativeContrastText),T=S||(null===(f=v.palette)||void 0===f?void 0:f.selected.excludedContrastText),P=S||(null===(h=v.palette)||void 0===h?void 0:h.selected.selectedExcludedContrastText),M=S||(null===(m=v.palette)||void 0===m?void 0:m.selected.possibleContrastText);return w&&(_=wT(C,S),I=wT(k,S),T=wT(L,S),P=wT(R,S),M=wT(O,S)),{selected:C,alternative:k,excluded:L,selectedExcluded:R,possible:O,selectedContrast:_,alternativeContrast:I,excludedContrast:T,selectedExcludedContrast:P,possibleContrast:M}}({getColorPickerColor:g,theme:d,getListboxStyle:m,overrides:h,checkboxes:f}),b=h.theme||{},y=g(null===(t=b.header)||void 0===t?void 0:t.fontColor)||m("title.main","color"),x=function(e){let t,{themeApi:n,themeOverrides:r}=e;const o=null==r?void 0:r.background;return o?(t=null!=o&&o.useExpression?hT({bgColor:o},n,"listBox"):n.getColorPickerColor(null==o?void 0:o.color,!1),t):t}({themeApi:u,themeOverrides:b}),S=null!==(n=b.background)&&void 0!==n&&n.image?fT({bgImage:b.background.image},c):void 0,w=x||m("","backgroundColor")||d.palette.background.default,E=function(e,t){const n=new eT(t("","backgroundColor"));return n.setAlpha(.7),n.isInvalid()?e:n.toRGBA()}(w,m),C=function(e){return wT("#fff",e("content","color"))}(m),k=(null===(r=b.header)||void 0===r?void 0:r.fontStyle)||{},L=(null===(o=b.content)||void 0===o?void 0:o.fontStyle)||{},R=(e,t,n)=>!0===e&&t||!1===e&&n||void 0;return{background:{backgroundColor:w,backgroundImage:null==S||!S.url||null!=S&&S.url.startsWith("url(")?void 0:"url('".concat(S.url,"')"),backgroundRepeat:"no-repeat",backgroundSize:null==S?void 0:S.size,backgroundPosition:null==S?void 0:S.pos},header:{color:y,fontSize:(null===(a=b.header)||void 0===a?void 0:a.fontSize)||m("title.main","fontSize"),fontFamily:(null===(i=b.header)||void 0===i?void 0:i.fontFamily)||m("title.main","fontFamily"),fontWeight:R(k.bold,"bold","normal")||m("title.main","fontWeight")||"bold",textDecoration:k.underline?"underline":"initial",fontStyle:R(k.italic,"italic","normal")||m("title.main","fontStyle")||"initial"},content:{backgroundColor:f?void 0:v.possible,color:v.possibleContrast||m("content","color"),fontSize:(null===(l=b.content)||void 0===l?void 0:l.fontSize)||m("content","fontSize"),fontFamily:(null===(s=b.content)||void 0===s?void 0:s.fontFamily)||m("content","fontFamily"),fontWeight:R(L.bold,"bold","normal")||m("content","fontWeight")||"normal",textDecoration:L.underline?"underline":"initial",fontStyle:R(L.italic,"italic","normal")||m("content","fontStyle")||"initial"},search:{color:C,borderColor:d.palette.divider,highlightBorderColor:d.palette.custom.focusBorder,backgroundColor:E,backdropFilter:"blur(8px)"},selections:v}}function kT(e){let{alignTo:t,anchorOrigin:n={vertical:"bottom",horizontal:"center"},transformOrigin:r={vertical:"top",horizontal:"center"},show:o,close:a,app:i,fieldName:l,stateName:s="$",autoFocus:c,components:u,checkboxes:d,selectDisabled:p=(()=>!1)}=e;const f=Boolean(null==l?void 0:l.qLibraryId),h=o&&Boolean(t.current),[m,g]=U.useState(0),v=Xb(),b=U.useRef(),[y]=wR({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:s,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],qFieldDefs:f?void 0:[l]},qLibraryId:f?l.qLibraryId:void 0}},i,l,s),x=U.useCallback((()=>{y.lock("/qListObjectDef")}),[y]),S=U.useCallback((()=>{y.unlock("/qListObjectDef")}),[y]),{translator:w,themeApi:E}=U.useContext(zx),C=U.useRef(),k=U.useRef(),[L]=BI(i,y,k),[R]=OR(y),[O]=U.useState((()=>$I({selectDisabled:p}))),{checkboxes:_=d}=R||{},I=CT({themeApi:E,theme:v,components:u,checkboxes:_});if(U.useEffect((()=>{L&&h&&(L.isModal(y)||L.goModal("/qListObjectDef"))}),[L,h]),!y||!R||!w)return null;const T=!0===R.qListObject.qDimensionInfo.qLocked,P=(e,t)=>{const n="escapeKeyDown"!==t;L.noModal(n),a()},M=cI({layout:R,model:y,translator:w,selectionState:O}),N=HI(R);return V.createElement(TL,{open:h,onClose:P,anchorEl:t.current,anchorOrigin:n,transformOrigin:r,slotProps:{paper:{style:{minWidth:"250px"}}}},V.createElement(Sk,{container:!0,direction:"column",gap:0,ref:k},V.createElement(Sk,{item:!0,container:!0,style:{padding:v.spacing(1)}},V.createElement(Sk,{item:!0},T?V.createElement(cE,{onClick:S,disabled:!T,size:"large"},V.createElement(NR,{title:w.get("Listbox.Unlock")})):V.createElement(cE,{onClick:x,disabled:!N,size:"large"},V.createElement(AR,{title:w.get("Listbox.Lock")}))),V.createElement(Sk,{item:!0,xs:!0}),V.createElement(Sk,{item:!0},V.createElement(TI,{layout:R,more:{enabled:!T,actions:M,alignTo:C,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:L,onConfirm:P,onCancel:()=>P(0,"escapeKeyDown")}}))),V.createElement(Sk,{item:!0,xs:!0},V.createElement("div",{ref:C}),V.createElement(Sk,{item:!0,ref:b},V.createElement(AI,{styles:I,visible:!0,model:y,listCount:m,selections:L,selectionState:O,keyboard:{enabled:!1},autoFocus:null==c||c})),V.createElement(oI,{model:y,app:i,layout:R,selections:L,selectionState:O,direction:"ltr",onSetListCount:e=>g(e),onCtrlF:()=>{const e=b.current.querySelector("input");null==e||e.focus()},styles:I}))))}function LT(e){let{field:t,api:n,stateIx:r=0,skipHandleShowListBoxPopover:o=!1,moreAlignTo:a=null,onClose:i=(()=>{})}=e;const{translator:l}=U.useContext(zx),s=a||U.useRef(),c=Xb(),[u,d]=U.useState(!1),p=e=>{e.currentTarget.contains(e.target)&&d(!u)},f=()=>{d(!1),i()},h=t.selections[r];void 0===h.qTotal&&(h.qTotal=0);const m=h.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},g=(m.qSelected+m.qLocked)/h.qTotal,v=m.qAlternative/h.qTotal,b=(m.qExcluded+m.qLockedExcluded+m.qSelectedExcluded)/h.qTotal,y=m.qSelected+m.qSelectedExcluded+m.qLocked+m.qLockedExcluded,x=0===y&&0===h.qTotal;let S="";h.qTotal===y&&h.qTotal>1?S=l.get("CurrentSelections.All"):y>1&&h.qTotal?S=l.get("CurrentSelections.Of",[y,h.qTotal]):h.qSelectedFieldSelectionInfo&&(S=h.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==t.states[r]&&(S="".concat(t.states[r],": ").concat(S));const w=[{color:c.palette.selected.main,ratio:g},{color:c.palette.selected.alternative,ratio:v},{color:c.palette.selected.excluded,ratio:b}];w.forEach(((e,t)=>{e.offset=t?w[t-1].offset+w[t-1].ratio:0}));let E=null,C=null,k=null,L=null;return a||(E=V.createElement(Sk,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:h.qLocked?"0.3":""}},V.createElement(gE,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},h.qField),V.createElement(gE,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},S)),h.qLocked?C=V.createElement(Sk,{item:!0},V.createElement(cE,{size:"large"},V.createElement(NR,null))):h.qOneAndOnlyOne||(C=V.createElement(Sk,{item:!0},V.createElement(cE,{title:l.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),n.clearField(h.qField,t.states[r])},size:"large"},V.createElement(MR,null)))),k=V.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===x&&w.map((e=>V.createElement("div",{key:e.color,style:{position:"absolute",background:e.color,height:"100%",top:0,width:"".concat(100*e.ratio,"%"),left:"".concat(100*e.offset,"%")}})))),L=V.createElement(Sk,{container:!0,gap:1,ref:s,sx:{backgroundColor:c.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:c.palette.action.hover}},onClick:!1===o&&p||null},E,C,k,u&&V.createElement(kT,{alignTo:s,show:u,close:f,app:n.model,fieldName:h.qField,stateName:t.states[r]}))),a?V.createElement(kT,{alignTo:s,show:!0,close:f,app:n.model,fieldName:h.qField,stateName:t.states[r]}):L}var RT=e=>PR((e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M8,9 L12.5,4.5 L14,6 L9.5,10.5 L8,12 L2,6 L3.5,4.5 L8,9 Z"}}]}))(e));const OT={item:"".concat("MultiState","-item")},_T=_y(Sk)((e=>{let{theme:t}=e;return{["&.".concat(OT.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"}}}));function IT(e){let{field:t,api:n,moreAlignTo:r=null,onClose:o=(()=>{})}=e;const[a,i]=U.useState(!!r),[l,s]=U.useState(-1),[c,u]=U.useState(r?r.current:null),d=r||U.useRef(),{translator:p}=U.useContext(zx),f=p.get("Selection.ClearAllStates"),h=()=>{s(-1),o()};let m=null;r||(m=V.createElement(V.Fragment,null,V.createElement(Sk,{item:!0,xs:!0,zeroMinWidth:!0},V.createElement(aC,{style:{padding:"0px 8px"},color:"secondary",badgeContent:t.states.length},V.createElement(gE,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},t.name))),V.createElement(Sk,{item:!0},V.createElement("div",{style:{width:"12px"}})),V.createElement(Sk,{item:!0},V.createElement(cE,{size:"large"},V.createElement(RT,null)))));const g=V.createElement(Uk,{dense:!0},V.createElement(aL,{title:f,onClick:()=>{t.states.forEach((e=>n.clearField(t.name,e)))}},V.createElement(Ix,{variant:"contained",fullWidth:!0},f)),t.states.map(((e,r)=>V.createElement(aL,{key:r,title:t.name,onClick:e=>((e,t)=>{e.stopPropagation(),i(!1),s(t)})(e,r)},V.createElement(cC,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},V.createElement(LT,{field:t,api:n,stateIx:r,skipHandleShowListBoxPopover:!0})))))),v=V.createElement(TL,{open:a,onClose:()=>{i(!1),o()},anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},g),b=r?v:V.createElement(_T,{container:!0,gap:0,className:OT.item,onClick:e=>{e.currentTarget.contains(e.target)&&(u(e.currentTarget),d.current=e.currentTarget,i(!a))}},m,a&&v,l>-1&&V.createElement(kT,{alignTo:d,show:l>-1,close:h,app:n.model,fieldName:t.selections[l].qField,stateName:t.states[l]}));return r&&l>-1?V.createElement(kT,{alignTo:d,show:l>-1,close:h,app:n.model,fieldName:t.selections[l].qField,stateName:t.states[l]}):b}const TT="More",PT={item:"".concat(TT,"-item"),badge:"".concat(TT,"-badge")},MT=_y(Sk)((e=>{let{theme:t}=e;return{["&.".concat(PT.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(PT.badge)]:{padding:t.spacing(0,1)}}}));function NT(e){let{items:t=[],api:n}=e;const r=Xb(),[o,a]=U.useState(!1),[i,l]=U.useState(-1),[s,c]=U.useState(null),u=U.useRef(),d=()=>{l(-1)};let p=null;return i>-1&&(p=t[i].states.length>1?V.createElement(IT,{field:t[i],api:n,moreAlignTo:u,onClose:d}):V.createElement(LT,{field:t[i],api:n,skipHandleShowListBoxPopover:!0,moreAlignTo:u,onClose:d})),V.createElement(MT,{container:!0,gap:0,className:PT.item,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),u.current=e.currentTarget,a(!o))}},V.createElement(Sk,{item:!0},V.createElement(cC,{borderRadius:r.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:r.palette.selected.main,color:r.palette.selected.mainContrastText}},V.createElement(gE,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",t.length))),V.createElement(Sk,{item:!0},V.createElement(cE,{size:"large"},V.createElement(RT,null))),o&&V.createElement(TL,{open:o,onClose:()=>{a(!1)},anchorEl:s,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},V.createElement(Uk,{dense:!0},t.map(((e,t)=>V.createElement(aL,{key:t,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),a(!1),l(t)})(e,t)},V.createElement(cC,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?V.createElement(IT,{field:e,api:n}):V.createElement(LT,{field:e,api:n}))))))),p)}const qT=120,AT=72;function DT(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"$";e.qSelections.forEach((e=>{const r=e.qField,o=t[r]=t[r]||{name:r,states:[],selections:[]};-1===o.states.indexOf(n)&&(o.states.push(n),o.selections.push(e))}))}function zT(e){let{api:t,app:n}=e;const r=Xb(),[o]=CR(n),[a]=OR(o),[i,l]=U.useState({items:[],more:[]}),{modalObjectStore:s}=U.useContext(zx).selectionStore,[c,u]=IR(),[d,p]=U.useState(0);return U.useEffect((()=>{if(!u)return;const{width:e}=u,t=Math.floor(e)-AT,n=Math.floor(t/qT);p(n)}),[u]),U.useEffect((()=>{if(!(n&&o&&a&&d))return;const e=function(e){if(!e)return[];const t={};return e.qSelectionObject&&DT(e.qSelectionObject,t),e.alternateStates&&e.alternateStates.forEach((e=>DT(e.qSelectionObject,t,e.stateName))),Object.keys(t).map((e=>t[e])).filter((e=>!e.selections.some((e=>e.qIsHidden))))}(a);l((t=>{const r=e;if((()=>{const{model:e}=s.get(n.id)||{};return"njsListbox"===(null==e?void 0:e.genericType)})()&&r.length+1===t.items.length){const e=t.items.filter((e=>!1===r.some((t=>e.name===t.name))))[0],{qField:n}=e.selections[0];e.selections=[{qField:n}];const o=t.items.indexOf(e);r.splice(o,0,e)}let o=[];return d<r.length&&(o=r.splice(d-r.length)),{items:r,more:o}}))}),[n,o,a,t.isInModal(),d]),V.createElement(Sk,{ref:c,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},i.items.map((e=>V.createElement(Sk,{item:!0,key:"".concat(e.states.join("::"),"::").concat(e.name),style:{position:"relative",maxWidth:"240px",minWidth:"".concat(qT,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},e.states.length>1?V.createElement(IT,{field:e,api:t}):V.createElement(LT,{field:e,api:t})))),i.more.length>0&&V.createElement(Sk,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(AT,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},V.createElement(NT,{items:i.more,api:t})))}var jT=e=>PR((e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 Z M16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,-5.07265313e-17 13.5,0 L15,0 C15.5522847,1.01453063e-16 16,0.44771525 16,1 L16,2.5 Z M10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 C6,0.223857625 6.22385763,-5.07265313e-17 6.5,0 L9.5,0 C9.77614237,5.07265313e-17 10,0.223857625 10,0.5 Z M1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 5.18696197e-13,2.77614237 5.18696197e-13,2.5 L5.18696197e-13,1 C5.18696197e-13,0.44771525 0.44771525,-1.01453063e-16 1,0 L2.5,0 C2.77614237,5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 5.18696197e-13,15.5522847 5.18696197e-13,15 L5.18696197e-13,13.5 C5.18696197e-13,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M4,7 C7.49095643,7 10,10.1337595 10,12.1872632 C10,12.1872632 8.16051135,9.86624054 4,10 L4,12 C4,12 2.66666667,10.8333333 -1.0658141e-14,8.5 C-2.59348099e-13,8.5 1.33333333,7.33333333 4,5 C4,5 4,5.66666667 4,7 Z"}}]}))(e));var FT=e=>PR((e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M12,7 C12,5.66666667 12,5 12,5 C14.6666667,7.33333333 16,8.5 16,8.5 C13.3333333,10.8333333 12,12 12,12 L12,10 C7.83948865,9.86624054 6,12.1872632 6,12.1872632 C6,10.1337595 8.50904357,7 12,7 Z"}}]}))(e));const BT=(e,t,n)=>{const r=[...n.qStateNames||[]].map((e=>({stateName:e,qSelectionObjectDef:{qStateName:e}})));(t&&t.alternateStates?t.alternateStates.map((e=>e.stateName)):[]).join("::")!==(n.qStateNames||[]).map((e=>e)).join("::")&&e.applyPatches([{qOp:"replace",qPath:"/alternateStates",qValue:JSON.stringify(r)}],!0)};function $T(e){let{api:t,app:n}=e;const{translator:r}=U.useContext(zx),[o]=function(e){const[t]=CR(e),[n]=OR(t),[r]=_R(e),[o,a]=U.useState(null);return U.useEffect((()=>{r&&t&&n&&BT(t,n,r)}),[r,t,n]),U.useEffect((()=>{if(!n)return;let e=!1,t=!1,r=!1;[n,...n.alternateStates||[]].forEach((n=>{e=e||n.qSelectionObject&&n.qSelectionObject.qBackCount>0,t=t||n.qSelectionObject&&n.qSelectionObject.qForwardCount>0,r=r||(n.qSelectionObject&&n.qSelectionObject.qSelections||[]).filter((e=>!0!==e.qLocked)).length>0})),a({canGoBack:e,canGoForward:t,canClear:r})}),[n]),[o,t,n]}(n);return V.createElement(Sk,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},V.createElement(Sk,{item:!0},V.createElement(cE,{style:{marginRight:"8px"},disabled:!o||!o.canGoBack,title:r.get("Navigate.Back"),onClick:()=>t.back(),size:"large"},V.createElement(jT,null))),V.createElement(Sk,{item:!0},V.createElement(cE,{style:{marginRight:"8px"},disabled:!o||!o.canGoForward,title:r.get("Navigate.Forward"),onClick:()=>t.forward(),size:"large"},V.createElement(FT,null))),V.createElement(Sk,{item:!0},V.createElement(cE,{disabled:!o||!o.canClear,title:r.get("Selection.ClearAll"),onClick:()=>t.clear(),size:"large"},V.createElement(gI,null))))}const WT=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function HT(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function UT(){return WT.map(HT).join("")}function VT(e){let{app:t}=e;const n=Xb(),[r]=DI(t);return r?V.createElement(Sk,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:n.palette.background.paper,minHeight:"40px"}},V.createElement(Sk,{item:!0,style:{borderRight:"1px solid ".concat(n.palette.divider)}},V.createElement($T,{api:r,app:t})),V.createElement(Sk,{item:!0,xs:!0,style:{backgroundColor:n.palette.background.darker,overflow:"hidden"}},V.createElement(zT,{api:r,app:t}))):null}let GT;GT="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;let KT=null,ZT=null;const XT=GT.clearTimeout,QT=GT.setTimeout,JT=GT.cancelAnimationFrame||GT.mozCancelAnimationFrame||GT.webkitCancelAnimationFrame,YT=GT.requestAnimationFrame||GT.mozRequestAnimationFrame||GT.webkitRequestAnimationFrame;function eP(e){let t,n,r,o,a,i,l;const s="undefined"!=typeof document&&document.attachEvent;if(!s){i=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},a=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},l=function(e){if(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;i(this),this.__resizeRAF__&&KT(this.__resizeRAF__),this.__resizeRAF__=ZT((function(){a(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))};let e=!1,s="";r="animationstart";const c="Webkit Moz O ms".split(" ");let u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),d="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){d=c[n],s="-"+d.toLowerCase()+"-",r=u[n],e=!0;break}}n="resizeanim",t="@"+s+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",o=s+"animation: 1ms "+n+"; "}return{addResizeListener:function(a,c){if(s)a.attachEvent("onresize",c);else{if(!a.__resizeTriggers__){const s=a.ownerDocument,c=GT.getComputedStyle(a);c&&"static"===c.position&&(a.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(o||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',a=n.head||n.getElementsByTagName("head")[0],i=n.createElement("style");i.id="detectElementResize",i.type="text/css",null!=e&&i.setAttribute("nonce",e),i.styleSheet?i.styleSheet.cssText=r:i.appendChild(n.createTextNode(r)),a.appendChild(i)}}(s),a.__resizeLast__={},a.__resizeListeners__=[],(a.__resizeTriggers__=s.createElement("div")).className="resize-triggers";const u=s.createElement("div");u.className="expand-trigger",u.appendChild(s.createElement("div"));const d=s.createElement("div");d.className="contract-trigger",a.__resizeTriggers__.appendChild(u),a.__resizeTriggers__.appendChild(d),a.appendChild(a.__resizeTriggers__),i(a),a.addEventListener("scroll",l,!0),r&&(a.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&i(a)},a.__resizeTriggers__.addEventListener(r,a.__resizeTriggers__.__animationListener__))}a.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(s)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",l,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}null==JT||null==YT?(KT=XT,ZT=function(e){return QT(e,20)}):(KT=function([e,t]){JT(e),XT(t)},ZT=function(e){const t=YT((function(){XT(n),e()})),n=QT((function(){JT(t),e()}),20);return[t,n]});class tP extends U.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const r=window.getComputedStyle(this._parentNode)||{},o=parseFloat(r.paddingLeft||"0"),a=parseFloat(r.paddingRight||"0"),i=parseFloat(r.paddingTop||"0"),l=parseFloat(r.paddingBottom||"0"),s=this._parentNode.getBoundingClientRect(),c=s.height-i-l,u=s.width-o-a,d=this._parentNode.offsetHeight-i-l,p=this._parentNode.offsetWidth-o-a;(e||this.state.height===d&&this.state.scaledHeight===c)&&(t||this.state.width===p&&this.state.scaledWidth===u)||(this.setState({height:d,width:p,scaledHeight:c,scaledWidth:u}),"function"==typeof n&&n({height:d,scaledHeight:c,scaledWidth:u,width:p}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(t)):(this._detectElementResize=eP(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:r=!1,disableWidth:o=!1,nonce:a,onResize:i,style:l={},tagName:s="div",...c}=this.props,{height:u,scaledHeight:d,scaledWidth:p,width:f}=this.state,h={overflow:"visible"},m={};let g=!1;return r||(0===u&&(g=!0),h.height=0,m.height=u,m.scaledHeight=d),o||(0===f&&(g=!0),h.width=0,m.width=f,m.scaledWidth=p),U.createElement(s,{ref:this._setRef,style:{...h,...l},...c},!g&&e(m))}}function nP(e){null==e||e.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")}))}function rP(e){return(null==e?void 0:e.closest(".njs-cell"))||(null==e?void 0:e.closest(".qv-gridcell"))}function oP(e){let{keyboard:t,hovering:n,updateKeyScroll:r,containerRef:o,currentScrollIndex:a,isModal:i,constraints:l}=e;return{handleKeyDown:e=>{const{keyCode:n,shiftKey:r=!1}=e.nativeEvent,a=()=>{e.stopPropagation(),e.preventDefault()};if(!t.enabled)return;const l=e.currentTarget.closest(".listbox-container"),s=i();switch(n){case UO.TAB:if(s)r?KO(l)||GO(l):GO(l)||KO(l);else{if(!r)break;t.blur(!0)}a();break;case UO.ENTER:case UO.SPACE:if(!e.target.classList.contains("listbox-container"))break;t.focus(),a();break;case UO.ESCAPE:(e=>{const{currentTarget:n,target:r}=e,a=r.classList.contains("listbox-container"),i=rP(n.closest(".listbox-container")),l=1===(null==i?void 0:i.querySelectorAll(".listbox-container").length);if(a||l)t.blur(!0);else{nP(o.current),n.classList.add("last-focused"),t.blur();const e=n.closest(".listbox-container");e.setAttribute("tabIndex",-1),null==e||e.focus()}})(e)}},handleOnMouseEnter:()=>{(()=>{const e=(null==l?void 0:l.select)||(null==l?void 0:l.active),t=i();return e||t})()||(n.current=!0)},handleOnMouseLeave:()=>{n.current&&(n.current=!1)},globalKeyDown:e=>{if(!n.current)return;const{keyCode:t,ctrlKey:o=!1,shiftKey:i=!1}=e;switch(t){case UO.ARROW_UP:r({up:1});break;case UO.ARROW_DOWN:r({down:1});break;case UO.PAGE_UP:r({up:a.stop-a.start});break;case UO.PAGE_DOWN:r({down:a.stop-a.start});break;case UO.HOME:r({scrollPosition:o&&i?"overflowStart":"start"});break;case UO.END:r({scrollPosition:o&&i?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const aP=_y("div")((()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"})));function iP(e){let{text:t}=e;const{translator:n}=U.useContext(zx);return V.createElement(aP,null,n.get(t))}var lP=e=>PR((e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M15.9993744,3 L15.9993744,5 L4.99937445,5 L4.99937445,3 L15.9993744,3 Z M8.99937445,7 L15.9993744,7 L15.9993744,9 L8.99937445,9 L8.99937445,7 Z M11.9993744,11 L15.9993744,11 L15.9993744,13 L11.9993744,13 L11.9993744,11 Z M2.2,11 L7,11 L7,9.00369263 C7,8.89323568 7.08954305,8.80369263 7.2,8.80369263 C7.2549016,8.80369263 7.30738916,8.82626165 7.34515712,8.86610844 L10.1852182,11.8624926 C10.2583124,11.93961 10.258346,12.0604218 10.1852948,12.13758 L7.34523376,15.1373102 C7.2692928,15.2175206 7.14270711,15.2209817 7.06249671,15.1450407 C7.02260076,15.1072683 7,15.0547472 7,14.9998069 L7,12.9043747 C4.79351111,12.9043747 2.8018683,12.9266213 1.02507156,12.9711145 L1.02507252,12.9711526 C0.472939773,12.9849787 0.014139487,12.5485949 0.000313396522,11.9964622 C0.000104473692,11.988119 -1.32268838e-12,11.9797736 -1.3231638e-12,11.9714278 L-1.83320026e-12,3 L2,3 L2,10.8 C2,10.9104569 2.08954305,11 2.2,11 Z"}}]}))(e));const sP={fontSize:"12px"},cP=_y(yx)((e=>{let{theme:t,isLoading:n}=e;return{position:"absolute",top:0,left:0,height:48,zIndex:2,background:t.palette.custom.disabledBackground,opacity:1,color:t.palette.custom.disabledContrastText,width:"100%",display:"flex",justifyContent:n?"center":"flex-start",paddingLeft:16,paddingRight:16,borderRadius:0,"& *, & p":{color:t.palette.custom.disabledContrastText},"& i":{padding:"".concat(rO,"px")}}})),uP=_y(Sk,{shouldForwardProp:e=>!["styles","isRtl"].includes(e)})((e=>{let{styles:t,isRtl:n}=e;return a(a({flexDirection:n?"row-reverse":"row",wrap:"nowrap",minHeight:32,alignContent:"center"},t.header),{},{"& *":{color:t.header.color}})})),dP=_y(gE)((e=>{let{styles:t}=e;return a(a({},t.header),{},{display:"block",alignItems:"center",paddingRight:"1px"})}));function pP(e){let{translator:t,toggleLock:n,keyboard:r,isLoading:o}=e;const a=t.get("SelectionToolbar.ClickToUnlock");return V.createElement(cP,{title:a,tabIndex:r.enabled?0:-1,onClick:n,"data-testid":"listbox-unlock-button",id:"listbox-unlock-button",isLoading:o},o?V.createElement($C,{size:16,variant:"indeterminate",color:"primary"}):V.createElement(NR,{disableRipple:!0,style:sP}),!o&&V.createElement(gE,{fontSize:"14px"},a))}const fP=500;let hP=0;function mP(e){var t,n;let{layout:r,translator:o,styles:i,isRtl:l,showLock:c,showSearchIcon:u,isDrillDown:d,constraints:p,onShowSearch:f,classes:h,containerRect:m,isPopover:g,showToolbar:v,showDetachedToolbarOnly:b,containerRef:y,model:x,selectionState:S,isDirectQuery:w,selections:E,keyboard:C,autoConfirm:k}=e;const[L,R]=U.useState(b),[O,_]=U.useState(null==r||null===(t=r.qListObject)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.qLocked),[I,T]=U.useState(!1);U.useEffect((()=>{var e;_(null==r||null===(e=r.qListObject)||void 0===e||null===(e=e.qDimensionInfo)||void 0===e?void 0:e.qLocked)}),[null==r||null===(n=r.qListObject)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.qLocked]);const P=U.useRef(null),M=c&&O,N=!c&&O,q=u||N||d,A=tO-(q?rO:0),D=l?tO-(q?rO:0):nO,z=(u?oO:0)+(N?oO:0)+(d?oO:0),j=function(e){let{isLocked:t,setLocked:n,settingLockedState:r,model:o,setSettingLockedState:a}=e;return()=>{const e=new Date;if(e-hP<fP)return Promise.resolve();if(r)return()=>{};a(!0),hP=e;const i=t?o.unlock:o.lock;return n(!t),i.call(o,"/qListObjectDef").catch((()=>{n(t)})).finally((()=>{setTimeout((()=>{a(!1)}),0)}))}}({isLocked:O,setLocked:_,settingLockedState:I,setSettingLockedState:T,model:x}),F=cI({layout:r,model:x,translator:o,selectionState:S,isDirectQuery:w}),B=O||!c?void 0:[{key:"lock",type:void 0,label:o.get("SelectionToolbar.ClickToLock"),getSvgIconShape:qR,enabled:()=>!I&&!S.selectDisabled()&&HI(r),action:j}],$=null!=p&&p.active?V.createElement(PI,{title:o.get("Listbox.Search"),size:"large",style:a(a({},sP),{},{padding:"".concat(rO,"px")})}):V.createElement(cE,{onClick:f,tabIndex:-1,title:o.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},V.createElement(PI,{style:sP}));U.useEffect((()=>{if(!P.current||!m)return;const e=function(e){var t,n,r,o;let{containerRect:a,titleRef:i,iconsWidth:l,paddingLeft:s,paddingRight:c}=e;const u=s+c,d=a.width<(null!==(t=null==i||null===(n=i.current)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)+l+u+2+128,p=(null==i||null===(r=i.current)||void 0===r?void 0:r.scrollWidth)>(null==i||null===(o=i.current)||void 0===o?void 0:o.offsetWidth);return!(!d&&!p)}({containerRect:m,titleRef:P,iconsWidth:z,paddingLeft:A,paddingRight:D});R(b||e)}),[z,A,D,P.current,b,Object.entries(m||{}).sort().join(",")]);const W=function(e){let{isDetached:t,showToolbar:n,containerRef:r,isLocked:o,listboxSelectionToolbarItems:a,extraItems:i,selections:l,keyboard:s,autoConfirm:c}=e;return{autoConfirm:c,isDetached:t,show:n&&!t,popover:{show:n&&t,anchorEl:r.current},extraItems:i,more:{enabled:!o,actions:a,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:n,api:l,onConfirm:()=>{null==s||s.focus()},onCancel:()=>{null==s||s.focus()}}}}({isDetached:!g&&L,showToolbar:v,containerRef:y,isLocked:O,extraItems:B,listboxSelectionToolbarItems:F,selections:E,keyboard:C,autoConfirm:k}),H=V.createElement(TI,s({isRtl:l,layout:r},W));if(b)return H;const G=N?V.createElement(NR,{size:"large",style:a(a({},sP),{},{padding:"".concat(rO,"px")})}):void 0;return V.createElement(uP,{item:!0,container:!0,styles:i,isRtl:l,marginY:1,paddingLeft:"".concat(A,"px"),paddingRight:"".concat(D,"px"),className:"header-container"},M&&V.createElement(pP,{isLoading:I,translator:o,toggleLock:j,keyboard:C}),q&&V.createElement(Sk,{item:!0,container:!0,alignItems:"center",width:z,className:"header-action-container"},G||u&&$,d&&V.createElement(lP,{tabIndex:-1,title:o.get("Listbox.DrillDown"),style:a(a({},sP),{},{padding:"".concat(rO,"px")})})),V.createElement(Sk,{item:!0,xs:!0,minWidth:0,justifyContent:l?"flex-end":"flex-start",className:h.listBoxHeader},V.createElement(dP,{variant:"h6",noWrap:!0,ref:P,title:r.title,styles:i},r.title)),V.createElement(Sk,{item:!0,display:"flex"},H))}const gP="ListBoxInline",vP={listBoxHeader:"".concat(gP,"-listBoxHeader"),screenReaderOnly:"".concat(gP,"-screenReaderOnly"),listboxWrapper:"".concat(gP,"-listboxWrapper")},bP=_y(Sk,{shouldForwardProp:e=>!["containerPadding","isGridMode","styles"].includes(e)})((e=>{let{theme:t,containerPadding:n,isGridMode:r,styles:o}=e;return a(a({},o.background),{},{["& .".concat(vP.listBoxHeader)]:{alignSelf:"center",display:"flex"},["& .".concat(vP.screenReaderOnly)]:{position:"absolute",height:0,width:0,overflow:"hidden"},["& .".concat(vP.listboxWrapper)]:{padding:n},"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus ::-webkit-scrollbar-track":{boxShadow:r?void 0:"inset -2px -2px 0px #3F8AB3"},"&:focus-visible":{outline:"none"}})}));const yP=V.memo((function(e){var t,n,r,o,i;let{options:l,layout:s}=e;const{app:c,direction:u,frequencyMode:d,checkboxes:p,search:f=!0,focusSearch:h=!1,rangeSelect:m=!0,model:g,selections:v,update:b,fetchStart:y,postProcessPages:x,calculatePagesHeight:S,showGray:w=!0,scrollState:E,renderedCallback:C,toolbar:k=!0,isPopover:L=!1,showLock:R=!1,components:O,selectDisabled:_=(()=>!1)}=l,I=Xb(),{translator:T,keyboardNavigation:P,themeApi:M,constraints:N}=U.useContext(zx),{checkboxes:q=p}=s||{},A=CT({app:c,themeApi:M,theme:I,components:O,checkboxes:q}),D=function(e){let{appLayout:t}=e;return!(null==t||!t.qIsDirectQueryMode)}({appLayout:null==c?void 0:c.layout}),z=U.useRef(),[j,F]=IR(),[B,$]=(()=>{const[e,t]=U.useState({}),n=U.useCallback((e=>{t({current:e})}),[t]);return[e,n]})(),[W,H]=U.useState(!1),[G,K]=U.useState(!1),Z=U.useRef(!1),[X,Q]=U.useState({down:0,up:0,scrollPosition:""}),J=e=>Q((t=>a(a({},t),e))),[Y,ee]=U.useState({start:0,stop:0}),[te]=DI(c),[ne]=U.useState((()=>$I({selectDisabled:_}))),re=function(e){let{containerRef:t,enabled:n}=e;const[r,o]=U.useState(!1),a={enabled:n,active:r,innerTabStops:!n||r,blur(e){var r;if(!n)return;o(!1);const a=rP(t.current)||(null===(r=t.current)||void 0===r?void 0:r.parentElement);var i;null==(i=t.current)||i.querySelectorAll('[tabIndex="0"]').forEach((e=>{e.setAttribute("tabIndex",-1)})),nP(t.current),e&&a&&(a.setAttribute("tabIndex",0),a.focus())},focus(){if(!n)return;o(!0);const e=t.current,r=null==e?void 0:e.querySelector(".search input"),a=null==e?void 0:e.querySelector(".value.last-focused"),i=null==e?void 0:e.querySelector(".value.selector, .value"),l=null==e?void 0:e.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),s=null==e?void 0:e.querySelector("#listbox-unlock-button"),c=r||a||i||s||l;null==c||c.setAttribute("tabIndex",0),null==c||c.focus()},focusSelection(){const e=document.querySelector("#listbox-unlock-button"),t=document.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),n=e||t;null==n||n.setAttribute("tabIndex",0),null==n||n.focus()}};return a}({containerRef:z,enabled:P}),oe=U.useCallback((()=>(e=>{var t,n;let{app:r,appSelections:o}=e;return null!==(t=null===(n=r.isInModalSelection)||void 0===n?void 0:n.call(r))&&void 0!==t?t:o.isInModal()})({app:c,appSelections:te})),[c,te]),ae=null==s?void 0:s.qListObject.qDimensionInfo.qError,ie=ae&&N.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",{handleKeyDown:le,handleOnMouseEnter:se,handleOnMouseLeave:ce,globalKeyDown:ue}=U.useMemo((()=>oP({keyboard:re,hovering:Z,updateKeyScroll:J,containerRef:z,currentScrollIndex:Y,app:c,appSelections:te,constraints:N,isModal:oe})),[re,Z,J,z,Y,c,te,N,oe]);U.useEffect((()=>(document.addEventListener("keydown",ue),()=>{document.removeEventListener("keydown",ue)})),[ue]),U.useEffect((()=>{!0===f&&K(!0);const e=()=>{H(!0)},t=()=>{H(!1),"toggle"===f&&K(!1)};return L&&(v.isActive()||(v.begin("/qListObjectDef"),v.on("activated",e),v.on("deactivated",t)),H(L)),k&&v&&(v.isModal()||(v.on("activated",e),v.on("deactivated",t)),H(v.isActive())),()=>{v&&v.removeListener&&(v.removeListener("activated",e),v.removeListener("deactivated",t))}}),[k,v,L]),U.useEffect((()=>{if(B&&B.current&&(f&&h||"toggle"===f&&G)){const e=B.current.querySelector("input");e&&e.focus()}}),[B&&B.current,G,f,h]);const{wildCardSearch:de,searchEnabled:pe,autoConfirm:fe=!1,layoutOptions:he={}}=null!=s?s:{},me=null==s||null===(t=s.qListObject)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.qLocked,ge=!1!==pe&&"toggle"===f&&!me,ve="H"===(null==s||null===(n=s.qListObject)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.qGrouping),be=(null==s||null===(r=s.title)||void 0===r?void 0:r.length)&&!1!==(null==s?void 0:s.showTitle),ye=k&&!be&&!L,xe=k&&be||L,Se="rtl"===u;if(!g||!s||!T)return null;const we=!0===f||"toggle"===f&&G&&!1!==pe,Ee=null!==(o=he.dense)&&void 0!==o&&o,Ce=()=>{K(!G)},ke=()=>{if("toggle"===f)Ce();else{const e=B.current.querySelector("input");null==e||e.focus()}},Le=we&&"toggle"===f,Re="grid"===(null==he?void 0:he.dataLayout),Oe=function(e){let t,{isGridMode:n,dense:r,height:o,layoutOrder:a}=e;if(n){let e;e=R_({isGridMode:n,dense:r})>o?"0px":"2px",t="row"===a?"".concat(e," 4px"):"".concat(e," 6px ").concat(e," 4px")}else t=void 0;return t}({isGridMode:Re,dense:Ee,height:null===(i=z.current)||void 0===i?void 0:i.clientHeight,layoutOrder:he.layoutOrder});ae&&(null==C||C());const _e=xe?fO+iO:0,Ie=V.createElement(mP,{showSearchIcon:ge,isDrillDown:ve,onShowSearch:Ce,isPopover:L,showToolbar:W,isDirectQuery:D,autoConfirm:fe,showDetachedToolbarOnly:ye,layout:s,translator:T,styles:A,isRtl:Se,showLock:R,constraints:N,classes:vP,containerRect:F,containerRef:z,model:g,selectionState:ne,selections:v,keyboard:re});return V.createElement(V.Fragment,null,ye&&Ie,V.createElement(bP,{className:"listbox-container",container:!0,tabIndex:re.enabled?-1:void 0,direction:"column",gap:0,containerPadding:Oe,styles:A,style:{height:"100%",flexFlow:"column nowrap"},onKeyDown:le,onMouseEnter:se,onMouseLeave:ce,ref:e=>{z.current=e,j(e)},isGridMode:Re,"aria-label":re.active?T.get("Listbox.ScreenReaderInstructions"):""},xe&&Ie,V.createElement(Sk,{item:!0,container:!0,direction:"column",height:"100%",minHeight:_e,role:"region","aria-label":T.get("Listbox.ResultFilterLabel")},V.createElement(Sk,{item:!0,ref:$},V.createElement(AI,{selections:v,selectionState:ne,model:g,dense:Ee,keyboard:re,visible:we,search:f,autoFocus:Le,wildCardSearch:de,searchEnabled:pe,direction:u,hide:ge&&Ce,styles:A})),V.createElement(Sk,{item:!0,xs:!0,className:vP.listboxWrapper},ae?V.createElement(iP,{text:ie}):V.createElement(tP,null,(e=>{let{height:t,width:n}=e;return V.createElement(oI,{model:g,app:c,constraints:N,layout:s,selections:v,selectionState:ne,direction:u,frequencyMode:d,rangeSelect:m,checkboxes:q,height:t,width:n,update:b,fetchStart:y,postProcessPages:x,calculatePagesHeight:S,keyboard:re,showGray:w,scrollState:E,keyScroll:{state:X,reset:()=>Q({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:Y,set:ee},renderedCallback:C,onCtrlF:ke,isModal:oe,styles:A})}))))))}));function xP(e){let{options:t={}}=e;const{model:n}=t,[r]=OR(n);return V.createElement(yP,{options:t,layout:r})}function SP(e){let{app:t,qId:n,options:r={}}=e;const[o,a]=U.useState(),[i]=SR(),{sessionModel:l}=r,s=["dense","frequencyMode","checkboxes","histogram","title","stateName","listLayout"],c=Object.keys(r).filter((e=>s.includes(e)));if(c.length)throw new Error('Option "'.concat(c.join(", "),'" is not applicable for existing objects.'));return U.useEffect((()=>{Promise.resolve(l||async function(e){return i.get(e)||await t.getObject(e)}(n)).then((e=>{!function(e){i.get(e.id)||(i.set(e.id,e),e.once("closed",(()=>{i.clear(e.id)})))}(e),a(e)}))}),[]),o}const wP={qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:"",qShowAlternatives:!0,frequencyEnabled:!1,qFrequencyMode:"N",qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},histogram:!1,frequencyMax:void 0,checkboxes:!1,searchEnabled:!0,showTitle:!0,wildCardSearch:!1,autoConfirm:!1,layoutOptions:{dense:!1,dataLayout:"singleColumn",layoutOrder:"row",maxVisibleColumns:{auto:!0,maxColumns:3},maxVisibleRows:{auto:!0,maxRows:3}},title:""};function EP(e){let t;switch(!0){case["none","N","NX_FREQUENCY_NONE"].includes(e):t="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(e):t="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(e):t="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(e):t="R";break;default:t="N"}return t}const CP=["__DO_NOT_USE__"],kP=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{__DO_NOT_USE__:t={}}=e,n={update:void 0,fetchStart:void 0,showGray:!0,focusSearch:!1,sessionModel:void 0,selectionsApi:void 0,selectDisabled:void 0,postProcessPages:void 0,calculatePagesHeight:!1};return a(a(a({},c(e,CP)),n),t)};function LP(e){let{app:t,fieldIdentifier:n,qId:r,stateName:o,element:i,options:l,renderedCallback:s}=e;const{isExistingObject:c,hasExternalSelectionsApi:u}=function(e){let{qId:t,options:n}=e;return{isExistingObject:!(!t&&!n.sessionModel),hasExternalSelectionsApi:!!n.selectionsApi}}({qId:r,options:l});c||Object.assign(l,{frequencyMode:EP(l.frequencyMode)});const[d,p]=U.useState(0);U.useEffect((()=>{if(d)throw new Error("Source or selection Api can not change after a listbox has been mounted");p(d+1)}),[c,u]);const f=c?SP({app:t,qId:r,options:l}):function(e){var t;let{app:n,fieldIdentifier:r,stateName:o,options:a={}}=e;const[i,l]=U.useState(""),[s,c]=U.useState(!0),[u,d]=U.useState(),[p,f]=U.useState(),h=null!==(t=a.title)&&void 0!==t?t:p;let{histogram:m=!1,frequencyMode:g="N"}=a;i&&i.failedToFetchFieldDef&&(m=!1,g="N"),U.useEffect((()=>{const e=m||"N"!==g;r.qLibraryId&&e?async function(){try{const e=await n.getDimension(r.qLibraryId),t=await e.getLayout();f(t.qDim.title),"N"===t.qDim.qGrouping?l(t.qDim.qFieldDefs?t.qDim.qFieldDefs[0]:""):l({multiFieldDim:!0}),c(!1)}catch(e){throw c(!1),l({failedToFetchFieldDef:!0}),new Error("Disabling frequency count and histogram: ".concat(e&&e.message))}}():(c(!1),f(r))}),[]);const{dense:v,checkboxes:b,listLayout:y,properties:x={}}=a,S={dense:v};"horizontal"===y&&(S.dataLayout="grid",S.layoutOrder="column",S.maxVisibleColumns={auto:!0},S.maxVisibleRows={auto:!1,maxRows:1});const w=U.useRef();w.current||(w.current=UT());const E=He(!0,{},wP,{qInfo:{qId:w.current},qListObjectDef:{qStateName:o,qFrequencyMode:m&&"N"===g?"V":g},histogram:m,checkboxes:b,layoutOptions:S,title:h});let C;if(He(!0,E,x),r.qLibraryId?(E.qListObjectDef.qLibraryId=r.qLibraryId,C=r.qLibraryId):(E.qListObjectDef.qDef.qFieldDefs=[r],C=r),"P"!==g&&m)if(null!=i&&i.multiFieldDim)E.frequencyMax="fetch";else{const e=r.qLibraryId?i:C;E.frequencyMax={qValueExpression:Y_(e)}}const[k]=wR(E,s?null:n,C,o);return U.useEffect((()=>{k&&d(k)}),[k]),u}({app:t,fieldIdentifier:n,stateName:o,options:l}),h=U.useRef(i),m=u?l.selectionsApi:BI(t,f,[h,".njs-action-toolbar-more",".njs-action-toolbar-popover"],l)[0],g=U.useMemo((()=>a(a({},l),{},{selections:m,model:f,app:t,renderedCallback:s})),[l,m,f,t]);return m&&f?V.createElement(xP,{options:g}):null}const RP={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function OP(e){let{app:t,fieldIdentifier:n,stateName:r,element:o,options:a={}}=e;const[i,l]=U.useState(!!a.show);return V.createElement(kT,{show:i,app:t,alignTo:{current:o},anchorOrigin:a.anchorOrigin,transformOrigin:a.transformOrigin,close:()=>{l(!1),a.onPopoverClose&&a.onPopoverClose()},fieldName:n,stateName:r,autoFocus:a.autoFocus,components:a.components})}function _P(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function IP(e,t){let n=0;for(let r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n}const TP=e=>({qDef:{qFieldDefs:[e]}}),PP=e=>({qDef:{qDef:e}});function MP(e){let{dc:t,def:n,properties:r}=e;t.qDimensions=t.qDimensions||[],t.qMeasures=t.qMeasures||[],t.qInterColumnSortOrder=t.qInterColumnSortOrder||[],t.qInitialDataFetch=t.qInitialDataFetch||[],t.qColumnOrder=t.qColumnOrder||[],t.qExpansionState=t.qExpansionState||[];const o=r,i={dimensions:()=>t.qDimensions,measures:()=>t.qMeasures,addDimension(e){const r="string"==typeof e?TP(e):a(a({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||UT(),r.qDef.qSortCriterias=r.qDef.qSortCriterias||[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],r.qOtherTotalSpec=r.qOtherTotalSpec||{},r.qAttributeExpressions=r.qAttributeExpressions||[],r.qAttributeDimensions=r.qAttributeDimensions||[],t.qDimensions.length<i.maxDimensions()?(t.qDimensions.push(r),_P(t.qInterColumnSortOrder,t.qDimensions.length-1),n.dimensions.added(r,o)):(t.qLayoutExclude=t.qLayoutExclude||{},t.qLayoutExclude.qHyperCubeDef=t.qLayoutExclude.qHyperCubeDef||{},t.qLayoutExclude.qHyperCubeDef.qDimensions=t.qLayoutExclude.qHyperCubeDef.qDimensions||[],t.qLayoutExclude.qHyperCubeDef.qMeasures=t.qLayoutExclude.qHyperCubeDef.qMeasures||[],t.qLayoutExclude.qHyperCubeDef.qDimensions.push(r)),r},removeDimension(e){const r=t.qDimensions.splice(e,1)[0];return IP(t.qInterColumnSortOrder,e),n.dimensions.removed(r,o,e),r},addMeasure(e){const r="string"==typeof e?PP(e):a(a({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||UT(),r.qSortBy=r.qSortBy||{qSortByLoadOrder:1,qSortByNumeric:-1},r.qAttributeDimensions=r.qAttributeDimensions||[],r.qAttributeExpressions=r.qAttributeExpressions||[],t.qMeasures.length<i.maxMeasures()?(t.qMeasures.push(r),_P(t.qInterColumnSortOrder,t.qDimensions.length+t.qMeasures.length-1),n.measures.added(r,o)):(t.qLayoutExclude=t.qLayoutExclude||{},t.qLayoutExclude.qHyperCubeDef=t.qLayoutExclude.qHyperCubeDef||{},t.qLayoutExclude.qHyperCubeDef.qDimensions=t.qLayoutExclude.qHyperCubeDef.qDimensions||[],t.qLayoutExclude.qHyperCubeDef.qMeasures=t.qLayoutExclude.qHyperCubeDef.qMeasures||[],t.qLayoutExclude.qHyperCubeDef.qMeasures.push(r))},removeMeasure(e){const r=t.qMeasures.splice(e,1)[0];IP(t.qInterColumnSortOrder,t.qDimensions.length+e),n.measures.removed(r,o,e)},maxDimensions:()=>n.dimensions.max(t.qMeasures.length),maxMeasures:()=>n.measures.max(t.qDimensions.length),canAddDimension:()=>t.qDimensions.length<i.maxDimensions(),canAddMeasure:()=>t.qMeasures.length<i.maxMeasures()};return i}const NP=e=>({qDef:{qFieldDefs:[e]}});function qP(e){let{dc:t,def:n,properties:r}=e;t.qInitialDataFetch=t.qInitialDataFetch||[];const o=r,i={dimensions:()=>t.qLibraryId||t.qDef&&t.qDef.qFieldDefs&&0!==t.qDef.qFieldDefs.length?[t]:[],measures:()=>[],addDimension(e){const r="string"==typeof e?NP(e):a(a({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||UT(),r.qDef.qSortCriterias=t.qDef.qSortCriterias||[{qSortByState:1,qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],Object.keys(r).forEach((e=>{t[e]=r[e]})),n.dimensions.added(r,o),r},removeDimension(e){const r=t;return delete t.qDef,delete t.qLibraryId,n.dimensions.removed(r,o,e),r},addMeasure(){},removeMeasure(){},maxDimensions:()=>1,maxMeasures:()=>0,canAddDimension:()=>0===i.dimensions().length,canAddMeasure:()=>!1};return i}const AP=e=>({qDef:{qFieldDefs:[e]}}),DP=e=>{let t;return t="string"==typeof e?He(!0,{},wP,{qListObjectDef:AP(e)}):e.qListObjectDef?He(!0,{},wP,e):He(!0,{},wP,{qListObjectDef:e}),t};function zP(e){let{children:t,halo:n}=e;const r={async addDimension(e){const r=DP(e),o=r.qListObjectDef;if(o.qDef.cId=o.qDef.cId||UT(),!r.title)if(o.qLibraryId){const e=await n.app.getDimension(o.qLibraryId),t=await e.getProperties();t.qDim.qLabelExpression?r.title={qStringExpression:{qExpr:t.qDim.qLabelExpression}}:r.title=t.qDim.title}else{var a,i;r.title=o.qDef.title||(null===(a=o.qDef.qFieldLabels)||void 0===a?void 0:a[0])||(null===(i=o.qDef.qFieldDefs)||void 0===i?void 0:i[0])}t.push({qProperty:r,qChildren:[]})},addMeasure(){}};return r}function jP(e){return"string"==typeof e&&"="===e[0]||"object"==typeof e&&e.qDef&&e.qDef.qDef||"object"==typeof e&&e.qLibraryId&&"measure"===e.type?"measure":"dimension"}async function FP(e,t){let{sn:n,properties:r,fields:o,children:a}=e;if(!o.length)return;const i=n.qae.data.targets[0];if(!i)return;const{propertyPath:l}=i,s=l.split("/");let c=r;for(let e=0;e<s.length;e++){const t=s[e];c=t?c[t]:c}const u=function(e){return e.match("/qListObjectDef")?qP:e.match("/qChildListDef")?zP:MP}(l),d=u({dc:c,def:i,properties:r,children:a,halo:t});for(let e=0;e<o.length;++e){const t=o[e];"measure"===jP(t)?await d.addMeasure(t):await d.addDimension(t)}}var BP={getValue:(e,t,n)=>{if(null==e||null==t)return n;const r=t.split(".");let o=e;for(let e=0;e<r.length;++e){const t=r[e];if(""!==t){if(void 0===o[t]||null===o[t])return n;o=o[t]}}return o},setValue:(e,t,n)=>{if(null==e||null==t)return;const r=t.split("."),o=r[r.length-1];let a=e;for(let e=0;e<r.length-1;++e){const t=r[e];void 0!==a[t]&&null!==a[t]||(a[t]=Number.isNaN(+r[e+1])?{}:[]),a=a[t]}void 0!==n&&"__proto__"!==o&&"constructor"!==o?a[o]=n:delete a[o]},isEmpty:e=>0===Object.keys(e).length&&e.constructor===Object};var $P={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;let n=e.indexOf(t[0]);if(-1!==n){for(let r=0;r<t.length;r++){const o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){let n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r}};const WP=2**53-1;function HP(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function UP(e,t){const n=He(!0,{},t,e);return BP.getValue(n,"qOtherTotalSpec.qOtherCounted")||BP.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),BP.getValue(n,"qOtherTotalSpec.qOtherLimit")||BP.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function VP(e,t){return He(!0,{},t,e)}function GP(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var KP={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===BP.getValue(e,t)&&BP.setValue(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:HP,importCommonProperties:function(e,t,n){const r="masterobject"===BP.getValue(t,"properties.qInfo.qType")?"masterobject":BP.getValue(n,"qInfo.qType");BP.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},copyPropertyIfExist:function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},copyPropertyOrSetDefault:function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},createDefaultDimension:UP,createDefaultMeasure:VP,resolveValue:GP,getHypercubePath:function(e){const t=BP.getValue(e,"data.targets.0.propertyPath","").split("/");return t.length&&"qHyperCubeDef"===t[t.length-1]&&(t.length-=1),t.join(".")},getDefaultDimension:function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},getDefaultMeasure:function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},setInterColumnSortOrder:function(e){let{exportFormat:t,newHyperCubeDef:n}=e;const r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();let a=n.qInterColumnSortOrder.length;if(a!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());a!==o;)a<o?($P.indexAdded(n.qInterColumnSortOrder,a),++a):(--a,$P.indexRemoved(n.qInterColumnSortOrder,a))},createNewProperties:function(e){let{exportFormat:t,initialProperties:n,hypercubePath:r}=e,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((e=>{"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=He(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?BP.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||HP(e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),o=He(!0,{},n,o),null===o.components&&(o.components=[]),o},getMaxMinDimensionMeasure:function(e){let{exportFormat:t,dataDefinition:n={}}=e;const r=t.data[0],o=n.dimensions||{max:0},a=n.measures||{max:0},i=GP(a.max,r.dimensions.length,WP),l=GP(a.min,r.dimensions.length,0);return{maxDimensions:GP(o.max,i,WP),minDimensions:GP(o.min,l,0),maxMeasures:i,minMeasures:l}},shouldInitLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:a}=e;const i=t.data[0];return i.dimensions.length>n&&n>0||i.measures.length>o&&o>0||i.excludedDimensions.length>0&&i.dimensions.length+i.excludedDimensions.length>r||i.excludedMeasures.length>0&&i.measures.length+i.excludedMeasures.length>a||!o&&i.measures.length>0||!n&&i.dimensions.length>0},initLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:a,newHyperCubeDef:i}=e;const l=t.data[0];i.qLayoutExclude||(i.qLayoutExclude={}),i.qLayoutExclude.qHyperCubeDef||(i.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>n&&n>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>r)&&(i.qLayoutExclude.qHyperCubeDef.qDimensions||(i.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>a)&&(i.qLayoutExclude.qHyperCubeDef.qMeasures||(i.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(i.qLayoutExclude.qHyperCubeDef.qMeasures||(i.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&l.dimensions.length&&(i.qLayoutExclude.qHyperCubeDef.qDimensions||(i.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},addDefaultDimensions:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,newHyperCubeDef:o,defaultDimension:a}=e;const i=t.data[0];let l;if(n>0)for(l=0;l<i.dimensions.length;++l)o.qDimensions.length<n?o.qDimensions.push(UP(i.dimensions[l],a)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(UP(i.dimensions[l],a));else if(i.dimensions.length)for(l=0;l<i.dimensions.length;++l)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(UP(i.dimensions[l],a));if(i.excludedDimensions.length)for(l=0;l<i.excludedDimensions.length;++l)o.qDimensions.length<r?o.qDimensions.push(UP(i.excludedDimensions[l],a)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(UP(i.excludedDimensions[l],a))},addDefaultMeasures:function(e){let{exportFormat:t,maxMeasures:n,minMeasures:r,newHyperCubeDef:o,defaultMeasure:a}=e;const i=t.data[0];let l;if(n>0)for(l=0;l<i.measures.length;++l)o.qMeasures.length<n?o.qMeasures.push(VP(i.measures[l],a)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(VP(i.measures[l],a));else if(i.measures.length)for(l=0;l<i.measures.length;++l)o.qLayoutExclude.qHyperCubeDef.qMeasures.push(VP(i.measures[l],a));if(i.excludedMeasures.length)for(l=0;l<i.excludedMeasures.length;++l)o.qMeasures.length<r?o.qMeasures.push(VP(i.excludedMeasures[l],a)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(VP(i.excludedMeasures[l],a))},updateDimensionsOnAdded:function(e){let{newProperties:t,dataDefinition:n,hypercubePath:r}=e;if(n.dimensions&&"function"==typeof n.dimensions.added){const e=BP.getValue(t,r||"").qHyperCubeDef,o=[...e.qDimensions];e.qDimensions=[],o.forEach((r=>{e.qDimensions.push(r),n.dimensions.added(r,t)}))}},updateMeasuresOnAdded:function(e){let{newProperties:t,dataDefinition:n,hypercubePath:r}=e;if(n.measures&&"function"==typeof n.measures.added){const e=BP.getValue(t,r||"").qHyperCubeDef,o=[...e.qMeasures];e.qMeasures=[],o.forEach((r=>{e.qMeasures.push(r),n.measures.added(r,t)}))}}};var ZP={exportProperties:e=>function(e){let{propertyTree:t,hypercubePath:n}=e;const r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;const t={data:[],properties:{}};for(let n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),o=t.qProperty,a=BP.getValue(o,n||""),i=a.qHyperCubeDef,l=r.data[0];if(i.qInterColumnSortOrder||(i.qInterColumnSortOrder=[]),l.dimensions.push(...i.qDimensions),i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef&&i.qLayoutExclude.qHyperCubeDef.qDimensions&&l.excludedDimensions.push(...i.qLayoutExclude.qHyperCubeDef.qDimensions),l.measures.push(...i.qMeasures),i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef&&i.qLayoutExclude.qHyperCubeDef.qMeasures&&l.excludedMeasures.push(...i.qLayoutExclude.qHyperCubeDef.qMeasures),l.interColumnSortOrder=i.qInterColumnSortOrder.concat(),i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef&&i.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const e=i.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();$P.isOrderedSubset(e,l.interColumnSortOrder)&&(l.interColumnSortOrder=e)}return delete i.qLayoutExclude,Object.keys(o).forEach((e=>{r.properties[e]=o[e]})),n&&(r.properties.qHyperCubeDef=a.qHyperCubeDef,delete a.qHyperCubeDef),o.qLayoutExclude||(o.qLayoutExclude={}),o.qLayoutExclude.disabled&&(Object.keys(o.qLayoutExclude.disabled).forEach((e=>{r.properties.hasOwnProperty(e)||(r.properties[e]=o.qLayoutExclude.disabled[e])})),delete o.qLayoutExclude.disabled),o.qLayoutExclude.changed&&(KP.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!BP.isEmpty(o.qLayoutExclude.quarantine)||delete o.qLayoutExclude,r}(e),importProperties:e=>function(e){let{exportFormat:t,initialProperties:n={},dataDefinition:r={},defaultPropertyValues:o={},hypercubePath:a}=e;const i={qChildren:[]},l=KP.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:a}),s=BP.getValue(n,a||"").qHyperCubeDef,c=BP.getValue(l,a||"").qHyperCubeDef,{maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f}=KP.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:h=KP.getDefaultDimension(),defaultMeasure:m=KP.getDefaultMeasure()}=o;return c.qDimensions.length=0,c.qMeasures.length=0,KP.shouldInitLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f})&&KP.initLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f,newHyperCubeDef:c}),KP.addDefaultDimensions({exportFormat:t,maxDimensions:u,minDimensions:d,newHyperCubeDef:c,defaultDimension:h}),KP.addDefaultMeasures({exportFormat:t,maxMeasures:p,minMeasures:f,newHyperCubeDef:c,defaultMeasure:m}),KP.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:c}),KP.copyPropertyIfExist("qMaxStackedCells",s,c),KP.copyPropertyIfExist("qNoOfLeftDims",s,c),KP.copyPropertyOrSetDefault("qInitialDataFetch",s,c,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),KP.copyPropertyOrSetDefault("qMode",s,c,"S"),KP.copyPropertyOrSetDefault("qReductionMode",s,c,"N"),KP.copyPropertyOrSetDefault("qSortbyYValue",s,c),KP.copyPropertyOrSetDefault("qIndentMode",s,c),KP.copyPropertyOrSetDefault("qShowTotalsAbove",s,c),KP.importCommonProperties(l,t,n),KP.updateDimensionsOnAdded({newProperties:l,dataDefinition:r,hypercubePath:a}),KP.updateMeasuresOnAdded({newProperties:l,dataDefinition:r,hypercubePath:a}),i.qProperty=l,i}(e)};const XP=e=>BP.getValue(e,"data.targets.0.propertyPath"),QP=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return ZP.exportProperties})(XP(e))},JP=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return ZP.importProperties})(XP(e))},YP=async e=>{let{halo:t,model:n,cellRef:r,newType:o,properties:i,viewDataMode:l=!1}=e;const s=i?{qProperty:i}:await n.getFullPropertyTree(),c=r.current.getQae(),u=QP(c);if(!u)throw new Error("Source chart does not support conversion");const d=await(async e=>{let{halo:t,name:n,version:r}=e;const{types:o}=t;return await o.get({name:n,version:r}).supernova()})({halo:t,name:o}),p=d.qae,f=JP(p);if(!f)throw new Error("Target chart does not support conversion");return f({exportFormat:u({propertyTree:s,hypercubePath:KP.getHypercubePath(c),viewDataMode:l}),initialProperties:a({qInfo:{qType:o},visualization:o},BP.getValue(p,"properties.initial",{})),dataDefinition:BP.getValue(p,"data.targets.0.",{}),hypercubePath:KP.getHypercubePath(p),viewDataMode:l})},eM={hypercube:ZP};var tM=e=>PR((e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M8.86225926,1.6 L15.7815749,13.5 C16.2829746,14.3 15.8818548,15 14.9793354,15 L1.04042422,15 C0.0853772072,15 -0.232971797,14.3650794 0.172002787,13.6135407 L7.05722041,1.6 C7.55862009,0.8 8.36085958,0.8 8.86225926,1.6 Z M7.962,2.007 C7.95987183,2.02476599 7.95607967,2.03712023 7.94920396,2.05249845 L1.1033193,14 L14.915544,14 L7.99777452,2.10265906 L7.97779697,2.06138411 L7.96394459,2.01964415 L7.962,2.007 Z M7.5,11 L8.5,11 C8.76666667,11 8.95432099,11.1580247 8.99272977,11.4038409 L9,11.5 L9,12.5 C9,12.7666667 8.84197531,12.954321 8.59615912,12.9927298 L8.5,13 L7.5,13 C7.23333333,13 7.04567901,12.8419753 7.00727023,12.5961591 L7,12.5 L7,11.5 C7,11.2333333 7.15802469,11.045679 7.40384088,11.0072702 L7.5,11 L8.5,11 L7.5,11 Z M7.5,5 L8.5,5 C8.76666667,5 8.95432099,5.15802469 8.99272977,5.40384088 L9,5.5 L9,9.5 C9,9.76666667 8.84197531,9.95432099 8.59615912,9.99272977 L8.5,10 L7.5,10 C7.23333333,10 7.04567901,9.84197531 7.00727023,9.59615912 L7,9.5 L7,5.5 C7,5.23333333 7.15802469,5.04567901 7.40384088,5.00727023 L7.5,5 L8.5,5 L7.5,5 Z"}}]}))(e));function nM(e){let{d:t}=e;const n=Xb();let r="inherit",o=n.palette.success.main;t.missing?o=n.palette.warning.main:t.error&&(r="error",o=n.palette.error.main);const a={color:o},i=V.createElement(gE,{style:{lineHeight:"30px",paddingRight:n.spacing(1)}},V.createElement(Pk,null,t.missing||t.error?V.createElement(tM,{style:a}):V.createElement(XR,{style:a})));return V.createElement(Sk,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},V.createElement(Sk,{item:!0},i),V.createElement(Sk,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},V.createElement(gE,{noWrap:!0,component:"p"},V.createElement(gE,{component:"span",variant:"subtitle2",color:r},t.description),V.createElement(gE,{component:"span"}," "),V.createElement(gE,{component:"span",variant:"subtitle2",color:t.error?"error":"inherit",style:{fontWeight:400}},t.label))))}function rM(e){let{data:t}=e;const n=Xb();return V.createElement(Sk,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},t.map(((e,t)=>{const r=e.descriptions.map(((e,t)=>V.createElement(nM,{d:e,key:t})));return r.length>0&&V.createElement(Sk,{container:!0,item:!0,key:t,direction:"column",style:{paddingBottom:n.spacing(2)}},V.createElement(gE,{noWrap:!0,key:t,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),r)})))}function oM(e){let{title:t="Error",message:n="",data:r=[]}=e;return V.createElement(Sk,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},V.createElement(Sk,{item:!0},V.createElement(tM,{style:{fontSize:"38px"}})),V.createElement(Sk,{item:!0},V.createElement(gE,{variant:"h6",align:"center","data-tid":"error-title"},t)),V.createElement(Sk,{item:!0},V.createElement(gE,{variant:"subtitle1",align:"center","data-tid":"error-message"},n)),V.createElement(rM,{data:r}))}const aM=["size"],iM="Progress",lM={root:"".concat(iM,"-root"),front:"".concat(iM,"-front"),back:"".concat(iM,"-back")},sM=_y("div")((e=>{let{theme:t}=e;return{["&.".concat(lM.root)]:{position:"relative",display:"inline-block"},["& .".concat(lM.front)]:{color:t.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(lM.back)]:{color:t.palette.divider}}})),cM={small:16,medium:32,large:64,xlarge:128};function uM(e){let{size:t="medium"}=e,n=c(e,aM);const r=cM[t];return V.createElement(sM,{className:lM.root},V.createElement($C,s({variant:"determinate",value:100,className:lM.back,size:r,thickness:3},n)),V.createElement($C,s({variant:"indeterminate",disableShrink:!0,className:lM.front,size:r,thickness:3},n)))}const dM=["cancel","translator"],pM=["retry","translator"],fM={stripes:"".concat("LongRunningQuery","-stripes")},hM=_y(Sk)((()=>({["& .".concat(fM.stripes)]:{"&::before":{position:"absolute",height:"100%",width:"100%",top:0,left:0,content:'""',backgroundSize:"14.14px 14.14px",backgroundImage:"linear-gradient(135deg, currentColor 10%, rgba(0,0,0,0) 10%, rgba(0,0,0,0) 50%, currentColor 50%, currentColor 59%, rgba(0,0,0,0) 60%, rgba(0,0,0,0) 103%)",opacity:.1}}})));function mM(e){let{cancel:t,translator:n}=e,r=c(e,dM);return V.createElement(V.Fragment,null,V.createElement(hM,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},V.createElement(Sk,{item:!0},V.createElement(uM,null)),V.createElement(Sk,{item:!0},V.createElement(gE,{variant:"h6",align:"center","data-tid":"update-active"},n.get("Object.Update.Active")))),V.createElement(Sk,s({item:!0},r),V.createElement(Ix,{variant:"contained",onClick:t},n.get("Cancel"))))}function gM(e){let{retry:t,translator:n}=e,r=c(e,pM);return V.createElement(V.Fragment,null,V.createElement(Sk,{item:!0},V.createElement(tM,{style:{fontSize:"38px"}})),V.createElement(Sk,{item:!0},V.createElement(gE,{variant:"h6",align:"center","data-tid":"update-cancelled"},n.get("Object.Update.Cancelled"))),V.createElement(Sk,{item:!0},V.createElement(Ix,s({variant:"contained",onClick:t},r),n.get("Retry"))))}function vM(e){let{canCancel:t,canRetry:n,api:r}=e;const{translator:o}=U.useContext(zx);return V.createElement(Sk,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:fM.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t&&V.createElement(mM,{cancel:r.cancel,translator:o,className:fM.cancel}),n&&V.createElement(gM,{retry:r.retry,translator:o,className:fM.retry}))}function bM(){return V.createElement(Sk,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},V.createElement(uM,{size:"large"}))}const yM="Header",xM={containerStyle:"".concat(yM,"-containerStyle"),containerTitleStyle:"".concat(yM,"-containerTitleStyle")},SM=_y(Sk)((e=>{let{theme:t}=e;return{["&.".concat(xM.containerStyle)]:{flexGrow:0},["&.".concat(xM.containerTitleStyle)]:{paddingBottom:t.spacing(1)}}})),wM="njs-cell-title",EM="njs-cell-sub-title";function CM(e){let{layout:t,sn:n,anchorEl:r,hovering:o,focusHandler:a,titleStyles:i={}}=e;const l=t.showTitles&&!!t.title,s=t.showTitles&&!!t.subtitle,c=t.qSelectionInfo&&t.qSelectionInfo.qInSelections,[u,d]=U.useState([]),[p,f]=IR(),[h,m]=U.useState(!1);U.useEffect((()=>{n&&n.component&&n.component.isHooked&&n.component.observeActions((e=>{d([...e,...n&&n.selectionToolbar&&n.selectionToolbar.items||[]])}))}),[n]),U.useEffect((()=>{if(!f)return;const{width:e}=f;m(e<221)}),[f]);const g=l||s,v=[xM.containerStyle,...g?[xM.containerTitleStyle]:[]],b=(o||c)&&(h||!g),y=g&&!b&&!h,x=V.createElement(TI,{show:y,selections:{show:c,api:n.component.selections,onKeyDeactivate:a.refocusContent},actions:u,popover:{show:b,anchorEl:r},focusHandler:a,layout:t});return V.createElement(SM,{ref:p,item:!0,container:!0,wrap:"nowrap",className:v.join(" ")},V.createElement(Sk,{item:!0,zeroMinWidth:!0,xs:!0},V.createElement(Sk,{container:!0,wrap:"nowrap",direction:"column"},l&&V.createElement(gE,{variant:"h6",noWrap:!0,className:wM,style:i.main},t.title),s&&V.createElement(gE,{variant:"body2",noWrap:!0,className:EM,style:i.subTitle},t.subtitle))),V.createElement(Sk,{item:!0},x))}const kM={itemStyle:"".concat("Footer","-itemStyle")},LM=_y(Sk)((e=>{let{theme:t}=e;return{["& .".concat(kM.itemStyle)]:{minWidth:0,paddingTop:t.spacing(1)}}})),RM="njs-cell-footer";function OM(e){let{layout:t,titleStyles:n={}}=e;return t&&t.showTitles&&t.footnote?V.createElement(LM,{container:!0},V.createElement(Sk,{item:!0,className:kM.itemStyle},V.createElement(gE,{noWrap:!0,variant:"body2",className:RM,style:n.footer},t.footnote))):null}class _M{constructor(){this.timer=null,this.next=null,this.running=!1}start(){this.running||(this.running=!0,this.scheduleNext())}scheduleNext(){this.timer=setTimeout((()=>{this.doNext()}),10)}async doNext(){const e=this.next;this.next=null,e?(await e(),this.scheduleNext()):this.stop()}schedule(e){this.next=e,this.start()}stop(){this.running&&(clearTimeout(this.timer),this.timer=null,this.running=!1)}}const IM="njs-viz";function TM(e){let{sn:t,snOptions:n,snPlugins:r,layout:o,appLayout:i,halo:l}=e;const{component:s}=t,{theme:c,language:u,constraints:d,interactions:p,keyboardNavigation:f}=U.useContext(zx),[h]=U.useState((()=>new _M)),[m,g]=U.useState(!1),[v,b]=U.useState(0),[y,x,S]=IR(),[w,E]=U.useState(null),C=U.useCallback((e=>{e&&E(e)}),[]);return U.useEffect((()=>{if(w)return s.created({options:n}),s.mounted(w),g(!0),()=>{h.stop(),s.willUnmount()}}),[w,s]),U.useEffect((()=>{m&&w&&x&&(!s.isHooked&&o&&o.qSelectionInfo&&o.qSelectionInfo.qInSelections||h.schedule((()=>{const e=[];return d.passive||e.push("passive"),d.active||e.push("interact"),d.select||e.push("select"),d.edit||e.push("edit"),l.app&&l.app.session&&e.push("fetch"),Promise.resolve(s.render({layout:o,options:n,plugins:r,embed:l.public.nebbie,context:a({constraints:d,interactions:p,theme:l.public.theme,appLayout:i,keyboardNavigation:f},s.isHooked?{}:{logicalSize:t.logicalSize({layout:o}),localeInfo:(i||{}).qLocaleInfo,permissions:e})})).then((e=>{!1!==e&&(0===v&&"function"==typeof n.onInitialRender&&n.onInitialRender.call(null),b(v+1))}))})))}),[x,n,r,w,S,o,i,c,u,d,p,m,f]),V.createElement("div",{ref:y,"data-render-count":v,style:{position:"relative",height:"100%"},className:IM},V.createElement("div",{ref:C,style:{position:"absolute",width:"100%",height:"100%"}}))}const PM=(e,t,n,r)=>{const o=U.useMemo((()=>{if(e&&t){const r=e.components?e.components.find((e=>"general"===e.key)):null,o={main:gT(r,"main",t,e.visualization),footer:gT(r,"footer",t,e.visualization),subTitle:gT(r,"subTitle",t,e.visualization)},a=hT(r,t,e.visualization),i=fT(r,n),l=function(e,t,n){const r=cT(null==e?void 0:e.borderColor,"","borderColor",t,n),o=(null==e?void 0:e.borderWidth)||lT("","borderWidth",t,n);return o&&r?"".concat(o," solid ").concat(r):void 0}(r,t,e.visualization),s=function(e,t,n){return(null==e?void 0:e.borderRadius)||lT("","borderRadius",t,n)}(r,t,e.visualization);return{titleStyles:o,bgColor:a,bgImage:i,border:l,borderRadius:s,boxShadow:mT(r,t,e.visualization)}}return{}}),[e,t,n,r]);return o},MM="njs-cell",NM=(e,t)=>{switch(t.type){case"LOADING":return a(a({},e),{},{loading:!0});case"LOADED":return a(a({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization});case"RENDER":return a(a({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null});case"LONG_RUNNING_QUERY":return a(a({},e),{},{longRunningQuery:!0});case"ERROR":return a(a({},e),{},{loading:!1,longRunningQuery:!1,error:t.error});default:throw new Error("Unhandled type: ".concat(t.type))}};function qM(e){let{delay:t=750}=e;const[n,r]=U.useState(!1);return U.useEffect((()=>{const e=setTimeout((()=>r(!0)),t);return()=>clearTimeout(e)}),[]),n?V.createElement(bM,null):null}const AM=e=>!e.qError||7005===e.qError.qErrorCode,DM=(e,t,n,r,o)=>[...Array(e).keys()].map((e=>{const a=!(!t||!t[e]),i=a&&t[e].qError&&7005===t[e].qError.qErrorCode,l=a&&!i&&t[e].qError,s=i&&t[e].qCalcCondMsg,c="".concat(l?r:i?s||o:a&&t[e].qFallbackTitle||""),u=n(e);return{description:u?"".concat(u).concat(c.length?":":""):null,label:c,missing:t&&!a&&!l&&e>=t.length||i,error:l}})),zM=e=>e&&(Array.isArray(e)?e:[e])||[],jM=(e,t,n,r)=>{const o=r.dimensions.min(),a=r.measures.min(),i=r.resolveLayout(t);return{reqDimErrors:DM(o,zM(i.qDimensionInfo||i.qItems),(e=>r.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:DM(a,zM(i.qMeasureInfo),(e=>r.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},FM=async(e,t,n,r)=>{let{targets:o}=n;const{hasUnfulfilledErrors:a,aggMinD:i,aggMinM:l,hasLayoutErrors:s,layoutErrors:c}=((e,t,n)=>{let r=!1,o=0,a=0,i=!1,l=!1;const s=[];for(let c=0;c<t.length;++c){const u=t[c],d=u.dimensions.min(),p=u.measures.min(),f=u.resolveLayout(n),h=zM(f.qDimensionInfo||f.qItems).filter(AM),m=zM(f.qMeasureInfo).filter(AM);if(o+=d,a+=p,(h.length<d||m.length<p)&&(r=!0),f.qError){i=!0,l=7005===f.qError.qErrorCode;const t=l&&f.qCalcCondMsg?f.qCalcCondMsg:l?e.get("Visualization.UnfulfilledCalculationCondition"):e.get("Visualization.LayoutError");s.push({title:t,descriptions:[]})}}return{hasUnfulfilledErrors:r,aggMinD:o,aggMinM:a,hasLayoutErrors:i,layoutErrors:s}})(e,o,t),u=[],d=[];let p=null;for(let n=0;n<o.length;++n){const i=o[n];if(!s&&a){const n=p||await r.getProperties();p=n;const o=jM(e,t,n,i);u.push(...o.reqDimErrors),d.push(...o.reqMeasErrors)}}const f=u.filter((e=>!(e.missing||e.error))).length,h=e.get("Visualization.Incomplete.Dimensions",[f,i]),m=d.filter((e=>!(e.missing||e.error))).length,g=e.get("Visualization.Incomplete.Measures",[m,l]),v=[{title:h,descriptions:[...u]},{title:g,descriptions:[...d]}],b=s?c:v;return[s||a,{title:s?c[0].title:e.get("Visualization.Incomplete"),data:b}]},BM=U.forwardRef(((e,t)=>{let{halo:n,model:r,initialSnOptions:o,initialSnPlugins:i,initialError:l,onMount:s,currentId:c,emitter:u}=e;const{app:d,types:p}=n,{nebbie:f}=n.public,{theme:h,translator:m,language:g,keyboardNavigation:v,disableCellPadding:b=!1}=U.useContext(zx),y=Xb(),[x,S,w]=IR(),[E,C]=U.useReducer(NM,{loading:!1,loaded:!1,longRunningQuery:!1,error:(k=l)?{title:k.message}:null,sn:null,visualization:null});var k;const[L,R]=U.useState(r),[O,{validating:_,canCancel:I,canRetry:T},P]=OR(L),[M]=_R(d),[N,q,A]=IR(),[D,z]=U.useState(o),[j,F]=U.useState(i),B="njs-cell-".concat(c),[$]=BI(d,L,["#".concat(B),".njs-action-toolbar-popover"]),[W,H]=U.useState(!1),G=U.useRef({enter:null,leave:null}),{titleStyles:K,bgColor:Z,bgImage:X,border:Q,borderRadius:J,boxShadow:Y}=PM(O,n.public.theme,n.app,h),ee=U.useRef({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});U.useEffect((()=>{zI(ee.current)}),[]),ee.current.blurCallback=e=>{n.root.toggleFocusOfCells(),e&&A&&A.focus()},ee.current.refocusContent=()=>{E.sn.component&&"function"==typeof E.sn.component.focus&&E.sn.component.focus()};U.useEffect((()=>{if(l)return void s();if(!M||!O)return;if(E.visualization===O.visualization&&E.sn)return void(async e=>{const[t,n]=await FM(m,O,e.generator.qae.data,L);C(t?{type:"ERROR",error:n}:{type:"RENDER"}),(e=>{let{sn:t,layout:n,model:r}=e;const o=t&&t.component&&t.component.selections;if(o&&o.id&&r.id&&o.id===r.id){if(n&&n.qSelectionInfo&&n.qSelectionInfo.qInSelections&&!o.isModal()){const{targets:e}=t.generator.qae.data,n=e[0].propertyPath;o.goModal(n)}n.qSelectionInfo&&n.qSelectionInfo.qInSelections||o.isModal()&&o.noModal()}})({sn:E.sn,layout:O,model:L})})(E.sn);const e=p.getSupportedVersion(O.visualization,O.version);return(async(e,t)=>{C({type:"LOADING"}),await(async e=>{let{dispatch:t,types:n,visualization:r,version:o,model:a,app:i,selections:l,nebbie:s,focusHandler:c,emitter:u,onMount:d}=e;try{const e=await(async e=>{let{types:t,name:n,version:r}=e;return await t.get({name:n,version:r}).supernova()})({types:n,name:r,version:o}),p=e.create({model:a,app:i,selections:l,nebbie:s,focusHandler:c,emitter:u});p&&(t({type:"LOADED",sn:p,visualization:r}),d())}catch(e){t(o?{type:"ERROR",error:{title:e.message}}:{type:"ERROR",error:{title:"Could not find a version of '".concat(r,"' that supports current object version. Did you forget to register ").concat(r,"?")}}),d()}})({dispatch:C,types:p,visualization:e,version:t,model:L,app:d,selections:$,nebbie:f,focusHandler:ee.current,emitter:u,onMount:s})})(O.visualization,e),()=>{}}),[p,E.sn,L,$,O,M,g]),U.useEffect((()=>{if(!_)return;const e=setTimeout((()=>C({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[_]),U.useImperativeHandle(t,(()=>({getQae:()=>E.sn.generator.qae,toggleFocus(e){"function"==typeof E.sn.component.focus&&(e?E.sn.component.focus():E.sn.component.blur())},setSnOptions:z,setSnPlugins:F,setModel:R,getImperativeHandle(){var e;return null!==(e=E.sn)&&void 0!==e&&e.component&&"function"==typeof E.sn.component.getImperativeHandle?E.sn.component.getImperativeHandle():{}},async takeSnapshot(){const{width:e,height:t}=S;let n=JSON.parse(JSON.stringify(O));return"function"==typeof E.sn.component.setSnapshotData&&(n=await E.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:m.language(),theme:y.name,appLayout:M,size:{width:Math.round(e),height:Math.round(t)}},layout:n}},async exportImage(){if("function"!=typeof n.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const e=await this.takeSnapshot();return n.config.snapshot.capture(e)}})),[E.sn,q,S,O,y.name,M]);let te=null;return E.loading&&!E.longRunningQuery?te=V.createElement(qM,null):E.error?te=V.createElement(oM,E.error):E.loaded&&(te=V.createElement(TM,{key:O.visualization,sn:E.sn,halo:n,snOptions:D,snPlugins:j,layout:O,appLayout:M})),V.createElement(rS,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:Z||"unset",backgroundImage:X&&X.url?"url(".concat(X.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:X&&X.size,backgroundPosition:X&&X.pos,border:Q,borderRadius:J,boxShadow:Y,boxSizing:"border-box"},elevation:0,square:!0,className:MM,ref:x,id:B,onMouseEnter:()=>{G.current.leave&&clearTimeout(G.current.leave),G.enter||(G.current.enter=setTimeout((()=>{H(!0),G.current.enter=null}),250))},onMouseLeave:()=>{G.current.enter&&clearTimeout(G.current.enter),G.current.leave||(G.current.leave=setTimeout((()=>{H(!1),G.current.leave=null}),750))}},V.createElement(Sk,{container:!0,direction:"column",gap:0,style:a(a({position:"relative",width:"100%",height:"100%"},b?{}:{padding:y.spacing(1)}),E.longRunningQuery?{opacity:"0.3"}:{})},w&&O&&E.sn&&V.createElement(CM,{layout:O,sn:E.sn,anchorEl:w,hovering:W,focusHandler:ee.current,titleStyles:K}," "),V.createElement(Sk,{tabIndex:v?0:-1,onKeyDown:v?e=>{["Enter"," ","Spacebar"].includes(e.key)&&n.root.toggleFocusOfCells(c)}:null,item:!0,xs:!0,style:{height:"100%"},ref:N},te),w&&O&&E.sn&&V.createElement(OM,{layout:O,titleStyles:K})),E.longRunningQuery&&V.createElement(vM,{canCancel:I,canRetry:T,api:P}))}));function $M(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function WM(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;const r=[];return Object.keys(t).forEach((o=>{const a=t[o];"object"!=typeof n[o]||"object"!=typeof a||Array.isArray(a)?function(e,t){return $M(e)&&$M(t)?JSON.stringify(e)===JSON.stringify(t):!Array.isArray(e)&&!Array.isArray(t)&&e===t}(a,n[o])||r.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])}):r.push(...WM("".concat(e).concat(o,"/"),t[o],n[o]))})),r}function HM(e){if(!Array.isArray(e))throw new Error("Invalid plugin format: plugins should be an array!");e.forEach((e=>{if("object"!=typeof e)throw new Error("Invalid plugin format: a plugin should be an object");if("object"!=typeof e.info||"string"!=typeof e.info.name)throw new Error("Invalid plugin format: a plugin should have an info object containing a name");if("function"!=typeof e.fn)throw new Error('Invalid plugin format: The plugin "'.concat(e.info.name,'" has no "fn" function'))}))}const UM=e=>{var t;return!(!e||e.qHasSoftPatches||e.qExtendsId||!(((null===(t=e.qMeta)||void 0===t?void 0:t.privileges)||[]).indexOf("update")>-1))},VM=(e,t)=>e.__snInterceptor?e.__snInterceptor.setProperties.call(e,t):e.setProperties(t),GM=He.bind(null,!0),KM={},{isArray:ZM}=Array;function XM(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function QM(e){return void 0===e}function JM(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function YM(e,t){const n=t.substring(1).split("/").slice(0,-1);let r;return n.forEach(((t,o)=>{if(o===n.length)return;r=+t;const a=isNaN(r)?{}:[];e[r||t]=QM(e[r||t])?a:e[t],e=e[r||t]})),e}function eN(e,t){let n=!0;if(XM(e)&&XM(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{eN(e[r],t[r])||(n=!1)})),n);if(ZM(e)&&ZM(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!eN(e[n],t[n]))return!1;return!0}return e===t}KM.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const a=function(e){return e?GM({},{val:e}).val:e}(t[o]),i=e[o],l="".concat(n,"/").concat(o);eN(a,i)||JM(t,o)||(QM(i)?r.push({op:"add",path:l,value:a}):XM(a)&&XM(i)?r=r.concat(KM.generate(i,a,l)):ZM(a)&&ZM(i)?r=r.concat(function(e,t,n){let r=[];const o=e.slice();let a=-1;function i(e,t,n){if(e[n]&&QM(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(let n=0,r=e.length;n<r;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(eN(t,o))return r;if(!QM(t[0])&&QM(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(let e=o.length-1;e>=0;e-=1)a=i(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===a?(r.push({op:"remove",path:"".concat(n,"/").concat(e)}),o.splice(e,1)):r=r.concat(KM.generate(o[e],t[a],"".concat(n,"/").concat(e)));for(let e=0,l=t.length;e<l;e+=1)a=i(o,t[e].qInfo&&t[e].qInfo.qId),-1===a?(r.push({op:"add",path:"".concat(n,"/").concat(e),value:t[e]}),o.splice(e,0,t[e])):a!==e&&(r.push({op:"move",path:"".concat(n,"/").concat(e),from:"".concat(n,"/").concat(a)}),o.splice(e,0,o.splice(a,1)[0]));return r}(i,a,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:a}))})),Object.keys(e).forEach((o=>{QM(t[o])&&!JM(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},KM.apply=function(e,t){t.forEach((t=>{let n=YM(e,t.path),r=t.path.split("/").splice(-1)[0],o=r&&isNaN(+r)?n[r]:n[+r]||n;const a=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(ZM(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(ZM(o)&&ZM(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(XM(o)&&XM(t.value))i=o,Object.keys(i).forEach((e=>{Object.getOwnPropertyDescriptor(i,e).configurable&&!JM(i,e)&&delete i[e]})),GM(o,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[r]=t.value}else if("move"===t.op){const o=YM(e,t.from);ZM(n)?n.splice(+r,0,o.splice(+a,1)[0]):(n[r]=o[a],delete o[a])}else"remove"===t.op&&(ZM(n)?n.splice(+r,1):delete n[r]);var i}))},KM.clone=function(e){return GM({},e)},KM.createPatch=function(e,t,n){const r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},KM.updateObject=function(e,t){Object.keys(e).length?KM.apply(e,KM.generate(e,t)):GM(e,t)};const tN=e=>t=>{const n=(r=a(a({},t),{},{action(){"function"==typeof t.action&&t.action.call(n,e),n.emit("changed")},enabled:()=>"function"!=typeof t.enabled||t.enabled.call(n,e),active:"function"==typeof t.active?function(){return t.active.call(n,e)}:void 0}),Object.keys(ee.prototype).forEach((e=>{r[e]=ee.prototype[e]})),ee.init(r),r);var r;return n};let nN,rN;function oN(e,t){if(!e)return!0;if(t.length!==e.length)return!0;for(let n=0;n<t.length;n++)if(e[n]!==t[n])return!0;return!1}function aN(e){let{explicitResize:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.__hooks={obsolete:!1,error:!1,waitForData:!1,chain:{promise:null,resolve:()=>{}},list:[],snaps:[],menus:[],actions:{list:[]},pendingEffects:[],pendingLayoutEffects:[],pendingPromises:[],resizer:{setters:[],explicitResize:t},accessibility:{setter:null},contraintsWarning:!0}}function iN(e){sN(e.__hooks.list,!0),e.__hooks.obsolete=!0,e.__hooks.list.length=0,e.__hooks.pendingEffects.length=0,e.__hooks.pendingLayoutEffects.length=0,e.__hooks.actions=null,e.__hooks.imperativeHandle=null,e.__hooks.resizer=null,e.__hooks.accessibility=null,e.__actionsDispatch=null,clearTimeout(e.__hooks.micro),cancelAnimationFrame(e.__hooks.macro)}async function lN(e){if(e.__hooks.obsolete)return Promise.resolve();rN=-1,nN=e,nN.__hooks.initiated&&nN.__hooks.list.length;try{nN.fn.call(null)}catch(e){console.error(e)}nN.__hooks.initiated=!0;const t=nN.__hooks;return pN(nN),rN=void 0,nN=void 0,t.chain.promise||(t.chain.promise=new Promise((e=>{t.chain.resolve=e}))),function(e){sN(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame((()=>{!function(e){sN(e.pendingEffects),e.macro=null,function(e){if(e.pendingPromises.length||e.micro||e.macro)return;e.chain.promise=null,e.chain.resolve(!e.waitForData)}(e)}(e)}))}(t),t.chain.promise}function sN(e,t){try{e.forEach((e=>{"function"==typeof e.teardown&&e.teardown(),t||(e.teardown=e.value[0]())}))}catch(e){console.error(e)}e.length=0}function cN(e,t){try{return Promise.all(e.__hooks.snaps.map((e=>Promise.resolve(e.fn(t))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function uN(e,t,n,r){try{return Promise.all(e.__hooks.menus.map((e=>Promise.resolve(e.fn(t,n,r))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function dN(e){return e.__hooks.imperativeHandle}function pN(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function fN(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,pN(e))}function hN(e){if(void 0===nN)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=nN.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function mN(e){hN(++rN);return nN.context[e]}function gN(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function vN(e){return{__hooked:!0,fn:e,initiate:aN,run:lN,teardown:iN,runSnaps:cN,runMenu:uN,focus:EN,blur:CN,observeActions:fN,getImperativeHandle:dN,updateRectOnNextRun:gN}}function bN(e){const t=hN(++rN);if(!t.value){t.component=nN;const n=e=>{if(t.component.__hooks.obsolete)return;const n="function"==typeof e?e(t.value[0]):e;var r;n!==t.value[0]&&(t.value[0]=n,(r=t.component).__hooks.micro||(r.__hooks.micro=setTimeout((()=>{r.__hooks.micro=null,lN(r)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function yN(e,t){const n=hN(++rN);oN(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===nN.__hooks.pendingEffects.indexOf(n)&&nN.__hooks.pendingEffects.push(n))}function xN(e,t){const n=hN(++rN);oN(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],nN.__hooks.pendingLayoutEffects.push(n))}function SN(e,t){const n=hN(++rN);return oN(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function wN(){return mN("element")}function EN(e){const t=e.__hooks.accessibility;t.active||(t.active=!0,t&&t.setter&&t.setter({active:!0,enabled:t.enabled,blur:t.exitFunction,focus:t.focusFunction,focusSelection:t.focusSelectionFunction}))}function CN(e){const t=e.__hooks.accessibility;t&&t.active&&(t.active=!1,t&&t.setter&&t.setter({active:!1,enabled:t.enabled,blur:t.exitFunction,focus:t.focusFunction,focusSelection:t.focusSelectionFunction}))}const kN={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},LN=Object.keys(kN),RN=e=>(Object.keys(ee.prototype).forEach((t=>{e[t]=ee.prototype[t]})),ee.init(e),e);function ON(e,t){const n=a({},kN);RN(n);const r={emit(){n.emit(...arguments)}};Object.keys(e.component||{}).forEach((t=>{-1!==LN.indexOf(t)?n[t]=e.component[t].bind(r):r[t]=e.component[t]}));const o=function(e){let{sn:t,component:n}=e;const r={},o=[],a=tN(n);return((t.definition.selectionToolbar||{}).items||[]).forEach((e=>{const t=a(e);r[e.key]=t,o.push(t)})),(t.definition.actions||[]).forEach((e=>{const t=a(e);r[e.key]=t})),{actions:r,selectionToolbarItems:o,destroy(){o.length=0}}}({sn:e,component:r}),i=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(r,{model:t.model,app:t.app,global:i,selections:t.selections,actions:o.actions}),Object.assign(n,{actions:o.actions,model:t.model,app:t.app,selections:t.selections}),[n,o]}function _N(e,t,n){"function"==typeof e.component&&(e.component=vN(e.component));const[r,o]=e.component&&e.component.__hooked?function(e,t,n){const r=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):void 0;let o=!1;const i={},l=["appLayout","constraints","interactions"],s={},c={};t.model&&t.model.session||(s.select=!0,s.edit=!0,c.select=!1,c.edit=!1);const u={context:{model:t.model,app:t.app,global:r,selections:t.selections,nebbie:t.nebbie,element:void 0,emitter:t.emitter,deviceType:n.deviceType,theme:void 0,translator:n.translator,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,focusHandler:t.focusHandler,constraints:s,interactions:c,options:{},plugins:[]},fn:e.component.fn,created(){},mounted(n){this.context.element=n,e.component.initiate(u,{explicitResize:!!t.explicitResize})},render(t){let n=!o||!1;if(t){if(t.layout&&t.layout!==this.context.layout&&(n=!0,this.context.layout=t.layout),t.context&&t.context.theme&&(this.context.theme=t.context.theme),t.context&&!!t.context.keyboardNavigation!=!!this.context.keyboardNavigation&&(this.context.keyboardNavigation=!!t.context.keyboardNavigation,n=!0),t.context&&t.context.focusHandler&&(this.context.focusHandler=t.context.focusHandler),t.options){const e={};let r=!1;Object.keys(t.options).forEach((n=>{e[n]=t.options[n],this.context.options[n]!==t.options[n]&&(r=!0)})),r&&(this.context.options=e,n=!0)}if(t.plugins){let e=this.context.plugins.length!==t.plugins.length;t.plugins.forEach(((t,n)=>{this.context.plugins[n]!==t&&(e=!0)})),e&&(this.context.plugins=[...t.plugins],n=!0)}l.forEach((e=>{const r=t.context;if(r&&Object.prototype.hasOwnProperty.call(r,e)){let t=JSON.stringify(r[e]);"constraints"===e&&(t=JSON.stringify(a(a({},r[e]),s))),"interactions"===e&&(t=JSON.stringify(a(a({},r[e]),c))),t!==i[e]&&(n=!0,i[e]=t,this.context[e]=JSON.parse(t))}}))}else n=!0;return this.context.theme&&this.context.theme.name()!==i.themeName&&(n=!0,i.themeName=this.context.theme.name()),this.context.translator.language()!==i.language&&(n=!0,i.language=u.context.translator.language()),n?(o=!0,this.currentResult=e.component.run(this),this.currentResult):this.currentResult||Promise.resolve()},resize(){return e.component.updateRectOnNextRun(this),this.render()},willUnmount(){e.component.teardown(this)},setSnapshotData(t){return e.component.runSnaps(this,t)},onContextMenu(t,n,r){return e.component.runMenu(this,t,n,r)},focus(){e.component.focus(this)},blur(){e.component.blur(this)},getImperativeHandle(){return e.component.getImperativeHandle(this)},destroy(){},observeActions(t){e.component.observeActions(this,t)},isHooked:!0};return l.forEach((e=>{i[e]=JSON.stringify(u.context[e])})),i.themeName=u.context.theme?u.context.theme.name():void 0,i.language=u.context.translator?u.context.translator.language():void 0,Object.assign(u,{selections:t.selections}),[u,null]}(e,t,n):ON(e,t),i=[];return t.model.__snInterceptor&&t.model.__snInterceptor.teardown(),e.qae.properties.onChange&&(t.model.__snInterceptor={setProperties:t.model.setProperties,applyPatches:t.model.applyPatches,teardown:void 0},t.model.setProperties=function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return e.qae.properties.onChange.call({model:t.model},...r),t.model.__snInterceptor.setProperties.call(this,...r)},t.model.applyPatches=function(n,r){const o=r?"getEffectiveProperties":"getProperties";return t.model[o]().then((o=>{const a=KM.clone(o),i=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));KM.apply(o,i),e.qae.properties.onChange.call({model:t.model},o);const l=KM.generate(a,o).map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path})));return t.model.__snInterceptor.applyPatches.call(this,l,r)}))},t.model.__snInterceptor.teardown=()=>{t.model.setProperties=t.model.__snInterceptor.setProperties,delete t.model.__snInterceptor},i.push(t.model.__snInterceptor.teardown)),{generator:e,component:r,selectionToolbar:{items:o?o.selectionToolbarItems:[]},destroy(){i.forEach((e=>e()))},logicalSize:e.definition.logicalSize||(()=>!1)}}const IN=()=>{};function TN(e,t){return void 0===e?()=>t:()=>e}function PN(e){const t=e||{};return{min:"function"==typeof t.min?t.min:TN(t.min,0),max:"function"==typeof t.max?t.max:TN(t.max,1e3),added:t.added||t.add||IN,description:t.description||IN,moved:t.moved||t.move||IN,removed:t.removed||t.remove||IN,replaced:t.replaced||t.replace||IN,isDefined:()=>!!e}}const MN=(e,t,n)=>{const r=t.split("/");let o=e;if(void 0===o)return n;for(let e=0;e<r.length;++e)if(""!==r[e]){if(void 0===o[r[e]])return n;o=o[r[e]]}return o};function NN(e){const t=e.path||"/qHyperCubeDef",n=t.slice(0,-3);if(!1===/\/(qHyperCube|qListObject|qChildList)$/.test(n)){const e=n.includes("/qHyperCube")?"qHyperCubeDef":"qListObjectDef";throw new Error("Incorrect definition for ".concat(e," at ").concat(t,". Valid paths include /qHyperCubeDef, /qListObjectDef, or /qChildListDef, e.g. data/qHyperCubeDef"))}return{propertyPath:t,layoutPath:n,resolveLayout:e=>MN(e,n,{}),dimensions:PN(e.dimensions),measures:PN(e.measures)}}function qN(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.properties||{};t.properties&&(t.properties.initial||t.properties.onChange)&&(n=t.properties.initial,e=t.properties.onChange);return{properties:{initial:n,onChange:e},data:{targets:((t.data||{}).targets||[]).map(NN)},exportProperties:t.exportProperties,importProperties:t.importProperties}}function AN(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:qN(n.qae),component:n.component||{},create:e=>_N(r,e,t),definition:{}};return Object.keys(n).forEach((e=>{r[e]||(r.definition[e]=n[e])})),r}const DN=(e,t,n)=>{if(!e)return Promise.resolve();let r=KM.generate(t,n);return He(!0,t,n),r&&r.length?(r=r.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.__snInterceptor?e.__snInterceptor.applyPatches.call(e,r,!0):e.applyPatches(r,!0)):Promise.resolve()},zN=()=>{};function jN(){let e,{model:t,halo:n,initialError:r,onDestroy:o=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=zN,l=null,s=null,c=null,u=null;const d=new Promise((e=>{c=e})),p=new Promise((e=>{u=e})),f=e=>()=>{e&&e(),u()};let h={},m=[];const g=new ee,v={id:t.id,model:t,async destroy(){await o(),i(),i=zN},async convertTo(e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]){const o=await t.getLayout();if(UM(o)&&!r){const r=await YP({halo:n,model:t,cellRef:l,newType:e});return await VM(t,r.qProperty),r}const a=await t.getEffectiveProperties(),i=await YP({halo:n,model:t,cellRef:l,newType:e,properties:a}),s=i.qProperty;return await DN(t,a,s),i}return await YP({halo:n,model:t,cellRef:l,newType:e})},async toggleDataView(r){let o;if(e||!1===r)e&&!0!==r&&(o=t,await n.app.destroySessionObject(e),e=void 0);else{let r=n.config.context.dataViewType;const a=await t.getEffectiveProperties();if(!n.types.getSupportedVersion(r)){if(!n.types.getSupportedVersion("table"))throw new Error("No data view type registered");r="table"}const i=await YP({halo:n,model:t,cellRef:l,newType:r,properties:a,viewDataMode:!0});o=await n.app.createSessionObject(i.qProperty),e=o.id}o&&l.current.setModel(o)},addListener(e,t){g.addListener(e,t)},removeListener(e,t){g.removeListener(e,t)},getImperativeHandle:async()=>(await p,l.current.getImperativeHandle()),__DO_NOT_USE__:{mount(e){if(s)throw new Error("Already mounted");if(!(e instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return s=e,[i,l]=function(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:a,onMount:i,emitter:l,initialError:s}=e;const{root:c}=t,u=V.createRef(),d=UT(),p=Sp.createPortal(V.createElement(BM,{ref:u,halo:t,model:r,currentId:d,initialSnOptions:o,initialSnPlugins:a,initialError:s,onMount:i,emitter:l}),n,d),f=()=>{c.remove(p),r.removeListener("closed",f)};return r.on("closed",f),c.add(p),c.addCell(d,u),[f,u]}({halo:n,element:e,model:t,initialSnOptions:h,initialSnPlugins:m,initialError:r,onMount:c,emitter:g}),d},async applyProperties(e){const n=WM("/",e,await t.getEffectiveProperties());if(n.length)return t.applyPatches(n,!0)},options(e){(async e=>{const t=e.onInitialRender;s?(async()=>{await d,l.current.setSnOptions(a(a(a({},h),e),{onInitialRender:f(t)}))})():h=a(a(a({},h),e),{onInitialRender:f(t)})})(e)},plugins(e){(async e=>{HM(e),s?(async()=>{await d,l.current.setSnPlugins(e)})():m=e})(e)},exportImage:()=>l.current.exportImage(),takeSnapshot:()=>l.current.takeSnapshot(),getModel:()=>t,convert:{async toType(e){const r=await t.getEffectiveProperties(),o=await YP({halo:n,model:t,cellRef:l,newType:e,properties:r}),a=o.qProperty;return await DN(t,r,a),o},async revert(){await t.clearSoftPatches()}}}};return v}async function FN(e,t,n,r){const o=jN({model:e,halo:n,initialError:r,onDestroy:arguments.length>4&&void 0!==arguments[4]?arguments[4]:async()=>{}});return t.options&&o.__DO_NOT_USE__.options(t.options),t.plugins&&o.__DO_NOT_USE__.plugins(t.plugins),t.element&&await o.__DO_NOT_USE__.mount(t.element),o}async function BN(e,t,n,r){let{type:o,version:a,fields:i,properties:l,extendProperties:s}=e,c={};const u=[],{modelStore:d}=r;try{const e=t.types.get({name:o,version:a});c=await e.initialProperties(l,s);const n=await e.supernova();i&&await FP({sn:n,properties:c,fields:i,children:u},t),l&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},c)}catch(e){c=n?null:{qInfo:{qType:o},visualization:o}}if(!n){const e=await t.app.createObject(c);return u.length>0&&await e.setFullPropertyTree({qProperty:c,qChildren:u}),d.set(e.id,e),e}return c}const $N={className:"njs-sheet"};function WN(e,t,n){return e.bounds?e.bounds:{y:e.row/n*100,x:e.col/t*100,width:e.colspan/t*100,height:e.rowspan/n*100}}function HN(e){let{model:t,halo:n,initialSnOptions:r,initialSnPlugins:o,initialError:a,onMount:i}=e;const{root:l}=n,[s]=OR(t),{theme:c,modelStore:u}=U.useContext(zx),[d,p]=U.useState([]),[f,h]=U.useState(void 0),[m,g]=U.useState(void 0),[v,b]=U.useState("");U.useEffect((()=>{if(s){const e=JSON.stringify(s.cells);if(e===v)return;b(e);const t=async()=>{d.forEach((e=>{l.removeCell(e.currentId)}));const e=s.cells,{columns:t,rows:r}=s,o=await Promise.all(e.map((async e=>{let o;const a=new Promise((e=>{o=e})),i=d.find((t=>t.id===e.name));if(i)return i.bounds=WN(e,t,r),delete i.mountedPromise,i;const l=await async function(e,t,n){let{id:r,options:o,plugins:a,element:i}=e;const{modelStore:l,rpcRequestModelStore:s}=n,c="".concat(r);let u=s.get(c);u||(u=t.app.getObject(r),s.set(c,u));const d=await u;return l.set(c,d),FN(d,{options:o,plugins:a,element:i},t)}({id:e.name},n,u);return{model:l.model,id:e.name,bounds:WN(e,t,r),cellRef:V.createRef(),currentId:UT(),mounted:o,mountedPromise:a}})));o.forEach((e=>l.addCell(e.currentId,e.cellRef))),p(o)};t()}}),[s]);const y=U.useMemo((()=>d?d.map((e=>function(e,t,n,r,o,a){const{x:i,y:l,width:s,height:c}=e.bounds;return V.createElement("div",{style:{left:"".concat(i,"%"),top:"".concat(l,"%"),width:"".concat(s,"%"),height:"".concat(c,"%"),position:"absolute"}},V.createElement(BM,{ref:e.cellRef,halo:t,model:e.model,currentId:e.currentId,initialSnOptions:n,initialSnPlugins:r,initialError:o,onMount:a}))}(e,n,r,o,a,e.mounted))):[]),[d]);U.useEffect((()=>{const e=null!=s&&s.components?s.components.find((e=>"general"===e.key)):null;h(hT(e,n.public.theme)),g(fT(e,n.app))}),[s,n.public.theme,n.app,c]);const x=!s||Number.isNaN(s.height)?"100%":"".concat(Number(s.height),"%"),S=d.map((e=>e.mountedPromise)),w=S.filter((e=>!!e));return w.length&&Promise.all(S).then((()=>{i()})),V.createElement("div",{className:$N.className,style:{width:"100%",height:x,position:"relative",backgroundColor:f,backgroundImage:m&&m.url?"url(".concat(m.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:m&&m.size,backgroundPosition:m&&m.pos}},y)}const UN=()=>{};function VN(){let{model:e,halo:t,initialError:n,onDestroy:r=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=UN,i=null,l=null,s=null;const c=new Promise((e=>{s=e}));let u={},d=[];const p={id:e.id,model:e,async destroy(){await r(),o(),o=UN},__DO_NOT_USE__:{mount(r){if(l)throw new Error("Already mounted");if(!(r instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return l=r,[o,i]=function(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:a,onMount:i,initialError:l}=e;const{root:s}=t,c=V.createRef(),u=Sp.createPortal(V.createElement(HN,{ref:c,halo:t,model:r,initialSnOptions:o,initialSnPlugins:a,initialError:l,onMount:i}),n,r.id),d=()=>{s.remove(u),r.removeListener("closed",d)};return r.on("closed",d),s.add(u),[d,c]}({halo:t,element:r,model:e,initialSnOptions:u,initialSnPlugins:d,initialError:n,onMount:s}),c},async applyProperties(t){const n=WM("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{l?(async()=>{await c,i.current.setSnOptions(a(a({},u),e))})():u=a(a({},u),e)})(e)},plugins(e){(async e=>{HM(e),l?(async()=>{await c,i.current.setSnPlugins(e)})():d=e})(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return p}async function GN(e,t,n){let{id:r,options:o,plugins:a,element:i}=e;const{modelStore:l,rpcRequestModelStore:s}=n,c="".concat(r);let u=s.get(c);u||(u=t.app.getObject(r),s.set(c,u));const d=await u;return l.set(c,d),"sheet"===d.genericType?async function(e,t,n,r){const o=VN({model:e,halo:n,initialError:r,onDestroy:arguments.length>4&&void 0!==arguments[4]?arguments[4]:async()=>{}});return t.options&&o.__DO_NOT_USE__.options(t.options),t.plugins&&o.__DO_NOT_USE__.plugins(t.plugins),t.element&&await o.__DO_NOT_USE__.mount(t.element),o}(d,{options:o,plugins:a,element:i},t):FN(d,{options:o,plugins:a,element:i},t)}function KN(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}var ZN,XN;var QN=JN;function JN(e){var t=this;if(t instanceof JN||(t=new JN),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var n=0,r=arguments.length;n<r;n++)t.push(arguments[n]);return t}function YN(e,t,n){var r=t===e.head?new nq(n,null,t,e):new nq(n,t,t.next,e);return null===r.next&&(e.tail=r),null===r.prev&&(e.head=r),e.length++,r}function eq(e,t){e.tail=new nq(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function tq(e,t){e.head=new nq(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function nq(e,t,n,r){if(!(this instanceof nq))return new nq(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}JN.Node=nq,JN.create=JN,JN.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},JN.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},JN.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},JN.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)eq(this,arguments[e]);return this.length},JN.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)tq(this,arguments[e]);return this.length},JN.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},JN.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},JN.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;null!==n;r++)e.call(t,n.value,r,this),n=n.next},JN.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;null!==n;r--)e.call(t,n.value,r,this),n=n.prev},JN.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},JN.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},JN.prototype.map=function(e,t){t=t||this;for(var n=new JN,r=this.head;null!==r;)n.push(e.call(t,r.value,this)),r=r.next;return n},JN.prototype.mapReverse=function(e,t){t=t||this;for(var n=new JN,r=this.tail;null!==r;)n.push(e.call(t,r.value,this)),r=r.prev;return n},JN.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var o=0;null!==r;o++)n=e(n,r.value,o),r=r.next;return n},JN.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var o=this.length-1;null!==r;o--)n=e(n,r.value,o),r=r.prev;return n},JN.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},JN.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},JN.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new JN;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=0,o=this.head;null!==o&&r<e;r++)o=o.next;for(;null!==o&&r<t;r++,o=o.next)n.push(o.value);return n},JN.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new JN;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=this.length,o=this.tail;null!==o&&r>t;r--)o=o.prev;for(;null!==o&&r>e;r--,o=o.prev)n.push(o.value);return n},JN.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,o=this.head;null!==o&&r<e;r++)o=o.next;var a=[];for(r=0;o&&r<t;r++)a.push(o.value),o=this.removeNode(o);null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(r=0;r<n.length;r++)o=YN(this,o,n[r]);return a},JN.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};try{(XN||(XN=1,ZN=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}),ZN)(JN)}catch(e){}const rq=QN,oq=Symbol("max"),aq=Symbol("length"),iq=Symbol("lengthCalculator"),lq=Symbol("allowStale"),sq=Symbol("maxAge"),cq=Symbol("dispose"),uq=Symbol("noDisposeOnSet"),dq=Symbol("lruList"),pq=Symbol("cache"),fq=Symbol("updateAgeOnGet"),hq=()=>1;const mq=(e,t,n)=>{const r=e[pq].get(t);if(r){const t=r.value;if(gq(e,t)){if(bq(e,r),!e[lq])return}else n&&(e[fq]&&(r.value.now=Date.now()),e[dq].unshiftNode(r));return t.value}},gq=(e,t)=>{if(!t||!t.maxAge&&!e[sq])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[sq]&&n>e[sq]},vq=e=>{if(e[aq]>e[oq])for(let t=e[dq].tail;e[aq]>e[oq]&&null!==t;){const n=t.prev;bq(e,t),t=n}},bq=(e,t)=>{if(t){const n=t.value;e[cq]&&e[cq](n.key,n.value),e[aq]-=n.length,e[pq].delete(n.key),e[dq].removeNode(t)}};class yq{constructor(e,t,n,r,o){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=o||0}}const xq=(e,t,n,r)=>{let o=n.value;gq(e,o)&&(bq(e,n),e[lq]||(o=void 0)),o&&t.call(r,o.value,o.key,e)};var Sq=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[oq]=e.max||1/0;const t=e.length||hq;if(this[iq]="function"!=typeof t?hq:t,this[lq]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[sq]=e.maxAge||0,this[cq]=e.dispose,this[uq]=e.noDisposeOnSet||!1,this[fq]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[oq]=e||1/0,vq(this)}get max(){return this[oq]}set allowStale(e){this[lq]=!!e}get allowStale(){return this[lq]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[sq]=e,vq(this)}get maxAge(){return this[sq]}set lengthCalculator(e){"function"!=typeof e&&(e=hq),e!==this[iq]&&(this[iq]=e,this[aq]=0,this[dq].forEach((e=>{e.length=this[iq](e.value,e.key),this[aq]+=e.length}))),vq(this)}get lengthCalculator(){return this[iq]}get length(){return this[aq]}get itemCount(){return this[dq].length}rforEach(e,t){t=t||this;for(let n=this[dq].tail;null!==n;){const r=n.prev;xq(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[dq].head;null!==n;){const r=n.next;xq(this,e,n,t),n=r}}keys(){return this[dq].toArray().map((e=>e.key))}values(){return this[dq].toArray().map((e=>e.value))}reset(){this[cq]&&this[dq]&&this[dq].length&&this[dq].forEach((e=>this[cq](e.key,e.value))),this[pq]=new Map,this[dq]=new rq,this[aq]=0}dump(){return this[dq].map((e=>!gq(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[dq]}set(e,t,n){if((n=n||this[sq])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const r=n?Date.now():0,o=this[iq](t,e);if(this[pq].has(e)){if(o>this[oq])return bq(this,this[pq].get(e)),!1;const a=this[pq].get(e).value;return this[cq]&&(this[uq]||this[cq](e,a.value)),a.now=r,a.maxAge=n,a.value=t,this[aq]+=o-a.length,a.length=o,this.get(e),vq(this),!0}const a=new yq(e,t,o,r,n);return a.length>this[oq]?(this[cq]&&this[cq](e,t),!1):(this[aq]+=a.length,this[dq].unshift(a),this[pq].set(e,this[dq].head),vq(this),!0)}has(e){if(!this[pq].has(e))return!1;const t=this[pq].get(e).value;return!gq(this,t)}get(e){return mq(this,e,!0)}peek(e){return mq(this,e,!1)}pop(){const e=this[dq].tail;return e?(bq(this,e),e.value):null}del(e){bq(this,this[pq].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const r=e[n],o=r.e||0;if(0===o)this.set(r.k,r.v);else{const e=o-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[pq].forEach(((e,t)=>mq(this,t,!1)))}};const wq=Object.freeze({loose:!0}),Eq=Object.freeze({});var Cq=e=>e?"object"!=typeof e?wq:e:Eq,kq={exports:{}};var Lq={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const Rq="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error("SEMVER",...t)}:()=>{};var Oq=Rq;!function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=Lq,a=Oq,i=(t=e.exports={}).re=[],l=t.safeRe=[],s=t.src=[],c=t.t={};let u=0;const d="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",o],[d,r]],f=(e,t,n)=>{const r=(e=>{for(const[t,n]of p)e=e.split("".concat(t,"*")).join("".concat(t,"{0,").concat(n,"}")).split("".concat(t,"+")).join("".concat(t,"{1,").concat(n,"}"));return e})(t),o=u++;a(e,o,t),c[e]=o,s[o]=t,i[o]=new RegExp(t,n?"g":void 0),l[o]=new RegExp(r,n?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","\\d+"),f("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-]".concat(d,"*")),f("MAINVERSION","(".concat(s[c.NUMERICIDENTIFIER],")\\.")+"(".concat(s[c.NUMERICIDENTIFIER],")\\.")+"(".concat(s[c.NUMERICIDENTIFIER],")")),f("MAINVERSIONLOOSE","(".concat(s[c.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(s[c.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(s[c.NUMERICIDENTIFIERLOOSE],")")),f("PRERELEASEIDENTIFIER","(?:".concat(s[c.NUMERICIDENTIFIER],"|").concat(s[c.NONNUMERICIDENTIFIER],")")),f("PRERELEASEIDENTIFIERLOOSE","(?:".concat(s[c.NUMERICIDENTIFIERLOOSE],"|").concat(s[c.NONNUMERICIDENTIFIER],")")),f("PRERELEASE","(?:-(".concat(s[c.PRERELEASEIDENTIFIER],"(?:\\.").concat(s[c.PRERELEASEIDENTIFIER],")*))")),f("PRERELEASELOOSE","(?:-?(".concat(s[c.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(s[c.PRERELEASEIDENTIFIERLOOSE],")*))")),f("BUILDIDENTIFIER","".concat(d,"+")),f("BUILD","(?:\\+(".concat(s[c.BUILDIDENTIFIER],"(?:\\.").concat(s[c.BUILDIDENTIFIER],")*))")),f("FULLPLAIN","v?".concat(s[c.MAINVERSION]).concat(s[c.PRERELEASE],"?").concat(s[c.BUILD],"?")),f("FULL","^".concat(s[c.FULLPLAIN],"$")),f("LOOSEPLAIN","[v=\\s]*".concat(s[c.MAINVERSIONLOOSE]).concat(s[c.PRERELEASELOOSE],"?").concat(s[c.BUILD],"?")),f("LOOSE","^".concat(s[c.LOOSEPLAIN],"$")),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE","".concat(s[c.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),f("XRANGEIDENTIFIER","".concat(s[c.NUMERICIDENTIFIER],"|x|X|\\*")),f("XRANGEPLAIN","[v=\\s]*(".concat(s[c.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(s[c.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(s[c.XRANGEIDENTIFIER],")")+"(?:".concat(s[c.PRERELEASE],")?").concat(s[c.BUILD],"?")+")?)?"),f("XRANGEPLAINLOOSE","[v=\\s]*(".concat(s[c.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(s[c.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(s[c.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(s[c.PRERELEASELOOSE],")?").concat(s[c.BUILD],"?")+")?)?"),f("XRANGE","^".concat(s[c.GTLT],"\\s*").concat(s[c.XRANGEPLAIN],"$")),f("XRANGELOOSE","^".concat(s[c.GTLT],"\\s*").concat(s[c.XRANGEPLAINLOOSE],"$")),f("COERCEPLAIN","".concat("(^|[^\\d])(\\d{1,").concat(n,"})")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:\\.(\\d{1,".concat(n,"}))?")),f("COERCE","".concat(s[c.COERCEPLAIN],"(?:$|[^\\d])")),f("COERCEFULL",s[c.COERCEPLAIN]+"(?:".concat(s[c.PRERELEASE],")?")+"(?:".concat(s[c.BUILD],")?")+"(?:$|[^\\d])"),f("COERCERTL",s[c.COERCE],!0),f("COERCERTLFULL",s[c.COERCEFULL],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM","(\\s*)".concat(s[c.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",f("TILDE","^".concat(s[c.LONETILDE]).concat(s[c.XRANGEPLAIN],"$")),f("TILDELOOSE","^".concat(s[c.LONETILDE]).concat(s[c.XRANGEPLAINLOOSE],"$")),f("LONECARET","(?:\\^)"),f("CARETTRIM","(\\s*)".concat(s[c.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",f("CARET","^".concat(s[c.LONECARET]).concat(s[c.XRANGEPLAIN],"$")),f("CARETLOOSE","^".concat(s[c.LONECARET]).concat(s[c.XRANGEPLAINLOOSE],"$")),f("COMPARATORLOOSE","^".concat(s[c.GTLT],"\\s*(").concat(s[c.LOOSEPLAIN],")$|^$")),f("COMPARATOR","^".concat(s[c.GTLT],"\\s*(").concat(s[c.FULLPLAIN],")$|^$")),f("COMPARATORTRIM","(\\s*)".concat(s[c.GTLT],"\\s*(").concat(s[c.LOOSEPLAIN],"|").concat(s[c.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE","^\\s*(".concat(s[c.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(s[c.XRANGEPLAIN],")")+"\\s*$"),f("HYPHENRANGELOOSE","^\\s*(".concat(s[c.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(s[c.XRANGEPLAINLOOSE],")")+"\\s*$"),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(kq,kq.exports);var _q=kq.exports;const Iq=/^[0-9]+$/,Tq=(e,t)=>{const n=Iq.test(e),r=Iq.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1};var Pq={compareIdentifiers:Tq,rcompareIdentifiers:(e,t)=>Tq(t,e)};const Mq=Oq,{MAX_LENGTH:Nq,MAX_SAFE_INTEGER:qq}=Lq,{safeRe:Aq,t:Dq}=_q,zq=Cq,{compareIdentifiers:jq}=Pq;var Fq=class e{constructor(t,n){if(n=zq(n),t instanceof e){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError('Invalid version. Must be a string. Got type "'.concat(typeof t,'".'));if(t.length>Nq)throw new TypeError("version is longer than ".concat(Nq," characters"));Mq("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?Aq[Dq.LOOSE]:Aq[Dq.FULL]);if(!r)throw new TypeError("Invalid Version: ".concat(t));if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>qq||this.major<0)throw new TypeError("Invalid major version");if(this.minor>qq||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>qq||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<qq)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}toString(){return this.version}compare(t){if(Mq("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if("string"==typeof t&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),jq(this.major,t.major)||jq(this.minor,t.minor)||jq(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const e=this.prerelease[n],r=t.prerelease[n];if(Mq("prerelease compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return jq(e,r)}while(++n)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let n=0;do{const e=this.build[n],r=t.build[n];if(Mq("prerelease compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return jq(e,r)}while(++n)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===jq(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error("invalid increment argument: ".concat(e))}return this.raw=this.format(),this.build.length&&(this.raw+="+".concat(this.build.join("."))),this}};const Bq=Fq;var $q=(e,t,n)=>new Bq(e,n).compare(new Bq(t,n));const Wq=$q;var Hq=(e,t,n)=>0===Wq(e,t,n);const Uq=$q;var Vq=(e,t,n)=>0!==Uq(e,t,n);const Gq=$q;var Kq=(e,t,n)=>Gq(e,t,n)>0;const Zq=$q;var Xq=(e,t,n)=>Zq(e,t,n)>=0;const Qq=$q;var Jq=(e,t,n)=>Qq(e,t,n)<0;const Yq=$q;var eA=(e,t,n)=>Yq(e,t,n)<=0;const tA=Hq,nA=Vq,rA=Kq,oA=Xq,aA=Jq,iA=eA;var lA,sA,cA,uA,dA=(e,t,n,r)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return tA(e,n,r);case"!=":return nA(e,n,r);case">":return rA(e,n,r);case">=":return oA(e,n,r);case"<":return aA(e,n,r);case"<=":return iA(e,n,r);default:throw new TypeError("Invalid operator: ".concat(t))}};function pA(){if(uA)return cA;uA=1;class e{constructor(t,o){if(o=n(o),t instanceof e)return t.loose===!!o.loose&&t.includePrerelease===!!o.includePrerelease?t:new e(t.raw,o);if(t instanceof r)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=o,this.loose=!!o.loose,this.includePrerelease=!!o.includePrerelease,this.raw=t.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError("Invalid SemVer Range: ".concat(this.raw));if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!f(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&h(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const n=((this.options.includePrerelease&&d)|(this.options.loose&&p))+":"+e,a=t.get(n);if(a)return a;const h=this.options.loose,m=h?i[l.HYPHENRANGELOOSE]:i[l.HYPHENRANGE];e=e.replace(m,L(this.options.includePrerelease)),o("hyphen replace",e),e=e.replace(i[l.COMPARATORTRIM],s),o("comparator trim",e),e=e.replace(i[l.TILDETRIM],c),o("tilde trim",e),e=e.replace(i[l.CARETTRIM],u),o("caret trim",e);let v=e.split(" ").map((e=>g(e,this.options))).join(" ").split(/\s+/).map((e=>k(e,this.options)));h&&(v=v.filter((e=>(o("loose invalid filter",e,this.options),!!e.match(i[l.COMPARATORLOOSE]))))),o("range list",v);const b=new Map,y=v.map((e=>new r(e,this.options)));for(const e of y){if(f(e))return[e];b.set(e.value,e)}b.size>1&&b.has("")&&b.delete("");const x=[...b.values()];return t.set(n,x),x}intersects(t,n){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some((e=>m(e,n)&&t.set.some((t=>m(t,n)&&e.every((e=>t.every((t=>e.intersects(t,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(R(this.set[t],e,this.options))return!0;return!1}}cA=e;const t=new Sq({max:1e3}),n=Cq,r=function(){if(sA)return lA;sA=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(r,o){if(o=n(o),r instanceof t){if(r.loose===!!o.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),i("comparator",r,o),this.options=o,this.loose=!!o.loose,this.parse(r),this.semver===e?this.value="":this.value=this.operator+this.semver.version,i("comp",this)}parse(t){const n=this.options.loose?r[o.COMPARATORLOOSE]:r[o.COMPARATOR],a=t.match(n);if(!a)throw new TypeError("Invalid comparator: ".concat(t));this.operator=void 0!==a[1]?a[1]:"","="===this.operator&&(this.operator=""),a[2]?this.semver=new l(a[2],this.options.loose):this.semver=e}toString(){return this.value}test(t){if(i("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;if("string"==typeof t)try{t=new l(t,this.options)}catch(e){return!1}return a(t,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new s(e.value,r).test(this.value):""===e.operator?""===e.value||new s(this.value,r).test(e.semver):!((r=n(r)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(a(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(a(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}lA=t;const n=Cq,{safeRe:r,t:o}=_q,a=dA,i=Oq,l=Fq,s=pA();return lA}(),o=Oq,a=Fq,{safeRe:i,t:l,comparatorTrimReplace:s,tildeTrimReplace:c,caretTrimReplace:u}=_q,{FLAG_INCLUDE_PRERELEASE:d,FLAG_LOOSE:p}=Lq,f=e=>"<0.0.0-0"===e.value,h=e=>""===e.value,m=(e,t)=>{let n=!0;const r=e.slice();let o=r.pop();for(;n&&r.length;)n=r.every((e=>o.intersects(e,t))),o=r.pop();return n},g=(e,t)=>(o("comp",e,t),e=x(e,t),o("caret",e),e=b(e,t),o("tildes",e),e=w(e,t),o("xrange",e),e=C(e,t),o("stars",e),e),v=e=>!e||"x"===e.toLowerCase()||"*"===e,b=(e,t)=>e.trim().split(/\s+/).map((e=>y(e,t))).join(" "),y=(e,t)=>{const n=t.loose?i[l.TILDELOOSE]:i[l.TILDE];return e.replace(n,((t,n,r,a,i)=>{let l;return o("tilde",e,t,n,r,a,i),v(n)?l="":v(r)?l=">=".concat(n,".0.0 <").concat(+n+1,".0.0-0"):v(a)?l=">=".concat(n,".").concat(r,".0 <").concat(n,".").concat(+r+1,".0-0"):i?(o("replaceTilde pr",i),l=">=".concat(n,".").concat(r,".").concat(a,"-").concat(i," <").concat(n,".").concat(+r+1,".0-0")):l=">=".concat(n,".").concat(r,".").concat(a," <").concat(n,".").concat(+r+1,".0-0"),o("tilde return",l),l}))},x=(e,t)=>e.trim().split(/\s+/).map((e=>S(e,t))).join(" "),S=(e,t)=>{o("caret",e,t);const n=t.loose?i[l.CARETLOOSE]:i[l.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,a,i,l)=>{let s;return o("caret",e,t,n,a,i,l),v(n)?s="":v(a)?s=">=".concat(n,".0.0").concat(r," <").concat(+n+1,".0.0-0"):v(i)?s="0"===n?">=".concat(n,".").concat(a,".0").concat(r," <").concat(n,".").concat(+a+1,".0-0"):">=".concat(n,".").concat(a,".0").concat(r," <").concat(+n+1,".0.0-0"):l?(o("replaceCaret pr",l),s="0"===n?"0"===a?">=".concat(n,".").concat(a,".").concat(i,"-").concat(l," <").concat(n,".").concat(a,".").concat(+i+1,"-0"):">=".concat(n,".").concat(a,".").concat(i,"-").concat(l," <").concat(n,".").concat(+a+1,".0-0"):">=".concat(n,".").concat(a,".").concat(i,"-").concat(l," <").concat(+n+1,".0.0-0")):(o("no pr"),s="0"===n?"0"===a?">=".concat(n,".").concat(a,".").concat(i).concat(r," <").concat(n,".").concat(a,".").concat(+i+1,"-0"):">=".concat(n,".").concat(a,".").concat(i).concat(r," <").concat(n,".").concat(+a+1,".0-0"):">=".concat(n,".").concat(a,".").concat(i," <").concat(+n+1,".0.0-0")),o("caret return",s),s}))},w=(e,t)=>(o("replaceXRanges",e,t),e.split(/\s+/).map((e=>E(e,t))).join(" ")),E=(e,t)=>{e=e.trim();const n=t.loose?i[l.XRANGELOOSE]:i[l.XRANGE];return e.replace(n,((n,r,a,i,l,s)=>{o("xRange",e,n,r,a,i,l,s);const c=v(a),u=c||v(i),d=u||v(l),p=d;return"="===r&&p&&(r=""),s=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&p?(u&&(i=0),l=0,">"===r?(r=">=",u?(a=+a+1,i=0,l=0):(i=+i+1,l=0)):"<="===r&&(r="<",u?a=+a+1:i=+i+1),"<"===r&&(s="-0"),n="".concat(r+a,".").concat(i,".").concat(l).concat(s)):u?n=">=".concat(a,".0.0").concat(s," <").concat(+a+1,".0.0-0"):d&&(n=">=".concat(a,".").concat(i,".0").concat(s," <").concat(a,".").concat(+i+1,".0-0")),o("xRange return",n),n}))},C=(e,t)=>(o("replaceStars",e,t),e.trim().replace(i[l.STAR],"")),k=(e,t)=>(o("replaceGTE0",e,t),e.trim().replace(i[t.includePrerelease?l.GTE0PRE:l.GTE0],"")),L=e=>(t,n,r,o,a,i,l,s,c,u,d,p,f)=>(n=v(r)?"":v(o)?">=".concat(r,".0.0").concat(e?"-0":""):v(a)?">=".concat(r,".").concat(o,".0").concat(e?"-0":""):i?">=".concat(n):">=".concat(n).concat(e?"-0":""),s=v(c)?"":v(u)?"<".concat(+c+1,".0.0-0"):v(d)?"<".concat(c,".").concat(+u+1,".0-0"):p?"<=".concat(c,".").concat(u,".").concat(d,"-").concat(p):e?"<".concat(c,".").concat(u,".").concat(+d+1,"-0"):"<=".concat(s),"".concat(n," ").concat(s).trim()),R=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(o(e[n].semver),e[n].semver!==r.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return cA}const fA=pA();var hA=(e,t,n)=>{try{t=new fA(t,n)}catch(e){return!1}return t.test(e)},mA=n(hA);const gA={};function vA(e,t){let n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{meta:i}=o,l={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&i&&i.deps&&i.deps.properties)||mA(e,i.deps.properties),supernova:()=>async function(e,t,n,r){let{config:o}=n;const a="".concat(e,"__").concat(t);if(!gA[a]){const n="".concat(e).concat(t&&" v".concat(t)||"");if(r&&"function"!=typeof r)throw new Error("load of visualization '".concat(n,"' is not a fuction, wrap load promise in function"));const i=(r||o.load)({name:e,version:t}),l=Promise.resolve(i);gA[a]=l.then((e=>{if(!e)throw new Error("load() of visualization '".concat(n,"' resolved to an invalid object"));return e})).catch((e=>{throw new Error("Failed to load visualization: '".concat(n,"'"))}))}return gA[a]}(l.name,l.version,t,o.load).then((e=>(n=n||AN(e,t.public.galaxy),r=JSON.stringify(n.qae.properties.initial),n))),initialProperties(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.supernova().then((()=>{const n=a({qInfo:{qType:l.name},visualization:l.name,version:l.version,showTitles:!0},JSON.parse(r));return t?(He(!0,n,e),n):a(a({},n),e)}))}};return l}function bA(e,t){const n={};let r=null;return{get:e=>n[e],register:(o,a)=>{if(n[o])throw new Error("Supernova '".concat(e,"@").concat(o,"' already registered."));n[o]=vA({name:e,version:o},t,a),r=null},getMatchingVersionFromProperties:e=>{r||(r=function(e){const t=e.filter((e=>"undefined"===e));return[...t,...e.filter((e=>"undefined"!==e)).map((e=>e.split(".").map((e=>parseInt(e,10))))).sort(((e,t)=>e[0]-t[0]||e[1]-t[1]||e[2]-t[2])).map((e=>e.join(".")))]}(Object.keys(n)));for(let t=r.length-1;t>=0;t--){if(n[r[t]].supportsPropertiesVersion(e))return r[t]}return null},versions:n}}function yA(e){let{halo:t,parent:n}=e;const r={},o=n||{get:()=>{}};return{register:(e,n)=>{r[e.name]||(r[e.name]=bA(e.name,t)),r[e.name].register(e.version,n)},getSupportedVersion:(e,t)=>{if(r[e])return r[e].getMatchingVersionFromProperties(t)},get(e){const{name:t}=e;let{version:n}=e;if(r[t]){if(!r[t].versions[n]){n=Object.keys(r[t].versions)[0]}}else this.register({name:t,version:n});return r[t].get(n)||o.get(e)},getList:()=>Object.keys(r).map((e=>({name:e,versions:Object.keys(r[e].versions).map((e=>"undefined"===e?void 0:e))}))),clearFromCache:e=>{r[e]&&(r[e]=void 0),function(e){Object.keys(gA).forEach((t=>{t.split("__")[0]===e&&(gA[t]=void 0)}))}(e)}}}const xA={get:async e=>{const t=await fetch("/njs/snapshot/".concat(e));if(!t.ok)throw new Error(t.statusText);return t.json()},capture:e=>fetch("/njs/capture",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then((e=>e.json()))},SA={context:{},load:()=>{},types:[],themes:[],anything:{},flags:{KPI_REACTCOLORPICKER:!0},snapshot:xA};SA.context={theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1,dataViewType:"sn-table"};const wA=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a(a({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),e)},EA=function(){return[...arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],...arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]].filter(((e,t,n)=>n.indexOf(e)===t))};var CA=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=X(t.context.language);function r(e,o){if(o)return r.createConfiguration(o)(e);let i=a(a({},t.context),{},{translator:n.translator});const[l,s]=Wx({app:e,context:i}),c=function(){let{themes:e=[],loadTheme:t,root:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=st();return{setTheme:async o=>{let a=e.filter((e=>e.id===o))[0],i="dark"===o?"dark":"light";if(!a&&t&&(a={load:t}),a&&a.load)try{const e=await Promise.race([a.load(o),ct(ut,{__timedOut:!0})]);e.__timedOut||(i="dark"===e.type?"dark":"light",r.internalAPI.setTheme(e,o),n.setMuiThemeName(i))}catch(e){}else r.internalAPI.setTheme({type:i},o),n.setMuiThemeName(i)},externalAPI:r.externalAPI}}({themes:t.themes,loadTheme:t.loadTheme,root:l});i.themeApi=c.externalAPI;const u={galaxy:{translator:n.translator,flags:KN(t.flags),deviceType:dt(t.context.deviceType),anything:t.anything},theme:c.externalAPI,translator:n.translator,nebbie:null},d={app:e,root:l,config:t,public:u,context:i,types:null},p=yA({halo:d});t.types.forEach((e=>p.register({name:e.name,version:e.version},{meta:e.meta,load:e.load})));let f=c.setTheme(t.context.theme),h=null,m=null;const g={render:async e=>(await f,e.id?GN(e,d,s):async function(e,t,n){let{type:r,version:o,fields:a,properties:i,options:l,plugins:s,element:c,extendProperties:u}=e,d={};const p=[],{modelStore:f,subscribe:h}=n;let m;try{const e=t.types.get({name:r,version:o});d=await e.initialProperties(i,u);const n=await e.supernova();a&&await FP({sn:n,properties:d,fields:a,children:p},t),i&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},d)}catch(e){m=e,d={qInfo:{qType:r},visualization:r}}const g=await t.app.createSessionObject(d);p.length>0&&await g.setFullPropertyTree({qProperty:d,qChildren:p}),f.set(g.id,g);const v=h(g);return FN(g,{options:l,plugins:s,element:c},t,m,(async()=>{await t.app.destroySessionObject(g.id),v()}))}(e,d,s)),create:async e=>BN(e,d,!1,s),generateProperties:async e=>BN(e,d,!0,s),context:async e=>{let t;["theme","language","constraints","interactions","keyboardNavigation"].forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==i[n]&&(t||(t={}),t[n]=e[n])})),t&&(i=a(a(a({},i),t),{},{translator:n.translator}),t.theme&&(f=c.setTheme(t.theme),await f),t.language&&d.public.translator.language(t.language),l.context(i))},selections:async()=>(h||(h={mount(t){m||(m=function(e){let{element:t,app:n}=e;return Sp.createPortal(V.createElement(VT,{app:n}),t,UT())}({element:t,app:e}),l.add(m))},unmount(){m&&(l.remove(m),m=null)}}),h),field:async t=>{let n;const r="string"==typeof t?t:t.qLibraryId;if(t.qId)n=t.qId;else if(!r)throw new Error("Field identifier or object id must be provided");const o={fieldName:r,async mount(i){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!i)throw new Error("Element for ".concat(r||n," not provided"));if(this._instance)throw new Error("Field or object ".concat(r||n," already mounted"));const c=()=>o.emit("selectionActivated"),u=()=>o.emit("selectionDeactivated");return new Promise((r=>{this._instance=function(e){let{element:t,app:n,fieldIdentifier:r,qId:o,stateName:a="$",options:i={},renderedCallback:l}=e;return Sp.createPortal(V.createElement(LP,{app:n,element:t,fieldIdentifier:r,qId:o,stateName:a,options:i,renderedCallback:l}),t,UT())}({element:i,app:e,fieldIdentifier:t,qId:n,options:kP(a({onSelectionActivated:c,onSelectionDeactivated:u},s)),stateName:s.stateName||"$",renderedCallback:r}),l.add(this._instance)}))},unmount(){this._instance&&(l.remove(this._instance),this._instance=null)}};return zI(o),o},getRegisteredTypes:p.getList,__DO_NOT_USE__:{types:p,popover(t,n,r){g._popoverInstance&&(l.remove(g._popoverInstance),g._popoverInstance=null);const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=a({},RP);return He(!0,t,e),t}(a({onPopoverClose:()=>g.emit("fieldPopoverClose")},r));g._popoverInstance=V.createElement(OP,{element:t,key:UT(),app:e,fieldIdentifier:n,options:o,stateName:r.stateName||"$"}),l.add(g._popoverInstance)}}};return d.public.nebbie=g,d.types=p,zI(g),g}return r.createConfiguration=n=>e(((e,t)=>({context:wA(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:a({},t.snapshot||e.snapshot),types:EA(e.types,t.types),themes:EA(e.themes,t.themes),flags:wA(e.flags,t.flags),anything:wA(e.anything,t.anything)}))(t,n)),r.config=t,r}(SA);function kA(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}const LA=globalThis.crypto||{getRandomValues:()=>123456};function RA(e){return t=>{const n=He({},t);n.qInfo=n.qInfo||{},n.qInfo.qId=n.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^LA.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))));const r=n._mock;let o=n;return r&&(delete n._mock,o=He({},n,r)),Promise.resolve({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(o),getProperties:()=>Promise.resolve(n),getEffectiveProperties:()=>Promise.resolve(n),removeListener:()=>{},id:n.qInfo.qId,properties:n,session:e})}}const OA=function(e){let{args:t=[],defaultValue:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"function"==typeof e?e(...t):void 0!==e?e:n},_A=function(e){let{defaultValue:t,async:n=!0,delay:r=0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(){for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];const l=OA(e,{defaultValue:t,args:a});return n?new Promise((e=>{setTimeout((()=>e(l)),r)})):l}},IA=["id","session"],TA=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function PA(e){return!TA.includes(e)}function MA(e){const t=OA(e.getLayout);return t.qInfo&&t.qInfo.qId}function NA(e,t){return e.reduce(((e,n)=>a(a({},e),function(e,t){let n=MA(e);const{delay:r}=t,{id:o,session:i}=e,l=c(e,IA);if(o&&n&&o!==n)throw new Error("Generic object has multiple IDs, qInfo.qId: ".concat(n,", id: ").concat(o));return n=n||o||"object - ".concat(+Date.now()),{[n]:a(a({id:n,session:OA(i,{defaultValue:!0}),on:()=>{},once:()=>{}},Object.entries(l).reduce(((e,t)=>{let[n,o]=t;return a(a({},e),{},{[n]:_A(o,{async:PA(n),delay:r})})}),{})),{},{genericType:e.type})}}(n,t))),{})}function qA(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!MA(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function AA(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Array.isArray(e)||0===e.length)return()=>{throw new Error('No "genericObjects" specified')};e.forEach(qA);const n=NA(e,t);return async e=>Promise.resolve(n[e])}function DA(){return()=>Promise.resolve({id:"app-layout"})}const zA={fromGenericObjects(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new kA,r=new RA(n),o=new AA(e,t),a=new DA,i={id:"app - ".concat(+Date.now()),session:n,createSessionObject:r,destroySessionObject:async()=>{},getObject:o,getAppLayout:a};return Promise.resolve(i)}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}},jA={generator:AN,hook:vN,theme:st,locale:K};e.EnigmaMocker=zA,e.__DO_NOT_USE__=jA,e.conversion=eM,e.embed=CA,e.onContextMenu=function(e){const t=hN(++rN);t.value||(t.value=1,nN.__hooks.menus.push(t)),t.fn=e},e.onTakeSnapshot=function(e){const t=hN(++rN);t.value||(t.value=1,nN.__hooks.snaps.push(t)),t.fn=e},e.useAction=function(e,t){const[n]=bN({action(){n._config.action.call(null)}});return n.component||(n.component=nN,nN.__hooks.actions.list.push(n)),SN((()=>{const t=e();n._config=t,n.active=t.active||!1,n.disabled=t.disabled||!1,n.hidden=t.hidden||!1,n.label=t.label||"",n.getSvgIconShape=t.icon?()=>t.icon:void 0,n.key=t.key||n.component.__hooks.actions.list.length,n.component.__hooks.actions.changed=!0}),t),n.action},e.useApp=function(){const e=mN("app");return e&&e.session?e:void 0},e.useAppLayout=function(){return mN("appLayout")},e.useConstraints=function(){return mN("constraints")},e.useDeviceType=function(){return mN("deviceType")},e.useEffect=yN,e.useElement=wN,e.useEmbed=function(){return mN("nebbie")},e.useEmitter=function(){return mN("emitter")},e.useGlobal=function(){const e=mN("global");return e&&e.session?e:void 0},e.useImperativeHandle=function(e,t){const n=hN(++rN);if(n.imperative||(n.imperative=!0),oN(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],nN.__hooks.imperativeHandle=r}},e.useInteractionState=function(){return mN("interactions")},e.useKeyboard=function(){const e=mN("keyboardNavigation"),t=mN("focusHandler");if(!nN.__hooks.accessibility.exitFunction){const e=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const n=this.__hooks.accessibility;n.enabled&&n.active&&(CN(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(nN);nN.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),EN(this))}.bind(nN);nN.__hooks.accessibility.focusFunction=n;const r=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(nN);nN.__hooks.accessibility.focusSelectionFunction=r}const n=nN.__hooks.accessibility.focusFunction,r=nN.__hooks.accessibility.exitFunction,o=nN.__hooks.accessibility.focusSelectionFunction,[a,i]=bN({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return nN.__hooks.accessibility.setter=i,nN.__hooks.accessibility.enabled=e,yN((()=>i({active:!1,enabled:e,blur:r,focus:n,focusSelection:o})),[e]),a},e.useLayout=function(){return mN("layout")},e.useMemo=SN,e.useModel=function(){const e=mN("model");return e&&e.session?e:void 0},e.useOptions=function(){return mN("options")},e.usePlugins=function(){return mN("plugins")},e.usePromise=function(e,t){const[n,r]=bN((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=hN(++rN);return o.component||(o.component=nN),xN((()=>{let t=!1;return o.teardown=()=>{t=!0,o.teardown=null;const e=o.component.__hooks.pendingPromises.indexOf(o);e>-1&&o.component.__hooks.pendingPromises.splice(e,1)},e().then((e=>{t||(o.teardown&&o.teardown(),r({resolved:e,rejected:void 0,state:"resolved"}))})).catch((e=>{t||(o.teardown&&o.teardown(),r({resolved:void 0,rejected:e,state:"resolved"}))})),o.component.__hooks.pendingPromises.push(o),()=>{o.teardown&&o.teardown()}}),t),[n.resolved,n.rejected]},e.useRect=function(){const e=wN(),t=nN.__hooks.resizer,[n,r]=bN((()=>{const{left:t,top:n,width:r,height:o}=e.getBoundingClientRect();return{left:t,top:n,width:r,height:o}}));return t.current=n,-1===t.setters.indexOf(r)&&t.setters.push(r),t.update&&t.resize&&(t.update=!1,t.resize()),xN((()=>{if(t.initiated)return;t.initiated=!0;const n=()=>{const{left:n,top:r,width:o,height:a}=e.getBoundingClientRect(),i=t.current;i.width===o&&i.height===a&&i.left===n&&i.top===r||t.setters.forEach((e=>e({left:n,top:r,width:o,height:a})))};if(t.resize=()=>{n()},t.explicitResize)return()=>{t.resize=void 0};if("function"==typeof ResizeObserver){let r=new ResizeObserver(n);return r.observe(e),()=>{r.unobserve(e),r.disconnect(e),r=null,t.resize=void 0}}}),[e]),n},e.useRenderState=function(){hN(++rN);const e=nN.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}},e.useSelections=function(){return mN("selections")},e.useStaleLayout=function(){const e=mN("layout"),[t]=bN({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current},e.useState=bN,e.useTheme=function(){return mN("theme")},e.useTranslator=function(){return mN("translator")}}));
134
134
  //# sourceMappingURL=stardust.js.map