@nebula.js/stardust 5.12.5 → 5.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/esm/dev.js +1204 -953
- package/core/esm/dev.js.map +1 -1
- package/core/esm/index.js +4 -4
- package/core/esm/index.js.map +1 -1
- package/dist/stardust.dev.js +1461 -1415
- package/dist/stardust.dev.js.map +1 -1
- package/dist/stardust.js +13 -13
- package/dist/stardust.js.map +1 -1
- package/package.json +11 -11
- package/types/index.d.ts +2 -0
package/dist/stardust.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/stardust v5.
|
|
2
|
+
* @nebula.js/stardust v5.13.0
|
|
3
3
|
* Copyright (c) 2025 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(Object.prototype.hasOwnProperty.call(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}var o,a={exports:{}};function i(e,t,n){return(t=function(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);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: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)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(null,arguments)}function s(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 c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}o||(o=1,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 b?t:b,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 b(){}function v(){}function y(){}var x={};c(x,i,(function(){return this}));var S=Object.getPrototypeOf,w=S&&S(S(P([])));w&&w!==n&&r.call(w,i)&&(x=w);var E=y.prototype=b.prototype=Object.create(x);function k(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function C(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 P(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 v.prototype=y,o(E,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=c(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"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}},k(C.prototype),c(C.prototype,l,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new C(u(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},k(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=P,_.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:P(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)}}(a));var d,p,f={exports:{}},h={};function m(){if(d)return h;d=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),p=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}function v(){}function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}b.prototype.isReactComponent={},b.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")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=b.prototype;var x=y.prototype=new v;x.constructor=y,m(x,b.prototype),x.isPureReactComponent=!0;var S=Array.isArray,w=Object.prototype.hasOwnProperty,E={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function C(t,n,r){var o,a={},i=null,l=null;if(null!=n)for(o in void 0!==n.ref&&(l=n.ref),void 0!==n.key&&(i=""+n.key),n)w.call(n,o)&&!k.hasOwnProperty(o)&&(a[o]=n[o]);var s=arguments.length-2;if(1===s)a.children=r;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];a.children=c}if(t&&t.defaultProps)for(o in s=t.defaultProps)void 0===a[o]&&(a[o]=s[o]);return{$$typeof:e,type:t,key:i,ref:l,props:a,_owner:E.current}}function R(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var L=/\/+/g;function O(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 I(n,r,o,a,i){var l=typeof n;"undefined"!==l&&"boolean"!==l||(n=null);var s=!1;if(null===n)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(n.$$typeof){case e:case t:s=!0}}if(s)return i=i(s=n),n=""===a?"."+O(s,0):a,S(i)?(o="",null!=n&&(o=n.replace(L,"$&/")+"/"),I(i,r,o,"",(function(e){return e}))):null!=i&&(R(i)&&(i=function(t,n){return{$$typeof:e,type:t.type,key:n,ref:t.ref,props:t.props,_owner:t._owner}}(i,o+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(L,"$&/")+"/")+n)),r.push(i)),1;if(s=0,a=""===a?".":a+":",S(n))for(var c=0;c<n.length;c++){var u=a+O(l=n[c],c);s+=I(l,r,o,u,i)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(n),"function"==typeof u)for(n=u.call(n),c=0;!(l=n.next()).done;)s+=I(l=l.value,r,o,u=a+O(l,c++),i);else if("object"===l)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return s}function _(e,t,n){if(null==e)return e;var r=[],o=0;return I(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function P(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 T={current:null},M={transition:null},N={ReactCurrentDispatcher:T,ReactCurrentBatchConfig:M,ReactCurrentOwner:E};function q(){throw Error("act(...) is not supported in production builds of React.")}return h.Children={map:_,forEach:function(e,t,n){_(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return _(e,(function(){t++})),t},toArray:function(e){return _(e,(function(e){return e}))||[]},only:function(e){if(!R(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},h.Component=b,h.Fragment=n,h.Profiler=o,h.PureComponent=y,h.StrictMode=r,h.Suspense=s,h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N,h.act=q,h.cloneElement=function(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var o=m({},t.props),a=t.key,i=t.ref,l=t._owner;if(null!=n){if(void 0!==n.ref&&(i=n.ref,l=E.current),void 0!==n.key&&(a=""+n.key),t.type&&t.type.defaultProps)var s=t.type.defaultProps;for(c in n)w.call(n,c)&&!k.hasOwnProperty(c)&&(o[c]=void 0===n[c]&&void 0!==s?s[c]:n[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){s=Array(c);for(var u=0;u<c;u++)s[u]=arguments[u+2];o.children=s}return{$$typeof:e,type:t.type,key:a,ref:i,props:o,_owner:l}},h.createContext=function(e){return(e={$$typeof:i,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},h.createElement=C,h.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},h.createRef=function(){return{current:null}},h.forwardRef=function(e){return{$$typeof:l,render:e}},h.isValidElement=R,h.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:P}},h.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},h.startTransition=function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},h.unstable_act=q,h.useCallback=function(e,t){return T.current.useCallback(e,t)},h.useContext=function(e){return T.current.useContext(e)},h.useDebugValue=function(){},h.useDeferredValue=function(e){return T.current.useDeferredValue(e)},h.useEffect=function(e,t){return T.current.useEffect(e,t)},h.useId=function(){return T.current.useId()},h.useImperativeHandle=function(e,t,n){return T.current.useImperativeHandle(e,t,n)},h.useInsertionEffect=function(e,t){return T.current.useInsertionEffect(e,t)},h.useLayoutEffect=function(e,t){return T.current.useLayoutEffect(e,t)},h.useMemo=function(e,t){return T.current.useMemo(e,t)},h.useReducer=function(e,t,n){return T.current.useReducer(e,t,n)},h.useRef=function(e){return T.current.useRef(e)},h.useState=function(e){return T.current.useState(e)},h.useSyncExternalStore=function(e,t,n){return T.current.useSyncExternalStore(e,t,n)},h.useTransition=function(){return T.current.useTransition()},h.version="18.3.1",h}function g(){return p||(p=1,f.exports=m()),f.exports}var b=g(),v=n(b),y=t({__proto__:null,default:v},[b]);const x=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 S,w,E={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_Clear_Search:{id:"Listbox.Clear.Search",locale:{"de-DE":"Suche löschen","en-US":"Clear search","es-ES":"Borrar búsqueda","fr-FR":"Effacer la recherche","it-IT":"Cancella ricerca","ja-JP":"検索をクリア","ko-KR":"검색 지우기","nl-NL":"Zoekopdracht wissen","pl-PL":"Wyczyść wyszukiwanie","pt-BR":"Limpar pesquisa","ru-RU":"Очистить поиск","sv-SE":"Radera sökning","tr-TR":"Aramayı temizle","zh-CN":"清除搜索","zh-TW":"清除搜尋"}},Listbox_Cyclic:{id:"Listbox.Cyclic",locale:{"de-DE":"Zyklische Dimension","en-US":"Cyclic dimension","es-ES":"Dimensión cíclica","fr-FR":"Dimension cyclique","it-IT":"Dimensione ciclica","ja-JP":"サイクリック軸","ko-KR":"순환 차원","nl-NL":"Cyclische dimensie","pl-PL":"Wymiar cykliczny","pt-BR":"Dimensão cíclica","ru-RU":"Циклическое измерение","sv-SE":"Cyklisk dimension","tr-TR":"Döngüsel boyut","zh-CN":"循环维度","zh-TW":"循環維度"}},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 k(e){const t=x({initial:e});return Object.keys(E).forEach((e=>{t.translator.add(E[e])})),{translator:t.translator}}var C=function(){if(w)return S;w=1;var e={};function t(){t.init.call(this)}return e.isObject=function(e){return"object"==typeof e&&null!==e},e.isNumber=function(e){return"number"==typeof e},e.isUndefined=function(e){return void 0===e},e.isFunction=function(e){return"function"==typeof e},S=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},t.prototype.setMaxListeners=function(t){if(!e.isNumber(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},t.prototype.emit=function(t){var n,r,o,a,i,l;if(this._events||(this._events={}),"error"===t&&!this._events.error)throw(n=arguments[1])instanceof Error?n:Error('Uncaught, unspecified "error" event.');if(r=this._events[t],e.isUndefined(r))return!1;if(e.isFunction(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:for(o=arguments.length,a=new Array(o-1),i=1;i<o;i++)a[i-1]=arguments[i];r.apply(this,a)}else if(e.isObject(r)){for(o=arguments.length,a=new Array(o-1),i=1;i<o;i++)a[i-1]=arguments[i];for(o=(l=r.slice()).length,i=0;i<o;i++)l[i].apply(this,a)}return!0},t.prototype.addListener=function(n,r){var o;if(!e.isFunction(r))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",n,e.isFunction(r.listener)?r.listener:r),this._events[n]?e.isObject(this._events[n])?this._events[n].push(r):this._events[n]=[this._events[n],r]:this._events[n]=r,e.isObject(this._events[n])&&!this._events[n].warned)&&((o=e.isUndefined(this._maxListeners)?t.defaultMaxListeners:this._maxListeners)&&o>0&&this._events[n].length>o&&(this._events[n].warned=!0,e.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[n].length),e.isFunction(console.trace)&&console.trace()));return this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(t,n){if(!e.isFunction(n))throw TypeError("listener must be a function");var r=!1;function o(){this.removeListener(t,o),r||(r=!0,n.apply(this,arguments))}return o.listener=n,this.on(t,o),this},t.prototype.removeListener=function(t,n){var r,o,a,i;if(!e.isFunction(n))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(a=(r=this._events[t]).length,o=-1,r===n||e.isFunction(r.listener)&&r.listener===n)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,n);else if(e.isObject(r)){for(i=a;i-- >0;)if(r[i]===n||r[i].listener&&r[i].listener===n){o=i;break}if(o<0)return this;1===r.length?(r.length=0,delete this._events[t]):r.splice(o,1),this._events.removeListener&&this.emit("removeListener",t,n)}return this},t.prototype.removeAllListeners=function(t){var n,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(n in this._events)"removeListener"!==n&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[t],e.isFunction(r))this.removeListener(t,r);else if(Array.isArray(r))for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},t.prototype.listeners=function(t){return this._events&&this._events[t]?e.isFunction(this._events[t])?[this._events[t]]:this._events[t].slice():[]},t.listenerCount=function(t,n){return t._events&&t._events[n]?e.isFunction(t._events[n])?1:t._events[n].length:0},S}(),R=n(C);function L(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function O(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function I(){}var _,P,T=.7,M=1/T,N="\\s*([+-]?\\d+)\\s*",q="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",A="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",D=/^#([0-9a-f]{3,8})$/,z=new RegExp(`^rgb\\(${N},${N},${N}\\)$`),j=new RegExp(`^rgb\\(${A},${A},${A}\\)$`),F=new RegExp(`^rgba\\(${N},${N},${N},${q}\\)$`),$=new RegExp(`^rgba\\(${A},${A},${A},${q}\\)$`),B=new RegExp(`^hsl\\(${q},${A},${A}\\)$`),W=new RegExp(`^hsla\\(${q},${A},${A},${q}\\)$`),H={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 U(){return this.rgb().formatHex()}function V(){return this.rgb().formatRgb()}function G(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=D.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?K(t):3===n?new J(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Z(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Z(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=z.exec(e))?new J(t[1],t[2],t[3],1):(t=j.exec(e))?new J(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=F.exec(e))?Z(t[1],t[2],t[3],t[4]):(t=$.exec(e))?Z(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=B.exec(e))?re(t[1],t[2]/100,t[3]/100,1):(t=W.exec(e))?re(t[1],t[2]/100,t[3]/100,t[4]):H.hasOwnProperty(e)?K(H[e]):"transparent"===e?new J(NaN,NaN,NaN,0):null}function K(e){return new J(e>>16&255,e>>8&255,255&e,1)}function Z(e,t,n,r){return r<=0&&(e=t=n=NaN),new J(e,t,n,r)}function X(e,t,n,r){return 1===arguments.length?function(e){return e instanceof I||(e=G(e)),e?new J((e=e.rgb()).r,e.g,e.b,e.opacity):new J}(e):new J(e,t,n,null==r?1:r)}function J(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Q(){return`#${ne(this.r)}${ne(this.g)}${ne(this.b)}`}function Y(){const e=ee(this.opacity);return`${1===e?"rgb(":"rgba("}${te(this.r)}, ${te(this.g)}, ${te(this.b)}${1===e?")":`, ${e})`}`}function ee(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function te(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ne(e){return((e=te(e))<16?"0":"")+e.toString(16)}function re(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ae(e,t,n,r)}function oe(e){if(e instanceof ae)return new ae(e.h,e.s,e.l,e.opacity);if(e instanceof I||(e=G(e)),!e)return new ae;if(e instanceof ae)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 ae(i,l,s,e.opacity)}function ae(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ie(e){return(e=(e||0)%360)<0?e+360:e}function le(e){return Math.max(0,Math.min(1,e||0))}function se(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}L(I,G,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:U,formatHex:U,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return oe(this).formatHsl()},formatRgb:V,toString:V}),L(J,X,O(I,{brighter(e){return e=null==e?M:Math.pow(M,e),new J(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?T:Math.pow(T,e),new J(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new J(te(this.r),te(this.g),te(this.b),ee(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:Q,formatHex:Q,formatHex8:function(){return`#${ne(this.r)}${ne(this.g)}${ne(this.b)}${ne(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Y,toString:Y})),L(ae,(function(e,t,n,r){return 1===arguments.length?oe(e):new ae(e,t,n,null==r?1:r)}),O(I,{brighter(e){return e=null==e?M:Math.pow(M,e),new ae(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?T:Math.pow(T,e),new ae(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 J(se(e>=240?e-240:e+120,o,r),se(e,o,r),se(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new ae(ie(this.h),le(this.s),le(this.l),ee(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=ee(this.opacity);return`${1===e?"hsl(":"hsla("}${ie(this.h)}, ${100*le(this.s)}%, ${100*le(this.l)}%${1===e?")":`, ${e})`}`}}));var ce=function(){if(P)return _;P=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},a=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),a=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!a)return!1;for(r in n);return void 0===r||e.call(n,r)},i=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return _=function e(){var t,n,r,s,c,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=l(d,n),d!==(s=l(t,n))&&(h&&s&&(a(s)||(c=o(s)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&a(r)?r:{},i(d,{name:n,newValue:e(h,u,s)})):void 0!==s&&i(d,{name:n,newValue:s}));return d},_}(),ue=n(ce),de={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",backgroundColor:"transparent"},subTitle:{color:"@B50",fontSize:"12px",backgroundColor:"transparent"},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"]}]}},pe={_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"},fe={_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"}}}},he={object:{listBox:{backgroundColor:"#ffffff",title:{main:{color:"#404040",fontSize:"14px",fontWeight:"bold"}},content:{color:"#404040",fontSize:"12px"}}}};const me={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}},ge=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,be=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,ve=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,ye=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,xe=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,Se=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,{floor:we}=Math,{round:Ee}=Math;class ke{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,b=0,v=1;if(this._invalid=!1,t[0]instanceof ke)m=t[0]._r,g=t[0]._g,b=t[0]._b,v=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),b=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),b=parseInt(f[3],10),v=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))v=parseInt(f[1],10)/255,m=parseInt(f[2],10),g=parseInt(f[3],10),b=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),b=parseInt(f[3],16),v=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),b=parseInt(f[3]+f[3],16),v=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,b=d[2]+p,m=Ee(255*m),g=Ee(255*g),b=Ee(255*b),v=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]),v=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,b=d[2]+p,m=Ee(255*m),g=Ee(255*g),b=Ee(255*b)}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,b=d[2]+p,m=Ee(255*m),g=Ee(255*g),b=Ee(255*b),v=1}else me[h.toLowerCase()]?(a=h.toLowerCase(),m=me[a].r,g=me[a].g,b=me[a].b,v="number"==typeof me[a].a?me[a].a:1):this._invalid=!0;else"number"==typeof t[0]&&t[0]>=0&&"argb"===t[1]?(v=(4278190080&t[0])>>>24,v/=255,m=(16711680&t[0])>>16,g=(65280&t[0])>>8,b=255&t[0]):"number"==typeof t[0]&&t[0]>=0?(m=(16711680&t[0])>>16,g=(65280&t[0])>>8,b=255&t[0]):this._invalid=!0;else t.length>=3?(m=t[0],g=t[1],b=t[2],v=arguments.length>=4?t[3]:1):this._invalid=!0;Number.isNaN(+m+g+b+v)&&(this._invalid=!0),this._r=we(m),this._g=we(g),this._b=we(b),this._a=v,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=ke.toRGB(this)),this._spaces.rgb}toRGBA(){return this._spaces.rgba||(this._spaces.rgba=ke.toRGBA(this)),this._spaces.rgba}toString(){return this._spaces.rgb||(this._spaces.rgb=ke.toRGB(this)),this._spaces.rgb}toHex(){return this._spaces.hex||(this._spaces.hex=ke.toHex(this)),this._spaces.hex}toHSL(e){return this._spaces.hsl||(this._spaces.hsl=ke.toHSL(this,e)),this._spaces.hsl}toHSLA(e){return this._spaces.hsla||(this._spaces.hsla=ke.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=ke.toHSVComponents(this)),this._spaces.hsvComp}toNumber(){return this._spaces.num||(this._spaces.num=ke.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 ke||(e=new ke(e)),this._r===e._r&&this._g===e._g&&this._b===e._b&&this._a===e._a}blend(e,t){const n=we(this._r+(e._r-this._r)*t),r=we(this._g+(e._g-this._g)*t),o=we(this._b+(e._b-this._b)*t),a=we(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 ke(r)}static toRGB(e){if(e instanceof ke)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=ke.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 ke)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=ke.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 ke?(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=ke.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 ke(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 ke(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 ke(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 ke)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=ke.toNumber(e)))>>16,o=(65280&e)>>8,a=255&e;return(r+(((16711680&(t=ke.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 ke(r,o,a,i)}static isCSSColor(e){return!(arguments.length>1||"string"!=typeof e)&&(ge.test(e)||be.test(e)||ve.test(e)||ye.test(e)||xe.test(e)||Se.test(e)||me[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 ke(...t).isDark(...t)}static useDarkLabel(e,t){return e._a>.5?!e.isDark():!t}}class Ce{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=G(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([G(e),G(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 X(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 Re(e,t,n){const r=.25+(t+1)/n*.25,o=.5-r;return o+e/1*(.5+r-o)}function Le(e,t,n){const r=[],o=new Ce(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 Oe(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=Re(1/t*o,t,n);a=e.getColor(r);break}}r.push(G(a).formatHex())}return r}function Ie(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=Le(e,n,!0),o=Le(Oe(r,t-1,t),n,!1),a=[null];for(let e=0;e<t;e++)a.push(Oe(o,e,t));return a}(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}}))}function _e(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 Pe(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 Te(e,t,n,r){let o;if(""===e)o=_e(null,n);else{o=_e(e.split("."),n)}return function(e,t,n){const r=t.split(".");for(let t=0;t<e.length;t++){const o=Pe(n,[...e[t],...r]);if(void 0!==o)return o}}(o,t,r)}function Me(e,t){const n=e.split(".");return{getStyle:(e,r)=>Te(e,r,n.concat(),t)}}function Ne(e,t){Object.keys(e).forEach((n=>{"object"==typeof e[n]&&null!==e[n]?Ne(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])}))}function qe(e){const t=G(e);if(!t)return 0;const{r:n,g:r,b:o}=t.rgb(),[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)}Me.resolveRawTheme=e=>{const t=ue(!0,{},e);return Ne(t,t._variables),t.scales&&Ie(t.scales,t.dataColors&&t.dataColors.nullColor),t};const Ae=1e3;function De(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["#333333","#ffffff"],t={},n=0;const r=e.map(qe);return{getBestContrastColor(o){if(!t[o]){n>Ae&&(t={},n=0);const a=qe(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 ze(){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]=Me(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=G(...arguments);return n?n.toString():void 0}},a={setTheme(a,i){e=function(e,t){const n="dark"===e.type?fe:pe;let r=he;!1!==e._inherit&&"false"!==e._inherit||(r={});const o=ue(!0,{},de,r,n),a=ue(!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,Me.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=>{const n=e.colors&&"none"!==e.colors[0]?["none",...e.colors]:e.colors;t.push({key:"ui",name:e.name,translation:e.translation,type:"row",colors:n||[]})})),t},dataColors:()=>({primary:e.dataColors.primaryColor,nil:e.dataColors.nullColor,others:e.dataColors.othersColor}),uiColor(e){const n="number"==typeof(null==e?void 0:e.index)&&!Number.isNaN(null==e?void 0:e.index),r="string"==typeof(null==e?void 0:e.color);if(!n&&!r)return;const o=(()=>(null==e?void 0:e.index)<0||void 0===(null==e?void 0:e.index)?e.color:(void 0===t&&(t=this.uiPalettes()[0]||!1),t?void 0===t.colors[e.index]?e.color:t.colors[e.index]:e.color))();if(void 0===e.alpha||e.alpha>=1||e.alpha<0)return o;const a=new ke(o);return a.setAlpha(e.alpha),a.isInvalid()?o:a.toRGBA()}}}(e);const l=o.getStyle("","","color"),s=qe(l);n=De([l,s<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>i}};return Object.keys(R.prototype).forEach((e=>{o[e]=R.prototype[e]})),R.init(o),a.setTheme({},"light"),{externalAPI:o,internalAPI:a}}const je=(e,t)=>new Promise((n=>{setTimeout((()=>n(t)),e)})),Fe=5e3;function $e(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 Be,We,He,Ue,Ve,Ge={},Ke={exports:{}},Ze={},Xe={exports:{}},Je={};function Qe(){return We||(We=1,Xe.exports=(Be||(Be=1,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,b="function"==typeof clearTimeout?clearTimeout:null,v="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,T(S);else{var t=n(c);null!==t&&M(x,t.startTime-e)}}function S(t,o){h=!1,m&&(m=!1,b(C),C=-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,k=null,C=-1,R=5,L=-1;function O(){return!(e.unstable_now()-L<R)}function I(){if(null!==k){var t=e.unstable_now();L=t;var n=!0;try{n=k(!0,t)}finally{n?w():(E=!1,k=null)}}else E=!1}if("function"==typeof v)w=function(){v(I)};else if("undefined"!=typeof MessageChannel){var _=new MessageChannel,P=_.port2;_.port1.onmessage=I,w=function(){P.postMessage(null)}}else w=function(){g(I,0)};function T(e){k=e,E||(E=!0,w())}function M(t,n){C=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,T(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(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<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?(b(C),C=-1):m=!0,M(x,a-i))):(r.sortIndex=l,t(s,r),h||f||(h=!0,T(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}}}}(Je)),Je)),Xe.exports}
|
|
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(Object.prototype.hasOwnProperty.call(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}var o,a={exports:{}};function i(e,t,n){return(t=function(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);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: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)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(null,arguments)}function s(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 c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}o||(o=1,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 b?t:b,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 b(){}function v(){}function y(){}var x={};c(x,i,(function(){return this}));var S=Object.getPrototypeOf,w=S&&S(S(P([])));w&&w!==n&&r.call(w,i)&&(x=w);var E=y.prototype=b.prototype=Object.create(x);function k(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function C(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 P(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 v.prototype=y,o(E,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=c(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"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}},k(C.prototype),c(C.prototype,l,(function(){return this})),e.AsyncIterator=C,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new C(u(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},k(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=P,_.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:P(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)}}(a));var d,p,f={exports:{}},h={};function m(){if(d)return h;d=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),p=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}function v(){}function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||f}b.prototype.isReactComponent={},b.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")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=b.prototype;var x=y.prototype=new v;x.constructor=y,m(x,b.prototype),x.isPureReactComponent=!0;var S=Array.isArray,w=Object.prototype.hasOwnProperty,E={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function C(t,n,r){var o,a={},i=null,l=null;if(null!=n)for(o in void 0!==n.ref&&(l=n.ref),void 0!==n.key&&(i=""+n.key),n)w.call(n,o)&&!k.hasOwnProperty(o)&&(a[o]=n[o]);var s=arguments.length-2;if(1===s)a.children=r;else if(1<s){for(var c=Array(s),u=0;u<s;u++)c[u]=arguments[u+2];a.children=c}if(t&&t.defaultProps)for(o in s=t.defaultProps)void 0===a[o]&&(a[o]=s[o]);return{$$typeof:e,type:t,key:i,ref:l,props:a,_owner:E.current}}function R(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var L=/\/+/g;function O(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 I(n,r,o,a,i){var l=typeof n;"undefined"!==l&&"boolean"!==l||(n=null);var s=!1;if(null===n)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(n.$$typeof){case e:case t:s=!0}}if(s)return i=i(s=n),n=""===a?"."+O(s,0):a,S(i)?(o="",null!=n&&(o=n.replace(L,"$&/")+"/"),I(i,r,o,"",(function(e){return e}))):null!=i&&(R(i)&&(i=function(t,n){return{$$typeof:e,type:t.type,key:n,ref:t.ref,props:t.props,_owner:t._owner}}(i,o+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(L,"$&/")+"/")+n)),r.push(i)),1;if(s=0,a=""===a?".":a+":",S(n))for(var c=0;c<n.length;c++){var u=a+O(l=n[c],c);s+=I(l,r,o,u,i)}else if(u=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(n),"function"==typeof u)for(n=u.call(n),c=0;!(l=n.next()).done;)s+=I(l=l.value,r,o,u=a+O(l,c++),i);else if("object"===l)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return s}function _(e,t,n){if(null==e)return e;var r=[],o=0;return I(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function P(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 T={current:null},M={transition:null},N={ReactCurrentDispatcher:T,ReactCurrentBatchConfig:M,ReactCurrentOwner:E};function q(){throw Error("act(...) is not supported in production builds of React.")}return h.Children={map:_,forEach:function(e,t,n){_(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return _(e,(function(){t++})),t},toArray:function(e){return _(e,(function(e){return e}))||[]},only:function(e){if(!R(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},h.Component=b,h.Fragment=n,h.Profiler=o,h.PureComponent=y,h.StrictMode=r,h.Suspense=s,h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N,h.act=q,h.cloneElement=function(t,n,r){if(null==t)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var o=m({},t.props),a=t.key,i=t.ref,l=t._owner;if(null!=n){if(void 0!==n.ref&&(i=n.ref,l=E.current),void 0!==n.key&&(a=""+n.key),t.type&&t.type.defaultProps)var s=t.type.defaultProps;for(c in n)w.call(n,c)&&!k.hasOwnProperty(c)&&(o[c]=void 0===n[c]&&void 0!==s?s[c]:n[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){s=Array(c);for(var u=0;u<c;u++)s[u]=arguments[u+2];o.children=s}return{$$typeof:e,type:t.type,key:a,ref:i,props:o,_owner:l}},h.createContext=function(e){return(e={$$typeof:i,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},h.createElement=C,h.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},h.createRef=function(){return{current:null}},h.forwardRef=function(e){return{$$typeof:l,render:e}},h.isValidElement=R,h.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:P}},h.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},h.startTransition=function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},h.unstable_act=q,h.useCallback=function(e,t){return T.current.useCallback(e,t)},h.useContext=function(e){return T.current.useContext(e)},h.useDebugValue=function(){},h.useDeferredValue=function(e){return T.current.useDeferredValue(e)},h.useEffect=function(e,t){return T.current.useEffect(e,t)},h.useId=function(){return T.current.useId()},h.useImperativeHandle=function(e,t,n){return T.current.useImperativeHandle(e,t,n)},h.useInsertionEffect=function(e,t){return T.current.useInsertionEffect(e,t)},h.useLayoutEffect=function(e,t){return T.current.useLayoutEffect(e,t)},h.useMemo=function(e,t){return T.current.useMemo(e,t)},h.useReducer=function(e,t,n){return T.current.useReducer(e,t,n)},h.useRef=function(e){return T.current.useRef(e)},h.useState=function(e){return T.current.useState(e)},h.useSyncExternalStore=function(e,t,n){return T.current.useSyncExternalStore(e,t,n)},h.useTransition=function(){return T.current.useTransition()},h.version="18.3.1",h}function g(){return p||(p=1,f.exports=m()),f.exports}var b=g(),v=n(b),y=t({__proto__:null,default:v},[b]);const x=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 S,w,E={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_Clear_Search:{id:"Listbox.Clear.Search",locale:{"de-DE":"Suche löschen","en-US":"Clear search","es-ES":"Borrar búsqueda","fr-FR":"Effacer la recherche","it-IT":"Cancella ricerca","ja-JP":"検索をクリア","ko-KR":"검색 지우기","nl-NL":"Zoekopdracht wissen","pl-PL":"Wyczyść wyszukiwanie","pt-BR":"Limpar pesquisa","ru-RU":"Очистить поиск","sv-SE":"Radera sökning","tr-TR":"Aramayı temizle","zh-CN":"清除搜索","zh-TW":"清除搜尋"}},Listbox_Cyclic:{id:"Listbox.Cyclic",locale:{"de-DE":"Zyklische Dimension","en-US":"Cyclic dimension","es-ES":"Dimensión cíclica","fr-FR":"Dimension cyclique","it-IT":"Dimensione ciclica","ja-JP":"サイクリック軸","ko-KR":"순환 차원","nl-NL":"Cyclische dimensie","pl-PL":"Wymiar cykliczny","pt-BR":"Dimensão cíclica","ru-RU":"Циклическое измерение","sv-SE":"Cyklisk dimension","tr-TR":"Döngüsel boyut","zh-CN":"循环维度","zh-TW":"循環維度"}},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 k(e){const t=x({initial:e});return Object.keys(E).forEach((e=>{t.translator.add(E[e])})),{translator:t.translator}}var C=function(){if(w)return S;w=1;var e={};function t(){t.init.call(this)}return e.isObject=function(e){return"object"==typeof e&&null!==e},e.isNumber=function(e){return"number"==typeof e},e.isUndefined=function(e){return void 0===e},e.isFunction=function(e){return"function"==typeof e},S=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},t.prototype.setMaxListeners=function(t){if(!e.isNumber(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},t.prototype.emit=function(t){var n,r,o,a,i,l;if(this._events||(this._events={}),"error"===t&&!this._events.error)throw(n=arguments[1])instanceof Error?n:Error('Uncaught, unspecified "error" event.');if(r=this._events[t],e.isUndefined(r))return!1;if(e.isFunction(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:for(o=arguments.length,a=new Array(o-1),i=1;i<o;i++)a[i-1]=arguments[i];r.apply(this,a)}else if(e.isObject(r)){for(o=arguments.length,a=new Array(o-1),i=1;i<o;i++)a[i-1]=arguments[i];for(o=(l=r.slice()).length,i=0;i<o;i++)l[i].apply(this,a)}return!0},t.prototype.addListener=function(n,r){var o;if(!e.isFunction(r))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",n,e.isFunction(r.listener)?r.listener:r),this._events[n]?e.isObject(this._events[n])?this._events[n].push(r):this._events[n]=[this._events[n],r]:this._events[n]=r,e.isObject(this._events[n])&&!this._events[n].warned)&&((o=e.isUndefined(this._maxListeners)?t.defaultMaxListeners:this._maxListeners)&&o>0&&this._events[n].length>o&&(this._events[n].warned=!0,e.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[n].length),e.isFunction(console.trace)&&console.trace()));return this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(t,n){if(!e.isFunction(n))throw TypeError("listener must be a function");var r=!1;function o(){this.removeListener(t,o),r||(r=!0,n.apply(this,arguments))}return o.listener=n,this.on(t,o),this},t.prototype.removeListener=function(t,n){var r,o,a,i;if(!e.isFunction(n))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(a=(r=this._events[t]).length,o=-1,r===n||e.isFunction(r.listener)&&r.listener===n)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,n);else if(e.isObject(r)){for(i=a;i-- >0;)if(r[i]===n||r[i].listener&&r[i].listener===n){o=i;break}if(o<0)return this;1===r.length?(r.length=0,delete this._events[t]):r.splice(o,1),this._events.removeListener&&this.emit("removeListener",t,n)}return this},t.prototype.removeAllListeners=function(t){var n,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(n in this._events)"removeListener"!==n&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[t],e.isFunction(r))this.removeListener(t,r);else if(Array.isArray(r))for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},t.prototype.listeners=function(t){return this._events&&this._events[t]?e.isFunction(this._events[t])?[this._events[t]]:this._events[t].slice():[]},t.listenerCount=function(t,n){return t._events&&t._events[n]?e.isFunction(t._events[n])?1:t._events[n].length:0},S}(),R=n(C);function L(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function O(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function I(){}var _,P,T=.7,M=1/T,N="\\s*([+-]?\\d+)\\s*",q="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",D="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",A=/^#([0-9a-f]{3,8})$/,z=new RegExp(`^rgb\\(${N},${N},${N}\\)$`),j=new RegExp(`^rgb\\(${D},${D},${D}\\)$`),F=new RegExp(`^rgba\\(${N},${N},${N},${q}\\)$`),$=new RegExp(`^rgba\\(${D},${D},${D},${q}\\)$`),B=new RegExp(`^hsl\\(${q},${D},${D}\\)$`),W=new RegExp(`^hsla\\(${q},${D},${D},${q}\\)$`),H={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 U(){return this.rgb().formatHex()}function V(){return this.rgb().formatRgb()}function G(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=A.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?K(t):3===n?new J(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Z(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Z(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=z.exec(e))?new J(t[1],t[2],t[3],1):(t=j.exec(e))?new J(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=F.exec(e))?Z(t[1],t[2],t[3],t[4]):(t=$.exec(e))?Z(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=B.exec(e))?re(t[1],t[2]/100,t[3]/100,1):(t=W.exec(e))?re(t[1],t[2]/100,t[3]/100,t[4]):H.hasOwnProperty(e)?K(H[e]):"transparent"===e?new J(NaN,NaN,NaN,0):null}function K(e){return new J(e>>16&255,e>>8&255,255&e,1)}function Z(e,t,n,r){return r<=0&&(e=t=n=NaN),new J(e,t,n,r)}function X(e,t,n,r){return 1===arguments.length?function(e){return e instanceof I||(e=G(e)),e?new J((e=e.rgb()).r,e.g,e.b,e.opacity):new J}(e):new J(e,t,n,null==r?1:r)}function J(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Q(){return`#${ne(this.r)}${ne(this.g)}${ne(this.b)}`}function Y(){const e=ee(this.opacity);return`${1===e?"rgb(":"rgba("}${te(this.r)}, ${te(this.g)}, ${te(this.b)}${1===e?")":`, ${e})`}`}function ee(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function te(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ne(e){return((e=te(e))<16?"0":"")+e.toString(16)}function re(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ae(e,t,n,r)}function oe(e){if(e instanceof ae)return new ae(e.h,e.s,e.l,e.opacity);if(e instanceof I||(e=G(e)),!e)return new ae;if(e instanceof ae)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 ae(i,l,s,e.opacity)}function ae(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ie(e){return(e=(e||0)%360)<0?e+360:e}function le(e){return Math.max(0,Math.min(1,e||0))}function se(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}L(I,G,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:U,formatHex:U,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return oe(this).formatHsl()},formatRgb:V,toString:V}),L(J,X,O(I,{brighter(e){return e=null==e?M:Math.pow(M,e),new J(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?T:Math.pow(T,e),new J(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new J(te(this.r),te(this.g),te(this.b),ee(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:Q,formatHex:Q,formatHex8:function(){return`#${ne(this.r)}${ne(this.g)}${ne(this.b)}${ne(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Y,toString:Y})),L(ae,(function(e,t,n,r){return 1===arguments.length?oe(e):new ae(e,t,n,null==r?1:r)}),O(I,{brighter(e){return e=null==e?M:Math.pow(M,e),new ae(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?T:Math.pow(T,e),new ae(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 J(se(e>=240?e-240:e+120,o,r),se(e,o,r),se(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new ae(ie(this.h),le(this.s),le(this.l),ee(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=ee(this.opacity);return`${1===e?"hsl(":"hsla("}${ie(this.h)}, ${100*le(this.s)}%, ${100*le(this.l)}%${1===e?")":`, ${e})`}`}}));var ce=function(){if(P)return _;P=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},a=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),a=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!a)return!1;for(r in n);return void 0===r||e.call(n,r)},i=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return _=function e(){var t,n,r,s,c,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=l(d,n),d!==(s=l(t,n))&&(h&&s&&(a(s)||(c=o(s)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&a(r)?r:{},i(d,{name:n,newValue:e(h,u,s)})):void 0!==s&&i(d,{name:n,newValue:s}));return d},_}(),ue=n(ce),de={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",backgroundColor:"transparent"},subTitle:{color:"@B50",fontSize:"12px",backgroundColor:"transparent"},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"]}]}},pe={_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"},fe={_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"}}}},he={object:{listBox:{backgroundColor:"#ffffff",title:{main:{color:"#404040",fontSize:"14px",fontWeight:"bold"}},content:{color:"#404040",fontSize:"12px"}}}};const me={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}},ge=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,be=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,ve=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,ye=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,xe=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,Se=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,{floor:we}=Math,{round:Ee}=Math;class ke{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,b=0,v=1;if(this._invalid=!1,t[0]instanceof ke)m=t[0]._r,g=t[0]._g,b=t[0]._b,v=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),b=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),b=parseInt(f[3],10),v=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))v=parseInt(f[1],10)/255,m=parseInt(f[2],10),g=parseInt(f[3],10),b=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),b=parseInt(f[3],16),v=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),b=parseInt(f[3]+f[3],16),v=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,b=d[2]+p,m=Ee(255*m),g=Ee(255*g),b=Ee(255*b),v=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]),v=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,b=d[2]+p,m=Ee(255*m),g=Ee(255*g),b=Ee(255*b)}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,b=d[2]+p,m=Ee(255*m),g=Ee(255*g),b=Ee(255*b),v=1}else me[h.toLowerCase()]?(a=h.toLowerCase(),m=me[a].r,g=me[a].g,b=me[a].b,v="number"==typeof me[a].a?me[a].a:1):this._invalid=!0;else"number"==typeof t[0]&&t[0]>=0&&"argb"===t[1]?(v=(4278190080&t[0])>>>24,v/=255,m=(16711680&t[0])>>16,g=(65280&t[0])>>8,b=255&t[0]):"number"==typeof t[0]&&t[0]>=0?(m=(16711680&t[0])>>16,g=(65280&t[0])>>8,b=255&t[0]):this._invalid=!0;else t.length>=3?(m=t[0],g=t[1],b=t[2],v=arguments.length>=4?t[3]:1):this._invalid=!0;Number.isNaN(+m+g+b+v)&&(this._invalid=!0),this._r=we(m),this._g=we(g),this._b=we(b),this._a=v,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=ke.toRGB(this)),this._spaces.rgb}toRGBA(){return this._spaces.rgba||(this._spaces.rgba=ke.toRGBA(this)),this._spaces.rgba}toString(){return this._spaces.rgb||(this._spaces.rgb=ke.toRGB(this)),this._spaces.rgb}toHex(){return this._spaces.hex||(this._spaces.hex=ke.toHex(this)),this._spaces.hex}toHSL(e){return this._spaces.hsl||(this._spaces.hsl=ke.toHSL(this,e)),this._spaces.hsl}toHSLA(e){return this._spaces.hsla||(this._spaces.hsla=ke.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=ke.toHSVComponents(this)),this._spaces.hsvComp}toNumber(){return this._spaces.num||(this._spaces.num=ke.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 ke||(e=new ke(e)),this._r===e._r&&this._g===e._g&&this._b===e._b&&this._a===e._a}blend(e,t){const n=we(this._r+(e._r-this._r)*t),r=we(this._g+(e._g-this._g)*t),o=we(this._b+(e._b-this._b)*t),a=we(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 ke(r)}static toRGB(e){if(e instanceof ke)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=ke.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 ke)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=ke.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 ke?(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=ke.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 ke(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 ke(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 ke(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 ke)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=ke.toNumber(e)))>>16,o=(65280&e)>>8,a=255&e;return(r+(((16711680&(t=ke.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 ke(r,o,a,i)}static isCSSColor(e){return!(arguments.length>1||"string"!=typeof e)&&(ge.test(e)||be.test(e)||ve.test(e)||ye.test(e)||xe.test(e)||Se.test(e)||me[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 ke(...t).isDark(...t)}static useDarkLabel(e,t){return e._a>.5?!e.isDark():!t}}class Ce{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=G(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([G(e),G(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 X(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 Re(e,t,n){const r=.25+(t+1)/n*.25,o=.5-r;return o+e/1*(.5+r-o)}function Le(e,t,n){const r=[],o=new Ce(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 Oe(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=Re(1/t*o,t,n);a=e.getColor(r);break}}r.push(G(a).formatHex())}return r}function Ie(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=Le(e,n,!0),o=Le(Oe(r,t-1,t),n,!1),a=[null];for(let e=0;e<t;e++)a.push(Oe(o,e,t));return a}(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}}))}function _e(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 Pe(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 Te(e,t,n,r){let o;if(""===e)o=_e(null,n);else{o=_e(e.split("."),n)}return function(e,t,n){const r=t.split(".");for(let t=0;t<e.length;t++){const o=Pe(n,[...e[t],...r]);if(void 0!==o)return o}}(o,t,r)}function Me(e,t){const n=e.split(".");return{getStyle:(e,r)=>Te(e,r,n.concat(),t)}}function Ne(e,t){Object.keys(e).forEach((n=>{"object"==typeof e[n]&&null!==e[n]?Ne(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])}))}function qe(e){const t=G(e);if(!t)return 0;const{r:n,g:r,b:o}=t.rgb(),[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)}Me.resolveRawTheme=e=>{const t=ue(!0,{},e);return Ne(t,t._variables),t.scales&&Ie(t.scales,t.dataColors&&t.dataColors.nullColor),t};const De=1e3;function Ae(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["#333333","#ffffff"],t={},n=0;const r=e.map(qe);return{getBestContrastColor(o){if(!t[o]){n>De&&(t={},n=0);const a=qe(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 ze(){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]=Me(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=G(...arguments);return n?n.toString():void 0}},a={setTheme(a,i){e=function(e,t){const n="dark"===e.type?fe:pe;let r=he;!1!==e._inherit&&"false"!==e._inherit||(r={});const o=ue(!0,{},de,r,n),a=ue(!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,Me.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=>{const n=e.colors&&"none"!==e.colors[0]?["none",...e.colors]:e.colors;t.push({key:"ui",name:e.name,translation:e.translation,type:"row",colors:n||[]})})),t},dataColors:()=>({primary:e.dataColors.primaryColor,nil:e.dataColors.nullColor,others:e.dataColors.othersColor}),uiColor(e){const n="number"==typeof(null==e?void 0:e.index)&&!Number.isNaN(null==e?void 0:e.index),r="string"==typeof(null==e?void 0:e.color);if(!n&&!r)return;const o=(()=>(null==e?void 0:e.index)<0||void 0===(null==e?void 0:e.index)?e.color:(void 0===t&&(t=this.uiPalettes()[0]||!1),t?void 0===t.colors[e.index]?e.color:t.colors[e.index]:e.color))();if(void 0===e.alpha||e.alpha>=1||e.alpha<0)return o;const a=new ke(o);return a.setAlpha(e.alpha),a.isInvalid()?o:a.toRGBA()}}}(e);const l=o.getStyle("","","color"),s=qe(l);n=Ae([l,s<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>i}};return Object.keys(R.prototype).forEach((e=>{o[e]=R.prototype[e]})),R.init(o),a.setTheme({},"light"),{externalAPI:o,internalAPI:a}}const je=(e,t)=>new Promise((n=>{setTimeout((()=>n(t)),e)})),Fe=5e3;function $e(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 Be,We,He,Ue,Ve,Ge={},Ke={exports:{}},Ze={},Xe={exports:{}},Je={};function Qe(){return We||(We=1,Xe.exports=(Be||(Be=1,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,b="function"==typeof clearTimeout?clearTimeout:null,v="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,T(S);else{var t=n(c);null!==t&&M(x,t.startTime-e)}}function S(t,o){h=!1,m&&(m=!1,b(C),C=-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,k=null,C=-1,R=5,L=-1;function O(){return!(e.unstable_now()-L<R)}function I(){if(null!==k){var t=e.unstable_now();L=t;var n=!0;try{n=k(!0,t)}finally{n?w():(E=!1,k=null)}}else E=!1}if("function"==typeof v)w=function(){v(I)};else if("undefined"!=typeof MessageChannel){var _=new MessageChannel,P=_.port2;_.port1.onmessage=I,w=function(){P.postMessage(null)}}else w=function(){g(I,0)};function T(e){k=e,E||(E=!0,w())}function M(t,n){C=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,T(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(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<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?(b(C),C=-1):m=!0,M(x,a-i))):(r.sortIndex=l,t(s,r),h||f||(h=!0,T(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}}}}(Je)),Je)),Xe.exports}
|
|
8
8
|
/**
|
|
9
9
|
* @license React
|
|
10
10
|
* react-dom.production.min.js
|
|
@@ -13,14 +13,14 @@
|
|
|
13
13
|
*
|
|
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
|
-
*/function Ye(){if(He)return Ze;He=1;var e=g(),t=Qe();function n(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 r=new Set,o={};function a(e,t){i(e,t),i(e+"Capture",t)}function i(e,t){for(o[e]=t,e=0;e<t.length;e++)r.add(t[e])}var l=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),s=Object.prototype.hasOwnProperty,c=/^[: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]*$/,u={},d={};function p(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 f={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){f[e]=new p(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];f[t]=new p(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){f[e]=new p(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){f[e]=new p(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){f[e]=new p(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){f[e]=new p(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){f[e]=new p(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){f[e]=new p(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){f[e]=new p(e,5,!1,e.toLowerCase(),null,!1,!1)}));var h=/[\-:]([a-z])/g;function m(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=f.hasOwnProperty(t)?f[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!!s.call(d,e)||!s.call(u,e)&&(c.test(e)?d[e]=!0:(u[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(h,m);f[t]=new p(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(h,m);f[t]=new p(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(h,m);f[t]=new p(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){f[e]=new p(e,1,!1,e.toLowerCase(),null,!1,!1)})),f.xlinkHref=new p("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){f[e]=new p(e,1,!1,e.toLowerCase(),null,!0,!0)}));var v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,y=Symbol.for("react.element"),x=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),C=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),T=Symbol.iterator;function M(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=T&&e[T]||e["@@iterator"])?e:null}var N,q=Object.assign;function A(e){if(void 0===N)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);N=t&&t[1]||""}return"\n"+N+e}var D=!1;function z(e,t){if(!e||D)return"";D=!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{D=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?A(e):""}function j(e){switch(e.tag){case 5:return A(e.type);case 16:return A("Lazy");case 13:return A("Suspense");case 19:return A("SuspenseList");case 0:case 2:case 15:return e=z(e.type,!1);case 11:return e=z(e.type.render,!1);case 1:return e=z(e.type,!0);default:return""}}function F(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 S:return"Fragment";case x:return"Portal";case E:return"Profiler";case w:return"StrictMode";case L:return"Suspense";case O:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case k:return(e._context.displayName||"Context")+".Provider";case R:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case I:return null!==(t=e.displayName||null)?t:F(e.type)||"Memo";case _:t=e._payload,e=e._init;try{return F(e(t))}catch(e){}}return null}function $(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 F(t);case 8:return t===w?"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 B(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function W(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function H(e){e._valueTracker||(e._valueTracker=function(e){var t=W(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 U(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=W(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function V(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 G(e,t){var n=t.checked;return q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function K(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=B(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 Z(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function X(e,t){Z(e,t);var n=B(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")?Q(e,t.type,n):t.hasOwnProperty("defaultValue")&&Q(e,t.type,B(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(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 Q(e,t,n){"number"===t&&V(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Y=Array.isArray;function ee(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=""+B(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 te(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(n(91));return q({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ne(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(n(92));if(Y(r)){if(1<r.length)throw Error(n(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:B(r)}}function re(e,t){var n=B(t.value),r=B(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 oe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ae(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 ie(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ae(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var le,se=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((le=le||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=le.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function ce(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 ue={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},de=["Webkit","ms","Moz","O"];function pe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ue.hasOwnProperty(e)&&ue[e]?(""+t).trim():t+"px"}function fe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=pe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(ue).forEach((function(e){de.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ue[t]=ue[e]}))}));var he=q({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 me(e,t){if(t){if(he[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(n(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(n(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(n(62))}}function ge(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 be=null;function ve(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ye=null,xe=null,Se=null;function we(e){if(e=xo(e)){if("function"!=typeof ye)throw Error(n(280));var t=e.stateNode;t&&(t=wo(t),ye(e.stateNode,e.type,t))}}function Ee(e){xe?Se?Se.push(e):Se=[e]:xe=e}function ke(){if(xe){var e=xe,t=Se;if(Se=xe=null,we(e),t)for(e=0;e<t.length;e++)we(t[e])}}function Ce(e,t){return e(t)}function Re(){}var Le=!1;function Oe(e,t,n){if(Le)return e(t,n);Le=!0;try{return Ce(e,t,n)}finally{Le=!1,(null!==xe||null!==Se)&&(Re(),ke())}}function Ie(e,t){var r=e.stateNode;if(null===r)return null;var o=wo(r);if(null===o)return null;r=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(n(231,t,typeof r));return r}var _e=!1;if(l)try{var Pe={};Object.defineProperty(Pe,"passive",{get:function(){_e=!0}}),window.addEventListener("test",Pe,Pe),window.removeEventListener("test",Pe,Pe)}catch(e){_e=!1}function Te(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 Me=!1,Ne=null,qe=!1,Ae=null,De={onError:function(e){Me=!0,Ne=e}};function ze(e,t,n,r,o,a,i,l,s){Me=!1,Ne=null,Te.apply(De,arguments)}function je(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 Fe(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 $e(e){if(je(e)!==e)throw Error(n(188))}function Be(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=je(e)))throw Error(n(188));return t!==e?null:e}for(var r=e,o=t;;){var a=r.return;if(null===a)break;var i=a.alternate;if(null===i){if(null!==(o=a.return)){r=o;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===r)return $e(a),e;if(i===o)return $e(a),t;i=i.sibling}throw Error(n(188))}if(r.return!==o.return)r=a,o=i;else{for(var l=!1,s=a.child;s;){if(s===r){l=!0,r=a,o=i;break}if(s===o){l=!0,o=a,r=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===r){l=!0,r=i,o=a;break}if(s===o){l=!0,o=i,r=a;break}s=s.sibling}if(!l)throw Error(n(189))}}if(r.alternate!==o)throw Error(n(190))}if(3!==r.tag)throw Error(n(188));return r.stateNode.current===r?e:t}(e),null!==e?We(e):null}function We(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=We(e);if(null!==t)return t;e=e.sibling}return null}var Ue=t.unstable_scheduleCallback,Ve=t.unstable_cancelCallback,Ge=t.unstable_shouldYield,Ke=t.unstable_requestPaint,Xe=t.unstable_now,Je=t.unstable_getCurrentPriorityLevel,Ye=t.unstable_ImmediatePriority,et=t.unstable_UserBlockingPriority,tt=t.unstable_NormalPriority,nt=t.unstable_LowPriority,rt=t.unstable_IdlePriority,ot=null,at=null;var it=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(lt(e)/st|0)|0},lt=Math.log,st=Math.LN2;var ct=64,ut=4194304;function dt(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 pt(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=dt(l):0!==(a&=i)&&(r=dt(a))}else 0!==(i=n&~o)?r=dt(i):0!==a&&(r=dt(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-it(t)),r|=e[n],t&=~o;return r}function ft(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 ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return 0==(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function bt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-it(t)]=n}function vt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var yt=0;function xt(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var St,wt,Et,kt,Ct,Rt=!1,Lt=[],Ot=null,It=null,_t=null,Pt=new Map,Tt=new Map,Mt=[],Nt="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 qt(e,t){switch(e){case"focusin":case"focusout":Ot=null;break;case"dragenter":case"dragleave":It=null;break;case"mouseover":case"mouseout":_t=null;break;case"pointerover":case"pointerout":Pt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Tt.delete(t.pointerId)}}function At(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=xo(t))&&wt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Dt(e){var t=yo(e.target);if(null!==t){var n=je(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Fe(n)))return e.blockedOn=t,void Ct(e.priority,(function(){Et(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 zt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=xo(n))&&wt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);be=r,n.target.dispatchEvent(r),be=null,t.shift()}return!0}function jt(e,t,n){zt(e)&&n.delete(t)}function Ft(){Rt=!1,null!==Ot&&zt(Ot)&&(Ot=null),null!==It&&zt(It)&&(It=null),null!==_t&&zt(_t)&&(_t=null),Pt.forEach(jt),Tt.forEach(jt)}function $t(e,n){e.blockedOn===n&&(e.blockedOn=null,Rt||(Rt=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Ft)))}function Bt(e){function t(t){return $t(t,e)}if(0<Lt.length){$t(Lt[0],e);for(var n=1;n<Lt.length;n++){var r=Lt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Ot&&$t(Ot,e),null!==It&&$t(It,e),null!==_t&&$t(_t,e),Pt.forEach(t),Tt.forEach(t),n=0;n<Mt.length;n++)(r=Mt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Mt.length&&null===(n=Mt[0]).blockedOn;)Dt(n),null===n.blockedOn&&Mt.shift()}var Wt=v.ReactCurrentBatchConfig,Ht=!0;function Ut(e,t,n,r){var o=yt,a=Wt.transition;Wt.transition=null;try{yt=1,Gt(e,t,n,r)}finally{yt=o,Wt.transition=a}}function Vt(e,t,n,r){var o=yt,a=Wt.transition;Wt.transition=null;try{yt=4,Gt(e,t,n,r)}finally{yt=o,Wt.transition=a}}function Gt(e,t,n,r){if(Ht){var o=Zt(e,t,n,r);if(null===o)Hr(e,t,r,Kt,n),qt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Ot=At(Ot,e,t,n,r,o),!0;case"dragenter":return It=At(It,e,t,n,r,o),!0;case"mouseover":return _t=At(_t,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return Pt.set(a,At(Pt.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,Tt.set(a,At(Tt.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(qt(e,r),4&t&&-1<Nt.indexOf(e)){for(;null!==o;){var a=xo(o);if(null!==a&&St(a),null===(a=Zt(e,t,n,r))&&Hr(e,t,r,Kt,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var Kt=null;function Zt(e,t,n,r){if(Kt=null,null!==(e=yo(e=ve(r))))if(null===(t=je(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Fe(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 Kt=e,null}function Xt(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(Je()){case Ye:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Jt=null,Qt=null,Yt=null;function en(){if(Yt)return Yt;var e,t,n=Qt,r=n.length,o="value"in Jt?Jt.value:Jt.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 Yt=o.slice(e,1<t?1-t:void 0)}function tn(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 nn(){return!0}function rn(){return!1}function on(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)?nn:rn,this.isPropagationStopped=rn,this}return q(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=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,ln,sn,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=q({},cn,{view:0,detail:0}),pn=on(dn),fn=q({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,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!==sn&&(sn&&"mousemove"===e.type?(an=e.screenX-sn.screenX,ln=e.screenY-sn.screenY):ln=an=0,sn=e),an)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),hn=on(fn),mn=on(q({},fn,{dataTransfer:0})),gn=on(q({},dn,{relatedTarget:0})),bn=on(q({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),vn=q({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=on(vn),xn=on(q({},cn,{data:0})),Sn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wn={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"},En={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=En[e])&&!!t[e]}function Cn(){return kn}var Rn=q({},dn,{key:function(e){if(e.key){var t=Sn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?wn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Ln=on(Rn),On=on(q({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),In=on(q({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),_n=on(q({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pn=q({},fn,{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}),Tn=on(Pn),Mn=[9,13,27,32],Nn=l&&"CompositionEvent"in window,qn=null;l&&"documentMode"in document&&(qn=document.documentMode);var An=l&&"TextEvent"in window&&!qn,Dn=l&&(!Nn||qn&&8<qn&&11>=qn),zn=String.fromCharCode(32),jn=!1;function Fn(e,t){switch(e){case"keyup":return-1!==Mn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $n(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1;var Wn={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 Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Un(e,t,n,r){Ee(r),0<(t=Vr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,Gn=null;function Kn(e){zr(e,0)}function Zn(e){if(U(So(e)))return e}function Xn(e,t){if("change"===e)return t}var Jn=!1;if(l){var Qn;if(l){var Yn="oninput"in document;if(!Yn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Yn="function"==typeof er.oninput}Qn=Yn}else Qn=!1;Jn=Qn&&(!document.documentMode||9<document.documentMode)}function tr(){Vn&&(Vn.detachEvent("onpropertychange",nr),Gn=Vn=null)}function nr(e){if("value"===e.propertyName&&Zn(Gn)){var t=[];Un(t,Gn,e,ve(e)),Oe(Kn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Gn=n,(Vn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Zn(Gn)}function ar(e,t){if("click"===e)return Zn(t)}function ir(e,t){if("input"===e||"change"===e)return Zn(t)}var lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function sr(e,t){if(lr(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(!s.call(t,o)||!lr(e[o],t[o]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(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=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=V();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=V((e=t.contentWindow).document)}return t}function fr(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 hr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&fr(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=ur(n,a);var i=ur(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 mr=l&&"documentMode"in document&&11>=document.documentMode,gr=null,br=null,vr=null,yr=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==gr||gr!==V(r)||("selectionStart"in(r=gr)&&fr(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},vr&&sr(vr,r)||(vr=r,0<(r=Vr(br,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function Sr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var wr={animationend:Sr("Animation","AnimationEnd"),animationiteration:Sr("Animation","AnimationIteration"),animationstart:Sr("Animation","AnimationStart"),transitionend:Sr("Transition","TransitionEnd")},Er={},kr={};function Cr(e){if(Er[e])return Er[e];if(!wr[e])return e;var t,n=wr[e];for(t in n)if(n.hasOwnProperty(t)&&t in kr)return Er[e]=n[t];return e}l&&(kr=document.createElement("div").style,"AnimationEvent"in window||(delete wr.animationend.animation,delete wr.animationiteration.animation,delete wr.animationstart.animation),"TransitionEvent"in window||delete wr.transitionend.transition);var Rr=Cr("animationend"),Lr=Cr("animationiteration"),Or=Cr("animationstart"),Ir=Cr("transitionend"),_r=new Map,Pr="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 Tr(e,t){_r.set(e,t),a(t,[e])}for(var Mr=0;Mr<Pr.length;Mr++){var Nr=Pr[Mr];Tr(Nr.toLowerCase(),"on"+(Nr[0].toUpperCase()+Nr.slice(1)))}Tr(Rr,"onAnimationEnd"),Tr(Lr,"onAnimationIteration"),Tr(Or,"onAnimationStart"),Tr("dblclick","onDoubleClick"),Tr("focusin","onFocus"),Tr("focusout","onBlur"),Tr(Ir,"onTransitionEnd"),i("onMouseEnter",["mouseout","mouseover"]),i("onMouseLeave",["mouseout","mouseover"]),i("onPointerEnter",["pointerout","pointerover"]),i("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var qr="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(" "),Ar=new Set("cancel close invalid load scroll toggle".split(" ").concat(qr));function Dr(e,t,r){var o=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,o,a,i,l,s,c){if(ze.apply(this,arguments),Me){if(!Me)throw Error(n(198));var u=Ne;Me=!1,Ne=null,qe||(qe=!0,Ae=u)}}(o,t,void 0,e),e.currentTarget=null}function zr(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;Dr(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;Dr(o,l,c),a=s}}}if(qe)throw e=Ae,qe=!1,Ae=null,e}function jr(e,t){var n=t[go];void 0===n&&(n=t[go]=new Set);var r=e+"__bubble";n.has(r)||(Wr(t,e,2,!1),n.add(r))}function Fr(e,t,n){var r=0;t&&(r|=4),Wr(n,e,r,t)}var $r="_reactListening"+Math.random().toString(36).slice(2);function Br(e){if(!e[$r]){e[$r]=!0,r.forEach((function(t){"selectionchange"!==t&&(Ar.has(t)||Fr(t,!1,e),Fr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[$r]||(t[$r]=!0,Fr("selectionchange",!1,t))}}function Wr(e,t,n,r){switch(Xt(t)){case 1:var o=Ut;break;case 4:o=Vt;break;default:o=Gt}n=o.bind(null,t,n,e),o=void 0,!_e||"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 Hr(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=yo(l)))return;if(5===(s=i.tag)||6===s){r=a=i;continue e}l=l.parentNode}}r=r.return}Oe((function(){var r=a,o=ve(n),i=[];e:{var l=_r.get(e);if(void 0!==l){var s=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":s=Ln;break;case"focusin":c="focus",s=gn;break;case"focusout":c="blur",s=gn;break;case"beforeblur":case"afterblur":s=gn;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=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=In;break;case Rr:case Lr:case Or:s=bn;break;case Ir:s=_n;break;case"scroll":s=pn;break;case"wheel":s=Tn;break;case"copy":case"cut":case"paste":s=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=On}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=Ie(h,p))&&u.push(Ur(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===be||!(c=n.relatedTarget||n.fromElement)||!yo(c)&&!c[mo])&&(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)?yo(c):null)&&(c!==(d=je(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(s=null,c=r),s!==c)){if(u=hn,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=On,m="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==s?l:So(s),f=null==c?l:So(c),(l=new u(m,h+"leave",s,n,o)).target=d,l.relatedTarget=f,m=null,yo(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=Gr(f))h++;for(f=0,m=p;m;m=Gr(m))f++;for(;0<h-f;)u=Gr(u),h--;for(;0<f-h;)p=Gr(p),f--;for(;h--;){if(u===p||null!==p&&u===p.alternate)break e;u=Gr(u),p=Gr(p)}u=null}else u=null;null!==s&&Kr(i,l,s,u,!1),null!==c&&null!==d&&Kr(i,d,c,u,!0)}if("select"===(s=(l=r?So(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=Xn;else if(Hn(l))if(Jn)g=ir;else{g=or;var b=rr}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=ar);switch(g&&(g=g(e,r))?Un(i,g,n,o):(b&&b(e,l,r),"focusout"===e&&(b=l._wrapperState)&&b.controlled&&"number"===l.type&&Q(l,"number",l.value)),b=r?So(r):window,e){case"focusin":(Hn(b)||"true"===b.contentEditable)&&(gr=b,br=r,vr=null);break;case"focusout":vr=br=gr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,xr(i,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":xr(i,n,o)}var v;if(Nn)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 Bn?Fn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Dn&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==y?"onCompositionEnd"===y&&Bn&&(v=en()):(Qt="value"in(Jt=o)?Jt.value:Jt.textContent,Bn=!0)),0<(b=Vr(r,y)).length&&(y=new xn(y,e,null,n,o),i.push({event:y,listeners:b}),v?y.data=v:null!==(v=$n(n))&&(y.data=v))),(v=An?function(e,t){switch(e){case"compositionend":return $n(t);case"keypress":return 32!==t.which?null:(jn=!0,zn);case"textInput":return(e=t.data)===zn&&jn?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!Nn&&Fn(e,t)?(e=en(),Yt=Qt=Jt=null,Bn=!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 Dn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Vr(r,"onBeforeInput")).length&&(o=new xn("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=v))}zr(i,t)}))}function Ur(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Vr(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=Ie(e,n))&&r.unshift(Ur(e,a,o)),null!=(a=Ie(e,t))&&r.push(Ur(e,a,o))),e=e.return}return r}function Gr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Kr(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=Ie(n,a))&&i.unshift(Ur(n,s,l)):o||null!=(s=Ie(n,a))&&i.push(Ur(n,s,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Zr=/\r\n?/g,Xr=/\u0000|\uFFFD/g;function Jr(e){return("string"==typeof e?e:""+e).replace(Zr,"\n").replace(Xr,"")}function Qr(e,t,r){if(t=Jr(t),Jr(e)!==t&&r)throw Error(n(425))}function Yr(){}var eo=null,to=null;function no(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 ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,ao="function"==typeof Promise?Promise:void 0,io="function"==typeof queueMicrotask?queueMicrotask:void 0!==ao?function(e){return ao.resolve(null).then(e).catch(lo)}:ro;function lo(e){setTimeout((function(){throw e}))}function so(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 Bt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Bt(t)}function co(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 uo(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 po=Math.random().toString(36).slice(2),fo="__reactFiber$"+po,ho="__reactProps$"+po,mo="__reactContainer$"+po,go="__reactEvents$"+po,bo="__reactListeners$"+po,vo="__reactHandles$"+po;function yo(e){var t=e[fo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[fo]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uo(e);null!==e;){if(n=e[fo])return n;e=uo(e)}return t}n=(e=n).parentNode}return null}function xo(e){return!(e=e[fo]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function So(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(n(33))}function wo(e){return e[ho]||null}var Eo=[],ko=-1;function Co(e){return{current:e}}function Ro(e){0>ko||(e.current=Eo[ko],Eo[ko]=null,ko--)}function Lo(e,t){ko++,Eo[ko]=e.current,e.current=t}var Oo={},Io=Co(Oo),_o=Co(!1),Po=Oo;function To(e,t){var n=e.type.contextTypes;if(!n)return Oo;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 Mo(e){return null!=(e=e.childContextTypes)}function No(){Ro(_o),Ro(Io)}function qo(e,t,r){if(Io.current!==Oo)throw Error(n(168));Lo(Io,t),Lo(_o,r)}function Ao(e,t,r){var o=e.stateNode;if(t=t.childContextTypes,"function"!=typeof o.getChildContext)return r;for(var a in o=o.getChildContext())if(!(a in t))throw Error(n(108,$(e)||"Unknown",a));return q({},r,o)}function Do(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Oo,Po=Io.current,Lo(Io,e),Lo(_o,_o.current),!0}function zo(e,t,r){var o=e.stateNode;if(!o)throw Error(n(169));r?(e=Ao(e,t,Po),o.__reactInternalMemoizedMergedChildContext=e,Ro(_o),Ro(Io),Lo(Io,e)):Ro(_o),Lo(_o,r)}var jo=null,Fo=!1,$o=!1;function Bo(e){null===jo?jo=[e]:jo.push(e)}function Wo(){if(!$o&&null!==jo){$o=!0;var e=0,t=yt;try{var n=jo;for(yt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}jo=null,Fo=!1}catch(t){throw null!==jo&&(jo=jo.slice(e+1)),Ue(Ye,Wo),t}finally{yt=t,$o=!1}}return null}var Ho=[],Uo=0,Vo=null,Go=0,Ko=[],Zo=0,Xo=null,Jo=1,Qo="";function Yo(e,t){Ho[Uo++]=Go,Ho[Uo++]=Vo,Vo=e,Go=t}function ea(e,t,n){Ko[Zo++]=Jo,Ko[Zo++]=Qo,Ko[Zo++]=Xo,Xo=e;var r=Jo;e=Qo;var o=32-it(r)-1;r&=~(1<<o),n+=1;var a=32-it(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,Jo=1<<32-it(t)+o|n<<o|r,Qo=a+e}else Jo=1<<a|n<<o|r,Qo=e}function ta(e){null!==e.return&&(Yo(e,1),ea(e,1,0))}function na(e){for(;e===Vo;)Vo=Ho[--Uo],Ho[Uo]=null,Go=Ho[--Uo],Ho[Uo]=null;for(;e===Xo;)Xo=Ko[--Zo],Ko[Zo]=null,Qo=Ko[--Zo],Ko[Zo]=null,Jo=Ko[--Zo],Ko[Zo]=null}var ra=null,oa=null,aa=!1,ia=null;function la(e,t){var n=Pc(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 sa(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,ra=e,oa=co(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ra=e,oa=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Xo?{id:Jo,overflow:Qo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Pc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ra=e,oa=null,!0);default:return!1}}function ca(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ua(e){if(aa){var t=oa;if(t){var r=t;if(!sa(e,t)){if(ca(e))throw Error(n(418));t=co(r.nextSibling);var o=ra;t&&sa(e,t)?la(o,r):(e.flags=-4097&e.flags|2,aa=!1,ra=e)}}else{if(ca(e))throw Error(n(418));e.flags=-4097&e.flags|2,aa=!1,ra=e}}}function da(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ra=e}function pa(e){if(e!==ra)return!1;if(!aa)return da(e),aa=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oa)){if(ca(e))throw fa(),Error(n(418));for(;t;)la(e,t),t=co(t.nextSibling)}if(da(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){oa=co(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}oa=null}}else oa=ra?co(e.stateNode.nextSibling):null;return!0}function fa(){for(var e=oa;e;)e=co(e.nextSibling)}function ha(){oa=ra=null,aa=!1}function ma(e){null===ia?ia=[e]:ia.push(e)}var ga=v.ReactCurrentBatchConfig;function ba(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(n(309));var o=r.stateNode}if(!o)throw Error(n(147,e));var a=o,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=a.refs;null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(n(284));if(!r._owner)throw Error(n(290,e))}return e}function va(e,t){throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ya(e){return(0,e._init)(e._payload)}function xa(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function r(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function o(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 a(e,t){return(e=Mc(e,t)).index=0,e.sibling=null,e}function i(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 l(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Dc(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function c(e,t,n,r){var o=n.type;return o===S?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===_&&ya(o)===t.type)?((r=a(t,n.props)).ref=ba(e,t,n),r.return=e,r):((r=Nc(n.type,n.key,n.props,null,e.mode,r)).ref=ba(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=zc(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=qc(n,e.mode,r,o)).return=e,t):((t=a(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Dc(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case y:return(n=Nc(t.type,t.key,t.props,null,e.mode,n)).ref=ba(e,null,t),n.return=e,n;case x:return(t=zc(t,e.mode,n)).return=e,t;case _:return p(e,(0,t._init)(t._payload),n)}if(Y(t)||M(t))return(t=qc(t,e.mode,n,null)).return=e,t;va(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case y:return n.key===o?c(e,t,n,r):null;case x:return n.key===o?u(e,t,n,r):null;case _:return f(e,t,(o=n._init)(n._payload),r)}if(Y(n)||M(n))return null!==o?null:d(e,t,n,r,null);va(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case y:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case x:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case _:return h(e,t,n,(0,r._init)(r._payload),o)}if(Y(r)||M(r))return d(t,e=e.get(n)||null,r,o,null);va(t,r)}return null}function m(n,a,l,s){for(var c=null,u=null,d=a,m=a=0,g=null;null!==d&&m<l.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var b=f(n,d,l[m],s);if(null===b){null===d&&(d=g);break}e&&d&&null===b.alternate&&t(n,d),a=i(b,a,m),null===u?c=b:u.sibling=b,u=b,d=g}if(m===l.length)return r(n,d),aa&&Yo(n,m),c;if(null===d){for(;m<l.length;m++)null!==(d=p(n,l[m],s))&&(a=i(d,a,m),null===u?c=d:u.sibling=d,u=d);return aa&&Yo(n,m),c}for(d=o(n,d);m<l.length;m++)null!==(g=h(d,n,m,l[m],s))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),a=i(g,a,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(n,e)})),aa&&Yo(n,m),c}function g(a,l,s,c){var u=M(s);if("function"!=typeof u)throw Error(n(150));if(null==(s=u.call(s)))throw Error(n(151));for(var d=u=null,m=l,g=l=0,b=null,v=s.next();null!==m&&!v.done;g++,v=s.next()){m.index>g?(b=m,m=null):b=m.sibling;var y=f(a,m,v.value,c);if(null===y){null===m&&(m=b);break}e&&m&&null===y.alternate&&t(a,m),l=i(y,l,g),null===d?u=y:d.sibling=y,d=y,m=b}if(v.done)return r(a,m),aa&&Yo(a,g),u;if(null===m){for(;!v.done;g++,v=s.next())null!==(v=p(a,v.value,c))&&(l=i(v,l,g),null===d?u=v:d.sibling=v,d=v);return aa&&Yo(a,g),u}for(m=o(a,m);!v.done;g++,v=s.next())null!==(v=h(m,a,g,v.value,c))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),l=i(v,l,g),null===d?u=v:d.sibling=v,d=v);return e&&m.forEach((function(e){return t(a,e)})),aa&&Yo(a,g),u}return function e(n,o,i,s){if("object"==typeof i&&null!==i&&i.type===S&&null===i.key&&(i=i.props.children),"object"==typeof i&&null!==i){switch(i.$$typeof){case y:e:{for(var c=i.key,u=o;null!==u;){if(u.key===c){if((c=i.type)===S){if(7===u.tag){r(n,u.sibling),(o=a(u,i.props.children)).return=n,n=o;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===_&&ya(c)===u.type){r(n,u.sibling),(o=a(u,i.props)).ref=ba(n,u,i),o.return=n,n=o;break e}r(n,u);break}t(n,u),u=u.sibling}i.type===S?((o=qc(i.props.children,n.mode,s,i.key)).return=n,n=o):((s=Nc(i.type,i.key,i.props,null,n.mode,s)).ref=ba(n,o,i),s.return=n,n=s)}return l(n);case x:e:{for(u=i.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===i.containerInfo&&o.stateNode.implementation===i.implementation){r(n,o.sibling),(o=a(o,i.children||[])).return=n,n=o;break e}r(n,o);break}t(n,o),o=o.sibling}(o=zc(i,n.mode,s)).return=n,n=o}return l(n);case _:return e(n,o,(u=i._init)(i._payload),s)}if(Y(i))return m(n,o,i,s);if(M(i))return g(n,o,i,s);va(n,i)}return"string"==typeof i&&""!==i||"number"==typeof i?(i=""+i,null!==o&&6===o.tag?(r(n,o.sibling),(o=a(o,i)).return=n,n=o):(r(n,o),(o=Dc(i,n.mode,s)).return=n,n=o),l(n)):r(n,o)}}var Sa=xa(!0),wa=xa(!1),Ea=Co(null),ka=null,Ca=null,Ra=null;function La(){Ra=Ca=ka=null}function Oa(e){var t=Ea.current;Ro(Ea),e._currentValue=t}function Ia(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 _a(e,t){ka=e,Ra=Ca=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(yl=!0),e.firstContext=null)}function Pa(e){var t=e._currentValue;if(Ra!==e)if(e={context:e,memoizedValue:t,next:null},null===Ca){if(null===ka)throw Error(n(308));Ca=e,ka.dependencies={lanes:0,firstContext:e}}else Ca=Ca.next=e;return t}var Ta=null;function Ma(e){null===Ta?Ta=[e]:Ta.push(e)}function Na(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ma(t)):(n.next=o.next,o.next=n),t.interleaved=n,qa(e,r)}function qa(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 Aa=!1;function Da(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function za(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 ja(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Fa(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Os)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,qa(e,n)}return null===(o=r.interleaved)?(t.next=t,Ma(r)):(t.next=o.next,o.next=t),r.interleaved=t,qa(e,n)}function $a(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,vt(e,n)}}function Ba(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 Wa(e,t,n,r){var o=e.updateQueue;Aa=!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=q({},d,p);break e;case 2:Aa=!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);As|=i,e.lanes=i,e.memoizedState=d}}function Ha(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var o=e[t],a=o.callback;if(null!==a){if(o.callback=null,o=r,"function"!=typeof a)throw Error(n(191,a));a.call(o)}}}var Ua={},Va=Co(Ua),Ga=Co(Ua),Ka=Co(Ua);function Za(e){if(e===Ua)throw Error(n(174));return e}function Xa(e,t){switch(Lo(Ka,t),Lo(Ga,e),Lo(Va,Ua),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ie(null,"");break;default:t=ie(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ro(Va),Lo(Va,t)}function Ja(){Ro(Va),Ro(Ga),Ro(Ka)}function Qa(e){Za(Ka.current);var t=Za(Va.current),n=ie(t,e.type);t!==n&&(Lo(Ga,e),Lo(Va,n))}function Ya(e){Ga.current===e&&(Ro(Va),Ro(Ga))}var ei=Co(0);function ti(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 ni=[];function ri(){for(var e=0;e<ni.length;e++)ni[e]._workInProgressVersionPrimary=null;ni.length=0}var oi=v.ReactCurrentDispatcher,ai=v.ReactCurrentBatchConfig,ii=0,li=null,si=null,ci=null,ui=!1,di=!1,pi=0,fi=0;function hi(){throw Error(n(321))}function mi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function gi(e,t,r,o,a,i){if(ii=i,li=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oi.current=null===e||null===e.memoizedState?Yi:el,e=r(o,a),di){i=0;do{if(di=!1,pi=0,25<=i)throw Error(n(301));i+=1,ci=si=null,t.updateQueue=null,oi.current=tl,e=r(o,a)}while(di)}if(oi.current=Qi,t=null!==si&&null!==si.next,ii=0,ci=si=li=null,ui=!1,t)throw Error(n(300));return e}function bi(){var e=0!==pi;return pi=0,e}function vi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ci?li.memoizedState=ci=e:ci=ci.next=e,ci}function yi(){if(null===si){var e=li.alternate;e=null!==e?e.memoizedState:null}else e=si.next;var t=null===ci?li.memoizedState:ci.next;if(null!==t)ci=t,si=e;else{if(null===e)throw Error(n(310));e={memoizedState:(si=e).memoizedState,baseState:si.baseState,baseQueue:si.baseQueue,queue:si.queue,next:null},null===ci?li.memoizedState=ci=e:ci=ci.next=e}return ci}function xi(e,t){return"function"==typeof t?t(e):t}function Si(e){var t=yi(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=si,a=o.baseQueue,i=r.pending;if(null!==i){if(null!==a){var l=a.next;a.next=i.next,i.next=l}o.baseQueue=a=i,r.pending=null}if(null!==a){i=a.next,o=o.baseState;var s=l=null,c=null,u=i;do{var d=u.lane;if((ii&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),o=u.hasEagerState?u.eagerState:e(o,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(s=c=p,l=o):c=c.next=p,li.lanes|=d,As|=d}u=u.next}while(null!==u&&u!==i);null===c?l=o:c.next=s,lr(o,t.memoizedState)||(yl=!0),t.memoizedState=o,t.baseState=l,t.baseQueue=c,r.lastRenderedState=o}if(null!==(e=r.interleaved)){a=e;do{i=a.lane,li.lanes|=i,As|=i,a=a.next}while(a!==e)}else null===a&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function wi(e){var t=yi(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=r.dispatch,a=r.pending,i=t.memoizedState;if(null!==a){r.pending=null;var l=a=a.next;do{i=e(i,l.action),l=l.next}while(l!==a);lr(i,t.memoizedState)||(yl=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),r.lastRenderedState=i}return[i,o]}function Ei(){}function ki(e,t){var r=li,o=yi(),a=t(),i=!lr(o.memoizedState,a);if(i&&(o.memoizedState=a,yl=!0),o=o.queue,Ai(Li.bind(null,r,o,e),[e]),o.getSnapshot!==t||i||null!==ci&&1&ci.memoizedState.tag){if(r.flags|=2048,Pi(9,Ri.bind(null,r,o,a,t),void 0,null),null===Is)throw Error(n(349));0!=(30&ii)||Ci(r,t,a)}return a}function Ci(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=li.updateQueue)?(t={lastEffect:null,stores:null},li.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ri(e,t,n,r){t.value=n,t.getSnapshot=r,Oi(t)&&Ii(e)}function Li(e,t,n){return n((function(){Oi(t)&&Ii(e)}))}function Oi(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(e){return!0}}function Ii(e){var t=qa(e,1);null!==t&&nc(t,e,1,-1)}function _i(e){var t=vi();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xi,lastRenderedState:e},t.queue=e,e=e.dispatch=Ki.bind(null,li,e),[t.memoizedState,e]}function Pi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=li.updateQueue)?(t={lastEffect:null,stores:null},li.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 Ti(){return yi().memoizedState}function Mi(e,t,n,r){var o=vi();li.flags|=e,o.memoizedState=Pi(1|t,n,void 0,void 0===r?null:r)}function Ni(e,t,n,r){var o=yi();r=void 0===r?null:r;var a=void 0;if(null!==si){var i=si.memoizedState;if(a=i.destroy,null!==r&&mi(r,i.deps))return void(o.memoizedState=Pi(t,n,a,r))}li.flags|=e,o.memoizedState=Pi(1|t,n,a,r)}function qi(e,t){return Mi(8390656,8,e,t)}function Ai(e,t){return Ni(2048,8,e,t)}function Di(e,t){return Ni(4,2,e,t)}function zi(e,t){return Ni(4,4,e,t)}function ji(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 Fi(e,t,n){return n=null!=n?n.concat([e]):null,Ni(4,4,ji.bind(null,t,e),n)}function $i(){}function Bi(e,t){var n=yi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&mi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Wi(e,t){var n=yi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&mi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Hi(e,t,n){return 0==(21&ii)?(e.baseState&&(e.baseState=!1,yl=!0),e.memoizedState=n):(lr(n,t)||(n=mt(),li.lanes|=n,As|=n,e.baseState=!0),t)}function Ui(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var r=ai.transition;ai.transition={};try{e(!1),t()}finally{yt=n,ai.transition=r}}function Vi(){return yi().memoizedState}function Gi(e,t,n){var r=tc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Zi(e))Xi(t,n);else if(null!==(n=Na(e,t,n,r))){nc(n,e,r,ec()),Ji(n,t,r)}}function Ki(e,t,n){var r=tc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Zi(e))Xi(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,lr(l,i)){var s=t.interleaved;return null===s?(o.next=o,Ma(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Na(e,t,o,r))&&(nc(n,e,r,o=ec()),Ji(n,t,r))}}function Zi(e){var t=e.alternate;return e===li||null!==t&&t===li}function Xi(e,t){di=ui=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ji(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}var Qi={readContext:Pa,useCallback:hi,useContext:hi,useEffect:hi,useImperativeHandle:hi,useInsertionEffect:hi,useLayoutEffect:hi,useMemo:hi,useReducer:hi,useRef:hi,useState:hi,useDebugValue:hi,useDeferredValue:hi,useTransition:hi,useMutableSource:hi,useSyncExternalStore:hi,useId:hi,unstable_isNewReconciler:!1},Yi={readContext:Pa,useCallback:function(e,t){return vi().memoizedState=[e,void 0===t?null:t],e},useContext:Pa,useEffect:qi,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Mi(4194308,4,ji.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Mi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Mi(4,2,e,t)},useMemo:function(e,t){var n=vi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=vi();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=Gi.bind(null,li,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},vi().memoizedState=e},useState:_i,useDebugValue:$i,useDeferredValue:function(e){return vi().memoizedState=e},useTransition:function(){var e=_i(!1),t=e[0];return e=Ui.bind(null,e[1]),vi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=li,a=vi();if(aa){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===Is)throw Error(n(349));0!=(30&ii)||Ci(o,t,r)}a.memoizedState=r;var i={value:r,getSnapshot:t};return a.queue=i,qi(Li.bind(null,o,i,e),[e]),o.flags|=2048,Pi(9,Ri.bind(null,o,i,r,t),void 0,null),r},useId:function(){var e=vi(),t=Is.identifierPrefix;if(aa){var n=Qo;t=":"+t+"R"+(n=(Jo&~(1<<32-it(Jo)-1)).toString(32)+n),0<(n=pi++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=fi++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},el={readContext:Pa,useCallback:Bi,useContext:Pa,useEffect:Ai,useImperativeHandle:Fi,useInsertionEffect:Di,useLayoutEffect:zi,useMemo:Wi,useReducer:Si,useRef:Ti,useState:function(){return Si(xi)},useDebugValue:$i,useDeferredValue:function(e){return Hi(yi(),si.memoizedState,e)},useTransition:function(){return[Si(xi)[0],yi().memoizedState]},useMutableSource:Ei,useSyncExternalStore:ki,useId:Vi,unstable_isNewReconciler:!1},tl={readContext:Pa,useCallback:Bi,useContext:Pa,useEffect:Ai,useImperativeHandle:Fi,useInsertionEffect:Di,useLayoutEffect:zi,useMemo:Wi,useReducer:wi,useRef:Ti,useState:function(){return wi(xi)},useDebugValue:$i,useDeferredValue:function(e){var t=yi();return null===si?t.memoizedState=e:Hi(t,si.memoizedState,e)},useTransition:function(){return[wi(xi)[0],yi().memoizedState]},useMutableSource:Ei,useSyncExternalStore:ki,useId:Vi,unstable_isNewReconciler:!1};function nl(e,t){if(e&&e.defaultProps){for(var n in t=q({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rl(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:q({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ol={isMounted:function(e){return!!(e=e._reactInternals)&&je(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),a=ja(r,o);a.payload=t,null!=n&&(a.callback=n),null!==(t=Fa(e,a,o))&&(nc(t,e,o,r),$a(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),a=ja(r,o);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=Fa(e,a,o))&&(nc(t,e,o,r),$a(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),r=tc(e),o=ja(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Fa(e,o,r))&&(nc(t,e,r,n),$a(t,e,r))}};function al(e,t,n,r,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!sr(n,r)||!sr(o,a))}function il(e,t,n){var r=!1,o=Oo,a=t.contextType;return"object"==typeof a&&null!==a?a=Pa(a):(o=Mo(t)?Po:Io.current,a=(r=null!=(r=t.contextTypes))?To(e,o):Oo),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ol,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function ll(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&&ol.enqueueReplaceState(t,t.state,null)}function sl(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Da(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=Pa(a):(a=Mo(t)?Po:Io.current,o.context=To(e,a)),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(rl(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&&ol.enqueueReplaceState(o,o.state,null),Wa(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function cl(e,t){try{var n="",r=t;do{n+=j(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 ul(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function dl(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var pl="function"==typeof WeakMap?WeakMap:Map;function fl(e,t,n){(n=ja(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hs||(Hs=!0,Us=r),dl(0,t)},n}function hl(e,t,n){(n=ja(-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(){dl(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){dl(0,t),"function"!=typeof r&&(null===Vs?Vs=new Set([this]):Vs.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ml(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new pl;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=Cc.bind(null,e,t,n),t.then(e,e))}function gl(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 bl(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=ja(-1,1)).tag=2,Fa(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var vl=v.ReactCurrentOwner,yl=!1;function xl(e,t,n,r){t.child=null===e?wa(t,null,n,r):Sa(t,e.child,n,r)}function Sl(e,t,n,r,o){n=n.render;var a=t.ref;return _a(t,o),r=gi(e,t,n,r,a,o),n=bi(),null===e||yl?(aa&&n&&ta(t),t.flags|=1,xl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hl(e,t,o))}function wl(e,t,n,r,o){if(null===e){var a=n.type;return"function"!=typeof a||Tc(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Nc(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,El(e,t,a,r,o))}if(a=e.child,0==(e.lanes&o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:sr)(i,r)&&e.ref===t.ref)return Hl(e,t,o)}return t.flags|=1,(e=Mc(a,r)).ref=t.ref,e.return=t,t.child=e}function El(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(sr(a,r)&&e.ref===t.ref){if(yl=!1,t.pendingProps=r=a,0==(e.lanes&o))return t.lanes=e.lanes,Hl(e,t,o);0!=(131072&e.flags)&&(yl=!0)}}return Rl(e,t,n,r,o)}function kl(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},Lo(Ms,Ts),Ts|=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,Lo(Ms,Ts),Ts|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,Lo(Ms,Ts),Ts|=r}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Lo(Ms,Ts),Ts|=r;return xl(e,t,o,n),t.child}function Cl(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Rl(e,t,n,r,o){var a=Mo(n)?Po:Io.current;return a=To(t,a),_a(t,o),n=gi(e,t,n,r,a,o),r=bi(),null===e||yl?(aa&&r&&ta(t),t.flags|=1,xl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hl(e,t,o))}function Ll(e,t,n,r,o){if(Mo(n)){var a=!0;Do(t)}else a=!1;if(_a(t,o),null===t.stateNode)Wl(e,t),il(t,n,r),sl(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=Pa(c):c=To(t,c=Mo(n)?Po:Io.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)&&ll(t,i,r,c),Aa=!1;var p=t.memoizedState;i.state=p,Wa(t,r,i,o),s=t.memoizedState,l!==r||p!==s||_o.current||Aa?("function"==typeof u&&(rl(t,n,u,r),s=t.memoizedState),(l=Aa||al(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,za(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:nl(t.type,l),i.props=c,d=t.pendingProps,p=i.context,"object"==typeof(s=n.contextType)&&null!==s?s=Pa(s):s=To(t,s=Mo(n)?Po:Io.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)&&ll(t,i,r,s),Aa=!1,p=t.memoizedState,i.state=p,Wa(t,r,i,o);var h=t.memoizedState;l!==d||p!==h||_o.current||Aa?("function"==typeof f&&(rl(t,n,f,r),h=t.memoizedState),(c=Aa||al(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 Ol(e,t,n,r,a,o)}function Ol(e,t,n,r,o,a){Cl(e,t);var i=0!=(128&t.flags);if(!r&&!i)return o&&zo(t,n,!1),Hl(e,t,a);r=t.stateNode,vl.current=t;var l=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Sa(t,e.child,null,a),t.child=Sa(t,null,l,a)):xl(e,t,l,a),t.memoizedState=r.state,o&&zo(t,n,!0),t.child}function Il(e){var t=e.stateNode;t.pendingContext?qo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&qo(0,t.context,!1),Xa(e,t.containerInfo)}function _l(e,t,n,r,o){return ha(),ma(o),t.flags|=256,xl(e,t,n,r),t.child}var Pl,Tl,Ml,Nl,ql={dehydrated:null,treeContext:null,retryLane:0};function Al(e){return{baseLanes:e,cachePool:null,transitions:null}}function Dl(e,t,r){var o,a=t.pendingProps,i=ei.current,l=!1,s=0!=(128&t.flags);if((o=s)||(o=(null===e||null!==e.memoizedState)&&0!=(2&i)),o?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Lo(ei,1&i),null===e)return ua(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):(s=a.children,e=a.fallback,l?(a=t.mode,l=t.child,s={mode:"hidden",children:s},0==(1&a)&&null!==l?(l.childLanes=0,l.pendingProps=s):l=Ac(s,a,0,null),e=qc(e,a,r,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Al(r),t.memoizedState=ql,e):zl(t,s));if(null!==(i=e.memoizedState)&&null!==(o=i.dehydrated))return function(e,t,r,o,a,i,l){if(r)return 256&t.flags?(t.flags&=-257,jl(e,t,l,o=ul(Error(n(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=o.fallback,a=t.mode,o=Ac({mode:"visible",children:o.children},a,0,null),(i=qc(i,a,l,null)).flags|=2,o.return=t,i.return=t,o.sibling=i,t.child=o,0!=(1&t.mode)&&Sa(t,e.child,null,l),t.child.memoizedState=Al(l),t.memoizedState=ql,i);if(0==(1&t.mode))return jl(e,t,l,null);if("$!"===a.data){if(o=a.nextSibling&&a.nextSibling.dataset)var s=o.dgst;return o=s,jl(e,t,l,o=ul(i=Error(n(419)),o,void 0))}if(s=0!=(l&e.childLanes),yl||s){if(null!==(o=Is)){switch(l&-l){case 4:a=2;break;case 16:a=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:a=32;break;case 536870912:a=268435456;break;default:a=0}0!==(a=0!=(a&(o.suspendedLanes|l))?0:a)&&a!==i.retryLane&&(i.retryLane=a,qa(e,a),nc(o,e,a,-1))}return mc(),jl(e,t,l,o=ul(Error(n(421))))}return"$?"===a.data?(t.flags|=128,t.child=e.child,t=Lc.bind(null,e),a._reactRetry=t,null):(e=i.treeContext,oa=co(a.nextSibling),ra=t,aa=!0,ia=null,null!==e&&(Ko[Zo++]=Jo,Ko[Zo++]=Qo,Ko[Zo++]=Xo,Jo=e.id,Qo=e.overflow,Xo=t),t=zl(t,o.children),t.flags|=4096,t)}(e,t,s,a,o,i,r);if(l){l=a.fallback,s=t.mode,o=(i=e.child).sibling;var c={mode:"hidden",children:a.children};return 0==(1&s)&&t.child!==i?((a=t.child).childLanes=0,a.pendingProps=c,t.deletions=null):(a=Mc(i,c)).subtreeFlags=14680064&i.subtreeFlags,null!==o?l=Mc(o,l):(l=qc(l,s,r,null)).flags|=2,l.return=t,a.return=t,a.sibling=l,t.child=a,a=l,l=t.child,s=null===(s=e.child.memoizedState)?Al(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~r,t.memoizedState=ql,a}return e=(l=e.child).sibling,a=Mc(l,{mode:"visible",children:a.children}),0==(1&t.mode)&&(a.lanes=r),a.return=t,a.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=a,t.memoizedState=null,a}function zl(e,t){return(t=Ac({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function jl(e,t,n,r){return null!==r&&ma(r),Sa(t,e.child,null,n),(e=zl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Fl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ia(e.return,t,n)}function $l(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 Bl(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(xl(e,t,r.children,n),0!=(2&(r=ei.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&&Fl(e,n,t);else if(19===e.tag)Fl(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(Lo(ei,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===ti(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),$l(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===ti(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}$l(t,!0,n,null,a);break;case"together":$l(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Wl(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hl(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),As|=t.lanes,0==(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=Mc(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Mc(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Ul(e,t){if(!aa)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 Vl(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 Gl(e,t,r){var a=t.pendingProps;switch(na(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vl(t),null;case 1:case 17:return Mo(t.type)&&No(),Vl(t),null;case 3:return a=t.stateNode,Ja(),Ro(_o),Ro(Io),ri(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),null!==e&&null!==e.child||(pa(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==ia&&(ic(ia),ia=null))),Tl(e,t),Vl(t),null;case 5:Ya(t);var i=Za(Ka.current);if(r=t.type,null!==e&&null!=t.stateNode)Ml(e,t,r,a,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!a){if(null===t.stateNode)throw Error(n(166));return Vl(t),null}if(e=Za(Va.current),pa(t)){a=t.stateNode,r=t.type;var l=t.memoizedProps;switch(a[fo]=t,a[ho]=l,e=0!=(1&t.mode),r){case"dialog":jr("cancel",a),jr("close",a);break;case"iframe":case"object":case"embed":jr("load",a);break;case"video":case"audio":for(i=0;i<qr.length;i++)jr(qr[i],a);break;case"source":jr("error",a);break;case"img":case"image":case"link":jr("error",a),jr("load",a);break;case"details":jr("toggle",a);break;case"input":K(a,l),jr("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!l.multiple},jr("invalid",a);break;case"textarea":ne(a,l),jr("invalid",a)}for(var s in me(r,l),i=null,l)if(l.hasOwnProperty(s)){var c=l[s];"children"===s?"string"==typeof c?a.textContent!==c&&(!0!==l.suppressHydrationWarning&&Qr(a.textContent,c,e),i=["children",c]):"number"==typeof c&&a.textContent!==""+c&&(!0!==l.suppressHydrationWarning&&Qr(a.textContent,c,e),i=["children",""+c]):o.hasOwnProperty(s)&&null!=c&&"onScroll"===s&&jr("scroll",a)}switch(r){case"input":H(a),J(a,l,!0);break;case"textarea":H(a),oe(a);break;case"select":case"option":break;default:"function"==typeof l.onClick&&(a.onclick=Yr)}a=i,t.updateQueue=a,null!==a&&(t.flags|=4)}else{s=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ae(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof a.is?e=s.createElement(r,{is:a.is}):(e=s.createElement(r),"select"===r&&(s=e,a.multiple?s.multiple=!0:a.size&&(s.size=a.size))):e=s.createElementNS(e,r),e[fo]=t,e[ho]=a,Pl(e,t,!1,!1),t.stateNode=e;e:{switch(s=ge(r,a),r){case"dialog":jr("cancel",e),jr("close",e),i=a;break;case"iframe":case"object":case"embed":jr("load",e),i=a;break;case"video":case"audio":for(i=0;i<qr.length;i++)jr(qr[i],e);i=a;break;case"source":jr("error",e),i=a;break;case"img":case"image":case"link":jr("error",e),jr("load",e),i=a;break;case"details":jr("toggle",e),i=a;break;case"input":K(e,a),i=G(e,a),jr("invalid",e);break;case"option":default:i=a;break;case"select":e._wrapperState={wasMultiple:!!a.multiple},i=q({},a,{value:void 0}),jr("invalid",e);break;case"textarea":ne(e,a),i=te(e,a),jr("invalid",e)}for(l in me(r,i),c=i)if(c.hasOwnProperty(l)){var u=c[l];"style"===l?fe(e,u):"dangerouslySetInnerHTML"===l?null!=(u=u?u.__html:void 0)&&se(e,u):"children"===l?"string"==typeof u?("textarea"!==r||""!==u)&&ce(e,u):"number"==typeof u&&ce(e,""+u):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(o.hasOwnProperty(l)?null!=u&&"onScroll"===l&&jr("scroll",e):null!=u&&b(e,l,u,s))}switch(r){case"input":H(e),J(e,a,!1);break;case"textarea":H(e),oe(e);break;case"option":null!=a.value&&e.setAttribute("value",""+B(a.value));break;case"select":e.multiple=!!a.multiple,null!=(l=a.value)?ee(e,!!a.multiple,l,!1):null!=a.defaultValue&&ee(e,!!a.multiple,a.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Yr)}switch(r){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Vl(t),null;case 6:if(e&&null!=t.stateNode)Nl(e,t,e.memoizedProps,a);else{if("string"!=typeof a&&null===t.stateNode)throw Error(n(166));if(r=Za(Ka.current),Za(Va.current),pa(t)){if(a=t.stateNode,r=t.memoizedProps,a[fo]=t,(l=a.nodeValue!==r)&&null!==(e=ra))switch(e.tag){case 3:Qr(a.nodeValue,r,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Qr(a.nodeValue,r,0!=(1&e.mode))}l&&(t.flags|=4)}else(a=(9===r.nodeType?r:r.ownerDocument).createTextNode(a))[fo]=t,t.stateNode=a}return Vl(t),null;case 13:if(Ro(ei),a=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(aa&&null!==oa&&0!=(1&t.mode)&&0==(128&t.flags))fa(),ha(),t.flags|=98560,l=!1;else if(l=pa(t),null!==a&&null!==a.dehydrated){if(null===e){if(!l)throw Error(n(318));if(!(l=null!==(l=t.memoizedState)?l.dehydrated:null))throw Error(n(317));l[fo]=t}else ha(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Vl(t),l=!1}else null!==ia&&(ic(ia),ia=null),l=!0;if(!l)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=r,t):((a=null!==a)!==(null!==e&&null!==e.memoizedState)&&a&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ei.current)?0===Ns&&(Ns=3):mc())),null!==t.updateQueue&&(t.flags|=4),Vl(t),null);case 4:return Ja(),Tl(e,t),null===e&&Br(t.stateNode.containerInfo),Vl(t),null;case 10:return Oa(t.type._context),Vl(t),null;case 19:if(Ro(ei),null===(l=t.memoizedState))return Vl(t),null;if(a=0!=(128&t.flags),null===(s=l.rendering))if(a)Ul(l,!1);else{if(0!==Ns||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(s=ti(e))){for(t.flags|=128,Ul(l,!1),null!==(a=s.updateQueue)&&(t.updateQueue=a,t.flags|=4),t.subtreeFlags=0,a=r,r=t.child;null!==r;)e=a,(l=r).flags&=14680066,null===(s=l.alternate)?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=s.childLanes,l.lanes=s.lanes,l.child=s.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=s.memoizedProps,l.memoizedState=s.memoizedState,l.updateQueue=s.updateQueue,l.type=s.type,e=s.dependencies,l.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Lo(ei,1&ei.current|2),t.child}e=e.sibling}null!==l.tail&&Xe()>Bs&&(t.flags|=128,a=!0,Ul(l,!1),t.lanes=4194304)}else{if(!a)if(null!==(e=ti(s))){if(t.flags|=128,a=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Ul(l,!0),null===l.tail&&"hidden"===l.tailMode&&!s.alternate&&!aa)return Vl(t),null}else 2*Xe()-l.renderingStartTime>Bs&&1073741824!==r&&(t.flags|=128,a=!0,Ul(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(null!==(r=l.last)?r.sibling=s:t.child=s,l.last=s)}return null!==l.tail?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Xe(),t.sibling=null,r=ei.current,Lo(ei,a?1&r|2:1&r),t):(Vl(t),null);case 22:case 23:return dc(),a=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==a&&(t.flags|=8192),a&&0!=(1&t.mode)?0!=(1073741824&Ts)&&(Vl(t),6&t.subtreeFlags&&(t.flags|=8192)):Vl(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function Kl(e,t){switch(na(t),t.tag){case 1:return Mo(t.type)&&No(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ja(),Ro(_o),Ro(Io),ri(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Ya(t),null;case 13:if(Ro(ei),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));ha()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ro(ei),null;case 4:return Ja(),null;case 10:return Oa(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Pl=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}},Tl=function(){},Ml=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,Za(Va.current);var i,l=null;switch(n){case"input":a=G(e,a),r=G(e,r),l=[];break;case"select":a=q({},a,{value:void 0}),r=q({},r,{value:void 0}),l=[];break;case"textarea":a=te(e,a),r=te(e,r),l=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(e.onclick=Yr)}for(u in me(n,r),n=null,a)if(!r.hasOwnProperty(u)&&a.hasOwnProperty(u)&&null!=a[u])if("style"===u){var s=a[u];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(o.hasOwnProperty(u)?l||(l=[]):(l=l||[]).push(u,null));for(u in r){var c=r[u];if(s=null!=a?a[u]:void 0,r.hasOwnProperty(u)&&c!==s&&(null!=c||null!=s))if("style"===u)if(s){for(i in s)!s.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&s[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(l||(l=[]),l.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,s=s?s.__html:void 0,null!=c&&s!==c&&(l=l||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(l=l||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(o.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&jr("scroll",e),l||s===c||(l=[])):(l=l||[]).push(u,c))}n&&(l=l||[]).push("style",n);var u=l;(t.updateQueue=u)&&(t.flags|=4)}},Nl=function(e,t,n,r){n!==r&&(t.flags|=4)};var Zl=!1,Xl=!1,Jl="function"==typeof WeakSet?WeakSet:Set,Ql=null;function Yl(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){kc(e,t,n)}else n.current=null}function es(e,t,n){try{n()}catch(n){kc(e,t,n)}}var ts=!1;function ns(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&&es(t,n,a)}o=o.next}while(o!==r)}}function rs(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 os(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 as(e){var t=e.alternate;null!==t&&(e.alternate=null,as(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[fo],delete t[ho],delete t[go],delete t[bo],delete t[vo])),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 is(e){return 5===e.tag||3===e.tag||4===e.tag}function ls(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||is(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 ss(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=Yr));else if(4!==r&&null!==(e=e.child))for(ss(e,t,n),e=e.sibling;null!==e;)ss(e,t,n),e=e.sibling}function cs(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(cs(e,t,n),e=e.sibling;null!==e;)cs(e,t,n),e=e.sibling}var us=null,ds=!1;function ps(e,t,n){for(n=n.child;null!==n;)fs(e,t,n),n=n.sibling}function fs(e,t,n){if(at&&"function"==typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Xl||Yl(n,t);case 6:var r=us,o=ds;us=null,ps(e,t,n),ds=o,null!==(us=r)&&(ds?(e=us,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):us.removeChild(n.stateNode));break;case 18:null!==us&&(ds?(e=us,n=n.stateNode,8===e.nodeType?so(e.parentNode,n):1===e.nodeType&&so(e,n),Bt(e)):so(us,n.stateNode));break;case 4:r=us,o=ds,us=n.stateNode.containerInfo,ds=!0,ps(e,t,n),us=r,ds=o;break;case 0:case 11:case 14:case 15:if(!Xl&&(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))&&es(n,t,i),o=o.next}while(o!==r)}ps(e,t,n);break;case 1:if(!Xl&&(Yl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){kc(n,t,e)}ps(e,t,n);break;case 21:ps(e,t,n);break;case 22:1&n.mode?(Xl=(r=Xl)||null!==n.memoizedState,ps(e,t,n),Xl=r):ps(e,t,n);break;default:ps(e,t,n)}}function hs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Jl),t.forEach((function(t){var r=Oc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ms(e,t){var r=t.deletions;if(null!==r)for(var o=0;o<r.length;o++){var a=r[o];try{var i=e,l=t,s=l;e:for(;null!==s;){switch(s.tag){case 5:us=s.stateNode,ds=!1;break e;case 3:case 4:us=s.stateNode.containerInfo,ds=!0;break e}s=s.return}if(null===us)throw Error(n(160));fs(i,l,a),us=null,ds=!1;var c=a.alternate;null!==c&&(c.return=null),a.return=null}catch(e){kc(a,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gs(t,e),t=t.sibling}function gs(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ms(t,e),bs(e),4&o){try{ns(3,e,e.return),rs(3,e)}catch(t){kc(e,e.return,t)}try{ns(5,e,e.return)}catch(t){kc(e,e.return,t)}}break;case 1:ms(t,e),bs(e),512&o&&null!==r&&Yl(r,r.return);break;case 5:if(ms(t,e),bs(e),512&o&&null!==r&&Yl(r,r.return),32&e.flags){var a=e.stateNode;try{ce(a,"")}catch(t){kc(e,e.return,t)}}if(4&o&&null!=(a=e.stateNode)){var i=e.memoizedProps,l=null!==r?r.memoizedProps:i,s=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===s&&"radio"===i.type&&null!=i.name&&Z(a,i),ge(s,l);var u=ge(s,i);for(l=0;l<c.length;l+=2){var d=c[l],p=c[l+1];"style"===d?fe(a,p):"dangerouslySetInnerHTML"===d?se(a,p):"children"===d?ce(a,p):b(a,d,p,u)}switch(s){case"input":X(a,i);break;case"textarea":re(a,i);break;case"select":var f=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!i.multiple;var h=i.value;null!=h?ee(a,!!i.multiple,h,!1):f!==!!i.multiple&&(null!=i.defaultValue?ee(a,!!i.multiple,i.defaultValue,!0):ee(a,!!i.multiple,i.multiple?[]:"",!1))}a[ho]=i}catch(t){kc(e,e.return,t)}}break;case 6:if(ms(t,e),bs(e),4&o){if(null===e.stateNode)throw Error(n(162));a=e.stateNode,i=e.memoizedProps;try{a.nodeValue=i}catch(t){kc(e,e.return,t)}}break;case 3:if(ms(t,e),bs(e),4&o&&null!==r&&r.memoizedState.isDehydrated)try{Bt(t.containerInfo)}catch(t){kc(e,e.return,t)}break;case 4:default:ms(t,e),bs(e);break;case 13:ms(t,e),bs(e),8192&(a=e.child).flags&&(i=null!==a.memoizedState,a.stateNode.isHidden=i,!i||null!==a.alternate&&null!==a.alternate.memoizedState||($s=Xe())),4&o&&hs(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Xl=(u=Xl)||d,ms(t,e),Xl=u):ms(t,e),bs(e),8192&o){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!=(1&e.mode))for(Ql=e,d=e.child;null!==d;){for(p=Ql=d;null!==Ql;){switch(h=(f=Ql).child,f.tag){case 0:case 11:case 14:case 15:ns(4,f,f.return);break;case 1:Yl(f,f.return);var m=f.stateNode;if("function"==typeof m.componentWillUnmount){o=f,r=f.return;try{t=o,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){kc(o,r,e)}}break;case 5:Yl(f,f.return);break;case 22:if(null!==f.memoizedState){Ss(p);continue}}null!==h?(h.return=f,Ql=h):Ss(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{a=p.stateNode,u?"function"==typeof(i=a.style).setProperty?i.setProperty("display","none","important"):i.display="none":(s=p.stateNode,l=null!=(c=p.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,s.style.display=pe("display",l))}catch(t){kc(e,e.return,t)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(t){kc(e,e.return,t)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:ms(t,e),bs(e),4&o&&hs(e);case 21:}}function bs(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(is(r)){var o=r;break e}r=r.return}throw Error(n(160))}switch(o.tag){case 5:var a=o.stateNode;32&o.flags&&(ce(a,""),o.flags&=-33),cs(e,ls(e),a);break;case 3:case 4:var i=o.stateNode.containerInfo;ss(e,ls(e),i);break;default:throw Error(n(161))}}catch(t){kc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vs(e,t,n){Ql=e,ys(e)}function ys(e,t,n){for(var r=0!=(1&e.mode);null!==Ql;){var o=Ql,a=o.child;if(22===o.tag&&r){var i=null!==o.memoizedState||Zl;if(!i){var l=o.alternate,s=null!==l&&null!==l.memoizedState||Xl;l=Zl;var c=Xl;if(Zl=i,(Xl=s)&&!c)for(Ql=o;null!==Ql;)s=(i=Ql).child,22===i.tag&&null!==i.memoizedState?ws(o):null!==s?(s.return=i,Ql=s):ws(o);for(;null!==a;)Ql=a,ys(a),a=a.sibling;Ql=o,Zl=l,Xl=c}xs(e)}else 0!=(8772&o.subtreeFlags)&&null!==a?(a.return=o,Ql=a):xs(e)}}function xs(e){for(;null!==Ql;){var t=Ql;if(0!=(8772&t.flags)){var r=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Xl||rs(5,t);break;case 1:var o=t.stateNode;if(4&t.flags&&!Xl)if(null===r)o.componentDidMount();else{var a=t.elementType===t.type?r.memoizedProps:nl(t.type,r.memoizedProps);o.componentDidUpdate(a,r.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Ha(t,i,o);break;case 3:var l=t.updateQueue;if(null!==l){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Ha(t,l,r)}break;case 5:var s=t.stateNode;if(null===r&&4&t.flags){r=s;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&r.focus();break;case"img":c.src&&(r.src=c.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 u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&Bt(p)}}}break;default:throw Error(n(163))}Xl||512&t.flags&&os(t)}catch(e){kc(t,t.return,e)}}if(t===e){Ql=null;break}if(null!==(r=t.sibling)){r.return=t.return,Ql=r;break}Ql=t.return}}function Ss(e){for(;null!==Ql;){var t=Ql;if(t===e){Ql=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Ql=n;break}Ql=t.return}}function ws(e){for(;null!==Ql;){var t=Ql;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rs(4,t)}catch(e){kc(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){kc(t,o,e)}}var a=t.return;try{os(t)}catch(e){kc(t,a,e)}break;case 5:var i=t.return;try{os(t)}catch(e){kc(t,i,e)}}}catch(e){kc(t,t.return,e)}if(t===e){Ql=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Ql=l;break}Ql=t.return}}var Es,ks=Math.ceil,Cs=v.ReactCurrentDispatcher,Rs=v.ReactCurrentOwner,Ls=v.ReactCurrentBatchConfig,Os=0,Is=null,_s=null,Ps=0,Ts=0,Ms=Co(0),Ns=0,qs=null,As=0,Ds=0,zs=0,js=null,Fs=null,$s=0,Bs=1/0,Ws=null,Hs=!1,Us=null,Vs=null,Gs=!1,Ks=null,Zs=0,Xs=0,Js=null,Qs=-1,Ys=0;function ec(){return 0!=(6&Os)?Xe():-1!==Qs?Qs:Qs=Xe()}function tc(e){return 0==(1&e.mode)?1:0!=(2&Os)&&0!==Ps?Ps&-Ps:null!==ga.transition?(0===Ys&&(Ys=mt()),Ys):0!==(e=yt)?e:e=void 0===(e=window.event)?16:Xt(e.type)}function nc(e,t,r,o){if(50<Xs)throw Xs=0,Js=null,Error(n(185));bt(e,r,o),0!=(2&Os)&&e===Is||(e===Is&&(0==(2&Os)&&(Ds|=r),4===Ns&&lc(e,Ps)),rc(e,o),1===r&&0===Os&&0==(1&t.mode)&&(Bs=Xe()+500,Fo&&Wo()))}function rc(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-it(a),l=1<<i,s=o[i];-1===s?0!=(l&n)&&0==(l&r)||(o[i]=ft(l,t)):s<=t&&(e.expiredLanes|=l),a&=~l}}(e,t);var r=pt(e,e===Is?Ps:0);if(0===r)null!==n&&Ve(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ve(n),1===t)0===e.tag?function(e){Fo=!0,Bo(e)}(sc.bind(null,e)):Bo(sc.bind(null,e)),io((function(){0==(6&Os)&&Wo()})),n=null;else{switch(xt(r)){case 1:n=Ye;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Ic(n,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oc(e,t){if(Qs=-1,Ys=0,0!=(6&Os))throw Error(n(327));var r=e.callbackNode;if(wc()&&e.callbackNode!==r)return null;var o=pt(e,e===Is?Ps:0);if(0===o)return null;if(0!=(30&o)||0!=(o&e.expiredLanes)||t)t=gc(e,o);else{t=o;var a=Os;Os|=2;var i=hc();for(Is===e&&Ps===t||(Ws=null,Bs=Xe()+500,pc(e,t));;)try{vc();break}catch(t){fc(e,t)}La(),Cs.current=i,Os=a,null!==_s?t=0:(Is=null,Ps=0,t=Ns)}if(0!==t){if(2===t&&(0!==(a=ht(e))&&(o=a,t=ac(e,a))),1===t)throw r=qs,pc(e,0),lc(e,o),rc(e,Xe()),r;if(6===t)lc(e,o);else{if(a=e.current.alternate,0==(30&o)&&!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(!lr(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}(a)&&(2===(t=gc(e,o))&&(0!==(i=ht(e))&&(o=i,t=ac(e,i))),1===t))throw r=qs,pc(e,0),lc(e,o),rc(e,Xe()),r;switch(e.finishedWork=a,e.finishedLanes=o,t){case 0:case 1:throw Error(n(345));case 2:case 5:Sc(e,Fs,Ws);break;case 3:if(lc(e,o),(130023424&o)===o&&10<(t=$s+500-Xe())){if(0!==pt(e,0))break;if(((a=e.suspendedLanes)&o)!==o){ec(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=ro(Sc.bind(null,e,Fs,Ws),t);break}Sc(e,Fs,Ws);break;case 4:if(lc(e,o),(4194240&o)===o)break;for(t=e.eventTimes,a=-1;0<o;){var l=31-it(o);i=1<<l,(l=t[l])>a&&(a=l),o&=~i}if(o=a,10<(o=(120>(o=Xe()-o)?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*ks(o/1960))-o)){e.timeoutHandle=ro(Sc.bind(null,e,Fs,Ws),o);break}Sc(e,Fs,Ws);break;default:throw Error(n(329))}}}return rc(e,Xe()),e.callbackNode===r?oc.bind(null,e):null}function ac(e,t){var n=js;return e.current.memoizedState.isDehydrated&&(pc(e,t).flags|=256),2!==(e=gc(e,t))&&(t=Fs,Fs=n,null!==t&&ic(t)),e}function ic(e){null===Fs?Fs=e:Fs.push.apply(Fs,e)}function lc(e,t){for(t&=~zs,t&=~Ds,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-it(t),r=1<<n;e[n]=-1,t&=~r}}function sc(e){if(0!=(6&Os))throw Error(n(327));wc();var t=pt(e,0);if(0==(1&t))return rc(e,Xe()),null;var r=gc(e,t);if(0!==e.tag&&2===r){var o=ht(e);0!==o&&(t=o,r=ac(e,o))}if(1===r)throw r=qs,pc(e,0),lc(e,t),rc(e,Xe()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Sc(e,Fs,Ws),rc(e,Xe()),null}function cc(e,t){var n=Os;Os|=1;try{return e(t)}finally{0===(Os=n)&&(Bs=Xe()+500,Fo&&Wo())}}function uc(e){null!==Ks&&0===Ks.tag&&0==(6&Os)&&wc();var t=Os;Os|=1;var n=Ls.transition,r=yt;try{if(Ls.transition=null,yt=1,e)return e()}finally{yt=r,Ls.transition=n,0==(6&(Os=t))&&Wo()}}function dc(){Ts=Ms.current,Ro(Ms)}function pc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==_s)for(n=_s.return;null!==n;){var r=n;switch(na(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&No();break;case 3:Ja(),Ro(_o),Ro(Io),ri();break;case 5:Ya(r);break;case 4:Ja();break;case 13:case 19:Ro(ei);break;case 10:Oa(r.type._context);break;case 22:case 23:dc()}n=n.return}if(Is=e,_s=e=Mc(e.current,null),Ps=Ts=t,Ns=0,qs=null,zs=Ds=As=0,Fs=js=null,null!==Ta){for(t=0;t<Ta.length;t++)if(null!==(r=(n=Ta[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}Ta=null}return e}function fc(e,t){for(;;){var r=_s;try{if(La(),oi.current=Qi,ui){for(var o=li.memoizedState;null!==o;){var a=o.queue;null!==a&&(a.pending=null),o=o.next}ui=!1}if(ii=0,ci=si=li=null,di=!1,pi=0,Rs.current=null,null===r||null===r.return){Ns=1,qs=t,_s=null;break}e:{var i=e,l=r.return,s=r,c=t;if(t=Ps,s.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,d=s,p=d.tag;if(0==(1&d.mode)&&(0===p||11===p||15===p)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=gl(l);if(null!==h){h.flags&=-257,bl(h,l,s,0,t),1&h.mode&&ml(i,u,t),c=u;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(c),t.updateQueue=g}else m.add(c);break e}if(0==(1&t)){ml(i,u,t),mc();break e}c=Error(n(426))}else if(aa&&1&s.mode){var b=gl(l);if(null!==b){0==(65536&b.flags)&&(b.flags|=256),bl(b,l,s,0,t),ma(cl(c,s));break e}}i=c=cl(c,s),4!==Ns&&(Ns=2),null===js?js=[i]:js.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Ba(i,fl(0,c,t));break e;case 1:s=c;var v=i.type,y=i.stateNode;if(0==(128&i.flags)&&("function"==typeof v.getDerivedStateFromError||null!==y&&"function"==typeof y.componentDidCatch&&(null===Vs||!Vs.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t,Ba(i,hl(i,s,t));break e}}i=i.return}while(null!==i)}xc(r)}catch(e){t=e,_s===r&&null!==r&&(_s=r=r.return);continue}break}}function hc(){var e=Cs.current;return Cs.current=Qi,null===e?Qi:e}function mc(){0!==Ns&&3!==Ns&&2!==Ns||(Ns=4),null===Is||0==(268435455&As)&&0==(268435455&Ds)||lc(Is,Ps)}function gc(e,t){var r=Os;Os|=2;var o=hc();for(Is===e&&Ps===t||(Ws=null,pc(e,t));;)try{bc();break}catch(t){fc(e,t)}if(La(),Os=r,Cs.current=o,null!==_s)throw Error(n(261));return Is=null,Ps=0,Ns}function bc(){for(;null!==_s;)yc(_s)}function vc(){for(;null!==_s&&!Ge();)yc(_s)}function yc(e){var t=Es(e.alternate,e,Ts);e.memoizedProps=e.pendingProps,null===t?xc(e):_s=t,Rs.current=null}function xc(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Gl(n,t,Ts)))return void(_s=n)}else{if(null!==(n=Kl(n,t)))return n.flags&=32767,void(_s=n);if(null===e)return Ns=6,void(_s=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(_s=t);_s=t=e}while(null!==t);0===Ns&&(Ns=5)}function Sc(e,t,r){var o=yt,a=Ls.transition;try{Ls.transition=null,yt=1,function(e,t,r,o){do{wc()}while(null!==Ks);if(0!=(6&Os))throw Error(n(327));r=e.finishedWork;var a=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(n(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.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-it(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}(e,i),e===Is&&(_s=Is=null,Ps=0),0==(2064&r.subtreeFlags)&&0==(2064&r.flags)||Gs||(Gs=!0,Ic(tt,(function(){return wc(),null}))),i=0!=(15990&r.flags),0!=(15990&r.subtreeFlags)||i){i=Ls.transition,Ls.transition=null;var l=yt;yt=1;var s=Os;Os|=4,Rs.current=null,function(e,t){if(eo=Ht,fr(e=pr())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(o&&0!==o.rangeCount){r=o.anchorNode;var a=o.anchorOffset,i=o.focusNode;o=o.focusOffset;try{r.nodeType,i.nodeType}catch(e){r=null;break e}var l=0,s=-1,c=-1,u=0,d=0,p=e,f=null;t:for(;;){for(var h;p!==r||0!==a&&3!==p.nodeType||(s=l+a),p!==i||0!==o&&3!==p.nodeType||(c=l+o),3===p.nodeType&&(l+=p.nodeValue.length),null!==(h=p.firstChild);)f=p,p=h;for(;;){if(p===e)break t;if(f===r&&++u===a&&(s=l),f===i&&++d===o&&(c=l),null!==(h=p.nextSibling))break;f=(p=f).parentNode}p=h}r=-1===s||-1===c?null:{start:s,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(to={focusedElem:e,selectionRange:r},Ht=!1,Ql=t;null!==Ql;)if(e=(t=Ql).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Ql=e;else for(;null!==Ql;){t=Ql;try{var m=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!==m){var g=m.memoizedProps,b=m.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:nl(t.type,g),b);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(n(163))}}catch(e){kc(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Ql=e;break}Ql=t.return}m=ts,ts=!1}(e,r),gs(r,e),hr(to),Ht=!!eo,to=eo=null,e.current=r,vs(r),Ke(),Os=s,yt=l,Ls.transition=i}else e.current=r;if(Gs&&(Gs=!1,Ks=e,Zs=a),i=e.pendingLanes,0===i&&(Vs=null),function(e){if(at&&"function"==typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(ot,e,void 0,128==(128&e.current.flags))}catch(e){}}(r.stateNode),rc(e,Xe()),null!==t)for(o=e.onRecoverableError,r=0;r<t.length;r++)a=t[r],o(a.value,{componentStack:a.stack,digest:a.digest});if(Hs)throw Hs=!1,e=Us,Us=null,e;0!=(1&Zs)&&0!==e.tag&&wc(),i=e.pendingLanes,0!=(1&i)?e===Js?Xs++:(Xs=0,Js=e):Xs=0,Wo()}(e,t,r,o)}finally{Ls.transition=a,yt=o}return null}function wc(){if(null!==Ks){var e=xt(Zs),t=Ls.transition,r=yt;try{if(Ls.transition=null,yt=16>e?16:e,null===Ks)var o=!1;else{if(e=Ks,Ks=null,Zs=0,0!=(6&Os))throw Error(n(331));var a=Os;for(Os|=4,Ql=e.current;null!==Ql;){var i=Ql,l=i.child;if(0!=(16&Ql.flags)){var s=i.deletions;if(null!==s){for(var c=0;c<s.length;c++){var u=s[c];for(Ql=u;null!==Ql;){var d=Ql;switch(d.tag){case 0:case 11:case 15:ns(8,d,i)}var p=d.child;if(null!==p)p.return=d,Ql=p;else for(;null!==Ql;){var f=(d=Ql).sibling,h=d.return;if(as(d),d===u){Ql=null;break}if(null!==f){f.return=h,Ql=f;break}Ql=h}}}var m=i.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var b=g.sibling;g.sibling=null,g=b}while(null!==g)}}Ql=i}}if(0!=(2064&i.subtreeFlags)&&null!==l)l.return=i,Ql=l;else e:for(;null!==Ql;){if(0!=(2048&(i=Ql).flags))switch(i.tag){case 0:case 11:case 15:ns(9,i,i.return)}var v=i.sibling;if(null!==v){v.return=i.return,Ql=v;break e}Ql=i.return}}var y=e.current;for(Ql=y;null!==Ql;){var x=(l=Ql).child;if(0!=(2064&l.subtreeFlags)&&null!==x)x.return=l,Ql=x;else e:for(l=y;null!==Ql;){if(0!=(2048&(s=Ql).flags))try{switch(s.tag){case 0:case 11:case 15:rs(9,s)}}catch(e){kc(s,s.return,e)}if(s===l){Ql=null;break e}var S=s.sibling;if(null!==S){S.return=s.return,Ql=S;break e}Ql=s.return}}if(Os=a,Wo(),at&&"function"==typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(ot,e)}catch(e){}o=!0}return o}finally{yt=r,Ls.transition=t}}return!1}function Ec(e,t,n){e=Fa(e,t=fl(0,t=cl(n,t),1),1),t=ec(),null!==e&&(bt(e,1,t),rc(e,t))}function kc(e,t,n){if(3===e.tag)Ec(e,e,n);else for(;null!==t;){if(3===t.tag){Ec(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Vs||!Vs.has(r))){t=Fa(t,e=hl(t,e=cl(n,e),1),1),e=ec(),null!==t&&(bt(t,1,e),rc(t,e));break}}t=t.return}}function Cc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,Is===e&&(Ps&n)===n&&(4===Ns||3===Ns&&(130023424&Ps)===Ps&&500>Xe()-$s?pc(e,0):zs|=n),rc(e,t)}function Rc(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ut,0==(130023424&(ut<<=1))&&(ut=4194304)));var n=ec();null!==(e=qa(e,t))&&(bt(e,t,n),rc(e,n))}function Lc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Rc(e,n)}function Oc(e,t){var r=0;switch(e.tag){case 13:var o=e.stateNode,a=e.memoizedState;null!==a&&(r=a.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(n(314))}null!==o&&o.delete(t),Rc(e,r)}function Ic(e,t){return Ue(e,t)}function _c(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 Pc(e,t,n,r){return new _c(e,t,n,r)}function Tc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Mc(e,t){var n=e.alternate;return null===n?((n=Pc(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 Nc(e,t,r,o,a,i){var l=2;if(o=e,"function"==typeof e)Tc(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case S:return qc(r.children,a,i,t);case w:l=8,a|=8;break;case E:return(e=Pc(12,r,t,2|a)).elementType=E,e.lanes=i,e;case L:return(e=Pc(13,r,t,a)).elementType=L,e.lanes=i,e;case O:return(e=Pc(19,r,t,a)).elementType=O,e.lanes=i,e;case P:return Ac(r,a,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case k:l=10;break e;case C:l=9;break e;case R:l=11;break e;case I:l=14;break e;case _:l=16,o=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Pc(l,r,t,a)).elementType=e,t.type=o,t.lanes=i,t}function qc(e,t,n,r){return(e=Pc(7,e,r,t)).lanes=n,e}function Ac(e,t,n,r){return(e=Pc(22,e,r,t)).elementType=P,e.lanes=n,e.stateNode={isHidden:!1},e}function Dc(e,t,n){return(e=Pc(6,e,null,t)).lanes=n,e}function zc(e,t,n){return(t=Pc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function jc(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=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Fc(e,t,n,r,o,a,i,l,s){return e=new jc(e,t,n,l,s),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Pc(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Da(a),e}function $c(e){if(!e)return Oo;e:{if(je(e=e._reactInternals)!==e||1!==e.tag)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Mo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(n(171))}if(1===e.tag){var r=e.type;if(Mo(r))return Ao(e,r,t)}return t}function Bc(e,t,n,r,o,a,i,l,s){return(e=Fc(n,r,!0,e,0,a,0,l,s)).context=$c(null),n=e.current,(a=ja(r=ec(),o=tc(n))).callback=null!=t?t:null,Fa(n,a,o),e.current.lanes=o,bt(e,o,r),rc(e,r),e}function Wc(e,t,n,r){var o=t.current,a=ec(),i=tc(o);return n=$c(n),null===t.context?t.context=n:t.pendingContext=n,(t=ja(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Fa(o,t,i))&&(nc(e,o,i,a),$a(e,o,i)),i}function Hc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Uc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Vc(e,t){Uc(e,t),(e=e.alternate)&&Uc(e,t)}Es=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||_o.current)yl=!0;else{if(0==(e.lanes&r)&&0==(128&t.flags))return yl=!1,function(e,t,n){switch(t.tag){case 3:Il(t),ha();break;case 5:Qa(t);break;case 1:Mo(t.type)&&Do(t);break;case 4:Xa(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Lo(Ea,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Lo(ei,1&ei.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Dl(e,t,n):(Lo(ei,1&ei.current),null!==(e=Hl(e,t,n))?e.sibling:null);Lo(ei,1&ei.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Bl(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Lo(ei,ei.current),r)break;return null;case 22:case 23:return t.lanes=0,kl(e,t,n)}return Hl(e,t,n)}(e,t,r);yl=0!=(131072&e.flags)}else yl=!1,aa&&0!=(1048576&t.flags)&&ea(t,Go,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Wl(e,t),e=t.pendingProps;var a=To(t,Io.current);_a(t,r),a=gi(null,t,o,e,a,r);var i=bi();return t.flags|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Mo(o)?(i=!0,Do(t)):i=!1,t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,Da(t),a.updater=ol,t.stateNode=a,a._reactInternals=t,sl(t,o,e,r),t=Ol(null,t,o,!0,i,r)):(t.tag=0,aa&&i&&ta(t),xl(null,t,a,r),t=t.child),t;case 16:o=t.elementType;e:{switch(Wl(e,t),e=t.pendingProps,o=(a=o._init)(o._payload),t.type=o,a=t.tag=function(e){if("function"==typeof e)return Tc(e)?1:0;if(null!=e){if((e=e.$$typeof)===R)return 11;if(e===I)return 14}return 2}(o),e=nl(o,e),a){case 0:t=Rl(null,t,o,e,r);break e;case 1:t=Ll(null,t,o,e,r);break e;case 11:t=Sl(null,t,o,e,r);break e;case 14:t=wl(null,t,o,nl(o.type,e),r);break e}throw Error(n(306,o,""))}return t;case 0:return o=t.type,a=t.pendingProps,Rl(e,t,o,a=t.elementType===o?a:nl(o,a),r);case 1:return o=t.type,a=t.pendingProps,Ll(e,t,o,a=t.elementType===o?a:nl(o,a),r);case 3:e:{if(Il(t),null===e)throw Error(n(387));o=t.pendingProps,a=(i=t.memoizedState).element,za(e,t),Wa(t,o,null,r);var l=t.memoizedState;if(o=l.element,i.isDehydrated){if(i={element:o,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=_l(e,t,o,r,a=cl(Error(n(423)),t));break e}if(o!==a){t=_l(e,t,o,r,a=cl(Error(n(424)),t));break e}for(oa=co(t.stateNode.containerInfo.firstChild),ra=t,aa=!0,ia=null,r=wa(t,null,o,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(ha(),o===a){t=Hl(e,t,r);break e}xl(e,t,o,r)}t=t.child}return t;case 5:return Qa(t),null===e&&ua(t),o=t.type,a=t.pendingProps,i=null!==e?e.memoizedProps:null,l=a.children,no(o,a)?l=null:null!==i&&no(o,i)&&(t.flags|=32),Cl(e,t),xl(e,t,l,r),t.child;case 6:return null===e&&ua(t),null;case 13:return Dl(e,t,r);case 4:return Xa(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=Sa(t,null,o,r):xl(e,t,o,r),t.child;case 11:return o=t.type,a=t.pendingProps,Sl(e,t,o,a=t.elementType===o?a:nl(o,a),r);case 7:return xl(e,t,t.pendingProps,r),t.child;case 8:case 12:return xl(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(o=t.type._context,a=t.pendingProps,i=t.memoizedProps,l=a.value,Lo(Ea,o._currentValue),o._currentValue=l,null!==i)if(lr(i.value,l)){if(i.children===a.children&&!_o.current){t=Hl(e,t,r);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var s=i.dependencies;if(null!==s){l=i.child;for(var c=s.firstContext;null!==c;){if(c.context===o){if(1===i.tag){(c=ja(-1,r&-r)).tag=2;var u=i.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}i.lanes|=r,null!==(c=i.alternate)&&(c.lanes|=r),Ia(i.return,r,t),s.lanes|=r;break}c=c.next}}else if(10===i.tag)l=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(l=i.return))throw Error(n(341));l.lanes|=r,null!==(s=l.alternate)&&(s.lanes|=r),Ia(l,r,t),l=i.sibling}else l=i.child;if(null!==l)l.return=i;else for(l=i;null!==l;){if(l===t){l=null;break}if(null!==(i=l.sibling)){i.return=l.return,l=i;break}l=l.return}i=l}xl(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,o=t.pendingProps.children,_a(t,r),o=o(a=Pa(a)),t.flags|=1,xl(e,t,o,r),t.child;case 14:return a=nl(o=t.type,t.pendingProps),wl(e,t,o,a=nl(o.type,a),r);case 15:return El(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,a=t.pendingProps,a=t.elementType===o?a:nl(o,a),Wl(e,t),t.tag=1,Mo(o)?(e=!0,Do(t)):e=!1,_a(t,r),il(t,o,a),sl(t,o,a,r),Ol(null,t,o,!0,e,r);case 19:return Bl(e,t,r);case 22:return kl(e,t,r)}throw Error(n(156,t.tag))};var Gc="function"==typeof reportError?reportError:function(e){console.error(e)};function Kc(e){this._internalRoot=e}function Zc(e){this._internalRoot=e}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Jc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Qc(){}function Yc(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=Hc(i);l.call(e)}}Wc(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=Hc(i);a.call(e)}}var i=Bc(t,r,e,0,null,!1,0,"",Qc);return e._reactRootContainer=i,e[mo]=i.current,Br(8===e.nodeType?e.parentNode:e),uc(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=Hc(s);l.call(e)}}var s=Fc(e,0,!1,null,0,!1,0,"",Qc);return e._reactRootContainer=s,e[mo]=s.current,Br(8===e.nodeType?e.parentNode:e),uc((function(){Wc(t,s,n,r)})),s}(n,t,e,o,r);return Hc(i)}Zc.prototype.render=Kc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));Wc(e,t,null,null)},Zc.prototype.unmount=Kc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc((function(){Wc(null,e,null,null)})),t[mo]=null}},Zc.prototype.unstable_scheduleHydration=function(e){if(e){var t=kt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mt.length&&0!==t&&t<Mt[n].priority;n++);Mt.splice(n,0,e),0===n&&Dt(e)}},St=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(vt(t,1|n),rc(t,Xe()),0==(6&Os)&&(Bs=Xe()+500,Wo()))}break;case 13:uc((function(){var t=qa(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}})),Vc(e,1)}},wt=function(e){if(13===e.tag){var t=qa(e,134217728);if(null!==t)nc(t,e,134217728,ec());Vc(e,134217728)}},Et=function(e){if(13===e.tag){var t=tc(e),n=qa(e,t);if(null!==n)nc(n,e,t,ec());Vc(e,t)}},kt=function(){return yt},Ct=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},ye=function(e,t,r){switch(t){case"input":if(X(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var o=r[t];if(o!==e&&o.form===e.form){var a=wo(o);if(!a)throw Error(n(90));U(o),X(o,a)}}}break;case"textarea":re(e,r);break;case"select":null!=(t=r.value)&&ee(e,!!r.multiple,t,!1)}},Ce=cc,Re=uc;var eu={usingClientEntryPoint:!1,Events:[xo,So,wo,Ee,ke,cc]},tu={findFiberByHostInstance:yo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:v.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Be(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{ot=ru.inject(nu),at=ru}catch(e){}}return Ze.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,Ze.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xc(t))throw Error(n(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},Ze.createRoot=function(e,t){if(!Xc(e))throw Error(n(299));var r=!1,o="",a=Gc;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(o=t.identifierPrefix),void 0!==t.onRecoverableError&&(a=t.onRecoverableError)),t=Fc(e,1,!1,null,0,r,0,o,a),e[mo]=t.current,Br(8===e.nodeType?e.parentNode:e),new Kc(t)},Ze.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(n(188));throw e=Object.keys(e).join(","),Error(n(268,e))}return e=null===(e=Be(t))?null:e.stateNode},Ze.flushSync=function(e){return uc(e)},Ze.hydrate=function(e,t,r){if(!Jc(t))throw Error(n(200));return Yc(null,e,t,!0,r)},Ze.hydrateRoot=function(e,t,r){if(!Xc(e))throw Error(n(405));var o=null!=r&&r.hydratedSources||null,a=!1,i="",l=Gc;if(null!=r&&(!0===r.unstable_strictMode&&(a=!0),void 0!==r.identifierPrefix&&(i=r.identifierPrefix),void 0!==r.onRecoverableError&&(l=r.onRecoverableError)),t=Bc(t,null,e,1,null!=r?r:null,a,0,i,l),e[mo]=t.current,Br(e),o)for(e=0;e<o.length;e++)a=(a=(r=o[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,a]:t.mutableSourceEagerHydrationData.push(r,a);return new Zc(t)},Ze.render=function(e,t,r){if(!Jc(t))throw Error(n(200));return Yc(null,e,t,!1,r)},Ze.unmountComponentAtNode=function(e){if(!Jc(e))throw Error(n(40));return!!e._reactRootContainer&&(uc((function(){Yc(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},Ze.unstable_batchedUpdates=cc,Ze.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!Jc(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return Yc(e,t,r,!1,o)},Ze.version="18.3.1-next-f1338f8080-20240426",Ze}function et(){if(Ue)return Ke.exports;return Ue=1,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)}}(),Ke.exports=Ye(),Ke.exports}var tt=function(){if(Ve)return Ge;Ve=1;var e=et();return Ge.createRoot=e.createRoot,Ge.hydrateRoot=e.hydrateRoot,Ge}(),nt=n(tt);function rt(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."}var ot=Object.freeze({__proto__:null,default:rt}),at="$$material";function it(){return it=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},it.apply(this,arguments)}function lt(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 st(){return st=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},st.apply(this,arguments)}var ct=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){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),ut="-ms-",dt="-moz-",pt="-webkit-",ft="comm",ht="rule",mt="decl",gt="@keyframes",bt=Math.abs,vt=String.fromCharCode,yt=Object.assign;function xt(e,t){return 45^Ct(e,0)?(((t<<2^Ct(e,0))<<2^Ct(e,1))<<2^Ct(e,2))<<2^Ct(e,3):0}function St(e){return e.trim()}function wt(e,t){return(e=t.exec(e))?e[0]:e}function Et(e,t,n){return e.replace(t,n)}function kt(e,t){return e.indexOf(t)}function Ct(e,t){return 0|e.charCodeAt(t)}function Rt(e,t,n){return e.slice(t,n)}function Lt(e){return e.length}function Ot(e){return e.length}function It(e,t){return t.push(e),e}function _t(e,t){return e.map(t).join("")}var Pt=1,Tt=1,Mt=0,Nt=0,qt=0,At="";function Dt(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Pt,column:Tt,length:i,return:""}}function zt(e,t){return yt(Dt("",null,null,"",null,null,0),e,{length:-e.length},t)}function jt(){return qt=Nt>0?Ct(At,--Nt):0,Tt--,10===qt&&(Tt=1,Pt--),qt}function Ft(){return qt=Nt<Mt?Ct(At,Nt++):0,Tt++,10===qt&&(Tt=1,Pt++),qt}function $t(){return Ct(At,Nt)}function Bt(){return Nt}function Wt(e,t){return Rt(At,e,t)}function Ht(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 Ut(e){return Pt=Tt=1,Mt=Lt(At=e),Nt=0,[]}function Vt(e){return At="",e}function Gt(e){return St(Wt(Nt-1,Xt(91===e?e+2:40===e?e+1:e)))}function Kt(e){for(;(qt=$t())&&qt<33;)Ft();return Ht(e)>2||Ht(qt)>3?"":" "}function Zt(e,t){for(;--t&&Ft()&&!(qt<48||qt>102||qt>57&&qt<65||qt>70&&qt<97););return Wt(e,Bt()+(t<6&&32==$t()&&32==Ft()))}function Xt(e){for(;Ft();)switch(qt){case e:return Nt;case 34:case 39:34!==e&&39!==e&&Xt(qt);break;case 40:41===e&&Xt(e);break;case 92:Ft()}return Nt}function Jt(e,t){for(;Ft()&&e+qt!==57&&(e+qt!==84||47!==$t()););return"/*"+Wt(t,Nt-1)+"*"+vt(47===e?e:Ft())}function Qt(e){for(;!Ht($t());)Ft();return Wt(e,Nt)}function Yt(e){return Vt(en("",null,null,null,[""],e=Ut(e),0,[0],e))}function en(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,b=1,v=0,y="",x=o,S=a,w=r,E=y;g;)switch(h=v,v=Ft()){case 40:if(108!=h&&58==Ct(E,d-1)){-1!=kt(E+=Et(Gt(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:E+=Gt(v);break;case 9:case 10:case 13:case 32:E+=Kt(h);break;case 92:E+=Zt(Bt()-1,7);continue;case 47:switch($t()){case 42:case 47:It(nn(Jt(Ft(),Bt()),t,n),s);break;default:E+="/"}break;case 123*m:l[c++]=Lt(E)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==b&&(E=Et(E,/\f/g,"")),f>0&&Lt(E)-d&&It(f>32?rn(E+";",r,n,d-1):rn(Et(E," ","")+";",r,n,d-2),s);break;case 59:E+=";";default:if(It(w=tn(E,t,n,c,u,o,l,y,x=[],S=[],d),a),123===v)if(0===u)en(E,t,w,w,x,a,d,l,S);else switch(99===p&&110===Ct(E,3)?100:p){case 100:case 108:case 109:case 115:en(e,w,w,r&&It(tn(e,w,w,0,0,o,l,y,o,x=[],d),S),o,S,d,l,r?x:S);break;default:en(E,w,w,w,[""],S,0,l,S)}}c=u=f=0,m=b=1,y=E="",d=i;break;case 58:d=1+Lt(E),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==jt())continue;switch(E+=vt(v),v*m){case 38:b=u>0?1:(E+="\f",-1);break;case 44:l[c++]=(Lt(E)-1)*b,b=1;break;case 64:45===$t()&&(E+=Gt(Ft())),p=$t(),u=d=Lt(y=E+=Qt(Bt())),v++;break;case 45:45===h&&2==Lt(E)&&(m=0)}}return a}function tn(e,t,n,r,o,a,i,l,s,c,u){for(var d=o-1,p=0===o?a:[""],f=Ot(p),h=0,m=0,g=0;h<r;++h)for(var b=0,v=Rt(e,d+1,d=bt(m=i[h])),y=e;b<f;++b)(y=St(m>0?p[b]+" "+v:Et(v,/&\f/g,p[b])))&&(s[g++]=y);return Dt(e,t,n,0===o?ht:l,s,c,u)}function nn(e,t,n){return Dt(e,t,n,ft,vt(qt),Rt(e,2,-2),0)}function rn(e,t,n,r){return Dt(e,t,n,mt,Rt(e,0,r),Rt(e,r+1,-1),r)}function on(e,t){for(var n="",r=Ot(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function an(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case mt:return e.return=e.return||e.value;case ft:return"";case gt:return e.return=e.value+"{"+on(e.children,r)+"}";case ht:e.value=e.props.join(",")}return Lt(n=on(e.children,r))?e.return=e.value+"{"+n+"}":""}function ln(e){var t=Ot(e);return function(n,r,o,a){for(var i="",l=0;l<t;l++)i+=e[l](n,r,o,a)||"";return i}}function sn(e){return function(t){t.root||(t=t.return)&&e(t)}}function cn(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var un="undefined"!=typeof document,dn=function(e,t,n){for(var r=0,o=0;r=o,o=$t(),38===r&&12===o&&(t[n]=1),!Ht(o);)Ft();return Wt(e,Nt)},pn=function(e,t){return Vt(function(e,t){var n=-1,r=44;do{switch(Ht(r)){case 0:38===r&&12===$t()&&(t[n]=1),e[n]+=dn(Nt-1,t,n);break;case 2:e[n]+=Gt(r);break;case 4:if(44===r){e[++n]=58===$t()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=vt(r)}}while(r=Ft());return e}(Ut(e),t))},fn=new WeakMap,hn=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)||fn.get(n))&&!r){fn.set(e,!0);for(var o=[],a=pn(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]}}},mn=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function gn(e,t){switch(xt(e,t)){case 5103:return pt+"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 pt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return pt+e+dt+e+ut+e+e;case 6828:case 4268:return pt+e+ut+e+e;case 6165:return pt+e+ut+"flex-"+e+e;case 5187:return pt+e+Et(e,/(\w+).+(:[^]+)/,pt+"box-$1$2"+ut+"flex-$1$2")+e;case 5443:return pt+e+ut+"flex-item-"+Et(e,/flex-|-self/,"")+e;case 4675:return pt+e+ut+"flex-line-pack"+Et(e,/align-content|flex-|-self/,"")+e;case 5548:return pt+e+ut+Et(e,"shrink","negative")+e;case 5292:return pt+e+ut+Et(e,"basis","preferred-size")+e;case 6060:return pt+"box-"+Et(e,"-grow","")+pt+e+ut+Et(e,"grow","positive")+e;case 4554:return pt+Et(e,/([^-])(transform)/g,"$1"+pt+"$2")+e;case 6187:return Et(Et(Et(e,/(zoom-|grab)/,pt+"$1"),/(image-set)/,pt+"$1"),e,"")+e;case 5495:case 3959:return Et(e,/(image-set\([^]*)/,pt+"$1$`$1");case 4968:return Et(Et(e,/(.+:)(flex-)?(.*)/,pt+"box-pack:$3"+ut+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+pt+e+e;case 4095:case 3583:case 4068:case 2532:return Et(e,/(.+)-inline(.+)/,pt+"$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(Lt(e)-1-t>6)switch(Ct(e,t+1)){case 109:if(45!==Ct(e,t+4))break;case 102:return Et(e,/(.+:)(.+)-([^]+)/,"$1"+pt+"$2-$3$1"+dt+(108==Ct(e,t+3)?"$3":"$2-$3"))+e;case 115:return~kt(e,"stretch")?gn(Et(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ct(e,t+1))break;case 6444:switch(Ct(e,Lt(e)-3-(~kt(e,"!important")&&10))){case 107:return Et(e,":",":"+pt)+e;case 101:return Et(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+pt+(45===Ct(e,14)?"inline-":"")+"box$3$1"+pt+"$2$3$1"+ut+"$2box$3")+e}break;case 5936:switch(Ct(e,t+11)){case 114:return pt+e+ut+Et(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return pt+e+ut+Et(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return pt+e+ut+Et(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return pt+e+ut+e+e}return e}var bn,vn,yn,xn,Sn=un?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 cn((function(){return{}}))})),wn=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case mt:e.return=gn(e.value,e.length);break;case gt:return on([zt(e,{value:Et(e.value,"@","@"+pt)})],r);case ht:if(e.length)return _t(e.props,(function(t){switch(wt(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return on([zt(e,{props:[Et(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return on([zt(e,{props:[Et(t,/:(plac\w+)/,":"+pt+"input-$1")]}),zt(e,{props:[Et(t,/:(plac\w+)/,":-moz-$1")]}),zt(e,{props:[Et(t,/:(plac\w+)/,ut+"input-$1")]})],r)}return""}))}}],En=function(e){var t=e.key;if(un&&"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||wn,i={},l=[];un&&(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=[hn,mn];if(Sn){var c=[an],u=ln(s.concat(a,c)),d=Sn(a)(t),p=function(e,t){var n=t.name;return void 0===d[n]&&(d[n]=function(e){return on(Yt(e),u)}(e?e+"{"+t.styles+"}":t.styles)),d[n]};o=function(e,t,n,r){var o=t.name,a=p(e,t);return void 0===g.compat?(r&&(g.inserted[o]=!0),a):r?void(g.inserted[o]=a):a}}else{var f,h=[an,sn((function(e){f.insert(e)}))],m=ln(s.concat(a,h));o=function(e,t,n,r){f=n,function(e){on(Yt(e),m)}(e?e+"{"+t.styles+"}":t.styles),r&&(g.inserted[t.name]=!0)}}var g={key:t,sheet:new ct({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 g.sheet.hydrate(l),g},kn={exports:{}},Cn={};function Rn(){return vn||(vn=1,kn.exports=function(){if(bn)return Cn;bn=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case r:case a:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case s:case l:case c:case f:case p:case i:return e;default:return h}}case n:return h}}}return e=Symbol.for("react.module.reference"),Cn.ContextConsumer=l,Cn.ContextProvider=i,Cn.Element=t,Cn.ForwardRef=c,Cn.Fragment=r,Cn.Lazy=f,Cn.Memo=p,Cn.Portal=n,Cn.Profiler=a,Cn.StrictMode=o,Cn.Suspense=u,Cn.SuspenseList=d,Cn.isAsyncMode=function(){return!1},Cn.isConcurrentMode=function(){return!1},Cn.isContextConsumer=function(e){return m(e)===l},Cn.isContextProvider=function(e){return m(e)===i},Cn.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Cn.isForwardRef=function(e){return m(e)===c},Cn.isFragment=function(e){return m(e)===r},Cn.isLazy=function(e){return m(e)===f},Cn.isMemo=function(e){return m(e)===p},Cn.isPortal=function(e){return m(e)===n},Cn.isProfiler=function(e){return m(e)===a},Cn.isStrictMode=function(e){return m(e)===o},Cn.isSuspense=function(e){return m(e)===u},Cn.isSuspenseList=function(e){return m(e)===d},Cn.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===a||t===o||t===u||t===d||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===p||t.$$typeof===i||t.$$typeof===l||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},Cn.typeOf=m,Cn}()),kn.exports}!function(){if(xn)return yn;xn=1;var e=Rn(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function a(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var i=Object.defineProperty,l=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,d=Object.prototype;yn=function e(t,r,o){if("string"!=typeof r){if(d){var p=u(r);p&&p!==d&&e(t,p,o)}var f=l(r);s&&(f=f.concat(s(r)));for(var h=a(t),m=a(r),g=0;g<f.length;++g){var b=f[g];if(!(n[b]||o&&o[b]||m&&m[b]||h&&h[b])){var v=c(r,b);try{i(t,b,v)}catch(e){}}}}return t}}();var Ln="undefined"!=typeof document;function On(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var In=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===Ln&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},_n=function(e,t,n){In(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);Ln||void 0===i||(o+=i),a=a.next}while(void 0!==a);if(!Ln&&0!==o.length)return o}};var Pn={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,scale: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},Tn=/[A-Z]|^ms/g,Mn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Nn=function(e){return 45===e.charCodeAt(1)},qn=function(e){return null!=e&&"boolean"!=typeof e},An=cn((function(e){return Nn(e)?e:e.replace(Tn,"-$&").toLowerCase()})),Dn=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Mn,(function(e,t,n){return jn={name:t,styles:n,next:jn},t}))}return 1===Pn[e]||Nn(e)||"number"!=typeof t||0===t?t:t+"px"};function zn(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return jn={name:o.name,styles:o.styles,next:jn},o.name;var a=n;if(void 0!==a.styles){var i=a.next;if(void 0!==i)for(;void 0!==i;)jn={name:i.name,styles:i.styles,next:jn},i=i.next;return a.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=zn(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i){var l=i;null!=t&&void 0!==t[l]?r+=a+"{"+t[l]+"}":qn(l)&&(r+=An(a)+":"+Dn(a,l)+";")}else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=zn(e,t,i);switch(a){case"animation":case"animationName":r+=An(a)+":"+s+";";break;default:r+=a+"{"+s+"}"}}else for(var c=0;c<i.length;c++)qn(i[c])&&(r+=An(a)+":"+Dn(a,i[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var l=jn,s=n(e);return jn=l,zn(e,t,s)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var jn,Fn=/label:\s*([^\s;{]+)\s*(;|$)/g;function $n(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="";jn=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=zn(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++){if(o+=zn(n,t,e[i]),r)o+=a[i]}Fn.lastIndex=0;for(var l,s="";null!==(l=Fn.exec(o));)s+="-"+l[1];var c=function(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)}(o)+s;return{name:c,styles:o,next:jn}}var Bn="undefined"!=typeof document,Wn=function(e){return e()},Hn=!!y.useInsertionEffect&&y.useInsertionEffect,Un=Bn&&Hn||Wn,Vn=Hn||b.useLayoutEffect,Gn="undefined"!=typeof document,Kn=b.createContext("undefined"!=typeof HTMLElement?En({key:"css"}):null),Zn=Kn.Provider,Xn=function(e){return b.forwardRef((function(t,n){var r=b.useContext(Kn);return e(t,r,n)}))};Gn||(Xn=function(e){return function(t){var n=b.useContext(Kn);return null===n?(n=En({key:"css"}),b.createElement(Kn.Provider,{value:n},e(t,n))):e(t,n)}});var Jn,Qn,Yn=b.createContext({}),er={}.hasOwnProperty,tr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",nr=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;In(t,n,r);var o=Un((function(){return _n(t,n,r)}));if(!Gn&&void 0!==o){for(var a,i=n.name,l=n.next;void 0!==l;)i+=" "+l.name,l=l.next;return b.createElement("style",((a={})["data-emotion"]=t.key+" "+i,a.dangerouslySetInnerHTML={__html:o},a.nonce=t.sheet.nonce,a))}return null},rr=Xn((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[tr],a=[r],i="";"string"==typeof e.className?i=On(t.registered,a,e.className):null!=e.className&&(i=e.className+" ");var l=$n(a,void 0,b.useContext(Yn));i+=t.key+"-"+l.name;var s={};for(var c in e)er.call(e,c)&&"css"!==c&&c!==tr&&(s[c]=e[c]);return s.className=i,n&&(s.ref=n),b.createElement(b.Fragment,null,b.createElement(nr,{cache:t,serialized:l,isStringTag:"string"==typeof o}),b.createElement(o,s))})),or=rr,ar=function(e,t){var n=arguments;if(null==t||!er.call(t,"css"))return b.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=or,o[1]=function(e,t){var n={};for(var r in t)er.call(t,r)&&(n[r]=t[r]);return n[tr]=e,n}(e,t);for(var a=2;a<r;a++)o[a]=n[a];return b.createElement.apply(null,o)};Jn=ar||(ar={}),Qn||(Qn=Jn.JSX||(Jn.JSX={}));var ir=Xn((function(e,t){var n=$n([e.styles],void 0,b.useContext(Yn));if(!Gn){for(var r,o=n.name,a=n.styles,i=n.next;void 0!==i;)o+=" "+i.name,a+=i.styles,i=i.next;var l=!0===t.compat,s=t.insert("",{name:o,styles:a},t.sheet,l);return l?null:b.createElement("style",((r={})["data-emotion"]=t.key+"-global "+o,r.dangerouslySetInnerHTML={__html:s},r.nonce=t.sheet.nonce,r))}var c=b.useRef();return Vn((function(){var e=t.key+"-global",r=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+" "+n.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),r.hydrate([a])),c.current=[r,o],function(){r.flush()}}),[t]),Vn((function(){var e=c.current,r=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&_n(t,n.next,!0),r.tags.length){var o=r.tags[r.tags.length-1].nextElementSibling;r.before=o,r.flush()}t.insert("",n,r,!1)}}),[t,n.name]),null}));function lr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $n(t)}function sr(){var e=lr.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_"}}}var cr=/^((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|disableRemotePlayback|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)-.*))$/,ur="undefined"!=typeof document,dr=cn((function(e){return cr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),pr=function(e){return"theme"!==e},fr=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?dr:pr},hr=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},mr=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;In(t,n,r);var o=Un((function(){return _n(t,n,r)}));if(!ur&&void 0!==o){for(var a,i=n.name,l=n.next;void 0!==l;)i+=" "+l.name,l=l.next;return b.createElement("style",((a={})["data-emotion"]=t.key+" "+i,a.dangerouslySetInnerHTML={__html:o},a.nonce=t.sheet.nonce,a))}return null},gr=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=hr(t,n,a),s=l||fr(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{var p=u[0];d.push(p[0]);for(var f=u.length,h=1;h<f;h++)d.push(u[h],p[h])}var m=Xn((function(e,t,n){var r=c&&e.as||i,a="",u=[],p=e;if(null==e.theme){for(var f in p={},e)p[f]=e[f];p.theme=b.useContext(Yn)}"string"==typeof e.className?a=On(t.registered,u,e.className):null!=e.className&&(a=e.className+" ");var h=$n(d.concat(u),t.registered,p);a+=t.key+"-"+h.name,void 0!==o&&(a+=" "+o);var m=c&&void 0===l?fr(r):s,g={};for(var v in e)c&&"as"===v||m(v)&&(g[v]=e[v]);return g.className=a,n&&(g.ref=n),b.createElement(b.Fragment,null,b.createElement(mr,{cache:t,serialized:h,isStringTag:"string"==typeof r}),b.createElement(r,g))}));return m.displayName=void 0!==r?r:"Styled("+("string"==typeof i?i:i.displayName||i.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=i,m.__emotion_styles=d,m.__emotion_forwardProp=l,Object.defineProperty(m,"toString",{value:function(){return"."+o}}),m.withComponent=function(t,r){return e(t,st({},n,r,{shouldForwardProp:hr(m,r,!0)})).apply(void 0,d)},m}}.bind(null);["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){gr[e]=gr(e)}));var br=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}();var vr="undefined"!=typeof document,yr=function(e,t,n){for(var r=0,o=0;r=o,o=$t(),38===r&&12===o&&(t[n]=1),!Ht(o);)Ft();return Wt(e,Nt)},xr=function(e,t){return Vt(function(e,t){var n=-1,r=44;do{switch(Ht(r)){case 0:38===r&&12===$t()&&(t[n]=1),e[n]+=yr(Nt-1,t,n);break;case 2:e[n]+=Gt(r);break;case 4:if(44===r){e[++n]=58===$t()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=vt(r)}}while(r=Ft());return e}(Ut(e),t))},Sr=new WeakMap,wr=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)||Sr.get(n))&&!r){Sr.set(e,!0);for(var o=[],a=xr(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]}}},Er=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function kr(e,t){switch(xt(e,t)){case 5103:return pt+"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 pt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return pt+e+dt+e+ut+e+e;case 6828:case 4268:return pt+e+ut+e+e;case 6165:return pt+e+ut+"flex-"+e+e;case 5187:return pt+e+Et(e,/(\w+).+(:[^]+)/,pt+"box-$1$2"+ut+"flex-$1$2")+e;case 5443:return pt+e+ut+"flex-item-"+Et(e,/flex-|-self/,"")+e;case 4675:return pt+e+ut+"flex-line-pack"+Et(e,/align-content|flex-|-self/,"")+e;case 5548:return pt+e+ut+Et(e,"shrink","negative")+e;case 5292:return pt+e+ut+Et(e,"basis","preferred-size")+e;case 6060:return pt+"box-"+Et(e,"-grow","")+pt+e+ut+Et(e,"grow","positive")+e;case 4554:return pt+Et(e,/([^-])(transform)/g,"$1"+pt+"$2")+e;case 6187:return Et(Et(Et(e,/(zoom-|grab)/,pt+"$1"),/(image-set)/,pt+"$1"),e,"")+e;case 5495:case 3959:return Et(e,/(image-set\([^]*)/,pt+"$1$`$1");case 4968:return Et(Et(e,/(.+:)(flex-)?(.*)/,pt+"box-pack:$3"+ut+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+pt+e+e;case 4095:case 3583:case 4068:case 2532:return Et(e,/(.+)-inline(.+)/,pt+"$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(Lt(e)-1-t>6)switch(Ct(e,t+1)){case 109:if(45!==Ct(e,t+4))break;case 102:return Et(e,/(.+:)(.+)-([^]+)/,"$1"+pt+"$2-$3$1"+dt+(108==Ct(e,t+3)?"$3":"$2-$3"))+e;case 115:return~kt(e,"stretch")?kr(Et(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Ct(e,t+1))break;case 6444:switch(Ct(e,Lt(e)-3-(~kt(e,"!important")&&10))){case 107:return Et(e,":",":"+pt)+e;case 101:return Et(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+pt+(45===Ct(e,14)?"inline-":"")+"box$3$1"+pt+"$2$3$1"+ut+"$2box$3")+e}break;case 5936:switch(Ct(e,t+11)){case 114:return pt+e+ut+Et(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return pt+e+ut+Et(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return pt+e+ut+Et(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return pt+e+ut+e+e}return e}var Cr,Rr,Lr=vr?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 function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(){var e={};return function(t){return e[t]}}))})),Or=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case mt:e.return=kr(e.value,e.length);break;case gt:return on([zt(e,{value:Et(e.value,"@","@"+pt)})],r);case ht:if(e.length)return _t(e.props,(function(t){switch(wt(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return on([zt(e,{props:[Et(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return on([zt(e,{props:[Et(t,/:(plac\w+)/,":"+pt+"input-$1")]}),zt(e,{props:[Et(t,/:(plac\w+)/,":-moz-$1")]}),zt(e,{props:[Et(t,/:(plac\w+)/,ut+"input-$1")]})],r)}return""}))}}],Ir={exports:{}},_r={};function Pr(){return Rr||(Rr=1,Ir.exports=function(){if(Cr)return _r;Cr=1;var e=g(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(e,n,i){var l,s={},c=null,u=null;for(l in void 0!==i&&(c=""+i),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(u=n.ref),n)r.call(n,l)&&!a.hasOwnProperty(l)&&(s[l]=n[l]);if(e&&e.defaultProps)for(l in n=e.defaultProps)void 0===s[l]&&(s[l]=n[l]);return{$$typeof:t,type:e,key:c,ref:u,props:s,_owner:o.current}}return _r.Fragment=n,_r.jsx=i,_r.jsxs=i,_r}()),Ir.exports}var Tr=Pr();let Mr;function Nr(e){const{injectFirst:t,children:n}=e;return t&&Mr?Tr.jsx(Zn,{value:Mr,children:n}):n}function qr(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 Tr.jsx(ir,{styles:r})}
|
|
16
|
+
*/function Ye(){if(He)return Ze;He=1;var e=g(),t=Qe();function n(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 r=new Set,o={};function a(e,t){i(e,t),i(e+"Capture",t)}function i(e,t){for(o[e]=t,e=0;e<t.length;e++)r.add(t[e])}var l=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),s=Object.prototype.hasOwnProperty,c=/^[: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]*$/,u={},d={};function p(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 f={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){f[e]=new p(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];f[t]=new p(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){f[e]=new p(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){f[e]=new p(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){f[e]=new p(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){f[e]=new p(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){f[e]=new p(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){f[e]=new p(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){f[e]=new p(e,5,!1,e.toLowerCase(),null,!1,!1)}));var h=/[\-:]([a-z])/g;function m(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=f.hasOwnProperty(t)?f[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!!s.call(d,e)||!s.call(u,e)&&(c.test(e)?d[e]=!0:(u[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(h,m);f[t]=new p(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(h,m);f[t]=new p(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(h,m);f[t]=new p(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){f[e]=new p(e,1,!1,e.toLowerCase(),null,!1,!1)})),f.xlinkHref=new p("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){f[e]=new p(e,1,!1,e.toLowerCase(),null,!0,!0)}));var v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,y=Symbol.for("react.element"),x=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),C=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),T=Symbol.iterator;function M(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=T&&e[T]||e["@@iterator"])?e:null}var N,q=Object.assign;function D(e){if(void 0===N)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);N=t&&t[1]||""}return"\n"+N+e}var A=!1;function z(e,t){if(!e||A)return"";A=!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{A=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?D(e):""}function j(e){switch(e.tag){case 5:return D(e.type);case 16:return D("Lazy");case 13:return D("Suspense");case 19:return D("SuspenseList");case 0:case 2:case 15:return e=z(e.type,!1);case 11:return e=z(e.type.render,!1);case 1:return e=z(e.type,!0);default:return""}}function F(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 S:return"Fragment";case x:return"Portal";case E:return"Profiler";case w:return"StrictMode";case L:return"Suspense";case O:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case k:return(e._context.displayName||"Context")+".Provider";case R:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case I:return null!==(t=e.displayName||null)?t:F(e.type)||"Memo";case _:t=e._payload,e=e._init;try{return F(e(t))}catch(e){}}return null}function $(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 F(t);case 8:return t===w?"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 B(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function W(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function H(e){e._valueTracker||(e._valueTracker=function(e){var t=W(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 U(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=W(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function V(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 G(e,t){var n=t.checked;return q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function K(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=B(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 Z(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function X(e,t){Z(e,t);var n=B(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")?Q(e,t.type,n):t.hasOwnProperty("defaultValue")&&Q(e,t.type,B(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(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 Q(e,t,n){"number"===t&&V(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Y=Array.isArray;function ee(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=""+B(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 te(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(n(91));return q({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ne(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(n(92));if(Y(r)){if(1<r.length)throw Error(n(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:B(r)}}function re(e,t){var n=B(t.value),r=B(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 oe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ae(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 ie(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ae(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var le,se=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((le=le||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=le.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function ce(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 ue={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},de=["Webkit","ms","Moz","O"];function pe(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ue.hasOwnProperty(e)&&ue[e]?(""+t).trim():t+"px"}function fe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=pe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(ue).forEach((function(e){de.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ue[t]=ue[e]}))}));var he=q({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 me(e,t){if(t){if(he[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(n(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(n(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(n(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(n(62))}}function ge(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 be=null;function ve(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ye=null,xe=null,Se=null;function we(e){if(e=xo(e)){if("function"!=typeof ye)throw Error(n(280));var t=e.stateNode;t&&(t=wo(t),ye(e.stateNode,e.type,t))}}function Ee(e){xe?Se?Se.push(e):Se=[e]:xe=e}function ke(){if(xe){var e=xe,t=Se;if(Se=xe=null,we(e),t)for(e=0;e<t.length;e++)we(t[e])}}function Ce(e,t){return e(t)}function Re(){}var Le=!1;function Oe(e,t,n){if(Le)return e(t,n);Le=!0;try{return Ce(e,t,n)}finally{Le=!1,(null!==xe||null!==Se)&&(Re(),ke())}}function Ie(e,t){var r=e.stateNode;if(null===r)return null;var o=wo(r);if(null===o)return null;r=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(n(231,t,typeof r));return r}var _e=!1;if(l)try{var Pe={};Object.defineProperty(Pe,"passive",{get:function(){_e=!0}}),window.addEventListener("test",Pe,Pe),window.removeEventListener("test",Pe,Pe)}catch(e){_e=!1}function Te(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 Me=!1,Ne=null,qe=!1,De=null,Ae={onError:function(e){Me=!0,Ne=e}};function ze(e,t,n,r,o,a,i,l,s){Me=!1,Ne=null,Te.apply(Ae,arguments)}function je(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 Fe(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 $e(e){if(je(e)!==e)throw Error(n(188))}function Be(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=je(e)))throw Error(n(188));return t!==e?null:e}for(var r=e,o=t;;){var a=r.return;if(null===a)break;var i=a.alternate;if(null===i){if(null!==(o=a.return)){r=o;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===r)return $e(a),e;if(i===o)return $e(a),t;i=i.sibling}throw Error(n(188))}if(r.return!==o.return)r=a,o=i;else{for(var l=!1,s=a.child;s;){if(s===r){l=!0,r=a,o=i;break}if(s===o){l=!0,o=a,r=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===r){l=!0,r=i,o=a;break}if(s===o){l=!0,o=i,r=a;break}s=s.sibling}if(!l)throw Error(n(189))}}if(r.alternate!==o)throw Error(n(190))}if(3!==r.tag)throw Error(n(188));return r.stateNode.current===r?e:t}(e),null!==e?We(e):null}function We(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=We(e);if(null!==t)return t;e=e.sibling}return null}var Ue=t.unstable_scheduleCallback,Ve=t.unstable_cancelCallback,Ge=t.unstable_shouldYield,Ke=t.unstable_requestPaint,Xe=t.unstable_now,Je=t.unstable_getCurrentPriorityLevel,Ye=t.unstable_ImmediatePriority,et=t.unstable_UserBlockingPriority,tt=t.unstable_NormalPriority,nt=t.unstable_LowPriority,rt=t.unstable_IdlePriority,ot=null,at=null;var it=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(lt(e)/st|0)|0},lt=Math.log,st=Math.LN2;var ct=64,ut=4194304;function dt(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 pt(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=dt(l):0!==(a&=i)&&(r=dt(a))}else 0!==(i=n&~o)?r=dt(i):0!==a&&(r=dt(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-it(t)),r|=e[n],t&=~o;return r}function ft(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 ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return 0==(4194240&(ct<<=1))&&(ct=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function bt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-it(t)]=n}function vt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var yt=0;function xt(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var St,wt,Et,kt,Ct,Rt=!1,Lt=[],Ot=null,It=null,_t=null,Pt=new Map,Tt=new Map,Mt=[],Nt="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 qt(e,t){switch(e){case"focusin":case"focusout":Ot=null;break;case"dragenter":case"dragleave":It=null;break;case"mouseover":case"mouseout":_t=null;break;case"pointerover":case"pointerout":Pt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Tt.delete(t.pointerId)}}function Dt(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=xo(t))&&wt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function At(e){var t=yo(e.target);if(null!==t){var n=je(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Fe(n)))return e.blockedOn=t,void Ct(e.priority,(function(){Et(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 zt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=xo(n))&&wt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);be=r,n.target.dispatchEvent(r),be=null,t.shift()}return!0}function jt(e,t,n){zt(e)&&n.delete(t)}function Ft(){Rt=!1,null!==Ot&&zt(Ot)&&(Ot=null),null!==It&&zt(It)&&(It=null),null!==_t&&zt(_t)&&(_t=null),Pt.forEach(jt),Tt.forEach(jt)}function $t(e,n){e.blockedOn===n&&(e.blockedOn=null,Rt||(Rt=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Ft)))}function Bt(e){function t(t){return $t(t,e)}if(0<Lt.length){$t(Lt[0],e);for(var n=1;n<Lt.length;n++){var r=Lt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Ot&&$t(Ot,e),null!==It&&$t(It,e),null!==_t&&$t(_t,e),Pt.forEach(t),Tt.forEach(t),n=0;n<Mt.length;n++)(r=Mt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Mt.length&&null===(n=Mt[0]).blockedOn;)At(n),null===n.blockedOn&&Mt.shift()}var Wt=v.ReactCurrentBatchConfig,Ht=!0;function Ut(e,t,n,r){var o=yt,a=Wt.transition;Wt.transition=null;try{yt=1,Gt(e,t,n,r)}finally{yt=o,Wt.transition=a}}function Vt(e,t,n,r){var o=yt,a=Wt.transition;Wt.transition=null;try{yt=4,Gt(e,t,n,r)}finally{yt=o,Wt.transition=a}}function Gt(e,t,n,r){if(Ht){var o=Zt(e,t,n,r);if(null===o)Hr(e,t,r,Kt,n),qt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Ot=Dt(Ot,e,t,n,r,o),!0;case"dragenter":return It=Dt(It,e,t,n,r,o),!0;case"mouseover":return _t=Dt(_t,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return Pt.set(a,Dt(Pt.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,Tt.set(a,Dt(Tt.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(qt(e,r),4&t&&-1<Nt.indexOf(e)){for(;null!==o;){var a=xo(o);if(null!==a&&St(a),null===(a=Zt(e,t,n,r))&&Hr(e,t,r,Kt,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var Kt=null;function Zt(e,t,n,r){if(Kt=null,null!==(e=yo(e=ve(r))))if(null===(t=je(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Fe(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 Kt=e,null}function Xt(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(Je()){case Ye:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Jt=null,Qt=null,Yt=null;function en(){if(Yt)return Yt;var e,t,n=Qt,r=n.length,o="value"in Jt?Jt.value:Jt.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 Yt=o.slice(e,1<t?1-t:void 0)}function tn(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 nn(){return!0}function rn(){return!1}function on(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)?nn:rn,this.isPropagationStopped=rn,this}return q(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=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,ln,sn,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=on(cn),dn=q({},cn,{view:0,detail:0}),pn=on(dn),fn=q({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,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!==sn&&(sn&&"mousemove"===e.type?(an=e.screenX-sn.screenX,ln=e.screenY-sn.screenY):ln=an=0,sn=e),an)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),hn=on(fn),mn=on(q({},fn,{dataTransfer:0})),gn=on(q({},dn,{relatedTarget:0})),bn=on(q({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),vn=q({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yn=on(vn),xn=on(q({},cn,{data:0})),Sn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wn={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"},En={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=En[e])&&!!t[e]}function Cn(){return kn}var Rn=q({},dn,{key:function(e){if(e.key){var t=Sn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?wn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Ln=on(Rn),On=on(q({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),In=on(q({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),_n=on(q({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pn=q({},fn,{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}),Tn=on(Pn),Mn=[9,13,27,32],Nn=l&&"CompositionEvent"in window,qn=null;l&&"documentMode"in document&&(qn=document.documentMode);var Dn=l&&"TextEvent"in window&&!qn,An=l&&(!Nn||qn&&8<qn&&11>=qn),zn=String.fromCharCode(32),jn=!1;function Fn(e,t){switch(e){case"keyup":return-1!==Mn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $n(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1;var Wn={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 Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Un(e,t,n,r){Ee(r),0<(t=Vr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,Gn=null;function Kn(e){zr(e,0)}function Zn(e){if(U(So(e)))return e}function Xn(e,t){if("change"===e)return t}var Jn=!1;if(l){var Qn;if(l){var Yn="oninput"in document;if(!Yn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Yn="function"==typeof er.oninput}Qn=Yn}else Qn=!1;Jn=Qn&&(!document.documentMode||9<document.documentMode)}function tr(){Vn&&(Vn.detachEvent("onpropertychange",nr),Gn=Vn=null)}function nr(e){if("value"===e.propertyName&&Zn(Gn)){var t=[];Un(t,Gn,e,ve(e)),Oe(Kn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Gn=n,(Vn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Zn(Gn)}function ar(e,t){if("click"===e)return Zn(t)}function ir(e,t){if("input"===e||"change"===e)return Zn(t)}var lr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function sr(e,t){if(lr(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(!s.call(t,o)||!lr(e[o],t[o]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(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=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=V();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=V((e=t.contentWindow).document)}return t}function fr(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 hr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&fr(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=ur(n,a);var i=ur(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 mr=l&&"documentMode"in document&&11>=document.documentMode,gr=null,br=null,vr=null,yr=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==gr||gr!==V(r)||("selectionStart"in(r=gr)&&fr(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},vr&&sr(vr,r)||(vr=r,0<(r=Vr(br,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function Sr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var wr={animationend:Sr("Animation","AnimationEnd"),animationiteration:Sr("Animation","AnimationIteration"),animationstart:Sr("Animation","AnimationStart"),transitionend:Sr("Transition","TransitionEnd")},Er={},kr={};function Cr(e){if(Er[e])return Er[e];if(!wr[e])return e;var t,n=wr[e];for(t in n)if(n.hasOwnProperty(t)&&t in kr)return Er[e]=n[t];return e}l&&(kr=document.createElement("div").style,"AnimationEvent"in window||(delete wr.animationend.animation,delete wr.animationiteration.animation,delete wr.animationstart.animation),"TransitionEvent"in window||delete wr.transitionend.transition);var Rr=Cr("animationend"),Lr=Cr("animationiteration"),Or=Cr("animationstart"),Ir=Cr("transitionend"),_r=new Map,Pr="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 Tr(e,t){_r.set(e,t),a(t,[e])}for(var Mr=0;Mr<Pr.length;Mr++){var Nr=Pr[Mr];Tr(Nr.toLowerCase(),"on"+(Nr[0].toUpperCase()+Nr.slice(1)))}Tr(Rr,"onAnimationEnd"),Tr(Lr,"onAnimationIteration"),Tr(Or,"onAnimationStart"),Tr("dblclick","onDoubleClick"),Tr("focusin","onFocus"),Tr("focusout","onBlur"),Tr(Ir,"onTransitionEnd"),i("onMouseEnter",["mouseout","mouseover"]),i("onMouseLeave",["mouseout","mouseover"]),i("onPointerEnter",["pointerout","pointerover"]),i("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var qr="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(" "),Dr=new Set("cancel close invalid load scroll toggle".split(" ").concat(qr));function Ar(e,t,r){var o=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,o,a,i,l,s,c){if(ze.apply(this,arguments),Me){if(!Me)throw Error(n(198));var u=Ne;Me=!1,Ne=null,qe||(qe=!0,De=u)}}(o,t,void 0,e),e.currentTarget=null}function zr(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;Ar(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;Ar(o,l,c),a=s}}}if(qe)throw e=De,qe=!1,De=null,e}function jr(e,t){var n=t[go];void 0===n&&(n=t[go]=new Set);var r=e+"__bubble";n.has(r)||(Wr(t,e,2,!1),n.add(r))}function Fr(e,t,n){var r=0;t&&(r|=4),Wr(n,e,r,t)}var $r="_reactListening"+Math.random().toString(36).slice(2);function Br(e){if(!e[$r]){e[$r]=!0,r.forEach((function(t){"selectionchange"!==t&&(Dr.has(t)||Fr(t,!1,e),Fr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[$r]||(t[$r]=!0,Fr("selectionchange",!1,t))}}function Wr(e,t,n,r){switch(Xt(t)){case 1:var o=Ut;break;case 4:o=Vt;break;default:o=Gt}n=o.bind(null,t,n,e),o=void 0,!_e||"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 Hr(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=yo(l)))return;if(5===(s=i.tag)||6===s){r=a=i;continue e}l=l.parentNode}}r=r.return}Oe((function(){var r=a,o=ve(n),i=[];e:{var l=_r.get(e);if(void 0!==l){var s=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":s=Ln;break;case"focusin":c="focus",s=gn;break;case"focusout":c="blur",s=gn;break;case"beforeblur":case"afterblur":s=gn;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=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=In;break;case Rr:case Lr:case Or:s=bn;break;case Ir:s=_n;break;case"scroll":s=pn;break;case"wheel":s=Tn;break;case"copy":case"cut":case"paste":s=yn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=On}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=Ie(h,p))&&u.push(Ur(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===be||!(c=n.relatedTarget||n.fromElement)||!yo(c)&&!c[mo])&&(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)?yo(c):null)&&(c!==(d=je(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(s=null,c=r),s!==c)){if(u=hn,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=On,m="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==s?l:So(s),f=null==c?l:So(c),(l=new u(m,h+"leave",s,n,o)).target=d,l.relatedTarget=f,m=null,yo(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=Gr(f))h++;for(f=0,m=p;m;m=Gr(m))f++;for(;0<h-f;)u=Gr(u),h--;for(;0<f-h;)p=Gr(p),f--;for(;h--;){if(u===p||null!==p&&u===p.alternate)break e;u=Gr(u),p=Gr(p)}u=null}else u=null;null!==s&&Kr(i,l,s,u,!1),null!==c&&null!==d&&Kr(i,d,c,u,!0)}if("select"===(s=(l=r?So(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=Xn;else if(Hn(l))if(Jn)g=ir;else{g=or;var b=rr}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=ar);switch(g&&(g=g(e,r))?Un(i,g,n,o):(b&&b(e,l,r),"focusout"===e&&(b=l._wrapperState)&&b.controlled&&"number"===l.type&&Q(l,"number",l.value)),b=r?So(r):window,e){case"focusin":(Hn(b)||"true"===b.contentEditable)&&(gr=b,br=r,vr=null);break;case"focusout":vr=br=gr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,xr(i,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":xr(i,n,o)}var v;if(Nn)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 Bn?Fn(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(An&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==y?"onCompositionEnd"===y&&Bn&&(v=en()):(Qt="value"in(Jt=o)?Jt.value:Jt.textContent,Bn=!0)),0<(b=Vr(r,y)).length&&(y=new xn(y,e,null,n,o),i.push({event:y,listeners:b}),v?y.data=v:null!==(v=$n(n))&&(y.data=v))),(v=Dn?function(e,t){switch(e){case"compositionend":return $n(t);case"keypress":return 32!==t.which?null:(jn=!0,zn);case"textInput":return(e=t.data)===zn&&jn?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!Nn&&Fn(e,t)?(e=en(),Yt=Qt=Jt=null,Bn=!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 An&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Vr(r,"onBeforeInput")).length&&(o=new xn("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=v))}zr(i,t)}))}function Ur(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Vr(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=Ie(e,n))&&r.unshift(Ur(e,a,o)),null!=(a=Ie(e,t))&&r.push(Ur(e,a,o))),e=e.return}return r}function Gr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Kr(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=Ie(n,a))&&i.unshift(Ur(n,s,l)):o||null!=(s=Ie(n,a))&&i.push(Ur(n,s,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Zr=/\r\n?/g,Xr=/\u0000|\uFFFD/g;function Jr(e){return("string"==typeof e?e:""+e).replace(Zr,"\n").replace(Xr,"")}function Qr(e,t,r){if(t=Jr(t),Jr(e)!==t&&r)throw Error(n(425))}function Yr(){}var eo=null,to=null;function no(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 ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,ao="function"==typeof Promise?Promise:void 0,io="function"==typeof queueMicrotask?queueMicrotask:void 0!==ao?function(e){return ao.resolve(null).then(e).catch(lo)}:ro;function lo(e){setTimeout((function(){throw e}))}function so(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 Bt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Bt(t)}function co(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 uo(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 po=Math.random().toString(36).slice(2),fo="__reactFiber$"+po,ho="__reactProps$"+po,mo="__reactContainer$"+po,go="__reactEvents$"+po,bo="__reactListeners$"+po,vo="__reactHandles$"+po;function yo(e){var t=e[fo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[fo]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=uo(e);null!==e;){if(n=e[fo])return n;e=uo(e)}return t}n=(e=n).parentNode}return null}function xo(e){return!(e=e[fo]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function So(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(n(33))}function wo(e){return e[ho]||null}var Eo=[],ko=-1;function Co(e){return{current:e}}function Ro(e){0>ko||(e.current=Eo[ko],Eo[ko]=null,ko--)}function Lo(e,t){ko++,Eo[ko]=e.current,e.current=t}var Oo={},Io=Co(Oo),_o=Co(!1),Po=Oo;function To(e,t){var n=e.type.contextTypes;if(!n)return Oo;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 Mo(e){return null!=(e=e.childContextTypes)}function No(){Ro(_o),Ro(Io)}function qo(e,t,r){if(Io.current!==Oo)throw Error(n(168));Lo(Io,t),Lo(_o,r)}function Do(e,t,r){var o=e.stateNode;if(t=t.childContextTypes,"function"!=typeof o.getChildContext)return r;for(var a in o=o.getChildContext())if(!(a in t))throw Error(n(108,$(e)||"Unknown",a));return q({},r,o)}function Ao(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Oo,Po=Io.current,Lo(Io,e),Lo(_o,_o.current),!0}function zo(e,t,r){var o=e.stateNode;if(!o)throw Error(n(169));r?(e=Do(e,t,Po),o.__reactInternalMemoizedMergedChildContext=e,Ro(_o),Ro(Io),Lo(Io,e)):Ro(_o),Lo(_o,r)}var jo=null,Fo=!1,$o=!1;function Bo(e){null===jo?jo=[e]:jo.push(e)}function Wo(){if(!$o&&null!==jo){$o=!0;var e=0,t=yt;try{var n=jo;for(yt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}jo=null,Fo=!1}catch(t){throw null!==jo&&(jo=jo.slice(e+1)),Ue(Ye,Wo),t}finally{yt=t,$o=!1}}return null}var Ho=[],Uo=0,Vo=null,Go=0,Ko=[],Zo=0,Xo=null,Jo=1,Qo="";function Yo(e,t){Ho[Uo++]=Go,Ho[Uo++]=Vo,Vo=e,Go=t}function ea(e,t,n){Ko[Zo++]=Jo,Ko[Zo++]=Qo,Ko[Zo++]=Xo,Xo=e;var r=Jo;e=Qo;var o=32-it(r)-1;r&=~(1<<o),n+=1;var a=32-it(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,Jo=1<<32-it(t)+o|n<<o|r,Qo=a+e}else Jo=1<<a|n<<o|r,Qo=e}function ta(e){null!==e.return&&(Yo(e,1),ea(e,1,0))}function na(e){for(;e===Vo;)Vo=Ho[--Uo],Ho[Uo]=null,Go=Ho[--Uo],Ho[Uo]=null;for(;e===Xo;)Xo=Ko[--Zo],Ko[Zo]=null,Qo=Ko[--Zo],Ko[Zo]=null,Jo=Ko[--Zo],Ko[Zo]=null}var ra=null,oa=null,aa=!1,ia=null;function la(e,t){var n=Pc(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 sa(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,ra=e,oa=co(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ra=e,oa=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Xo?{id:Jo,overflow:Qo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Pc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ra=e,oa=null,!0);default:return!1}}function ca(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function ua(e){if(aa){var t=oa;if(t){var r=t;if(!sa(e,t)){if(ca(e))throw Error(n(418));t=co(r.nextSibling);var o=ra;t&&sa(e,t)?la(o,r):(e.flags=-4097&e.flags|2,aa=!1,ra=e)}}else{if(ca(e))throw Error(n(418));e.flags=-4097&e.flags|2,aa=!1,ra=e}}}function da(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ra=e}function pa(e){if(e!==ra)return!1;if(!aa)return da(e),aa=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oa)){if(ca(e))throw fa(),Error(n(418));for(;t;)la(e,t),t=co(t.nextSibling)}if(da(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(n(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){oa=co(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}oa=null}}else oa=ra?co(e.stateNode.nextSibling):null;return!0}function fa(){for(var e=oa;e;)e=co(e.nextSibling)}function ha(){oa=ra=null,aa=!1}function ma(e){null===ia?ia=[e]:ia.push(e)}var ga=v.ReactCurrentBatchConfig;function ba(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(n(309));var o=r.stateNode}if(!o)throw Error(n(147,e));var a=o,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=a.refs;null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(n(284));if(!r._owner)throw Error(n(290,e))}return e}function va(e,t){throw e=Object.prototype.toString.call(t),Error(n(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ya(e){return(0,e._init)(e._payload)}function xa(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function r(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function o(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 a(e,t){return(e=Mc(e,t)).index=0,e.sibling=null,e}function i(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 l(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Ac(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function c(e,t,n,r){var o=n.type;return o===S?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"==typeof o&&null!==o&&o.$$typeof===_&&ya(o)===t.type)?((r=a(t,n.props)).ref=ba(e,t,n),r.return=e,r):((r=Nc(n.type,n.key,n.props,null,e.mode,r)).ref=ba(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=zc(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=qc(n,e.mode,r,o)).return=e,t):((t=a(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Ac(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case y:return(n=Nc(t.type,t.key,t.props,null,e.mode,n)).ref=ba(e,null,t),n.return=e,n;case x:return(t=zc(t,e.mode,n)).return=e,t;case _:return p(e,(0,t._init)(t._payload),n)}if(Y(t)||M(t))return(t=qc(t,e.mode,n,null)).return=e,t;va(e,t)}return null}function f(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case y:return n.key===o?c(e,t,n,r):null;case x:return n.key===o?u(e,t,n,r):null;case _:return f(e,t,(o=n._init)(n._payload),r)}if(Y(n)||M(n))return null!==o?null:d(e,t,n,r,null);va(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case y:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case x:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case _:return h(e,t,n,(0,r._init)(r._payload),o)}if(Y(r)||M(r))return d(t,e=e.get(n)||null,r,o,null);va(t,r)}return null}function m(n,a,l,s){for(var c=null,u=null,d=a,m=a=0,g=null;null!==d&&m<l.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var b=f(n,d,l[m],s);if(null===b){null===d&&(d=g);break}e&&d&&null===b.alternate&&t(n,d),a=i(b,a,m),null===u?c=b:u.sibling=b,u=b,d=g}if(m===l.length)return r(n,d),aa&&Yo(n,m),c;if(null===d){for(;m<l.length;m++)null!==(d=p(n,l[m],s))&&(a=i(d,a,m),null===u?c=d:u.sibling=d,u=d);return aa&&Yo(n,m),c}for(d=o(n,d);m<l.length;m++)null!==(g=h(d,n,m,l[m],s))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),a=i(g,a,m),null===u?c=g:u.sibling=g,u=g);return e&&d.forEach((function(e){return t(n,e)})),aa&&Yo(n,m),c}function g(a,l,s,c){var u=M(s);if("function"!=typeof u)throw Error(n(150));if(null==(s=u.call(s)))throw Error(n(151));for(var d=u=null,m=l,g=l=0,b=null,v=s.next();null!==m&&!v.done;g++,v=s.next()){m.index>g?(b=m,m=null):b=m.sibling;var y=f(a,m,v.value,c);if(null===y){null===m&&(m=b);break}e&&m&&null===y.alternate&&t(a,m),l=i(y,l,g),null===d?u=y:d.sibling=y,d=y,m=b}if(v.done)return r(a,m),aa&&Yo(a,g),u;if(null===m){for(;!v.done;g++,v=s.next())null!==(v=p(a,v.value,c))&&(l=i(v,l,g),null===d?u=v:d.sibling=v,d=v);return aa&&Yo(a,g),u}for(m=o(a,m);!v.done;g++,v=s.next())null!==(v=h(m,a,g,v.value,c))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),l=i(v,l,g),null===d?u=v:d.sibling=v,d=v);return e&&m.forEach((function(e){return t(a,e)})),aa&&Yo(a,g),u}return function e(n,o,i,s){if("object"==typeof i&&null!==i&&i.type===S&&null===i.key&&(i=i.props.children),"object"==typeof i&&null!==i){switch(i.$$typeof){case y:e:{for(var c=i.key,u=o;null!==u;){if(u.key===c){if((c=i.type)===S){if(7===u.tag){r(n,u.sibling),(o=a(u,i.props.children)).return=n,n=o;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===_&&ya(c)===u.type){r(n,u.sibling),(o=a(u,i.props)).ref=ba(n,u,i),o.return=n,n=o;break e}r(n,u);break}t(n,u),u=u.sibling}i.type===S?((o=qc(i.props.children,n.mode,s,i.key)).return=n,n=o):((s=Nc(i.type,i.key,i.props,null,n.mode,s)).ref=ba(n,o,i),s.return=n,n=s)}return l(n);case x:e:{for(u=i.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===i.containerInfo&&o.stateNode.implementation===i.implementation){r(n,o.sibling),(o=a(o,i.children||[])).return=n,n=o;break e}r(n,o);break}t(n,o),o=o.sibling}(o=zc(i,n.mode,s)).return=n,n=o}return l(n);case _:return e(n,o,(u=i._init)(i._payload),s)}if(Y(i))return m(n,o,i,s);if(M(i))return g(n,o,i,s);va(n,i)}return"string"==typeof i&&""!==i||"number"==typeof i?(i=""+i,null!==o&&6===o.tag?(r(n,o.sibling),(o=a(o,i)).return=n,n=o):(r(n,o),(o=Ac(i,n.mode,s)).return=n,n=o),l(n)):r(n,o)}}var Sa=xa(!0),wa=xa(!1),Ea=Co(null),ka=null,Ca=null,Ra=null;function La(){Ra=Ca=ka=null}function Oa(e){var t=Ea.current;Ro(Ea),e._currentValue=t}function Ia(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 _a(e,t){ka=e,Ra=Ca=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(yl=!0),e.firstContext=null)}function Pa(e){var t=e._currentValue;if(Ra!==e)if(e={context:e,memoizedValue:t,next:null},null===Ca){if(null===ka)throw Error(n(308));Ca=e,ka.dependencies={lanes:0,firstContext:e}}else Ca=Ca.next=e;return t}var Ta=null;function Ma(e){null===Ta?Ta=[e]:Ta.push(e)}function Na(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ma(t)):(n.next=o.next,o.next=n),t.interleaved=n,qa(e,r)}function qa(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 Da=!1;function Aa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function za(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 ja(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Fa(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Os)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,qa(e,n)}return null===(o=r.interleaved)?(t.next=t,Ma(r)):(t.next=o.next,o.next=t),r.interleaved=t,qa(e,n)}function $a(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,vt(e,n)}}function Ba(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 Wa(e,t,n,r){var o=e.updateQueue;Da=!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=q({},d,p);break e;case 2:Da=!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);Ds|=i,e.lanes=i,e.memoizedState=d}}function Ha(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var o=e[t],a=o.callback;if(null!==a){if(o.callback=null,o=r,"function"!=typeof a)throw Error(n(191,a));a.call(o)}}}var Ua={},Va=Co(Ua),Ga=Co(Ua),Ka=Co(Ua);function Za(e){if(e===Ua)throw Error(n(174));return e}function Xa(e,t){switch(Lo(Ka,t),Lo(Ga,e),Lo(Va,Ua),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ie(null,"");break;default:t=ie(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ro(Va),Lo(Va,t)}function Ja(){Ro(Va),Ro(Ga),Ro(Ka)}function Qa(e){Za(Ka.current);var t=Za(Va.current),n=ie(t,e.type);t!==n&&(Lo(Ga,e),Lo(Va,n))}function Ya(e){Ga.current===e&&(Ro(Va),Ro(Ga))}var ei=Co(0);function ti(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 ni=[];function ri(){for(var e=0;e<ni.length;e++)ni[e]._workInProgressVersionPrimary=null;ni.length=0}var oi=v.ReactCurrentDispatcher,ai=v.ReactCurrentBatchConfig,ii=0,li=null,si=null,ci=null,ui=!1,di=!1,pi=0,fi=0;function hi(){throw Error(n(321))}function mi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lr(e[n],t[n]))return!1;return!0}function gi(e,t,r,o,a,i){if(ii=i,li=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oi.current=null===e||null===e.memoizedState?Yi:el,e=r(o,a),di){i=0;do{if(di=!1,pi=0,25<=i)throw Error(n(301));i+=1,ci=si=null,t.updateQueue=null,oi.current=tl,e=r(o,a)}while(di)}if(oi.current=Qi,t=null!==si&&null!==si.next,ii=0,ci=si=li=null,ui=!1,t)throw Error(n(300));return e}function bi(){var e=0!==pi;return pi=0,e}function vi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ci?li.memoizedState=ci=e:ci=ci.next=e,ci}function yi(){if(null===si){var e=li.alternate;e=null!==e?e.memoizedState:null}else e=si.next;var t=null===ci?li.memoizedState:ci.next;if(null!==t)ci=t,si=e;else{if(null===e)throw Error(n(310));e={memoizedState:(si=e).memoizedState,baseState:si.baseState,baseQueue:si.baseQueue,queue:si.queue,next:null},null===ci?li.memoizedState=ci=e:ci=ci.next=e}return ci}function xi(e,t){return"function"==typeof t?t(e):t}function Si(e){var t=yi(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=si,a=o.baseQueue,i=r.pending;if(null!==i){if(null!==a){var l=a.next;a.next=i.next,i.next=l}o.baseQueue=a=i,r.pending=null}if(null!==a){i=a.next,o=o.baseState;var s=l=null,c=null,u=i;do{var d=u.lane;if((ii&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),o=u.hasEagerState?u.eagerState:e(o,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(s=c=p,l=o):c=c.next=p,li.lanes|=d,Ds|=d}u=u.next}while(null!==u&&u!==i);null===c?l=o:c.next=s,lr(o,t.memoizedState)||(yl=!0),t.memoizedState=o,t.baseState=l,t.baseQueue=c,r.lastRenderedState=o}if(null!==(e=r.interleaved)){a=e;do{i=a.lane,li.lanes|=i,Ds|=i,a=a.next}while(a!==e)}else null===a&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function wi(e){var t=yi(),r=t.queue;if(null===r)throw Error(n(311));r.lastRenderedReducer=e;var o=r.dispatch,a=r.pending,i=t.memoizedState;if(null!==a){r.pending=null;var l=a=a.next;do{i=e(i,l.action),l=l.next}while(l!==a);lr(i,t.memoizedState)||(yl=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),r.lastRenderedState=i}return[i,o]}function Ei(){}function ki(e,t){var r=li,o=yi(),a=t(),i=!lr(o.memoizedState,a);if(i&&(o.memoizedState=a,yl=!0),o=o.queue,Di(Li.bind(null,r,o,e),[e]),o.getSnapshot!==t||i||null!==ci&&1&ci.memoizedState.tag){if(r.flags|=2048,Pi(9,Ri.bind(null,r,o,a,t),void 0,null),null===Is)throw Error(n(349));0!=(30&ii)||Ci(r,t,a)}return a}function Ci(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=li.updateQueue)?(t={lastEffect:null,stores:null},li.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ri(e,t,n,r){t.value=n,t.getSnapshot=r,Oi(t)&&Ii(e)}function Li(e,t,n){return n((function(){Oi(t)&&Ii(e)}))}function Oi(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lr(e,n)}catch(e){return!0}}function Ii(e){var t=qa(e,1);null!==t&&nc(t,e,1,-1)}function _i(e){var t=vi();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xi,lastRenderedState:e},t.queue=e,e=e.dispatch=Ki.bind(null,li,e),[t.memoizedState,e]}function Pi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=li.updateQueue)?(t={lastEffect:null,stores:null},li.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 Ti(){return yi().memoizedState}function Mi(e,t,n,r){var o=vi();li.flags|=e,o.memoizedState=Pi(1|t,n,void 0,void 0===r?null:r)}function Ni(e,t,n,r){var o=yi();r=void 0===r?null:r;var a=void 0;if(null!==si){var i=si.memoizedState;if(a=i.destroy,null!==r&&mi(r,i.deps))return void(o.memoizedState=Pi(t,n,a,r))}li.flags|=e,o.memoizedState=Pi(1|t,n,a,r)}function qi(e,t){return Mi(8390656,8,e,t)}function Di(e,t){return Ni(2048,8,e,t)}function Ai(e,t){return Ni(4,2,e,t)}function zi(e,t){return Ni(4,4,e,t)}function ji(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 Fi(e,t,n){return n=null!=n?n.concat([e]):null,Ni(4,4,ji.bind(null,t,e),n)}function $i(){}function Bi(e,t){var n=yi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&mi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Wi(e,t){var n=yi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&mi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Hi(e,t,n){return 0==(21&ii)?(e.baseState&&(e.baseState=!1,yl=!0),e.memoizedState=n):(lr(n,t)||(n=mt(),li.lanes|=n,Ds|=n,e.baseState=!0),t)}function Ui(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var r=ai.transition;ai.transition={};try{e(!1),t()}finally{yt=n,ai.transition=r}}function Vi(){return yi().memoizedState}function Gi(e,t,n){var r=tc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Zi(e))Xi(t,n);else if(null!==(n=Na(e,t,n,r))){nc(n,e,r,ec()),Ji(n,t,r)}}function Ki(e,t,n){var r=tc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Zi(e))Xi(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,lr(l,i)){var s=t.interleaved;return null===s?(o.next=o,Ma(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Na(e,t,o,r))&&(nc(n,e,r,o=ec()),Ji(n,t,r))}}function Zi(e){var t=e.alternate;return e===li||null!==t&&t===li}function Xi(e,t){di=ui=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ji(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,vt(e,n)}}var Qi={readContext:Pa,useCallback:hi,useContext:hi,useEffect:hi,useImperativeHandle:hi,useInsertionEffect:hi,useLayoutEffect:hi,useMemo:hi,useReducer:hi,useRef:hi,useState:hi,useDebugValue:hi,useDeferredValue:hi,useTransition:hi,useMutableSource:hi,useSyncExternalStore:hi,useId:hi,unstable_isNewReconciler:!1},Yi={readContext:Pa,useCallback:function(e,t){return vi().memoizedState=[e,void 0===t?null:t],e},useContext:Pa,useEffect:qi,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Mi(4194308,4,ji.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Mi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Mi(4,2,e,t)},useMemo:function(e,t){var n=vi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=vi();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=Gi.bind(null,li,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},vi().memoizedState=e},useState:_i,useDebugValue:$i,useDeferredValue:function(e){return vi().memoizedState=e},useTransition:function(){var e=_i(!1),t=e[0];return e=Ui.bind(null,e[1]),vi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var o=li,a=vi();if(aa){if(void 0===r)throw Error(n(407));r=r()}else{if(r=t(),null===Is)throw Error(n(349));0!=(30&ii)||Ci(o,t,r)}a.memoizedState=r;var i={value:r,getSnapshot:t};return a.queue=i,qi(Li.bind(null,o,i,e),[e]),o.flags|=2048,Pi(9,Ri.bind(null,o,i,r,t),void 0,null),r},useId:function(){var e=vi(),t=Is.identifierPrefix;if(aa){var n=Qo;t=":"+t+"R"+(n=(Jo&~(1<<32-it(Jo)-1)).toString(32)+n),0<(n=pi++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=fi++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},el={readContext:Pa,useCallback:Bi,useContext:Pa,useEffect:Di,useImperativeHandle:Fi,useInsertionEffect:Ai,useLayoutEffect:zi,useMemo:Wi,useReducer:Si,useRef:Ti,useState:function(){return Si(xi)},useDebugValue:$i,useDeferredValue:function(e){return Hi(yi(),si.memoizedState,e)},useTransition:function(){return[Si(xi)[0],yi().memoizedState]},useMutableSource:Ei,useSyncExternalStore:ki,useId:Vi,unstable_isNewReconciler:!1},tl={readContext:Pa,useCallback:Bi,useContext:Pa,useEffect:Di,useImperativeHandle:Fi,useInsertionEffect:Ai,useLayoutEffect:zi,useMemo:Wi,useReducer:wi,useRef:Ti,useState:function(){return wi(xi)},useDebugValue:$i,useDeferredValue:function(e){var t=yi();return null===si?t.memoizedState=e:Hi(t,si.memoizedState,e)},useTransition:function(){return[wi(xi)[0],yi().memoizedState]},useMutableSource:Ei,useSyncExternalStore:ki,useId:Vi,unstable_isNewReconciler:!1};function nl(e,t){if(e&&e.defaultProps){for(var n in t=q({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rl(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:q({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ol={isMounted:function(e){return!!(e=e._reactInternals)&&je(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),a=ja(r,o);a.payload=t,null!=n&&(a.callback=n),null!==(t=Fa(e,a,o))&&(nc(t,e,o,r),$a(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ec(),o=tc(e),a=ja(r,o);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=Fa(e,a,o))&&(nc(t,e,o,r),$a(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),r=tc(e),o=ja(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=Fa(e,o,r))&&(nc(t,e,r,n),$a(t,e,r))}};function al(e,t,n,r,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!sr(n,r)||!sr(o,a))}function il(e,t,n){var r=!1,o=Oo,a=t.contextType;return"object"==typeof a&&null!==a?a=Pa(a):(o=Mo(t)?Po:Io.current,a=(r=null!=(r=t.contextTypes))?To(e,o):Oo),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ol,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function ll(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&&ol.enqueueReplaceState(t,t.state,null)}function sl(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Aa(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=Pa(a):(a=Mo(t)?Po:Io.current,o.context=To(e,a)),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(rl(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&&ol.enqueueReplaceState(o,o.state,null),Wa(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function cl(e,t){try{var n="",r=t;do{n+=j(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 ul(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function dl(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var pl="function"==typeof WeakMap?WeakMap:Map;function fl(e,t,n){(n=ja(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hs||(Hs=!0,Us=r),dl(0,t)},n}function hl(e,t,n){(n=ja(-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(){dl(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){dl(0,t),"function"!=typeof r&&(null===Vs?Vs=new Set([this]):Vs.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ml(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new pl;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=Cc.bind(null,e,t,n),t.then(e,e))}function gl(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 bl(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=ja(-1,1)).tag=2,Fa(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var vl=v.ReactCurrentOwner,yl=!1;function xl(e,t,n,r){t.child=null===e?wa(t,null,n,r):Sa(t,e.child,n,r)}function Sl(e,t,n,r,o){n=n.render;var a=t.ref;return _a(t,o),r=gi(e,t,n,r,a,o),n=bi(),null===e||yl?(aa&&n&&ta(t),t.flags|=1,xl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hl(e,t,o))}function wl(e,t,n,r,o){if(null===e){var a=n.type;return"function"!=typeof a||Tc(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Nc(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,El(e,t,a,r,o))}if(a=e.child,0==(e.lanes&o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:sr)(i,r)&&e.ref===t.ref)return Hl(e,t,o)}return t.flags|=1,(e=Mc(a,r)).ref=t.ref,e.return=t,t.child=e}function El(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(sr(a,r)&&e.ref===t.ref){if(yl=!1,t.pendingProps=r=a,0==(e.lanes&o))return t.lanes=e.lanes,Hl(e,t,o);0!=(131072&e.flags)&&(yl=!0)}}return Rl(e,t,n,r,o)}function kl(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},Lo(Ms,Ts),Ts|=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,Lo(Ms,Ts),Ts|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,Lo(Ms,Ts),Ts|=r}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Lo(Ms,Ts),Ts|=r;return xl(e,t,o,n),t.child}function Cl(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Rl(e,t,n,r,o){var a=Mo(n)?Po:Io.current;return a=To(t,a),_a(t,o),n=gi(e,t,n,r,a,o),r=bi(),null===e||yl?(aa&&r&&ta(t),t.flags|=1,xl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hl(e,t,o))}function Ll(e,t,n,r,o){if(Mo(n)){var a=!0;Ao(t)}else a=!1;if(_a(t,o),null===t.stateNode)Wl(e,t),il(t,n,r),sl(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=Pa(c):c=To(t,c=Mo(n)?Po:Io.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)&&ll(t,i,r,c),Da=!1;var p=t.memoizedState;i.state=p,Wa(t,r,i,o),s=t.memoizedState,l!==r||p!==s||_o.current||Da?("function"==typeof u&&(rl(t,n,u,r),s=t.memoizedState),(l=Da||al(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,za(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:nl(t.type,l),i.props=c,d=t.pendingProps,p=i.context,"object"==typeof(s=n.contextType)&&null!==s?s=Pa(s):s=To(t,s=Mo(n)?Po:Io.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)&&ll(t,i,r,s),Da=!1,p=t.memoizedState,i.state=p,Wa(t,r,i,o);var h=t.memoizedState;l!==d||p!==h||_o.current||Da?("function"==typeof f&&(rl(t,n,f,r),h=t.memoizedState),(c=Da||al(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 Ol(e,t,n,r,a,o)}function Ol(e,t,n,r,o,a){Cl(e,t);var i=0!=(128&t.flags);if(!r&&!i)return o&&zo(t,n,!1),Hl(e,t,a);r=t.stateNode,vl.current=t;var l=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Sa(t,e.child,null,a),t.child=Sa(t,null,l,a)):xl(e,t,l,a),t.memoizedState=r.state,o&&zo(t,n,!0),t.child}function Il(e){var t=e.stateNode;t.pendingContext?qo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&qo(0,t.context,!1),Xa(e,t.containerInfo)}function _l(e,t,n,r,o){return ha(),ma(o),t.flags|=256,xl(e,t,n,r),t.child}var Pl,Tl,Ml,Nl,ql={dehydrated:null,treeContext:null,retryLane:0};function Dl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Al(e,t,r){var o,a=t.pendingProps,i=ei.current,l=!1,s=0!=(128&t.flags);if((o=s)||(o=(null===e||null!==e.memoizedState)&&0!=(2&i)),o?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Lo(ei,1&i),null===e)return ua(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):(s=a.children,e=a.fallback,l?(a=t.mode,l=t.child,s={mode:"hidden",children:s},0==(1&a)&&null!==l?(l.childLanes=0,l.pendingProps=s):l=Dc(s,a,0,null),e=qc(e,a,r,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Dl(r),t.memoizedState=ql,e):zl(t,s));if(null!==(i=e.memoizedState)&&null!==(o=i.dehydrated))return function(e,t,r,o,a,i,l){if(r)return 256&t.flags?(t.flags&=-257,jl(e,t,l,o=ul(Error(n(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=o.fallback,a=t.mode,o=Dc({mode:"visible",children:o.children},a,0,null),(i=qc(i,a,l,null)).flags|=2,o.return=t,i.return=t,o.sibling=i,t.child=o,0!=(1&t.mode)&&Sa(t,e.child,null,l),t.child.memoizedState=Dl(l),t.memoizedState=ql,i);if(0==(1&t.mode))return jl(e,t,l,null);if("$!"===a.data){if(o=a.nextSibling&&a.nextSibling.dataset)var s=o.dgst;return o=s,jl(e,t,l,o=ul(i=Error(n(419)),o,void 0))}if(s=0!=(l&e.childLanes),yl||s){if(null!==(o=Is)){switch(l&-l){case 4:a=2;break;case 16:a=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:a=32;break;case 536870912:a=268435456;break;default:a=0}0!==(a=0!=(a&(o.suspendedLanes|l))?0:a)&&a!==i.retryLane&&(i.retryLane=a,qa(e,a),nc(o,e,a,-1))}return mc(),jl(e,t,l,o=ul(Error(n(421))))}return"$?"===a.data?(t.flags|=128,t.child=e.child,t=Lc.bind(null,e),a._reactRetry=t,null):(e=i.treeContext,oa=co(a.nextSibling),ra=t,aa=!0,ia=null,null!==e&&(Ko[Zo++]=Jo,Ko[Zo++]=Qo,Ko[Zo++]=Xo,Jo=e.id,Qo=e.overflow,Xo=t),t=zl(t,o.children),t.flags|=4096,t)}(e,t,s,a,o,i,r);if(l){l=a.fallback,s=t.mode,o=(i=e.child).sibling;var c={mode:"hidden",children:a.children};return 0==(1&s)&&t.child!==i?((a=t.child).childLanes=0,a.pendingProps=c,t.deletions=null):(a=Mc(i,c)).subtreeFlags=14680064&i.subtreeFlags,null!==o?l=Mc(o,l):(l=qc(l,s,r,null)).flags|=2,l.return=t,a.return=t,a.sibling=l,t.child=a,a=l,l=t.child,s=null===(s=e.child.memoizedState)?Dl(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},l.memoizedState=s,l.childLanes=e.childLanes&~r,t.memoizedState=ql,a}return e=(l=e.child).sibling,a=Mc(l,{mode:"visible",children:a.children}),0==(1&t.mode)&&(a.lanes=r),a.return=t,a.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=a,t.memoizedState=null,a}function zl(e,t){return(t=Dc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function jl(e,t,n,r){return null!==r&&ma(r),Sa(t,e.child,null,n),(e=zl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Fl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ia(e.return,t,n)}function $l(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 Bl(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(xl(e,t,r.children,n),0!=(2&(r=ei.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&&Fl(e,n,t);else if(19===e.tag)Fl(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(Lo(ei,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===ti(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),$l(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===ti(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}$l(t,!0,n,null,a);break;case"together":$l(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Wl(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hl(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Ds|=t.lanes,0==(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(n(153));if(null!==t.child){for(r=Mc(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Mc(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Ul(e,t){if(!aa)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 Vl(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 Gl(e,t,r){var a=t.pendingProps;switch(na(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vl(t),null;case 1:case 17:return Mo(t.type)&&No(),Vl(t),null;case 3:return a=t.stateNode,Ja(),Ro(_o),Ro(Io),ri(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),null!==e&&null!==e.child||(pa(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==ia&&(ic(ia),ia=null))),Tl(e,t),Vl(t),null;case 5:Ya(t);var i=Za(Ka.current);if(r=t.type,null!==e&&null!=t.stateNode)Ml(e,t,r,a,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!a){if(null===t.stateNode)throw Error(n(166));return Vl(t),null}if(e=Za(Va.current),pa(t)){a=t.stateNode,r=t.type;var l=t.memoizedProps;switch(a[fo]=t,a[ho]=l,e=0!=(1&t.mode),r){case"dialog":jr("cancel",a),jr("close",a);break;case"iframe":case"object":case"embed":jr("load",a);break;case"video":case"audio":for(i=0;i<qr.length;i++)jr(qr[i],a);break;case"source":jr("error",a);break;case"img":case"image":case"link":jr("error",a),jr("load",a);break;case"details":jr("toggle",a);break;case"input":K(a,l),jr("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!l.multiple},jr("invalid",a);break;case"textarea":ne(a,l),jr("invalid",a)}for(var s in me(r,l),i=null,l)if(l.hasOwnProperty(s)){var c=l[s];"children"===s?"string"==typeof c?a.textContent!==c&&(!0!==l.suppressHydrationWarning&&Qr(a.textContent,c,e),i=["children",c]):"number"==typeof c&&a.textContent!==""+c&&(!0!==l.suppressHydrationWarning&&Qr(a.textContent,c,e),i=["children",""+c]):o.hasOwnProperty(s)&&null!=c&&"onScroll"===s&&jr("scroll",a)}switch(r){case"input":H(a),J(a,l,!0);break;case"textarea":H(a),oe(a);break;case"select":case"option":break;default:"function"==typeof l.onClick&&(a.onclick=Yr)}a=i,t.updateQueue=a,null!==a&&(t.flags|=4)}else{s=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ae(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof a.is?e=s.createElement(r,{is:a.is}):(e=s.createElement(r),"select"===r&&(s=e,a.multiple?s.multiple=!0:a.size&&(s.size=a.size))):e=s.createElementNS(e,r),e[fo]=t,e[ho]=a,Pl(e,t,!1,!1),t.stateNode=e;e:{switch(s=ge(r,a),r){case"dialog":jr("cancel",e),jr("close",e),i=a;break;case"iframe":case"object":case"embed":jr("load",e),i=a;break;case"video":case"audio":for(i=0;i<qr.length;i++)jr(qr[i],e);i=a;break;case"source":jr("error",e),i=a;break;case"img":case"image":case"link":jr("error",e),jr("load",e),i=a;break;case"details":jr("toggle",e),i=a;break;case"input":K(e,a),i=G(e,a),jr("invalid",e);break;case"option":default:i=a;break;case"select":e._wrapperState={wasMultiple:!!a.multiple},i=q({},a,{value:void 0}),jr("invalid",e);break;case"textarea":ne(e,a),i=te(e,a),jr("invalid",e)}for(l in me(r,i),c=i)if(c.hasOwnProperty(l)){var u=c[l];"style"===l?fe(e,u):"dangerouslySetInnerHTML"===l?null!=(u=u?u.__html:void 0)&&se(e,u):"children"===l?"string"==typeof u?("textarea"!==r||""!==u)&&ce(e,u):"number"==typeof u&&ce(e,""+u):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(o.hasOwnProperty(l)?null!=u&&"onScroll"===l&&jr("scroll",e):null!=u&&b(e,l,u,s))}switch(r){case"input":H(e),J(e,a,!1);break;case"textarea":H(e),oe(e);break;case"option":null!=a.value&&e.setAttribute("value",""+B(a.value));break;case"select":e.multiple=!!a.multiple,null!=(l=a.value)?ee(e,!!a.multiple,l,!1):null!=a.defaultValue&&ee(e,!!a.multiple,a.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Yr)}switch(r){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Vl(t),null;case 6:if(e&&null!=t.stateNode)Nl(e,t,e.memoizedProps,a);else{if("string"!=typeof a&&null===t.stateNode)throw Error(n(166));if(r=Za(Ka.current),Za(Va.current),pa(t)){if(a=t.stateNode,r=t.memoizedProps,a[fo]=t,(l=a.nodeValue!==r)&&null!==(e=ra))switch(e.tag){case 3:Qr(a.nodeValue,r,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Qr(a.nodeValue,r,0!=(1&e.mode))}l&&(t.flags|=4)}else(a=(9===r.nodeType?r:r.ownerDocument).createTextNode(a))[fo]=t,t.stateNode=a}return Vl(t),null;case 13:if(Ro(ei),a=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(aa&&null!==oa&&0!=(1&t.mode)&&0==(128&t.flags))fa(),ha(),t.flags|=98560,l=!1;else if(l=pa(t),null!==a&&null!==a.dehydrated){if(null===e){if(!l)throw Error(n(318));if(!(l=null!==(l=t.memoizedState)?l.dehydrated:null))throw Error(n(317));l[fo]=t}else ha(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Vl(t),l=!1}else null!==ia&&(ic(ia),ia=null),l=!0;if(!l)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=r,t):((a=null!==a)!==(null!==e&&null!==e.memoizedState)&&a&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ei.current)?0===Ns&&(Ns=3):mc())),null!==t.updateQueue&&(t.flags|=4),Vl(t),null);case 4:return Ja(),Tl(e,t),null===e&&Br(t.stateNode.containerInfo),Vl(t),null;case 10:return Oa(t.type._context),Vl(t),null;case 19:if(Ro(ei),null===(l=t.memoizedState))return Vl(t),null;if(a=0!=(128&t.flags),null===(s=l.rendering))if(a)Ul(l,!1);else{if(0!==Ns||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(s=ti(e))){for(t.flags|=128,Ul(l,!1),null!==(a=s.updateQueue)&&(t.updateQueue=a,t.flags|=4),t.subtreeFlags=0,a=r,r=t.child;null!==r;)e=a,(l=r).flags&=14680066,null===(s=l.alternate)?(l.childLanes=0,l.lanes=e,l.child=null,l.subtreeFlags=0,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=s.childLanes,l.lanes=s.lanes,l.child=s.child,l.subtreeFlags=0,l.deletions=null,l.memoizedProps=s.memoizedProps,l.memoizedState=s.memoizedState,l.updateQueue=s.updateQueue,l.type=s.type,e=s.dependencies,l.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Lo(ei,1&ei.current|2),t.child}e=e.sibling}null!==l.tail&&Xe()>Bs&&(t.flags|=128,a=!0,Ul(l,!1),t.lanes=4194304)}else{if(!a)if(null!==(e=ti(s))){if(t.flags|=128,a=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),Ul(l,!0),null===l.tail&&"hidden"===l.tailMode&&!s.alternate&&!aa)return Vl(t),null}else 2*Xe()-l.renderingStartTime>Bs&&1073741824!==r&&(t.flags|=128,a=!0,Ul(l,!1),t.lanes=4194304);l.isBackwards?(s.sibling=t.child,t.child=s):(null!==(r=l.last)?r.sibling=s:t.child=s,l.last=s)}return null!==l.tail?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=Xe(),t.sibling=null,r=ei.current,Lo(ei,a?1&r|2:1&r),t):(Vl(t),null);case 22:case 23:return dc(),a=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==a&&(t.flags|=8192),a&&0!=(1&t.mode)?0!=(1073741824&Ts)&&(Vl(t),6&t.subtreeFlags&&(t.flags|=8192)):Vl(t),null;case 24:case 25:return null}throw Error(n(156,t.tag))}function Kl(e,t){switch(na(t),t.tag){case 1:return Mo(t.type)&&No(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ja(),Ro(_o),Ro(Io),ri(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Ya(t),null;case 13:if(Ro(ei),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(n(340));ha()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ro(ei),null;case 4:return Ja(),null;case 10:return Oa(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Pl=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}},Tl=function(){},Ml=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,Za(Va.current);var i,l=null;switch(n){case"input":a=G(e,a),r=G(e,r),l=[];break;case"select":a=q({},a,{value:void 0}),r=q({},r,{value:void 0}),l=[];break;case"textarea":a=te(e,a),r=te(e,r),l=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(e.onclick=Yr)}for(u in me(n,r),n=null,a)if(!r.hasOwnProperty(u)&&a.hasOwnProperty(u)&&null!=a[u])if("style"===u){var s=a[u];for(i in s)s.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(o.hasOwnProperty(u)?l||(l=[]):(l=l||[]).push(u,null));for(u in r){var c=r[u];if(s=null!=a?a[u]:void 0,r.hasOwnProperty(u)&&c!==s&&(null!=c||null!=s))if("style"===u)if(s){for(i in s)!s.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&s[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(l||(l=[]),l.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,s=s?s.__html:void 0,null!=c&&s!==c&&(l=l||[]).push(u,c)):"children"===u?"string"!=typeof c&&"number"!=typeof c||(l=l||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(o.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&jr("scroll",e),l||s===c||(l=[])):(l=l||[]).push(u,c))}n&&(l=l||[]).push("style",n);var u=l;(t.updateQueue=u)&&(t.flags|=4)}},Nl=function(e,t,n,r){n!==r&&(t.flags|=4)};var Zl=!1,Xl=!1,Jl="function"==typeof WeakSet?WeakSet:Set,Ql=null;function Yl(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){kc(e,t,n)}else n.current=null}function es(e,t,n){try{n()}catch(n){kc(e,t,n)}}var ts=!1;function ns(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&&es(t,n,a)}o=o.next}while(o!==r)}}function rs(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 os(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 as(e){var t=e.alternate;null!==t&&(e.alternate=null,as(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[fo],delete t[ho],delete t[go],delete t[bo],delete t[vo])),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 is(e){return 5===e.tag||3===e.tag||4===e.tag}function ls(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||is(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 ss(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=Yr));else if(4!==r&&null!==(e=e.child))for(ss(e,t,n),e=e.sibling;null!==e;)ss(e,t,n),e=e.sibling}function cs(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(cs(e,t,n),e=e.sibling;null!==e;)cs(e,t,n),e=e.sibling}var us=null,ds=!1;function ps(e,t,n){for(n=n.child;null!==n;)fs(e,t,n),n=n.sibling}function fs(e,t,n){if(at&&"function"==typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Xl||Yl(n,t);case 6:var r=us,o=ds;us=null,ps(e,t,n),ds=o,null!==(us=r)&&(ds?(e=us,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):us.removeChild(n.stateNode));break;case 18:null!==us&&(ds?(e=us,n=n.stateNode,8===e.nodeType?so(e.parentNode,n):1===e.nodeType&&so(e,n),Bt(e)):so(us,n.stateNode));break;case 4:r=us,o=ds,us=n.stateNode.containerInfo,ds=!0,ps(e,t,n),us=r,ds=o;break;case 0:case 11:case 14:case 15:if(!Xl&&(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))&&es(n,t,i),o=o.next}while(o!==r)}ps(e,t,n);break;case 1:if(!Xl&&(Yl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){kc(n,t,e)}ps(e,t,n);break;case 21:ps(e,t,n);break;case 22:1&n.mode?(Xl=(r=Xl)||null!==n.memoizedState,ps(e,t,n),Xl=r):ps(e,t,n);break;default:ps(e,t,n)}}function hs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Jl),t.forEach((function(t){var r=Oc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ms(e,t){var r=t.deletions;if(null!==r)for(var o=0;o<r.length;o++){var a=r[o];try{var i=e,l=t,s=l;e:for(;null!==s;){switch(s.tag){case 5:us=s.stateNode,ds=!1;break e;case 3:case 4:us=s.stateNode.containerInfo,ds=!0;break e}s=s.return}if(null===us)throw Error(n(160));fs(i,l,a),us=null,ds=!1;var c=a.alternate;null!==c&&(c.return=null),a.return=null}catch(e){kc(a,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gs(t,e),t=t.sibling}function gs(e,t){var r=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ms(t,e),bs(e),4&o){try{ns(3,e,e.return),rs(3,e)}catch(t){kc(e,e.return,t)}try{ns(5,e,e.return)}catch(t){kc(e,e.return,t)}}break;case 1:ms(t,e),bs(e),512&o&&null!==r&&Yl(r,r.return);break;case 5:if(ms(t,e),bs(e),512&o&&null!==r&&Yl(r,r.return),32&e.flags){var a=e.stateNode;try{ce(a,"")}catch(t){kc(e,e.return,t)}}if(4&o&&null!=(a=e.stateNode)){var i=e.memoizedProps,l=null!==r?r.memoizedProps:i,s=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===s&&"radio"===i.type&&null!=i.name&&Z(a,i),ge(s,l);var u=ge(s,i);for(l=0;l<c.length;l+=2){var d=c[l],p=c[l+1];"style"===d?fe(a,p):"dangerouslySetInnerHTML"===d?se(a,p):"children"===d?ce(a,p):b(a,d,p,u)}switch(s){case"input":X(a,i);break;case"textarea":re(a,i);break;case"select":var f=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!i.multiple;var h=i.value;null!=h?ee(a,!!i.multiple,h,!1):f!==!!i.multiple&&(null!=i.defaultValue?ee(a,!!i.multiple,i.defaultValue,!0):ee(a,!!i.multiple,i.multiple?[]:"",!1))}a[ho]=i}catch(t){kc(e,e.return,t)}}break;case 6:if(ms(t,e),bs(e),4&o){if(null===e.stateNode)throw Error(n(162));a=e.stateNode,i=e.memoizedProps;try{a.nodeValue=i}catch(t){kc(e,e.return,t)}}break;case 3:if(ms(t,e),bs(e),4&o&&null!==r&&r.memoizedState.isDehydrated)try{Bt(t.containerInfo)}catch(t){kc(e,e.return,t)}break;case 4:default:ms(t,e),bs(e);break;case 13:ms(t,e),bs(e),8192&(a=e.child).flags&&(i=null!==a.memoizedState,a.stateNode.isHidden=i,!i||null!==a.alternate&&null!==a.alternate.memoizedState||($s=Xe())),4&o&&hs(e);break;case 22:if(d=null!==r&&null!==r.memoizedState,1&e.mode?(Xl=(u=Xl)||d,ms(t,e),Xl=u):ms(t,e),bs(e),8192&o){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!=(1&e.mode))for(Ql=e,d=e.child;null!==d;){for(p=Ql=d;null!==Ql;){switch(h=(f=Ql).child,f.tag){case 0:case 11:case 14:case 15:ns(4,f,f.return);break;case 1:Yl(f,f.return);var m=f.stateNode;if("function"==typeof m.componentWillUnmount){o=f,r=f.return;try{t=o,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){kc(o,r,e)}}break;case 5:Yl(f,f.return);break;case 22:if(null!==f.memoizedState){Ss(p);continue}}null!==h?(h.return=f,Ql=h):Ss(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{a=p.stateNode,u?"function"==typeof(i=a.style).setProperty?i.setProperty("display","none","important"):i.display="none":(s=p.stateNode,l=null!=(c=p.memoizedProps.style)&&c.hasOwnProperty("display")?c.display:null,s.style.display=pe("display",l))}catch(t){kc(e,e.return,t)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(t){kc(e,e.return,t)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:ms(t,e),bs(e),4&o&&hs(e);case 21:}}function bs(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(is(r)){var o=r;break e}r=r.return}throw Error(n(160))}switch(o.tag){case 5:var a=o.stateNode;32&o.flags&&(ce(a,""),o.flags&=-33),cs(e,ls(e),a);break;case 3:case 4:var i=o.stateNode.containerInfo;ss(e,ls(e),i);break;default:throw Error(n(161))}}catch(t){kc(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vs(e,t,n){Ql=e,ys(e)}function ys(e,t,n){for(var r=0!=(1&e.mode);null!==Ql;){var o=Ql,a=o.child;if(22===o.tag&&r){var i=null!==o.memoizedState||Zl;if(!i){var l=o.alternate,s=null!==l&&null!==l.memoizedState||Xl;l=Zl;var c=Xl;if(Zl=i,(Xl=s)&&!c)for(Ql=o;null!==Ql;)s=(i=Ql).child,22===i.tag&&null!==i.memoizedState?ws(o):null!==s?(s.return=i,Ql=s):ws(o);for(;null!==a;)Ql=a,ys(a),a=a.sibling;Ql=o,Zl=l,Xl=c}xs(e)}else 0!=(8772&o.subtreeFlags)&&null!==a?(a.return=o,Ql=a):xs(e)}}function xs(e){for(;null!==Ql;){var t=Ql;if(0!=(8772&t.flags)){var r=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Xl||rs(5,t);break;case 1:var o=t.stateNode;if(4&t.flags&&!Xl)if(null===r)o.componentDidMount();else{var a=t.elementType===t.type?r.memoizedProps:nl(t.type,r.memoizedProps);o.componentDidUpdate(a,r.memoizedState,o.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Ha(t,i,o);break;case 3:var l=t.updateQueue;if(null!==l){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Ha(t,l,r)}break;case 5:var s=t.stateNode;if(null===r&&4&t.flags){r=s;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&r.focus();break;case"img":c.src&&(r.src=c.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 u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&Bt(p)}}}break;default:throw Error(n(163))}Xl||512&t.flags&&os(t)}catch(e){kc(t,t.return,e)}}if(t===e){Ql=null;break}if(null!==(r=t.sibling)){r.return=t.return,Ql=r;break}Ql=t.return}}function Ss(e){for(;null!==Ql;){var t=Ql;if(t===e){Ql=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Ql=n;break}Ql=t.return}}function ws(e){for(;null!==Ql;){var t=Ql;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rs(4,t)}catch(e){kc(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){kc(t,o,e)}}var a=t.return;try{os(t)}catch(e){kc(t,a,e)}break;case 5:var i=t.return;try{os(t)}catch(e){kc(t,i,e)}}}catch(e){kc(t,t.return,e)}if(t===e){Ql=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Ql=l;break}Ql=t.return}}var Es,ks=Math.ceil,Cs=v.ReactCurrentDispatcher,Rs=v.ReactCurrentOwner,Ls=v.ReactCurrentBatchConfig,Os=0,Is=null,_s=null,Ps=0,Ts=0,Ms=Co(0),Ns=0,qs=null,Ds=0,As=0,zs=0,js=null,Fs=null,$s=0,Bs=1/0,Ws=null,Hs=!1,Us=null,Vs=null,Gs=!1,Ks=null,Zs=0,Xs=0,Js=null,Qs=-1,Ys=0;function ec(){return 0!=(6&Os)?Xe():-1!==Qs?Qs:Qs=Xe()}function tc(e){return 0==(1&e.mode)?1:0!=(2&Os)&&0!==Ps?Ps&-Ps:null!==ga.transition?(0===Ys&&(Ys=mt()),Ys):0!==(e=yt)?e:e=void 0===(e=window.event)?16:Xt(e.type)}function nc(e,t,r,o){if(50<Xs)throw Xs=0,Js=null,Error(n(185));bt(e,r,o),0!=(2&Os)&&e===Is||(e===Is&&(0==(2&Os)&&(As|=r),4===Ns&&lc(e,Ps)),rc(e,o),1===r&&0===Os&&0==(1&t.mode)&&(Bs=Xe()+500,Fo&&Wo()))}function rc(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-it(a),l=1<<i,s=o[i];-1===s?0!=(l&n)&&0==(l&r)||(o[i]=ft(l,t)):s<=t&&(e.expiredLanes|=l),a&=~l}}(e,t);var r=pt(e,e===Is?Ps:0);if(0===r)null!==n&&Ve(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ve(n),1===t)0===e.tag?function(e){Fo=!0,Bo(e)}(sc.bind(null,e)):Bo(sc.bind(null,e)),io((function(){0==(6&Os)&&Wo()})),n=null;else{switch(xt(r)){case 1:n=Ye;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Ic(n,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oc(e,t){if(Qs=-1,Ys=0,0!=(6&Os))throw Error(n(327));var r=e.callbackNode;if(wc()&&e.callbackNode!==r)return null;var o=pt(e,e===Is?Ps:0);if(0===o)return null;if(0!=(30&o)||0!=(o&e.expiredLanes)||t)t=gc(e,o);else{t=o;var a=Os;Os|=2;var i=hc();for(Is===e&&Ps===t||(Ws=null,Bs=Xe()+500,pc(e,t));;)try{vc();break}catch(t){fc(e,t)}La(),Cs.current=i,Os=a,null!==_s?t=0:(Is=null,Ps=0,t=Ns)}if(0!==t){if(2===t&&(0!==(a=ht(e))&&(o=a,t=ac(e,a))),1===t)throw r=qs,pc(e,0),lc(e,o),rc(e,Xe()),r;if(6===t)lc(e,o);else{if(a=e.current.alternate,0==(30&o)&&!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(!lr(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}(a)&&(2===(t=gc(e,o))&&(0!==(i=ht(e))&&(o=i,t=ac(e,i))),1===t))throw r=qs,pc(e,0),lc(e,o),rc(e,Xe()),r;switch(e.finishedWork=a,e.finishedLanes=o,t){case 0:case 1:throw Error(n(345));case 2:case 5:Sc(e,Fs,Ws);break;case 3:if(lc(e,o),(130023424&o)===o&&10<(t=$s+500-Xe())){if(0!==pt(e,0))break;if(((a=e.suspendedLanes)&o)!==o){ec(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=ro(Sc.bind(null,e,Fs,Ws),t);break}Sc(e,Fs,Ws);break;case 4:if(lc(e,o),(4194240&o)===o)break;for(t=e.eventTimes,a=-1;0<o;){var l=31-it(o);i=1<<l,(l=t[l])>a&&(a=l),o&=~i}if(o=a,10<(o=(120>(o=Xe()-o)?120:480>o?480:1080>o?1080:1920>o?1920:3e3>o?3e3:4320>o?4320:1960*ks(o/1960))-o)){e.timeoutHandle=ro(Sc.bind(null,e,Fs,Ws),o);break}Sc(e,Fs,Ws);break;default:throw Error(n(329))}}}return rc(e,Xe()),e.callbackNode===r?oc.bind(null,e):null}function ac(e,t){var n=js;return e.current.memoizedState.isDehydrated&&(pc(e,t).flags|=256),2!==(e=gc(e,t))&&(t=Fs,Fs=n,null!==t&&ic(t)),e}function ic(e){null===Fs?Fs=e:Fs.push.apply(Fs,e)}function lc(e,t){for(t&=~zs,t&=~As,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-it(t),r=1<<n;e[n]=-1,t&=~r}}function sc(e){if(0!=(6&Os))throw Error(n(327));wc();var t=pt(e,0);if(0==(1&t))return rc(e,Xe()),null;var r=gc(e,t);if(0!==e.tag&&2===r){var o=ht(e);0!==o&&(t=o,r=ac(e,o))}if(1===r)throw r=qs,pc(e,0),lc(e,t),rc(e,Xe()),r;if(6===r)throw Error(n(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Sc(e,Fs,Ws),rc(e,Xe()),null}function cc(e,t){var n=Os;Os|=1;try{return e(t)}finally{0===(Os=n)&&(Bs=Xe()+500,Fo&&Wo())}}function uc(e){null!==Ks&&0===Ks.tag&&0==(6&Os)&&wc();var t=Os;Os|=1;var n=Ls.transition,r=yt;try{if(Ls.transition=null,yt=1,e)return e()}finally{yt=r,Ls.transition=n,0==(6&(Os=t))&&Wo()}}function dc(){Ts=Ms.current,Ro(Ms)}function pc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==_s)for(n=_s.return;null!==n;){var r=n;switch(na(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&No();break;case 3:Ja(),Ro(_o),Ro(Io),ri();break;case 5:Ya(r);break;case 4:Ja();break;case 13:case 19:Ro(ei);break;case 10:Oa(r.type._context);break;case 22:case 23:dc()}n=n.return}if(Is=e,_s=e=Mc(e.current,null),Ps=Ts=t,Ns=0,qs=null,zs=As=Ds=0,Fs=js=null,null!==Ta){for(t=0;t<Ta.length;t++)if(null!==(r=(n=Ta[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}Ta=null}return e}function fc(e,t){for(;;){var r=_s;try{if(La(),oi.current=Qi,ui){for(var o=li.memoizedState;null!==o;){var a=o.queue;null!==a&&(a.pending=null),o=o.next}ui=!1}if(ii=0,ci=si=li=null,di=!1,pi=0,Rs.current=null,null===r||null===r.return){Ns=1,qs=t,_s=null;break}e:{var i=e,l=r.return,s=r,c=t;if(t=Ps,s.flags|=32768,null!==c&&"object"==typeof c&&"function"==typeof c.then){var u=c,d=s,p=d.tag;if(0==(1&d.mode)&&(0===p||11===p||15===p)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var h=gl(l);if(null!==h){h.flags&=-257,bl(h,l,s,0,t),1&h.mode&&ml(i,u,t),c=u;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(c),t.updateQueue=g}else m.add(c);break e}if(0==(1&t)){ml(i,u,t),mc();break e}c=Error(n(426))}else if(aa&&1&s.mode){var b=gl(l);if(null!==b){0==(65536&b.flags)&&(b.flags|=256),bl(b,l,s,0,t),ma(cl(c,s));break e}}i=c=cl(c,s),4!==Ns&&(Ns=2),null===js?js=[i]:js.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Ba(i,fl(0,c,t));break e;case 1:s=c;var v=i.type,y=i.stateNode;if(0==(128&i.flags)&&("function"==typeof v.getDerivedStateFromError||null!==y&&"function"==typeof y.componentDidCatch&&(null===Vs||!Vs.has(y)))){i.flags|=65536,t&=-t,i.lanes|=t,Ba(i,hl(i,s,t));break e}}i=i.return}while(null!==i)}xc(r)}catch(e){t=e,_s===r&&null!==r&&(_s=r=r.return);continue}break}}function hc(){var e=Cs.current;return Cs.current=Qi,null===e?Qi:e}function mc(){0!==Ns&&3!==Ns&&2!==Ns||(Ns=4),null===Is||0==(268435455&Ds)&&0==(268435455&As)||lc(Is,Ps)}function gc(e,t){var r=Os;Os|=2;var o=hc();for(Is===e&&Ps===t||(Ws=null,pc(e,t));;)try{bc();break}catch(t){fc(e,t)}if(La(),Os=r,Cs.current=o,null!==_s)throw Error(n(261));return Is=null,Ps=0,Ns}function bc(){for(;null!==_s;)yc(_s)}function vc(){for(;null!==_s&&!Ge();)yc(_s)}function yc(e){var t=Es(e.alternate,e,Ts);e.memoizedProps=e.pendingProps,null===t?xc(e):_s=t,Rs.current=null}function xc(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=Gl(n,t,Ts)))return void(_s=n)}else{if(null!==(n=Kl(n,t)))return n.flags&=32767,void(_s=n);if(null===e)return Ns=6,void(_s=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(_s=t);_s=t=e}while(null!==t);0===Ns&&(Ns=5)}function Sc(e,t,r){var o=yt,a=Ls.transition;try{Ls.transition=null,yt=1,function(e,t,r,o){do{wc()}while(null!==Ks);if(0!=(6&Os))throw Error(n(327));r=e.finishedWork;var a=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(n(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.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-it(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}(e,i),e===Is&&(_s=Is=null,Ps=0),0==(2064&r.subtreeFlags)&&0==(2064&r.flags)||Gs||(Gs=!0,Ic(tt,(function(){return wc(),null}))),i=0!=(15990&r.flags),0!=(15990&r.subtreeFlags)||i){i=Ls.transition,Ls.transition=null;var l=yt;yt=1;var s=Os;Os|=4,Rs.current=null,function(e,t){if(eo=Ht,fr(e=pr())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var o=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(o&&0!==o.rangeCount){r=o.anchorNode;var a=o.anchorOffset,i=o.focusNode;o=o.focusOffset;try{r.nodeType,i.nodeType}catch(e){r=null;break e}var l=0,s=-1,c=-1,u=0,d=0,p=e,f=null;t:for(;;){for(var h;p!==r||0!==a&&3!==p.nodeType||(s=l+a),p!==i||0!==o&&3!==p.nodeType||(c=l+o),3===p.nodeType&&(l+=p.nodeValue.length),null!==(h=p.firstChild);)f=p,p=h;for(;;){if(p===e)break t;if(f===r&&++u===a&&(s=l),f===i&&++d===o&&(c=l),null!==(h=p.nextSibling))break;f=(p=f).parentNode}p=h}r=-1===s||-1===c?null:{start:s,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(to={focusedElem:e,selectionRange:r},Ht=!1,Ql=t;null!==Ql;)if(e=(t=Ql).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,Ql=e;else for(;null!==Ql;){t=Ql;try{var m=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!==m){var g=m.memoizedProps,b=m.memoizedState,v=t.stateNode,y=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:nl(t.type,g),b);v.__reactInternalSnapshotBeforeUpdate=y}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(n(163))}}catch(e){kc(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Ql=e;break}Ql=t.return}m=ts,ts=!1}(e,r),gs(r,e),hr(to),Ht=!!eo,to=eo=null,e.current=r,vs(r),Ke(),Os=s,yt=l,Ls.transition=i}else e.current=r;if(Gs&&(Gs=!1,Ks=e,Zs=a),i=e.pendingLanes,0===i&&(Vs=null),function(e){if(at&&"function"==typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(ot,e,void 0,128==(128&e.current.flags))}catch(e){}}(r.stateNode),rc(e,Xe()),null!==t)for(o=e.onRecoverableError,r=0;r<t.length;r++)a=t[r],o(a.value,{componentStack:a.stack,digest:a.digest});if(Hs)throw Hs=!1,e=Us,Us=null,e;0!=(1&Zs)&&0!==e.tag&&wc(),i=e.pendingLanes,0!=(1&i)?e===Js?Xs++:(Xs=0,Js=e):Xs=0,Wo()}(e,t,r,o)}finally{Ls.transition=a,yt=o}return null}function wc(){if(null!==Ks){var e=xt(Zs),t=Ls.transition,r=yt;try{if(Ls.transition=null,yt=16>e?16:e,null===Ks)var o=!1;else{if(e=Ks,Ks=null,Zs=0,0!=(6&Os))throw Error(n(331));var a=Os;for(Os|=4,Ql=e.current;null!==Ql;){var i=Ql,l=i.child;if(0!=(16&Ql.flags)){var s=i.deletions;if(null!==s){for(var c=0;c<s.length;c++){var u=s[c];for(Ql=u;null!==Ql;){var d=Ql;switch(d.tag){case 0:case 11:case 15:ns(8,d,i)}var p=d.child;if(null!==p)p.return=d,Ql=p;else for(;null!==Ql;){var f=(d=Ql).sibling,h=d.return;if(as(d),d===u){Ql=null;break}if(null!==f){f.return=h,Ql=f;break}Ql=h}}}var m=i.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var b=g.sibling;g.sibling=null,g=b}while(null!==g)}}Ql=i}}if(0!=(2064&i.subtreeFlags)&&null!==l)l.return=i,Ql=l;else e:for(;null!==Ql;){if(0!=(2048&(i=Ql).flags))switch(i.tag){case 0:case 11:case 15:ns(9,i,i.return)}var v=i.sibling;if(null!==v){v.return=i.return,Ql=v;break e}Ql=i.return}}var y=e.current;for(Ql=y;null!==Ql;){var x=(l=Ql).child;if(0!=(2064&l.subtreeFlags)&&null!==x)x.return=l,Ql=x;else e:for(l=y;null!==Ql;){if(0!=(2048&(s=Ql).flags))try{switch(s.tag){case 0:case 11:case 15:rs(9,s)}}catch(e){kc(s,s.return,e)}if(s===l){Ql=null;break e}var S=s.sibling;if(null!==S){S.return=s.return,Ql=S;break e}Ql=s.return}}if(Os=a,Wo(),at&&"function"==typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(ot,e)}catch(e){}o=!0}return o}finally{yt=r,Ls.transition=t}}return!1}function Ec(e,t,n){e=Fa(e,t=fl(0,t=cl(n,t),1),1),t=ec(),null!==e&&(bt(e,1,t),rc(e,t))}function kc(e,t,n){if(3===e.tag)Ec(e,e,n);else for(;null!==t;){if(3===t.tag){Ec(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Vs||!Vs.has(r))){t=Fa(t,e=hl(t,e=cl(n,e),1),1),e=ec(),null!==t&&(bt(t,1,e),rc(t,e));break}}t=t.return}}function Cc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,Is===e&&(Ps&n)===n&&(4===Ns||3===Ns&&(130023424&Ps)===Ps&&500>Xe()-$s?pc(e,0):zs|=n),rc(e,t)}function Rc(e,t){0===t&&(0==(1&e.mode)?t=1:(t=ut,0==(130023424&(ut<<=1))&&(ut=4194304)));var n=ec();null!==(e=qa(e,t))&&(bt(e,t,n),rc(e,n))}function Lc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Rc(e,n)}function Oc(e,t){var r=0;switch(e.tag){case 13:var o=e.stateNode,a=e.memoizedState;null!==a&&(r=a.retryLane);break;case 19:o=e.stateNode;break;default:throw Error(n(314))}null!==o&&o.delete(t),Rc(e,r)}function Ic(e,t){return Ue(e,t)}function _c(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 Pc(e,t,n,r){return new _c(e,t,n,r)}function Tc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Mc(e,t){var n=e.alternate;return null===n?((n=Pc(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 Nc(e,t,r,o,a,i){var l=2;if(o=e,"function"==typeof e)Tc(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case S:return qc(r.children,a,i,t);case w:l=8,a|=8;break;case E:return(e=Pc(12,r,t,2|a)).elementType=E,e.lanes=i,e;case L:return(e=Pc(13,r,t,a)).elementType=L,e.lanes=i,e;case O:return(e=Pc(19,r,t,a)).elementType=O,e.lanes=i,e;case P:return Dc(r,a,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case k:l=10;break e;case C:l=9;break e;case R:l=11;break e;case I:l=14;break e;case _:l=16,o=null;break e}throw Error(n(130,null==e?e:typeof e,""))}return(t=Pc(l,r,t,a)).elementType=e,t.type=o,t.lanes=i,t}function qc(e,t,n,r){return(e=Pc(7,e,r,t)).lanes=n,e}function Dc(e,t,n,r){return(e=Pc(22,e,r,t)).elementType=P,e.lanes=n,e.stateNode={isHidden:!1},e}function Ac(e,t,n){return(e=Pc(6,e,null,t)).lanes=n,e}function zc(e,t,n){return(t=Pc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function jc(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=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Fc(e,t,n,r,o,a,i,l,s){return e=new jc(e,t,n,l,s),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Pc(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Aa(a),e}function $c(e){if(!e)return Oo;e:{if(je(e=e._reactInternals)!==e||1!==e.tag)throw Error(n(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Mo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(n(171))}if(1===e.tag){var r=e.type;if(Mo(r))return Do(e,r,t)}return t}function Bc(e,t,n,r,o,a,i,l,s){return(e=Fc(n,r,!0,e,0,a,0,l,s)).context=$c(null),n=e.current,(a=ja(r=ec(),o=tc(n))).callback=null!=t?t:null,Fa(n,a,o),e.current.lanes=o,bt(e,o,r),rc(e,r),e}function Wc(e,t,n,r){var o=t.current,a=ec(),i=tc(o);return n=$c(n),null===t.context?t.context=n:t.pendingContext=n,(t=ja(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Fa(o,t,i))&&(nc(e,o,i,a),$a(e,o,i)),i}function Hc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Uc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Vc(e,t){Uc(e,t),(e=e.alternate)&&Uc(e,t)}Es=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||_o.current)yl=!0;else{if(0==(e.lanes&r)&&0==(128&t.flags))return yl=!1,function(e,t,n){switch(t.tag){case 3:Il(t),ha();break;case 5:Qa(t);break;case 1:Mo(t.type)&&Ao(t);break;case 4:Xa(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Lo(Ea,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Lo(ei,1&ei.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Al(e,t,n):(Lo(ei,1&ei.current),null!==(e=Hl(e,t,n))?e.sibling:null);Lo(ei,1&ei.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return Bl(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Lo(ei,ei.current),r)break;return null;case 22:case 23:return t.lanes=0,kl(e,t,n)}return Hl(e,t,n)}(e,t,r);yl=0!=(131072&e.flags)}else yl=!1,aa&&0!=(1048576&t.flags)&&ea(t,Go,t.index);switch(t.lanes=0,t.tag){case 2:var o=t.type;Wl(e,t),e=t.pendingProps;var a=To(t,Io.current);_a(t,r),a=gi(null,t,o,e,a,r);var i=bi();return t.flags|=1,"object"==typeof a&&null!==a&&"function"==typeof a.render&&void 0===a.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Mo(o)?(i=!0,Ao(t)):i=!1,t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,Aa(t),a.updater=ol,t.stateNode=a,a._reactInternals=t,sl(t,o,e,r),t=Ol(null,t,o,!0,i,r)):(t.tag=0,aa&&i&&ta(t),xl(null,t,a,r),t=t.child),t;case 16:o=t.elementType;e:{switch(Wl(e,t),e=t.pendingProps,o=(a=o._init)(o._payload),t.type=o,a=t.tag=function(e){if("function"==typeof e)return Tc(e)?1:0;if(null!=e){if((e=e.$$typeof)===R)return 11;if(e===I)return 14}return 2}(o),e=nl(o,e),a){case 0:t=Rl(null,t,o,e,r);break e;case 1:t=Ll(null,t,o,e,r);break e;case 11:t=Sl(null,t,o,e,r);break e;case 14:t=wl(null,t,o,nl(o.type,e),r);break e}throw Error(n(306,o,""))}return t;case 0:return o=t.type,a=t.pendingProps,Rl(e,t,o,a=t.elementType===o?a:nl(o,a),r);case 1:return o=t.type,a=t.pendingProps,Ll(e,t,o,a=t.elementType===o?a:nl(o,a),r);case 3:e:{if(Il(t),null===e)throw Error(n(387));o=t.pendingProps,a=(i=t.memoizedState).element,za(e,t),Wa(t,o,null,r);var l=t.memoizedState;if(o=l.element,i.isDehydrated){if(i={element:o,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=_l(e,t,o,r,a=cl(Error(n(423)),t));break e}if(o!==a){t=_l(e,t,o,r,a=cl(Error(n(424)),t));break e}for(oa=co(t.stateNode.containerInfo.firstChild),ra=t,aa=!0,ia=null,r=wa(t,null,o,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(ha(),o===a){t=Hl(e,t,r);break e}xl(e,t,o,r)}t=t.child}return t;case 5:return Qa(t),null===e&&ua(t),o=t.type,a=t.pendingProps,i=null!==e?e.memoizedProps:null,l=a.children,no(o,a)?l=null:null!==i&&no(o,i)&&(t.flags|=32),Cl(e,t),xl(e,t,l,r),t.child;case 6:return null===e&&ua(t),null;case 13:return Al(e,t,r);case 4:return Xa(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=Sa(t,null,o,r):xl(e,t,o,r),t.child;case 11:return o=t.type,a=t.pendingProps,Sl(e,t,o,a=t.elementType===o?a:nl(o,a),r);case 7:return xl(e,t,t.pendingProps,r),t.child;case 8:case 12:return xl(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(o=t.type._context,a=t.pendingProps,i=t.memoizedProps,l=a.value,Lo(Ea,o._currentValue),o._currentValue=l,null!==i)if(lr(i.value,l)){if(i.children===a.children&&!_o.current){t=Hl(e,t,r);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var s=i.dependencies;if(null!==s){l=i.child;for(var c=s.firstContext;null!==c;){if(c.context===o){if(1===i.tag){(c=ja(-1,r&-r)).tag=2;var u=i.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}i.lanes|=r,null!==(c=i.alternate)&&(c.lanes|=r),Ia(i.return,r,t),s.lanes|=r;break}c=c.next}}else if(10===i.tag)l=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(l=i.return))throw Error(n(341));l.lanes|=r,null!==(s=l.alternate)&&(s.lanes|=r),Ia(l,r,t),l=i.sibling}else l=i.child;if(null!==l)l.return=i;else for(l=i;null!==l;){if(l===t){l=null;break}if(null!==(i=l.sibling)){i.return=l.return,l=i;break}l=l.return}i=l}xl(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,o=t.pendingProps.children,_a(t,r),o=o(a=Pa(a)),t.flags|=1,xl(e,t,o,r),t.child;case 14:return a=nl(o=t.type,t.pendingProps),wl(e,t,o,a=nl(o.type,a),r);case 15:return El(e,t,t.type,t.pendingProps,r);case 17:return o=t.type,a=t.pendingProps,a=t.elementType===o?a:nl(o,a),Wl(e,t),t.tag=1,Mo(o)?(e=!0,Ao(t)):e=!1,_a(t,r),il(t,o,a),sl(t,o,a,r),Ol(null,t,o,!0,e,r);case 19:return Bl(e,t,r);case 22:return kl(e,t,r)}throw Error(n(156,t.tag))};var Gc="function"==typeof reportError?reportError:function(e){console.error(e)};function Kc(e){this._internalRoot=e}function Zc(e){this._internalRoot=e}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Jc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Qc(){}function Yc(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=Hc(i);l.call(e)}}Wc(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=Hc(i);a.call(e)}}var i=Bc(t,r,e,0,null,!1,0,"",Qc);return e._reactRootContainer=i,e[mo]=i.current,Br(8===e.nodeType?e.parentNode:e),uc(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=Hc(s);l.call(e)}}var s=Fc(e,0,!1,null,0,!1,0,"",Qc);return e._reactRootContainer=s,e[mo]=s.current,Br(8===e.nodeType?e.parentNode:e),uc((function(){Wc(t,s,n,r)})),s}(n,t,e,o,r);return Hc(i)}Zc.prototype.render=Kc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(n(409));Wc(e,t,null,null)},Zc.prototype.unmount=Kc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc((function(){Wc(null,e,null,null)})),t[mo]=null}},Zc.prototype.unstable_scheduleHydration=function(e){if(e){var t=kt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mt.length&&0!==t&&t<Mt[n].priority;n++);Mt.splice(n,0,e),0===n&&At(e)}},St=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(vt(t,1|n),rc(t,Xe()),0==(6&Os)&&(Bs=Xe()+500,Wo()))}break;case 13:uc((function(){var t=qa(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}})),Vc(e,1)}},wt=function(e){if(13===e.tag){var t=qa(e,134217728);if(null!==t)nc(t,e,134217728,ec());Vc(e,134217728)}},Et=function(e){if(13===e.tag){var t=tc(e),n=qa(e,t);if(null!==n)nc(n,e,t,ec());Vc(e,t)}},kt=function(){return yt},Ct=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},ye=function(e,t,r){switch(t){case"input":if(X(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var o=r[t];if(o!==e&&o.form===e.form){var a=wo(o);if(!a)throw Error(n(90));U(o),X(o,a)}}}break;case"textarea":re(e,r);break;case"select":null!=(t=r.value)&&ee(e,!!r.multiple,t,!1)}},Ce=cc,Re=uc;var eu={usingClientEntryPoint:!1,Events:[xo,So,wo,Ee,ke,cc]},tu={findFiberByHostInstance:yo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},nu={bundleType:tu.bundleType,version:tu.version,rendererPackageName:tu.rendererPackageName,rendererConfig:tu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:v.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Be(e))?null:e.stateNode},findFiberByHostInstance:tu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ru.isDisabled&&ru.supportsFiber)try{ot=ru.inject(nu),at=ru}catch(e){}}return Ze.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eu,Ze.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xc(t))throw Error(n(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},Ze.createRoot=function(e,t){if(!Xc(e))throw Error(n(299));var r=!1,o="",a=Gc;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(o=t.identifierPrefix),void 0!==t.onRecoverableError&&(a=t.onRecoverableError)),t=Fc(e,1,!1,null,0,r,0,o,a),e[mo]=t.current,Br(8===e.nodeType?e.parentNode:e),new Kc(t)},Ze.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(n(188));throw e=Object.keys(e).join(","),Error(n(268,e))}return e=null===(e=Be(t))?null:e.stateNode},Ze.flushSync=function(e){return uc(e)},Ze.hydrate=function(e,t,r){if(!Jc(t))throw Error(n(200));return Yc(null,e,t,!0,r)},Ze.hydrateRoot=function(e,t,r){if(!Xc(e))throw Error(n(405));var o=null!=r&&r.hydratedSources||null,a=!1,i="",l=Gc;if(null!=r&&(!0===r.unstable_strictMode&&(a=!0),void 0!==r.identifierPrefix&&(i=r.identifierPrefix),void 0!==r.onRecoverableError&&(l=r.onRecoverableError)),t=Bc(t,null,e,1,null!=r?r:null,a,0,i,l),e[mo]=t.current,Br(e),o)for(e=0;e<o.length;e++)a=(a=(r=o[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,a]:t.mutableSourceEagerHydrationData.push(r,a);return new Zc(t)},Ze.render=function(e,t,r){if(!Jc(t))throw Error(n(200));return Yc(null,e,t,!1,r)},Ze.unmountComponentAtNode=function(e){if(!Jc(e))throw Error(n(40));return!!e._reactRootContainer&&(uc((function(){Yc(null,null,e,!1,(function(){e._reactRootContainer=null,e[mo]=null}))})),!0)},Ze.unstable_batchedUpdates=cc,Ze.unstable_renderSubtreeIntoContainer=function(e,t,r,o){if(!Jc(r))throw Error(n(200));if(null==e||void 0===e._reactInternals)throw Error(n(38));return Yc(e,t,r,!1,o)},Ze.version="18.3.1-next-f1338f8080-20240426",Ze}function et(){if(Ue)return Ke.exports;return Ue=1,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)}}(),Ke.exports=Ye(),Ke.exports}var tt=function(){if(Ve)return Ge;Ve=1;var e=et();return Ge.createRoot=e.createRoot,Ge.hydrateRoot=e.hydrateRoot,Ge}(),nt=n(tt);function rt(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."}var ot=Object.freeze({__proto__:null,default:rt}),at="$$material";function it(){return it=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},it.apply(null,arguments)}function lt(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}var st=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){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),ct="-ms-",ut="-moz-",dt="-webkit-",pt="comm",ft="rule",ht="decl",mt="@keyframes",gt=Math.abs,bt=String.fromCharCode,vt=Object.assign;function yt(e,t){return 45^kt(e,0)?(((t<<2^kt(e,0))<<2^kt(e,1))<<2^kt(e,2))<<2^kt(e,3):0}function xt(e){return e.trim()}function St(e,t){return(e=t.exec(e))?e[0]:e}function wt(e,t,n){return e.replace(t,n)}function Et(e,t){return e.indexOf(t)}function kt(e,t){return 0|e.charCodeAt(t)}function Ct(e,t,n){return e.slice(t,n)}function Rt(e){return e.length}function Lt(e){return e.length}function Ot(e,t){return t.push(e),e}function It(e,t){return e.map(t).join("")}var _t=1,Pt=1,Tt=0,Mt=0,Nt=0,qt="";function Dt(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:_t,column:Pt,length:i,return:""}}function At(e,t){return vt(Dt("",null,null,"",null,null,0),e,{length:-e.length},t)}function zt(){return Nt=Mt>0?kt(qt,--Mt):0,Pt--,10===Nt&&(Pt=1,_t--),Nt}function jt(){return Nt=Mt<Tt?kt(qt,Mt++):0,Pt++,10===Nt&&(Pt=1,_t++),Nt}function Ft(){return kt(qt,Mt)}function $t(){return Mt}function Bt(e,t){return Ct(qt,e,t)}function Wt(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 Ht(e){return _t=Pt=1,Tt=Rt(qt=e),Mt=0,[]}function Ut(e){return qt="",e}function Vt(e){return xt(Bt(Mt-1,Zt(91===e?e+2:40===e?e+1:e)))}function Gt(e){for(;(Nt=Ft())&&Nt<33;)jt();return Wt(e)>2||Wt(Nt)>3?"":" "}function Kt(e,t){for(;--t&&jt()&&!(Nt<48||Nt>102||Nt>57&&Nt<65||Nt>70&&Nt<97););return Bt(e,$t()+(t<6&&32==Ft()&&32==jt()))}function Zt(e){for(;jt();)switch(Nt){case e:return Mt;case 34:case 39:34!==e&&39!==e&&Zt(Nt);break;case 40:41===e&&Zt(e);break;case 92:jt()}return Mt}function Xt(e,t){for(;jt()&&e+Nt!==57&&(e+Nt!==84||47!==Ft()););return"/*"+Bt(t,Mt-1)+"*"+bt(47===e?e:jt())}function Jt(e){for(;!Wt(Ft());)jt();return Bt(e,Mt)}function Qt(e){return Ut(Yt("",null,null,null,[""],e=Ht(e),0,[0],e))}function Yt(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,b=1,v=0,y="",x=o,S=a,w=r,E=y;g;)switch(h=v,v=jt()){case 40:if(108!=h&&58==kt(E,d-1)){-1!=Et(E+=wt(Vt(v),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:E+=Vt(v);break;case 9:case 10:case 13:case 32:E+=Gt(h);break;case 92:E+=Kt($t()-1,7);continue;case 47:switch(Ft()){case 42:case 47:Ot(tn(Xt(jt(),$t()),t,n),s);break;default:E+="/"}break;case 123*m:l[c++]=Rt(E)*b;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:-1==b&&(E=wt(E,/\f/g,"")),f>0&&Rt(E)-d&&Ot(f>32?nn(E+";",r,n,d-1):nn(wt(E," ","")+";",r,n,d-2),s);break;case 59:E+=";";default:if(Ot(w=en(E,t,n,c,u,o,l,y,x=[],S=[],d),a),123===v)if(0===u)Yt(E,t,w,w,x,a,d,l,S);else switch(99===p&&110===kt(E,3)?100:p){case 100:case 108:case 109:case 115:Yt(e,w,w,r&&Ot(en(e,w,w,0,0,o,l,y,o,x=[],d),S),o,S,d,l,r?x:S);break;default:Yt(E,w,w,w,[""],S,0,l,S)}}c=u=f=0,m=b=1,y=E="",d=i;break;case 58:d=1+Rt(E),f=h;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==zt())continue;switch(E+=bt(v),v*m){case 38:b=u>0?1:(E+="\f",-1);break;case 44:l[c++]=(Rt(E)-1)*b,b=1;break;case 64:45===Ft()&&(E+=Vt(jt())),p=Ft(),u=d=Rt(y=E+=Jt($t())),v++;break;case 45:45===h&&2==Rt(E)&&(m=0)}}return a}function en(e,t,n,r,o,a,i,l,s,c,u){for(var d=o-1,p=0===o?a:[""],f=Lt(p),h=0,m=0,g=0;h<r;++h)for(var b=0,v=Ct(e,d+1,d=gt(m=i[h])),y=e;b<f;++b)(y=xt(m>0?p[b]+" "+v:wt(v,/&\f/g,p[b])))&&(s[g++]=y);return Dt(e,t,n,0===o?ft:l,s,c,u)}function tn(e,t,n){return Dt(e,t,n,pt,bt(Nt),Ct(e,2,-2),0)}function nn(e,t,n,r){return Dt(e,t,n,ht,Ct(e,0,r),Ct(e,r+1,-1),r)}function rn(e,t){for(var n="",r=Lt(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function on(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case ht:return e.return=e.return||e.value;case pt:return"";case mt:return e.return=e.value+"{"+rn(e.children,r)+"}";case ft:e.value=e.props.join(",")}return Rt(n=rn(e.children,r))?e.return=e.value+"{"+n+"}":""}function an(e){var t=Lt(e);return function(n,r,o,a){for(var i="",l=0;l<t;l++)i+=e[l](n,r,o,a)||"";return i}}function ln(e){return function(t){t.root||(t=t.return)&&e(t)}}var sn=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 cn(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var un="undefined"!=typeof document,dn=function(e,t,n){for(var r=0,o=0;r=o,o=Ft(),38===r&&12===o&&(t[n]=1),!Wt(o);)jt();return Bt(e,Mt)},pn=function(e,t){return Ut(function(e,t){var n=-1,r=44;do{switch(Wt(r)){case 0:38===r&&12===Ft()&&(t[n]=1),e[n]+=dn(Mt-1,t,n);break;case 2:e[n]+=Vt(r);break;case 4:if(44===r){e[++n]=58===Ft()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=bt(r)}}while(r=jt());return e}(Ht(e),t))},fn=new WeakMap,hn=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)||fn.get(n))&&!r){fn.set(e,!0);for(var o=[],a=pn(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]}}},mn=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function gn(e,t){switch(yt(e,t)){case 5103:return dt+"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 dt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return dt+e+ut+e+ct+e+e;case 6828:case 4268:return dt+e+ct+e+e;case 6165:return dt+e+ct+"flex-"+e+e;case 5187:return dt+e+wt(e,/(\w+).+(:[^]+)/,dt+"box-$1$2"+ct+"flex-$1$2")+e;case 5443:return dt+e+ct+"flex-item-"+wt(e,/flex-|-self/,"")+e;case 4675:return dt+e+ct+"flex-line-pack"+wt(e,/align-content|flex-|-self/,"")+e;case 5548:return dt+e+ct+wt(e,"shrink","negative")+e;case 5292:return dt+e+ct+wt(e,"basis","preferred-size")+e;case 6060:return dt+"box-"+wt(e,"-grow","")+dt+e+ct+wt(e,"grow","positive")+e;case 4554:return dt+wt(e,/([^-])(transform)/g,"$1"+dt+"$2")+e;case 6187:return wt(wt(wt(e,/(zoom-|grab)/,dt+"$1"),/(image-set)/,dt+"$1"),e,"")+e;case 5495:case 3959:return wt(e,/(image-set\([^]*)/,dt+"$1$`$1");case 4968:return wt(wt(e,/(.+:)(flex-)?(.*)/,dt+"box-pack:$3"+ct+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+dt+e+e;case 4095:case 3583:case 4068:case 2532:return wt(e,/(.+)-inline(.+)/,dt+"$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(Rt(e)-1-t>6)switch(kt(e,t+1)){case 109:if(45!==kt(e,t+4))break;case 102:return wt(e,/(.+:)(.+)-([^]+)/,"$1"+dt+"$2-$3$1"+ut+(108==kt(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Et(e,"stretch")?gn(wt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==kt(e,t+1))break;case 6444:switch(kt(e,Rt(e)-3-(~Et(e,"!important")&&10))){case 107:return wt(e,":",":"+dt)+e;case 101:return wt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+dt+(45===kt(e,14)?"inline-":"")+"box$3$1"+dt+"$2$3$1"+ct+"$2box$3")+e}break;case 5936:switch(kt(e,t+11)){case 114:return dt+e+ct+wt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return dt+e+ct+wt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return dt+e+ct+wt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return dt+e+ct+e+e}return e}var bn,vn,yn,xn,Sn=un?void 0:sn((function(){return cn((function(){return{}}))})),wn=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ht:e.return=gn(e.value,e.length);break;case mt:return rn([At(e,{value:wt(e.value,"@","@"+dt)})],r);case ft:if(e.length)return It(e.props,(function(t){switch(St(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return rn([At(e,{props:[wt(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return rn([At(e,{props:[wt(t,/:(plac\w+)/,":"+dt+"input-$1")]}),At(e,{props:[wt(t,/:(plac\w+)/,":-moz-$1")]}),At(e,{props:[wt(t,/:(plac\w+)/,ct+"input-$1")]})],r)}return""}))}}],En=function(e){var t=e.key;if(un&&"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||wn,i={},l=[];un&&(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=[hn,mn];if(Sn){var c=[on],u=an(s.concat(a,c)),d=Sn(a)(t),p=function(e,t){var n=t.name;return void 0===d[n]&&(d[n]=function(e){return rn(Qt(e),u)}(e?e+"{"+t.styles+"}":t.styles)),d[n]};o=function(e,t,n,r){var o=t.name,a=p(e,t);return void 0===g.compat?(r&&(g.inserted[o]=!0),a):r?void(g.inserted[o]=a):a}}else{var f,h=[on,ln((function(e){f.insert(e)}))],m=an(s.concat(a,h));o=function(e,t,n,r){f=n,function(e){rn(Qt(e),m)}(e?e+"{"+t.styles+"}":t.styles),r&&(g.inserted[t.name]=!0)}}var g={key:t,sheet:new st({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 g.sheet.hydrate(l),g},kn={exports:{}},Cn={};function Rn(){return vn||(vn=1,kn.exports=function(){if(bn)return Cn;bn=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case r:case a:case o:case u:case d:return e;default:switch(e=e&&e.$$typeof){case s:case l:case c:case f:case p:case i:return e;default:return h}}case n:return h}}}return e=Symbol.for("react.module.reference"),Cn.ContextConsumer=l,Cn.ContextProvider=i,Cn.Element=t,Cn.ForwardRef=c,Cn.Fragment=r,Cn.Lazy=f,Cn.Memo=p,Cn.Portal=n,Cn.Profiler=a,Cn.StrictMode=o,Cn.Suspense=u,Cn.SuspenseList=d,Cn.isAsyncMode=function(){return!1},Cn.isConcurrentMode=function(){return!1},Cn.isContextConsumer=function(e){return m(e)===l},Cn.isContextProvider=function(e){return m(e)===i},Cn.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Cn.isForwardRef=function(e){return m(e)===c},Cn.isFragment=function(e){return m(e)===r},Cn.isLazy=function(e){return m(e)===f},Cn.isMemo=function(e){return m(e)===p},Cn.isPortal=function(e){return m(e)===n},Cn.isProfiler=function(e){return m(e)===a},Cn.isStrictMode=function(e){return m(e)===o},Cn.isSuspense=function(e){return m(e)===u},Cn.isSuspenseList=function(e){return m(e)===d},Cn.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===a||t===o||t===u||t===d||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===p||t.$$typeof===i||t.$$typeof===l||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},Cn.typeOf=m,Cn}()),kn.exports}!function(){if(xn)return yn;xn=1;var e=Rn(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function a(n){return e.isMemo(n)?r:o[n.$$typeof]||t}o[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[e.Memo]=r;var i=Object.defineProperty,l=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,d=Object.prototype;yn=function e(t,r,o){if("string"!=typeof r){if(d){var p=u(r);p&&p!==d&&e(t,p,o)}var f=l(r);s&&(f=f.concat(s(r)));for(var h=a(t),m=a(r),g=0;g<f.length;++g){var b=f[g];if(!(n[b]||o&&o[b]||m&&m[b]||h&&h[b])){var v=c(r,b);try{i(t,b,v)}catch(e){}}}}return t}}();var Ln="undefined"!=typeof document;function On(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var In=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===Ln&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},_n=function(e,t,n){In(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);Ln||void 0===i||(o+=i),a=a.next}while(void 0!==a);if(!Ln&&0!==o.length)return o}};var Pn={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,scale: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},Tn=/[A-Z]|^ms/g,Mn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Nn=function(e){return 45===e.charCodeAt(1)},qn=function(e){return null!=e&&"boolean"!=typeof e},Dn=cn((function(e){return Nn(e)?e:e.replace(Tn,"-$&").toLowerCase()})),An=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Mn,(function(e,t,n){return jn={name:t,styles:n,next:jn},t}))}return 1===Pn[e]||Nn(e)||"number"!=typeof t||0===t?t:t+"px"};function zn(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return jn={name:o.name,styles:o.styles,next:jn},o.name;var a=n;if(void 0!==a.styles){var i=a.next;if(void 0!==i)for(;void 0!==i;)jn={name:i.name,styles:i.styles,next:jn},i=i.next;return a.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=zn(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i){var l=i;null!=t&&void 0!==t[l]?r+=a+"{"+t[l]+"}":qn(l)&&(r+=Dn(a)+":"+An(a,l)+";")}else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=zn(e,t,i);switch(a){case"animation":case"animationName":r+=Dn(a)+":"+s+";";break;default:r+=a+"{"+s+"}"}}else for(var c=0;c<i.length;c++)qn(i[c])&&(r+=Dn(a)+":"+An(a,i[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var l=jn,s=n(e);return jn=l,zn(e,t,s)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var jn,Fn=/label:\s*([^\s;{]+)\s*(;|$)/g;function $n(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="";jn=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=zn(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++){if(o+=zn(n,t,e[i]),r)o+=a[i]}Fn.lastIndex=0;for(var l,s="";null!==(l=Fn.exec(o));)s+="-"+l[1];var c=function(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)}(o)+s;return{name:c,styles:o,next:jn}}var Bn="undefined"!=typeof document,Wn=function(e){return e()},Hn=!!y.useInsertionEffect&&y.useInsertionEffect,Un=Bn&&Hn||Wn,Vn=Hn||b.useLayoutEffect,Gn="undefined"!=typeof document,Kn=b.createContext("undefined"!=typeof HTMLElement?En({key:"css"}):null),Zn=Kn.Provider,Xn=function(e){return b.forwardRef((function(t,n){var r=b.useContext(Kn);return e(t,r,n)}))};Gn||(Xn=function(e){return function(t){var n=b.useContext(Kn);return null===n?(n=En({key:"css"}),b.createElement(Kn.Provider,{value:n},e(t,n))):e(t,n)}});var Jn,Qn,Yn=b.createContext({}),er={}.hasOwnProperty,tr="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",nr=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;In(t,n,r);var o=Un((function(){return _n(t,n,r)}));if(!Gn&&void 0!==o){for(var a,i=n.name,l=n.next;void 0!==l;)i+=" "+l.name,l=l.next;return b.createElement("style",((a={})["data-emotion"]=t.key+" "+i,a.dangerouslySetInnerHTML={__html:o},a.nonce=t.sheet.nonce,a))}return null},rr=Xn((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[tr],a=[r],i="";"string"==typeof e.className?i=On(t.registered,a,e.className):null!=e.className&&(i=e.className+" ");var l=$n(a,void 0,b.useContext(Yn));i+=t.key+"-"+l.name;var s={};for(var c in e)er.call(e,c)&&"css"!==c&&c!==tr&&(s[c]=e[c]);return s.className=i,n&&(s.ref=n),b.createElement(b.Fragment,null,b.createElement(nr,{cache:t,serialized:l,isStringTag:"string"==typeof o}),b.createElement(o,s))})),or=rr,ar=function(e,t){var n=arguments;if(null==t||!er.call(t,"css"))return b.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=or,o[1]=function(e,t){var n={};for(var r in t)er.call(t,r)&&(n[r]=t[r]);return n[tr]=e,n}(e,t);for(var a=2;a<r;a++)o[a]=n[a];return b.createElement.apply(null,o)};Jn=ar||(ar={}),Qn||(Qn=Jn.JSX||(Jn.JSX={}));var ir=Xn((function(e,t){var n=$n([e.styles],void 0,b.useContext(Yn));if(!Gn){for(var r,o=n.name,a=n.styles,i=n.next;void 0!==i;)o+=" "+i.name,a+=i.styles,i=i.next;var l=!0===t.compat,s=t.insert("",{name:o,styles:a},t.sheet,l);return l?null:b.createElement("style",((r={})["data-emotion"]=t.key+"-global "+o,r.dangerouslySetInnerHTML={__html:s},r.nonce=t.sheet.nonce,r))}var c=b.useRef();return Vn((function(){var e=t.key+"-global",r=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+" "+n.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),r.hydrate([a])),c.current=[r,o],function(){r.flush()}}),[t]),Vn((function(){var e=c.current,r=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&_n(t,n.next,!0),r.tags.length){var o=r.tags[r.tags.length-1].nextElementSibling;r.before=o,r.flush()}t.insert("",n,r,!1)}}),[t,n.name]),null}));function lr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return $n(t)}function sr(){var e=lr.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_"}}}var cr=/^((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|disableRemotePlayback|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)-.*))$/,ur="undefined"!=typeof document,dr=cn((function(e){return cr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),pr=function(e){return"theme"!==e},fr=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?dr:pr},hr=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},mr=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;In(t,n,r);var o=Un((function(){return _n(t,n,r)}));if(!ur&&void 0!==o){for(var a,i=n.name,l=n.next;void 0!==l;)i+=" "+l.name,l=l.next;return b.createElement("style",((a={})["data-emotion"]=t.key+" "+i,a.dangerouslySetInnerHTML={__html:o},a.nonce=t.sheet.nonce,a))}return null},gr=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=hr(t,n,a),s=l||fr(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{var p=u[0];d.push(p[0]);for(var f=u.length,h=1;h<f;h++)d.push(u[h],p[h])}var m=Xn((function(e,t,n){var r=c&&e.as||i,a="",u=[],p=e;if(null==e.theme){for(var f in p={},e)p[f]=e[f];p.theme=b.useContext(Yn)}"string"==typeof e.className?a=On(t.registered,u,e.className):null!=e.className&&(a=e.className+" ");var h=$n(d.concat(u),t.registered,p);a+=t.key+"-"+h.name,void 0!==o&&(a+=" "+o);var m=c&&void 0===l?fr(r):s,g={};for(var v in e)c&&"as"===v||m(v)&&(g[v]=e[v]);return g.className=a,n&&(g.ref=n),b.createElement(b.Fragment,null,b.createElement(mr,{cache:t,serialized:h,isStringTag:"string"==typeof r}),b.createElement(r,g))}));return m.displayName=void 0!==r?r:"Styled("+("string"==typeof i?i:i.displayName||i.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=i,m.__emotion_styles=d,m.__emotion_forwardProp=l,Object.defineProperty(m,"toString",{value:function(){return"."+o}}),m.withComponent=function(t,r){return e(t,it({},n,r,{shouldForwardProp:hr(m,r,!0)})).apply(void 0,d)},m}}.bind(null);["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){gr[e]=gr(e)}));var br="undefined"!=typeof document,vr=function(e,t,n){for(var r=0,o=0;r=o,o=Ft(),38===r&&12===o&&(t[n]=1),!Wt(o);)jt();return Bt(e,Mt)},yr=function(e,t){return Ut(function(e,t){var n=-1,r=44;do{switch(Wt(r)){case 0:38===r&&12===Ft()&&(t[n]=1),e[n]+=vr(Mt-1,t,n);break;case 2:e[n]+=Vt(r);break;case 4:if(44===r){e[++n]=58===Ft()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=bt(r)}}while(r=jt());return e}(Ht(e),t))},xr=new WeakMap,Sr=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)||xr.get(n))&&!r){xr.set(e,!0);for(var o=[],a=yr(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]}}},wr=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Er(e,t){switch(yt(e,t)){case 5103:return dt+"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 dt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return dt+e+ut+e+ct+e+e;case 6828:case 4268:return dt+e+ct+e+e;case 6165:return dt+e+ct+"flex-"+e+e;case 5187:return dt+e+wt(e,/(\w+).+(:[^]+)/,dt+"box-$1$2"+ct+"flex-$1$2")+e;case 5443:return dt+e+ct+"flex-item-"+wt(e,/flex-|-self/,"")+e;case 4675:return dt+e+ct+"flex-line-pack"+wt(e,/align-content|flex-|-self/,"")+e;case 5548:return dt+e+ct+wt(e,"shrink","negative")+e;case 5292:return dt+e+ct+wt(e,"basis","preferred-size")+e;case 6060:return dt+"box-"+wt(e,"-grow","")+dt+e+ct+wt(e,"grow","positive")+e;case 4554:return dt+wt(e,/([^-])(transform)/g,"$1"+dt+"$2")+e;case 6187:return wt(wt(wt(e,/(zoom-|grab)/,dt+"$1"),/(image-set)/,dt+"$1"),e,"")+e;case 5495:case 3959:return wt(e,/(image-set\([^]*)/,dt+"$1$`$1");case 4968:return wt(wt(e,/(.+:)(flex-)?(.*)/,dt+"box-pack:$3"+ct+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+dt+e+e;case 4095:case 3583:case 4068:case 2532:return wt(e,/(.+)-inline(.+)/,dt+"$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(Rt(e)-1-t>6)switch(kt(e,t+1)){case 109:if(45!==kt(e,t+4))break;case 102:return wt(e,/(.+:)(.+)-([^]+)/,"$1"+dt+"$2-$3$1"+ut+(108==kt(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Et(e,"stretch")?Er(wt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==kt(e,t+1))break;case 6444:switch(kt(e,Rt(e)-3-(~Et(e,"!important")&&10))){case 107:return wt(e,":",":"+dt)+e;case 101:return wt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+dt+(45===kt(e,14)?"inline-":"")+"box$3$1"+dt+"$2$3$1"+ct+"$2box$3")+e}break;case 5936:switch(kt(e,t+11)){case 114:return dt+e+ct+wt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return dt+e+ct+wt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return dt+e+ct+wt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return dt+e+ct+e+e}return e}var kr,Cr,Rr=br?void 0:sn((function(){return cn((function(){var e={};return function(t){return e[t]}}))})),Lr=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ht:e.return=Er(e.value,e.length);break;case mt:return rn([At(e,{value:wt(e.value,"@","@"+dt)})],r);case ft:if(e.length)return It(e.props,(function(t){switch(St(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return rn([At(e,{props:[wt(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return rn([At(e,{props:[wt(t,/:(plac\w+)/,":"+dt+"input-$1")]}),At(e,{props:[wt(t,/:(plac\w+)/,":-moz-$1")]}),At(e,{props:[wt(t,/:(plac\w+)/,ct+"input-$1")]})],r)}return""}))}}],Or={exports:{}},Ir={};function _r(){return Cr||(Cr=1,Or.exports=function(){if(kr)return Ir;kr=1;var e=g(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(e,n,i){var l,s={},c=null,u=null;for(l in void 0!==i&&(c=""+i),void 0!==n.key&&(c=""+n.key),void 0!==n.ref&&(u=n.ref),n)r.call(n,l)&&!a.hasOwnProperty(l)&&(s[l]=n[l]);if(e&&e.defaultProps)for(l in n=e.defaultProps)void 0===s[l]&&(s[l]=n[l]);return{$$typeof:t,type:e,key:c,ref:u,props:s,_owner:o.current}}return Ir.Fragment=n,Ir.jsx=i,Ir.jsxs=i,Ir}()),Or.exports}var Pr=_r();let Tr;function Mr(e){const{injectFirst:t,children:n}=e;return t&&Tr?Pr.jsx(Zn,{value:Tr,children:n}):n}function Nr(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 Pr.jsx(ir,{styles:r})}
|
|
17
17
|
/**
|
|
18
18
|
* @mui/styled-engine v5.16.14
|
|
19
19
|
*
|
|
20
20
|
* @license MIT
|
|
21
21
|
* This source code is licensed under the MIT license found in the
|
|
22
22
|
* LICENSE file in the root directory of this source tree.
|
|
23
|
-
*/function Ar(e,t){return gr(e,t)}"object"==typeof document&&(Mr=function(e){var t=e.key;if(vr&&"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||Or,i={},l=[];vr&&(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=[wr,Er];if(vr){var c,u=[an,sn((function(e){c.insert(e)}))],d=ln(s.concat(a,u));o=function(e,t,n,r){c=n,function(e){on(Yt(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(g.inserted[t.name]=!0)}}else{var p=[an],f=ln(s.concat(a,p)),h=Lr(a)(t),m=function(e,t){var n=t.name;return void 0===h[n]&&(h[n]=function(e){return on(Yt(e),f)}(e?e+"{"+t.styles+"}":t.styles)),h[n]};o=function(e,t,n,r){var o=t.name,a=m(e,t);return void 0===g.compat?(r&&(g.inserted[o]=!0),a):r?void(g.inserted[o]=a):a}}var g={key:t,sheet:new br({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 g.sheet.hydrate(l),g}({key:"css",prepend:!0}));const Dr=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};var zr=Object.freeze({__proto__:null,GlobalStyles:qr,StyledEngineProvider:Nr,ThemeContext:Yn,css:lr,default:Ar,internal_processStyles:Dr,keyframes:sr});function jr(){return jr=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},jr.apply(this,arguments)}function Fr(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 $r(){return $r=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},$r.apply(this,arguments)}function Br(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 Wr(e){if(b.isValidElement(e)||!Br(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Wr(e[n])})),t}function Hr(e,t,n={clone:!0}){const r=n.clone?$r({},e):e;return Br(e)&&Br(t)&&Object.keys(t).forEach((o=>{b.isValidElement(t[o])?r[o]=t[o]:Br(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Br(e[o])?r[o]=Hr(e[o],t[o],n):n.clone?r[o]=Br(t[o])?Wr(t[o]):t[o]:r[o]=t[o]})),r}var Ur=Object.freeze({__proto__:null,default:Hr,isPlainObject:Br});const Vr=["values","unit","step"],Gr=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)=>jr({},e,{[t.key]:t.val})),{})};function Kr(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Fr(e,Vr),a=Gr(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 jr({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)}const Zr={borderRadius:4};function Xr(e,t){return t?Hr(e,t,{clone:!1}):e}const Jr={xs:0,sm:600,md:900,lg:1200,xl:1536},Qr={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Jr[e]}px)`};function Yr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Qr;return t.reduce(((r,o,a)=>(r[e.up(e.keys[a])]=n(t[a]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Qr;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||Jr).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function eo(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function to(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function no({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 ro(e){if("string"!=typeof e)throw new Error(rt(7));return e.charAt(0).toUpperCase()+e.slice(1)}var oo=Object.freeze({__proto__:null,default:ro});function ao(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 io(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:ao(e,n)||r,t&&(o=t(o,r,e)),o}function lo(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=ao(e.theme,r)||{};return Yr(e,a,(e=>{let r=io(i,o,e);return e===r&&"string"==typeof e&&(r=io(i,o,`${t}${"default"===e?"":ro(e)}`,e)),!1===n?r:{[n]:r}}))};return a.propTypes={},a.filterProps=[t],a}const so={m:"margin",p:"padding"},co={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},uo={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},po=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!uo[e])return[e];e=uo[e]}const[t,n]=e.split(""),r=so[t],o=co[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),fo=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ho=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function mo(e,t,n,r){var o;const a=null!=(o=ao(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 go(e){return mo(e,"spacing",8)}function bo(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 vo(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=bo(t,n),e)),{})}(po(n),r);return Yr(e,e[n],o)}function yo(e,t){const n=go(e.theme);return Object.keys(e).map((r=>vo(e,t,r,n))).reduce(Xr,{})}function xo(e){return yo(e,fo)}function So(e){return yo(e,ho)}function wo(e=8){if(e.mui)return e;const t=go({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 Eo(...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]?Xr(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function ko(e){return"number"!=typeof e?e:`${e}px solid`}function Co(e,t){return lo({prop:e,themeKey:"borders",transform:t})}xo.propTypes={},xo.filterProps=fo,So.propTypes={},So.filterProps=ho;const Ro=Co("border",ko),Lo=Co("borderTop",ko),Oo=Co("borderRight",ko),Io=Co("borderBottom",ko),_o=Co("borderLeft",ko),Po=Co("borderColor"),To=Co("borderTopColor"),Mo=Co("borderRightColor"),No=Co("borderBottomColor"),qo=Co("borderLeftColor"),Ao=Co("outline",ko),Do=Co("outlineColor"),zo=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=mo(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:bo(t,e)});return Yr(e,e.borderRadius,n)}return null};zo.propTypes={},zo.filterProps=["borderRadius"],Eo(Ro,Lo,Oo,Io,_o,Po,To,Mo,No,qo,zo,Ao,Do);const jo=e=>{if(void 0!==e.gap&&null!==e.gap){const t=mo(e.theme,"spacing",8),n=e=>({gap:bo(t,e)});return Yr(e,e.gap,n)}return null};jo.propTypes={},jo.filterProps=["gap"];const Fo=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=mo(e.theme,"spacing",8),n=e=>({columnGap:bo(t,e)});return Yr(e,e.columnGap,n)}return null};Fo.propTypes={},Fo.filterProps=["columnGap"];const $o=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=mo(e.theme,"spacing",8),n=e=>({rowGap:bo(t,e)});return Yr(e,e.rowGap,n)}return null};$o.propTypes={},$o.filterProps=["rowGap"];function Bo(e,t){return"grey"===t?t:e}Eo(jo,Fo,$o,lo({prop:"gridColumn"}),lo({prop:"gridRow"}),lo({prop:"gridAutoFlow"}),lo({prop:"gridAutoColumns"}),lo({prop:"gridAutoRows"}),lo({prop:"gridTemplateColumns"}),lo({prop:"gridTemplateRows"}),lo({prop:"gridTemplateAreas"}),lo({prop:"gridArea"}));function Wo(e){return e<=1&&0!==e?100*e+"%":e}Eo(lo({prop:"color",themeKey:"palette",transform:Bo}),lo({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Bo}),lo({prop:"backgroundColor",themeKey:"palette",transform:Bo}));const Ho=lo({prop:"width",transform:Wo}),Uo=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])||Jr[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:Wo(t)}};return Yr(e,e.maxWidth,t)}return null};Uo.filterProps=["maxWidth"];const Vo=lo({prop:"minWidth",transform:Wo}),Go=lo({prop:"height",transform:Wo}),Ko=lo({prop:"maxHeight",transform:Wo}),Zo=lo({prop:"minHeight",transform:Wo});lo({prop:"size",cssProperty:"width",transform:Wo}),lo({prop:"size",cssProperty:"height",transform:Wo});Eo(Ho,Uo,Vo,Go,Ko,Zo,lo({prop:"boxSizing"}));const Xo={border:{themeKey:"borders",transform:ko},borderTop:{themeKey:"borders",transform:ko},borderRight:{themeKey:"borders",transform:ko},borderBottom:{themeKey:"borders",transform:ko},borderLeft:{themeKey:"borders",transform:ko},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ko},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:zo},color:{themeKey:"palette",transform:Bo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Bo},backgroundColor:{themeKey:"palette",transform:Bo},p:{style:So},pt:{style:So},pr:{style:So},pb:{style:So},pl:{style:So},px:{style:So},py:{style:So},padding:{style:So},paddingTop:{style:So},paddingRight:{style:So},paddingBottom:{style:So},paddingLeft:{style:So},paddingX:{style:So},paddingY:{style:So},paddingInline:{style:So},paddingInlineStart:{style:So},paddingInlineEnd:{style:So},paddingBlock:{style:So},paddingBlockStart:{style:So},paddingBlockEnd:{style:So},m:{style:xo},mt:{style:xo},mr:{style:xo},mb:{style:xo},ml:{style:xo},mx:{style:xo},my:{style:xo},margin:{style:xo},marginTop:{style:xo},marginRight:{style:xo},marginBottom:{style:xo},marginLeft:{style:xo},marginX:{style:xo},marginY:{style:xo},marginInline:{style:xo},marginInlineStart:{style:xo},marginInlineEnd:{style:xo},marginBlock:{style:xo},marginBlockStart:{style:xo},marginBlockEnd:{style:xo},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:jo},rowGap:{style:$o},columnGap:{style:Fo},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Wo},maxWidth:{style:Uo},minWidth:{transform:Wo},height:{transform:Wo},maxHeight:{transform:Wo},minHeight:{transform:Wo},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Jo(){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=ao(n,l)||{};if(c)return c(o);return Yr(o,t,(t=>{let n=io(u,s,t);return t===n&&"string"==typeof t&&(n=io(u,s,`${e}${"default"===t?"":ro(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:Xo;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=eo(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=Xr(s,e(n,o,a,i));else{const e=Yr({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=Xr(s,e):s[n]=t({sx:o,theme:a})}else s=Xr(s,e(n,o,a,i))})),to(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const Qo=Jo();function Yo(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:{}}Qo.filterProps=["sx"];const ea=["breakpoints","palette","spacing","shape"];function ta(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={}}=e,i=Fr(e,ea),l=Kr(n),s=wo(o);let c=Hr({breakpoints:l,direction:"ltr",components:{},palette:jr({mode:"light"},r),spacing:s,shape:jr({},Zr,a)},i);return c.applyStyles=Yo,c=t.reduce(((e,t)=>Hr(e,t)),c),c.unstable_sxConfig=jr({},Xo,null==i?void 0:i.unstable_sxConfig),c.unstable_sx=function(e){return Qo({sx:e,theme:this})},c}var na=Object.freeze({__proto__:null,default:ta,private_createBreakpoints:Kr,unstable_applyStyles:Yo});function ra(e=null){const t=b.useContext(Yn);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const oa=ta();function aa(e=oa){return ra(e)}function ia({styles:e,themeId:t,defaultTheme:n={}}){const r=aa(n),o="function"==typeof e?e(t&&r[t]||r):e;return Tr.jsx(qr,{styles:o})}const la=["sx"],sa=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Xo;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function ca(e){const{sx:t}=e,n=Fr(e,la),{systemProps:r,otherProps:o}=sa(n);let a;return a=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Br(n)?jr({},r,n):r}:jr({},r,t),jr({},o,{sx:a})}var ua=Object.freeze({__proto__:null,default:Qo,extendSxProp:ca,unstable_createStyleFunctionSx:Jo,unstable_defaultSxConfig:Xo});const da=e=>e,pa=(()=>{let e=da;return{configure(t){e=t},generate:t=>e(t),reset(){e=da}}})();function fa(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=fa(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ha(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=fa(e))&&(r&&(r+=" "),r+=t);return r}const ma=["className","component"];const ga={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 ba(e,t,n="Mui"){const r=ga[t];return r?`${n}-${r}`:`${pa.generate(e)}-${t}`}function va(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=ba(e,t,n)})),r}var ya=Rn();const xa=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Sa(e){const t=`${e}`.match(xa);return t&&t[1]||""}function wa(e,t=""){return e.displayName||e.name||Sa(e)||t}function Ea(e,t,n){const r=wa(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var ka=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return wa(e,"Component");if("object"==typeof e)switch(e.$$typeof){case ya.ForwardRef:return Ea(e,e.render,"ForwardRef");case ya.Memo:return Ea(e,e.type,"memo");default:return}}},getFunctionName:Sa});const Ca=["ownerState"],Ra=["variants"],La=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Oa(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Ia=ta(),_a=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Pa({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function Ta(e){return e?(t,n)=>n[e]:null}function Ma(e,t){let{ownerState:n}=t,r=Fr(t,Ca);const o="function"==typeof e?e(jr({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>Ma(e,jr({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=Fr(o,Ra);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(jr({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(jr({ownerState:n},r,n)):e.style))})),t}return o}const Na=function(e={}){const{themeId:t,defaultTheme:n=Ia,rootShouldForwardProp:r=Oa,slotShouldForwardProp:o=Oa}=e,a=e=>Qo(jr({},e,{theme:Pa(jr({},e,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(e,i={})=>{Dr(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:c,skipSx:u,overridesResolver:d=Ta(_a(s))}=i,p=Fr(i,La),f=void 0!==c?c:s&&"Root"!==s&&"root"!==s||!1,h=u||!1;let m=Oa;"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=Ar(e,jr({shouldForwardProp:m,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||Br(e)?r=>Ma(e,jr({},r,{theme:Pa({theme:r.theme,defaultTheme:n,themeId:t})})):e,v=(r,...o)=>{let i=b(r);const s=o?o.map(b):[];l&&d&&s.push((e=>{const r=Pa(jr({},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]=Ma(n,jr({},e,{theme:r}))})),d(e,a)})),l&&!f&&s.push((e=>{var r;const o=Pa(jr({},e,{defaultTheme:n,themeId:t}));return Ma({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},jr({},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&&(v.withConfig=g.withConfig),v}}();function qa(e,t){const n=$r({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=$r({},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]=$r({},a),Object.keys(o).forEach((e=>{n[r][e]=qa(o[e],a[e])}))):n[r]=a:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function Aa({props:e,name:t,defaultTheme:n,themeId:r}){let o=aa(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?qa(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return a}const Da="undefined"!=typeof window?b.useLayoutEffect:b.useEffect;var za=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 ja(){return ja=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},ja.apply(this,arguments)}function Fa(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function $a(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function Ba(e,t){var n,r;return b.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 Wa(e){return e&&e.ownerDocument||document}function Ha(e){return Wa(e).defaultView||window}function Ua(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Va=0;const Ga=y["useId".toString()];function Ka(e){if(void 0!==Ga){const t=Ga();return null!=e?e:t}return function(e){const[t,n]=b.useState(e),r=e||t;return b.useEffect((()=>{null==t&&(Va+=1,n(`mui-${Va}`))}),[t]),r}(e)}function Za({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=b.useRef(void 0!==e),[a,i]=b.useState(t);return[o?e:a,b.useCallback((e=>{o||i(e)}),[])]}function Xa(e){const t=b.useRef(e);return Da((()=>{t.current=e})),b.useRef(((...e)=>(0,t.current)(...e))).current}function Ja(...e){return b.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Ua(e,t)}))}),e)}const Qa={};const Ya=[];class ei{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new ei}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function ti(){const e=function(e,t){const n=b.useRef(Qa);return n.current===Qa&&(n.current=e(t)),n}(ei.create).current;var t;return t=e.disposeEffect,b.useEffect(t,Ya),e}let ni=!0,ri=!1;const oi=new ei,ai={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 ii(e){e.metaKey||e.altKey||e.ctrlKey||(ni=!0)}function li(){ni=!1}function si(){"hidden"===this.visibilityState&&ri&&(ni=!0)}function ci(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return ni||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!ai[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function ui(){const e=b.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",ii,!0),t.addEventListener("mousedown",li,!0),t.addEventListener("pointerdown",li,!0),t.addEventListener("touchstart",li,!0),t.addEventListener("visibilitychange",si,!0))}),[]),t=b.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!ci(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(ri=!0,oi.start(100,(()=>{ri=!1})),t.current=!1,!0)},ref:e}}function di(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const pi=e=>{const t=b.useRef({});return b.useEffect((()=>{t.current=e})),t.current};function fi(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}function hi(e){return"string"==typeof e}function mi(e,t,n){return void 0===e||hi(e)?t:$r({},t,{ownerState:$r({},t.ownerState,n)})}function gi(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=gi(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function bi(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=gi(e))&&(r&&(r+=" "),r+=t);return r}function vi(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 yi(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 xi=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Si(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=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,xi),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=bi(null==n?void 0:n.className,a,null==o?void 0:o.className,null==r?void 0:r.className),t=$r({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),i=$r({},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=vi($r({},o,r)),l=yi(r),s=yi(o),c=t(i),u=bi(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=$r({},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=$r({},c,n,s,l);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}($r({},i,{externalSlotProps:l}));return mi(n,$r({},s,{ref:Ja(c,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o)}function wi(e){var t;return parseInt(b.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const Ei=b.createContext(null);function ki(){return b.useContext(Ei)}var Ci="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Ri(e){const{children:t,theme:n}=e,r=ki(),o=b.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return ja({},e,t)}(r,n);return null!=e&&(e[Ci]=null!==r),e}),[n,r]);return Tr.jsx(Ei.Provider,{value:o,children:t})}const Li=["value"],Oi=b.createContext();function Ii(e){let{value:t}=e,n=Fr(e,Li);return Tr.jsx(Oi.Provider,jr({value:null==t||t},n))}const _i=b.createContext(void 0);function Pi({value:e,children:t}){return Tr.jsx(_i.Provider,{value:e,children:t})}function Ti({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?qa(o.defaultProps,r):o.styleOverrides||o.variants?r:qa(o,r)}({props:e,name:t,theme:{components:b.useContext(_i)}})}const Mi={};function Ni(e,t,n,r=!1){return b.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const a=n(o),i=e?jr({},t,{[e]:a}):a;return r?()=>i:i}return jr({},t,e?{[e]:n}:n)}),[e,t,n,r])}function qi(e){const{children:t,theme:n,themeId:r}=e,o=ra(Mi),a=ki()||Mi,i=Ni(r,o,n),l=Ni(r,a,n,!0),s="rtl"===i.direction;return Tr.jsx(Ri,{theme:l,children:Tr.jsx(Yn.Provider,{value:i,children:Tr.jsx(Ii,{value:s,children:Tr.jsx(Pi,{value:null==i?void 0:i.components,children:t})})})})}const Ai=["component","direction","spacing","divider","children","className","useFlexGap"],Di=ta(),zi=Na("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function ji(e){return Aa({props:e,name:"MuiStack",defaultTheme:Di})}function Fi(e,t){const n=b.Children.toArray(e).filter(Boolean);return n.reduce(((e,r,o)=>(e.push(r),o<n.length-1&&e.push(b.cloneElement(t,{key:`separator-${o}`})),e)),[])}const $i=({ownerState:e,theme:t})=>{let n=jr({display:"flex",flexDirection:"column"},Yr({theme:t},no({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const r=go(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=no({values:e.direction,base:o}),i=no({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=Hr(n,Yr({theme:t},i,((t,n)=>{return e.useFlexGap?{gap:bo(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]}`]:bo(r,t)}};var o})))}return n=function(e,...t){const n=eo(e),r=[n,...t].reduce(((e,t)=>Hr(e,t)),{});return to(Object.keys(n),r)}(t.breakpoints,n),n};const Bi=["defaultProps","mixins","overrides","palette","props","styleOverrides"],Wi=["type","mode"];var Hi,Ui={},Vi={exports:{}};function Gi(){return Hi||(Hi=1,function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(Vi)),Vi.exports}var Ki,Zi=r(ot),Xi=r(za);function Ji(){if(Ki)return Ui;Ki=1;var e=Gi();Object.defineProperty(Ui,"__esModule",{value:!0}),Ui.alpha=u,Ui.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=a(e),s=a(t),c=[o(i.values[0],s.values[0]),o(i.values[1],s.values[1]),o(i.values[2],s.values[2])];return l({type:"rgb",values:c})},Ui.colorChannel=void 0,Ui.darken=d,Ui.decomposeColor=a,Ui.emphasize=f,Ui.getContrastRatio=function(e,t){const n=c(e),r=c(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},Ui.getLuminance=c,Ui.hexToRgb=o,Ui.hslToRgb=s,Ui.lighten=p,Ui.private_safeAlpha=function(e,t,n){try{return u(e,t)}catch(t){return e}},Ui.private_safeColorChannel=void 0,Ui.private_safeDarken=function(e,t,n){try{return d(e,t)}catch(t){return e}},Ui.private_safeEmphasize=function(e,t,n){try{return f(e,t)}catch(t){return e}},Ui.private_safeLighten=function(e,t,n){try{return p(e,t)}catch(t){return e}},Ui.recomposeColor=l,Ui.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=a(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 t=e(Zi),n=e(Xi);function r(e,t=0,r=1){return(0,n.default)(e,t,r)}function o(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 a(e){if(e.type)return e;if("#"===e.charAt(0))return a(o(e));const n=e.indexOf("("),r=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,t.default)(9,e));let i,l=e.substring(n+1,e.length-1);if("color"===r){if(l=l.split(" "),i=l.shift(),4===l.length&&"/"===l[3].charAt(0)&&(l[3]=l[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i))throw new Error((0,t.default)(10,i))}else l=l.split(",");return l=l.map((e=>parseFloat(e))),{type:r,values:l,colorSpace:i}}const i=e=>{const t=a(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};Ui.colorChannel=i;function l(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 s(e){e=a(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let c="rgb";const u=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),l({type:c,values:u})}function c(e){let t="hsl"===(e=a(e)).type||"hsla"===e.type?a(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 u(e,t){return e=a(e),t=r(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,l(e)}function d(e,t){if(e=a(e),t=r(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 l(e)}function p(e,t){if(e=a(e),t=r(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 l(e)}function f(e,t=.15){return c(e)>.5?d(e,t):p(e,t)}return Ui.private_safeColorChannel=(e,t)=>{try{return i(e)}catch(t){return e}},Ui}var Qi=Ji();const Yi={black:"#000",white:"#fff"},el={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"},tl={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},nl={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},rl={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},ol={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},al={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},il={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},ll=["mode","contrastThreshold","tonalOffset"],sl={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:Yi.white,default:Yi.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}},cl={text:{primary:Yi.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:Yi.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 ul(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=Qi.lighten(e.main,o):"dark"===t&&(e.dark=Qi.darken(e.main,a)))}function dl(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=lt(e,ll),a=e.primary||function(e="light"){return"dark"===e?{main:ol[200],light:ol[50],dark:ol[400]}:{main:ol[700],light:ol[400],dark:ol[800]}}(t),i=e.secondary||function(e="light"){return"dark"===e?{main:tl[200],light:tl[50],dark:tl[400]}:{main:tl[500],light:tl[300],dark:tl[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:nl[500],light:nl[300],dark:nl[700]}:{main:nl[700],light:nl[400],dark:nl[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:al[400],light:al[300],dark:al[700]}:{main:al[700],light:al[500],dark:al[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:il[400],light:il[300],dark:il[700]}:{main:il[800],light:il[500],dark:il[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:rl[400],light:rl[300],dark:rl[700]}:{main:"#ed6c02",light:rl[500],dark:rl[900]}}(t);function d(e){return Qi.getContrastRatio(e,cl.text.primary)>=n?cl.text.primary:sl.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:a=700})=>{if(!(e=it({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(rt(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(rt(12,t?` (${t})`:"",JSON.stringify(e.main)));return ul(e,"light",o,r),ul(e,"dark",a,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:cl,light:sl};return Hr(it({common:it({},Yi),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:el,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const pl=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const fl={textTransform:"uppercase"},hl='"Roboto", "Helvetica", "Arial", sans-serif';function ml(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=hl,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,p=lt(n,pl),f=o/14,h=d||(e=>e/c*f+"rem"),m=(e,t,n,o,a)=>{return it({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===hl?{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,fl),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,fl),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Hr(it({htmlFontSize:c,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function gl(...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 bl=["none",gl(0,2,1,-1,0,1,1,0,0,1,3,0),gl(0,3,1,-2,0,2,2,0,0,1,5,0),gl(0,3,3,-2,0,3,4,0,0,1,8,0),gl(0,2,4,-1,0,4,5,0,0,1,10,0),gl(0,3,5,-1,0,5,8,0,0,1,14,0),gl(0,3,5,-1,0,6,10,0,0,1,18,0),gl(0,4,5,-2,0,7,10,1,0,2,16,1),gl(0,5,5,-3,0,8,10,1,0,3,14,2),gl(0,5,6,-3,0,9,12,1,0,3,16,2),gl(0,6,6,-3,0,10,14,1,0,4,18,3),gl(0,6,7,-4,0,11,15,1,0,4,20,3),gl(0,7,8,-4,0,12,17,2,0,5,22,4),gl(0,7,8,-4,0,13,19,2,0,5,24,4),gl(0,7,9,-4,0,14,21,2,0,5,26,4),gl(0,8,9,-5,0,15,22,2,0,6,28,5),gl(0,8,10,-5,0,16,24,2,0,6,30,5),gl(0,8,11,-5,0,17,26,2,0,6,32,5),gl(0,9,11,-5,0,18,28,2,0,7,34,6),gl(0,9,12,-6,0,19,29,2,0,7,36,6),gl(0,10,13,-6,0,20,31,3,0,8,38,7),gl(0,10,13,-6,0,21,33,3,0,8,40,7),gl(0,10,14,-6,0,22,35,3,0,8,42,7),gl(0,11,14,-7,0,23,36,3,0,9,44,8),gl(0,11,15,-7,0,24,38,3,0,9,46,8)],vl=["duration","easing","delay"],yl={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)"},xl={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Sl(e){return`${Math.round(e)}ms`}function wl(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function El(e){const t=it({},yl,e.easing),n=it({},xl,e.duration);return it({getAutoHeightDuration:wl,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:a=t.easeInOut,delay:i=0}=r;return lt(r,vl),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Sl(o)} ${a} ${"string"==typeof i?i:Sl(i)}`)).join(",")}},e,{easing:t,duration:n})}const kl={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Cl=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Rl(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:a={}}=e,i=lt(e,Cl);if(e.vars&&void 0===e.generateCssVars)throw new Error(rt(18));const l=dl(r),s=ta(e);let c=Hr(s,{mixins:(u=s.breakpoints,d=n,it({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:bl.slice(),typography:ml(l,a),transitions:El(o),zIndex:it({},kl)});var u,d;return c=Hr(c,i),c=t.reduce(((e,t)=>Hr(e,t)),c),c.unstable_sxConfig=it({},Xo,null==i?void 0:i.unstable_sxConfig),c.unstable_sx=function(e){return Qo({sx:e,theme:this})},c}const Ll=Rl();function Ol(){const e=aa(Ll);return e[at]||e}var Il,_l={},Pl={exports:{}};var Tl,Ml={exports:{}};var Nl,ql=r(zr),Al=r(Ur),Dl=r(oo),zl=r(ka),jl=r(na),Fl=r(ua);function $l(){if(Nl)return _l;Nl=1;var e=Gi();Object.defineProperty(_l,"__esModule",{value:!0}),_l.default=function(e={}){const{themeId:a,defaultTheme:l=p,rootShouldForwardProp:s=d,slotShouldForwardProp:u=d}=e,b=e=>(0,i.default)((0,t.default)({},e,{theme:h((0,t.default)({},e,{defaultTheme:l,themeId:a}))}));return b.__mui_systemSx=!0,(e,i={})=>{(0,r.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:p,slot:v,skipVariantsResolver:y,skipSx:x,overridesResolver:S=m(f(v))}=i,w=(0,n.default)(i,c),E=void 0!==y?y:v&&"Root"!==v&&"root"!==v||!1,k=x||!1;let C=d;"Root"===v||"root"===v?C=s:v?C=u:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(C=void 0);const R=(0,r.default)(e,(0,t.default)({shouldForwardProp:C,label:undefined},w)),L=e=>"function"==typeof e&&e.__emotion_real!==e||(0,o.isPlainObject)(e)?n=>g(e,(0,t.default)({},n,{theme:h({theme:n.theme,defaultTheme:l,themeId:a})})):e,O=(n,...r)=>{let o=L(n);const i=r?r.map(L):[];p&&S&&i.push((e=>{const n=h((0,t.default)({},e,{defaultTheme:l,themeId:a}));if(!n.components||!n.components[p]||!n.components[p].styleOverrides)return null;const r=n.components[p].styleOverrides,o={};return Object.entries(r).forEach((([r,a])=>{o[r]=g(a,(0,t.default)({},e,{theme:n}))})),S(e,o)})),p&&!E&&i.push((e=>{var n;const r=h((0,t.default)({},e,{defaultTheme:l,themeId:a}));return g({variants:null==r||null==(n=r.components)||null==(n=n[p])?void 0:n.variants},(0,t.default)({},e,{theme:r}))})),k||i.push(b);const s=i.length-r.length;if(Array.isArray(n)&&s>0){const e=new Array(s).fill("");o=[...n,...e],o.raw=[...n.raw,...e]}const c=R(o,...i);return e.muiName&&(c.muiName=e.muiName),c};return R.withConfig&&(O.withConfig=R.withConfig),O}},_l.shouldForwardProp=d,_l.systemDefaultTheme=void 0;var t=e((Il||(Il=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}(Pl)),Pl.exports)),n=e((Tl||(Tl=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}(Ml)),Ml.exports)),r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(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}(ql),o=Al;e(Dl),e(zl);var a=e(jl),i=e(Fl);const l=["ownerState"],s=["variants"],c=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function d(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const p=_l.systemDefaultTheme=(0,a.default)(),f=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function h({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function m(e){return e?(t,n)=>n[e]:null}function g(e,r){let{ownerState:o}=r,a=(0,n.default)(r,l);const i="function"==typeof e?e((0,t.default)({ownerState:o},a)):e;if(Array.isArray(i))return i.flatMap((e=>g(e,(0,t.default)({ownerState:o},a))));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let r=(0,n.default)(i,s);return e.forEach((e=>{let n=!0;"function"==typeof e.props?n=e.props((0,t.default)({ownerState:o},a,o)):Object.keys(e.props).forEach((t=>{(null==o?void 0:o[t])!==e.props[t]&&a[t]!==e.props[t]&&(n=!1)})),n&&(Array.isArray(r)||(r=[r]),r.push("function"==typeof e.style?e.style((0,t.default)({ownerState:o},a,o)):e.style))})),r}return i}return _l}const Bl=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,Wl=n($l())({themeId:at,defaultTheme:Ll,rootShouldForwardProp:Bl}),Hl=["theme"];function Ul(e){let{theme:t}=e,n=lt(e,Hl);const r=t[at];let o=r||t;return"function"!=typeof t&&(r&&!r.vars?o=it({},r,{vars:null}):t&&!t.vars&&(o=it({},t,{vars:null}))),Tr.jsx(qi,it({},n,{themeId:r?at:void 0,theme:o}))}const Vl=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Gl(e){return Ti(e)}function Kl(){return Kl=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},Kl.apply(this,arguments)}function Zl(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 Xl(e,t){return Xl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Xl(e,t)}function Jl(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Xl(e,t)}var Ql=et(),Yl=n(Ql),es=!1,ts=v.createContext(null),ns="unmounted",rs="exited",os="entering",as="entered",is="exiting",ls=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=rs,r.appearStatus=os):o=as:o=t.unmountOnExit||t.mountOnEnter?ns:rs,r.state={status:o},r.nextCallback=null,r}Jl(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===ns?{status:rs}: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!==os&&n!==as&&(t=os):n!==os&&n!==as||(t=is)}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===os){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Yl.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===rs&&this.setState({status:ns})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Yl.findDOMNode(this),r],a=o[0],i=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||es?this.safeSetState({status:as},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,i),this.safeSetState({status:os},(function(){t.props.onEntering(a,i),t.onTransitionEnd(s,(function(){t.safeSetState({status:as},(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:Yl.findDOMNode(this);t&&!es?(this.props.onExit(r),this.safeSetState({status:is},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:rs},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:rs},(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:Yl.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===ns)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=Zl(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return v.createElement(ts.Provider,{value:null},"function"==typeof n?n(e,r):v.cloneElement(v.Children.only(n),r))},t}(v.Component);function ss(){}function cs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function us(e,t){var n=Object.create(null);return e&&b.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&b.isValidElement(e)?t(e):e}(e)})),n}function ds(e,t,n){return null!=n[t]?n[t]:e.props[t]}function ps(e,t,n){var r=us(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(b.isValidElement(i)){var l=a in t,s=a in r,c=t[a],u=b.isValidElement(c)&&!c.props.in;!s||l&&!u?s||!l||u?s&&l&&b.isValidElement(c)&&(o[a]=b.cloneElement(i,{onExited:n.bind(null,i),in:c.props.in,exit:ds(i,"exit",e),enter:ds(i,"enter",e)})):o[a]=b.cloneElement(i,{in:!1}):o[a]=b.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:ds(i,"exit",e),enter:ds(i,"enter",e)})}})),o}ls.contextType=ts,ls.propTypes={},ls.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ss,onEntering:ss,onEntered:ss,onExit:ss,onExiting:ss,onExited:ss},ls.UNMOUNTED=ns,ls.EXITED=rs,ls.ENTERING=os,ls.ENTERED=as,ls.EXITING=is;var fs=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},hs=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(cs(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Jl(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,us(n.children,(function(e){return b.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:ds(e,"appear",n),enter:ds(e,"enter",n),exit:ds(e,"exit",n)})}))):ps(e,o,a),firstRender:!1}},n.handleExited=function(e,t){var n=us(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Kl({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Zl(e,["component","childFactory"]),o=this.state.contextValue,a=fs(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?v.createElement(ts.Provider,{value:o},a):v.createElement(ts.Provider,{value:o},v.createElement(t,r,a))},t}(v.Component);hs.propTypes={},hs.defaultProps={component:"div",childFactory:function(e){return e}};const ms=va("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),gs=["center","classes","className"];let bs,vs,ys,xs,Ss=e=>e;const ws=sr(bs||(bs=Ss`
|
|
23
|
+
*/function qr(e,t){return gr(e,t)}"object"==typeof document&&(Tr=function(e){var t=e.key;if(br&&"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||Lr,i={},l=[];br&&(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=[Sr,wr];if(br){var c,u=[on,ln((function(e){c.insert(e)}))],d=an(s.concat(a,u));o=function(e,t,n,r){c=n,function(e){rn(Qt(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(g.inserted[t.name]=!0)}}else{var p=[on],f=an(s.concat(a,p)),h=Rr(a)(t),m=function(e,t){var n=t.name;return void 0===h[n]&&(h[n]=function(e){return rn(Qt(e),f)}(e?e+"{"+t.styles+"}":t.styles)),h[n]};o=function(e,t,n,r){var o=t.name,a=m(e,t);return void 0===g.compat?(r&&(g.inserted[o]=!0),a):r?void(g.inserted[o]=a):a}}var g={key:t,sheet:new st({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 g.sheet.hydrate(l),g}({key:"css",prepend:!0}));const Dr=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};var Ar=Object.freeze({__proto__:null,GlobalStyles:Nr,StyledEngineProvider:Mr,ThemeContext:Yn,css:lr,default:qr,internal_processStyles:Dr,keyframes:sr});function zr(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 jr(e){if(b.isValidElement(e)||!zr(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=jr(e[n])})),t}function Fr(e,t,n={clone:!0}){const r=n.clone?it({},e):e;return zr(e)&&zr(t)&&Object.keys(t).forEach((o=>{b.isValidElement(t[o])?r[o]=t[o]:zr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&zr(e[o])?r[o]=Fr(e[o],t[o],n):n.clone?r[o]=zr(t[o])?jr(t[o]):t[o]:r[o]=t[o]})),r}var $r=Object.freeze({__proto__:null,default:Fr,isPlainObject:zr});const Br=["values","unit","step"],Wr=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)=>it({},e,{[t.key]:t.val})),{})};function Hr(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=lt(e,Br),a=Wr(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 it({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)}const Ur={borderRadius:4};function Vr(e,t){return t?Fr(e,t,{clone:!1}):e}const Gr={xs:0,sm:600,md:900,lg:1200,xl:1536},Kr={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Gr[e]}px)`};function Zr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Kr;return t.reduce(((r,o,a)=>(r[e.up(e.keys[a])]=n(t[a]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Kr;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||Gr).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function Xr(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function Jr(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function Qr({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 Yr(e){if("string"!=typeof e)throw new Error(rt(7));return e.charAt(0).toUpperCase()+e.slice(1)}var eo=Object.freeze({__proto__:null,default:Yr});function to(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 no(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:to(e,n)||r,t&&(o=t(o,r,e)),o}function ro(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=to(e.theme,r)||{};return Zr(e,a,(e=>{let r=no(i,o,e);return e===r&&"string"==typeof e&&(r=no(i,o,`${t}${"default"===e?"":Yr(e)}`,e)),!1===n?r:{[n]:r}}))};return a.propTypes={},a.filterProps=[t],a}const oo={m:"margin",p:"padding"},ao={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},io={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},lo=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!io[e])return[e];e=io[e]}const[t,n]=e.split(""),r=oo[t],o=ao[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),so=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],co=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function uo(e,t,n,r){var o;const a=null!=(o=to(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 po(e){return uo(e,"spacing",8)}function fo(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 ho(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=fo(t,n),e)),{})}(lo(n),r);return Zr(e,e[n],o)}function mo(e,t){const n=po(e.theme);return Object.keys(e).map((r=>ho(e,t,r,n))).reduce(Vr,{})}function go(e){return mo(e,so)}function bo(e){return mo(e,co)}function vo(e=8){if(e.mui)return e;const t=po({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 yo(...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]?Vr(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function xo(e){return"number"!=typeof e?e:`${e}px solid`}function So(e,t){return ro({prop:e,themeKey:"borders",transform:t})}go.propTypes={},go.filterProps=so,bo.propTypes={},bo.filterProps=co;const wo=So("border",xo),Eo=So("borderTop",xo),ko=So("borderRight",xo),Co=So("borderBottom",xo),Ro=So("borderLeft",xo),Lo=So("borderColor"),Oo=So("borderTopColor"),Io=So("borderRightColor"),_o=So("borderBottomColor"),Po=So("borderLeftColor"),To=So("outline",xo),Mo=So("outlineColor"),No=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=uo(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:fo(t,e)});return Zr(e,e.borderRadius,n)}return null};No.propTypes={},No.filterProps=["borderRadius"],yo(wo,Eo,ko,Co,Ro,Lo,Oo,Io,_o,Po,No,To,Mo);const qo=e=>{if(void 0!==e.gap&&null!==e.gap){const t=uo(e.theme,"spacing",8),n=e=>({gap:fo(t,e)});return Zr(e,e.gap,n)}return null};qo.propTypes={},qo.filterProps=["gap"];const Do=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=uo(e.theme,"spacing",8),n=e=>({columnGap:fo(t,e)});return Zr(e,e.columnGap,n)}return null};Do.propTypes={},Do.filterProps=["columnGap"];const Ao=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=uo(e.theme,"spacing",8),n=e=>({rowGap:fo(t,e)});return Zr(e,e.rowGap,n)}return null};Ao.propTypes={},Ao.filterProps=["rowGap"];function zo(e,t){return"grey"===t?t:e}yo(qo,Do,Ao,ro({prop:"gridColumn"}),ro({prop:"gridRow"}),ro({prop:"gridAutoFlow"}),ro({prop:"gridAutoColumns"}),ro({prop:"gridAutoRows"}),ro({prop:"gridTemplateColumns"}),ro({prop:"gridTemplateRows"}),ro({prop:"gridTemplateAreas"}),ro({prop:"gridArea"}));function jo(e){return e<=1&&0!==e?100*e+"%":e}yo(ro({prop:"color",themeKey:"palette",transform:zo}),ro({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:zo}),ro({prop:"backgroundColor",themeKey:"palette",transform:zo}));const Fo=ro({prop:"width",transform:jo}),$o=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])||Gr[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:jo(t)}};return Zr(e,e.maxWidth,t)}return null};$o.filterProps=["maxWidth"];const Bo=ro({prop:"minWidth",transform:jo}),Wo=ro({prop:"height",transform:jo}),Ho=ro({prop:"maxHeight",transform:jo}),Uo=ro({prop:"minHeight",transform:jo});ro({prop:"size",cssProperty:"width",transform:jo}),ro({prop:"size",cssProperty:"height",transform:jo});yo(Fo,$o,Bo,Wo,Ho,Uo,ro({prop:"boxSizing"}));const Vo={border:{themeKey:"borders",transform:xo},borderTop:{themeKey:"borders",transform:xo},borderRight:{themeKey:"borders",transform:xo},borderBottom:{themeKey:"borders",transform:xo},borderLeft:{themeKey:"borders",transform:xo},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:xo},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:No},color:{themeKey:"palette",transform:zo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:zo},backgroundColor:{themeKey:"palette",transform:zo},p:{style:bo},pt:{style:bo},pr:{style:bo},pb:{style:bo},pl:{style:bo},px:{style:bo},py:{style:bo},padding:{style:bo},paddingTop:{style:bo},paddingRight:{style:bo},paddingBottom:{style:bo},paddingLeft:{style:bo},paddingX:{style:bo},paddingY:{style:bo},paddingInline:{style:bo},paddingInlineStart:{style:bo},paddingInlineEnd:{style:bo},paddingBlock:{style:bo},paddingBlockStart:{style:bo},paddingBlockEnd:{style:bo},m:{style:go},mt:{style:go},mr:{style:go},mb:{style:go},ml:{style:go},mx:{style:go},my:{style:go},margin:{style:go},marginTop:{style:go},marginRight:{style:go},marginBottom:{style:go},marginLeft:{style:go},marginX:{style:go},marginY:{style:go},marginInline:{style:go},marginInlineStart:{style:go},marginInlineEnd:{style:go},marginBlock:{style:go},marginBlockStart:{style:go},marginBlockEnd:{style:go},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:qo},rowGap:{style:Ao},columnGap:{style:Do},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:jo},maxWidth:{style:$o},minWidth:{transform:jo},height:{transform:jo},maxHeight:{transform:jo},minHeight:{transform:jo},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Go(){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=to(n,l)||{};if(c)return c(o);return Zr(o,t,(t=>{let n=no(u,s,t);return t===n&&"string"==typeof t&&(n=no(u,s,`${e}${"default"===t?"":Yr(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:Vo;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=Xr(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=Vr(s,e(n,o,a,i));else{const e=Zr({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=Vr(s,e):s[n]=t({sx:o,theme:a})}else s=Vr(s,e(n,o,a,i))})),Jr(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const Ko=Go();function Zo(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:{}}Ko.filterProps=["sx"];const Xo=["breakpoints","palette","spacing","shape"];function Jo(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={}}=e,i=lt(e,Xo),l=Hr(n),s=vo(o);let c=Fr({breakpoints:l,direction:"ltr",components:{},palette:it({mode:"light"},r),spacing:s,shape:it({},Ur,a)},i);return c.applyStyles=Zo,c=t.reduce(((e,t)=>Fr(e,t)),c),c.unstable_sxConfig=it({},Vo,null==i?void 0:i.unstable_sxConfig),c.unstable_sx=function(e){return Ko({sx:e,theme:this})},c}var Qo=Object.freeze({__proto__:null,default:Jo,private_createBreakpoints:Hr,unstable_applyStyles:Zo});function Yo(e=null){const t=b.useContext(Yn);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const ea=Jo();function ta(e=ea){return Yo(e)}function na({styles:e,themeId:t,defaultTheme:n={}}){const r=ta(n),o="function"==typeof e?e(t&&r[t]||r):e;return Pr.jsx(Nr,{styles:o})}const ra=["sx"],oa=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Vo;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function aa(e){const{sx:t}=e,n=lt(e,ra),{systemProps:r,otherProps:o}=oa(n);let a;return a=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return zr(n)?it({},r,n):r}:it({},r,t),it({},o,{sx:a})}var ia=Object.freeze({__proto__:null,default:Ko,extendSxProp:aa,unstable_createStyleFunctionSx:Go,unstable_defaultSxConfig:Vo});const la=e=>e,sa=(()=>{let e=la;return{configure(t){e=t},generate:t=>e(t),reset(){e=la}}})();function ca(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=ca(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ua(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ca(e))&&(r&&(r+=" "),r+=t);return r}const da=["className","component"];const pa={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 fa(e,t,n="Mui"){const r=pa[t];return r?`${n}-${r}`:`${sa.generate(e)}-${t}`}function ha(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=fa(e,t,n)})),r}var ma=Rn();const ga=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function ba(e){const t=`${e}`.match(ga);return t&&t[1]||""}function va(e,t=""){return e.displayName||e.name||ba(e)||t}function ya(e,t,n){const r=va(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var xa=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return va(e,"Component");if("object"==typeof e)switch(e.$$typeof){case ma.ForwardRef:return ya(e,e.render,"ForwardRef");case ma.Memo:return ya(e,e.type,"memo");default:return}}},getFunctionName:ba});const Sa=["ownerState"],wa=["variants"],Ea=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function ka(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Ca=Jo(),Ra=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function La({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function Oa(e){return e?(t,n)=>n[e]:null}function Ia(e,t){let{ownerState:n}=t,r=lt(t,Sa);const o="function"==typeof e?e(it({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>Ia(e,it({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=lt(o,wa);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(it({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(it({ownerState:n},r,n)):e.style))})),t}return o}const _a=function(e={}){const{themeId:t,defaultTheme:n=Ca,rootShouldForwardProp:r=ka,slotShouldForwardProp:o=ka}=e,a=e=>Ko(it({},e,{theme:La(it({},e,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(e,i={})=>{Dr(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:c,skipSx:u,overridesResolver:d=Oa(Ra(s))}=i,p=lt(i,Ea),f=void 0!==c?c:s&&"Root"!==s&&"root"!==s||!1,h=u||!1;let m=ka;"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=qr(e,it({shouldForwardProp:m,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||zr(e)?r=>Ia(e,it({},r,{theme:La({theme:r.theme,defaultTheme:n,themeId:t})})):e,v=(r,...o)=>{let i=b(r);const s=o?o.map(b):[];l&&d&&s.push((e=>{const r=La(it({},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]=Ia(n,it({},e,{theme:r}))})),d(e,a)})),l&&!f&&s.push((e=>{var r;const o=La(it({},e,{defaultTheme:n,themeId:t}));return Ia({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},it({},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&&(v.withConfig=g.withConfig),v}}();function Pa(e,t){const n=it({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=it({},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]=it({},a),Object.keys(o).forEach((e=>{n[r][e]=Pa(o[e],a[e])}))):n[r]=a:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function Ta({props:e,name:t,defaultTheme:n,themeId:r}){let o=ta(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?Pa(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return a}const Ma="undefined"!=typeof window?b.useLayoutEffect:b.useEffect;var Na=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 qa(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function Da(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function Aa(e,t){var n,r;return b.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 za(e){return e&&e.ownerDocument||document}function ja(e){return za(e).defaultView||window}function Fa(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let $a=0;const Ba=y["useId".toString()];function Wa(e){if(void 0!==Ba){const t=Ba();return null!=e?e:t}return function(e){const[t,n]=b.useState(e),r=e||t;return b.useEffect((()=>{null==t&&($a+=1,n(`mui-${$a}`))}),[t]),r}(e)}function Ha({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=b.useRef(void 0!==e),[a,i]=b.useState(t);return[o?e:a,b.useCallback((e=>{o||i(e)}),[])]}function Ua(e){const t=b.useRef(e);return Ma((()=>{t.current=e})),b.useRef(((...e)=>(0,t.current)(...e))).current}function Va(...e){return b.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{Fa(e,t)}))}),e)}const Ga={};const Ka=[];class Za{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Za}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function Xa(){const e=function(e,t){const n=b.useRef(Ga);return n.current===Ga&&(n.current=e(t)),n}(Za.create).current;var t;return t=e.disposeEffect,b.useEffect(t,Ka),e}let Ja=!0,Qa=!1;const Ya=new Za,ei={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 ti(e){e.metaKey||e.altKey||e.ctrlKey||(Ja=!0)}function ni(){Ja=!1}function ri(){"hidden"===this.visibilityState&&Qa&&(Ja=!0)}function oi(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Ja||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!ei[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function ai(){const e=b.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",ti,!0),t.addEventListener("mousedown",ni,!0),t.addEventListener("pointerdown",ni,!0),t.addEventListener("touchstart",ni,!0),t.addEventListener("visibilitychange",ri,!0))}),[]),t=b.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!oi(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Qa=!0,Ya.start(100,(()=>{Qa=!1})),t.current=!1,!0)},ref:e}}function ii(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const li=e=>{const t=b.useRef({});return b.useEffect((()=>{t.current=e})),t.current};function si(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}function ci(e){return"string"==typeof e}function ui(e,t,n){return void 0===e||ci(e)?t:it({},t,{ownerState:it({},t.ownerState,n)})}function di(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=di(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function pi(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=di(e))&&(r&&(r+=" "),r+=t);return r}function fi(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 hi(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 mi=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function gi(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=lt(e,mi),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=pi(null==n?void 0:n.className,a,null==o?void 0:o.className,null==r?void 0:r.className),t=it({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),i=it({},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=fi(it({},o,r)),l=hi(r),s=hi(o),c=t(i),u=pi(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=it({},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=it({},c,n,s,l);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}(it({},i,{externalSlotProps:l}));return ui(n,it({},s,{ref:Va(c,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o)}function bi(e){var t;return parseInt(b.version,10)>=19?(null==e||null==(t=e.props)?void 0:t.ref)||null:(null==e?void 0:e.ref)||null}const vi=b.createContext(null);function yi(){return b.useContext(vi)}var xi="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Si(e){const{children:t,theme:n}=e,r=yi(),o=b.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return it({},e,t)}(r,n);return null!=e&&(e[xi]=null!==r),e}),[n,r]);return Pr.jsx(vi.Provider,{value:o,children:t})}const wi=["value"],Ei=b.createContext();function ki(e){let{value:t}=e,n=lt(e,wi);return Pr.jsx(Ei.Provider,it({value:null==t||t},n))}const Ci=b.createContext(void 0);function Ri({value:e,children:t}){return Pr.jsx(Ci.Provider,{value:e,children:t})}function Li({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Pa(o.defaultProps,r):o.styleOverrides||o.variants?r:Pa(o,r)}({props:e,name:t,theme:{components:b.useContext(Ci)}})}const Oi={};function Ii(e,t,n,r=!1){return b.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const a=n(o),i=e?it({},t,{[e]:a}):a;return r?()=>i:i}return it({},t,e?{[e]:n}:n)}),[e,t,n,r])}function _i(e){const{children:t,theme:n,themeId:r}=e,o=Yo(Oi),a=yi()||Oi,i=Ii(r,o,n),l=Ii(r,a,n,!0),s="rtl"===i.direction;return Pr.jsx(Si,{theme:l,children:Pr.jsx(Yn.Provider,{value:i,children:Pr.jsx(ki,{value:s,children:Pr.jsx(Ri,{value:null==i?void 0:i.components,children:t})})})})}const Pi=["component","direction","spacing","divider","children","className","useFlexGap"],Ti=Jo(),Mi=_a("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Ni(e){return Ta({props:e,name:"MuiStack",defaultTheme:Ti})}function qi(e,t){const n=b.Children.toArray(e).filter(Boolean);return n.reduce(((e,r,o)=>(e.push(r),o<n.length-1&&e.push(b.cloneElement(t,{key:`separator-${o}`})),e)),[])}const Di=({ownerState:e,theme:t})=>{let n=it({display:"flex",flexDirection:"column"},Zr({theme:t},Qr({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const r=po(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=Qr({values:e.direction,base:o}),i=Qr({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=Fr(n,Zr({theme:t},i,((t,n)=>{return e.useFlexGap?{gap:fo(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]}`]:fo(r,t)}};var o})))}return n=function(e,...t){const n=Xr(e),r=[n,...t].reduce(((e,t)=>Fr(e,t)),{});return Jr(Object.keys(n),r)}(t.breakpoints,n),n};const Ai=["defaultProps","mixins","overrides","palette","props","styleOverrides"],zi=["type","mode"];var ji,Fi={},$i={exports:{}};function Bi(){return ji||(ji=1,function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}($i)),$i.exports}var Wi,Hi=r(ot),Ui=r(Na);function Vi(){if(Wi)return Fi;Wi=1;var e=Bi();Object.defineProperty(Fi,"__esModule",{value:!0}),Fi.alpha=u,Fi.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=a(e),s=a(t),c=[o(i.values[0],s.values[0]),o(i.values[1],s.values[1]),o(i.values[2],s.values[2])];return l({type:"rgb",values:c})},Fi.colorChannel=void 0,Fi.darken=d,Fi.decomposeColor=a,Fi.emphasize=f,Fi.getContrastRatio=function(e,t){const n=c(e),r=c(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},Fi.getLuminance=c,Fi.hexToRgb=o,Fi.hslToRgb=s,Fi.lighten=p,Fi.private_safeAlpha=function(e,t,n){try{return u(e,t)}catch(t){return e}},Fi.private_safeColorChannel=void 0,Fi.private_safeDarken=function(e,t,n){try{return d(e,t)}catch(t){return e}},Fi.private_safeEmphasize=function(e,t,n){try{return f(e,t)}catch(t){return e}},Fi.private_safeLighten=function(e,t,n){try{return p(e,t)}catch(t){return e}},Fi.recomposeColor=l,Fi.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=a(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 t=e(Hi),n=e(Ui);function r(e,t=0,r=1){return(0,n.default)(e,t,r)}function o(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 a(e){if(e.type)return e;if("#"===e.charAt(0))return a(o(e));const n=e.indexOf("("),r=e.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(r))throw new Error((0,t.default)(9,e));let i,l=e.substring(n+1,e.length-1);if("color"===r){if(l=l.split(" "),i=l.shift(),4===l.length&&"/"===l[3].charAt(0)&&(l[3]=l[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i))throw new Error((0,t.default)(10,i))}else l=l.split(",");return l=l.map((e=>parseFloat(e))),{type:r,values:l,colorSpace:i}}const i=e=>{const t=a(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};Fi.colorChannel=i;function l(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 s(e){e=a(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let c="rgb";const u=[Math.round(255*s(0)),Math.round(255*s(8)),Math.round(255*s(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),l({type:c,values:u})}function c(e){let t="hsl"===(e=a(e)).type||"hsla"===e.type?a(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 u(e,t){return e=a(e),t=r(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,l(e)}function d(e,t){if(e=a(e),t=r(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 l(e)}function p(e,t){if(e=a(e),t=r(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 l(e)}function f(e,t=.15){return c(e)>.5?d(e,t):p(e,t)}return Fi.private_safeColorChannel=(e,t)=>{try{return i(e)}catch(t){return e}},Fi}var Gi=Vi();const Ki={black:"#000",white:"#fff"},Zi={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"},Xi={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Ji={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Qi={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Yi={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},el={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},tl={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},nl=["mode","contrastThreshold","tonalOffset"],rl={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:Ki.white,default:Ki.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}},ol={text:{primary:Ki.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:Ki.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 al(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=Gi.lighten(e.main,o):"dark"===t&&(e.dark=Gi.darken(e.main,a)))}function il(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=lt(e,nl),a=e.primary||function(e="light"){return"dark"===e?{main:Yi[200],light:Yi[50],dark:Yi[400]}:{main:Yi[700],light:Yi[400],dark:Yi[800]}}(t),i=e.secondary||function(e="light"){return"dark"===e?{main:Xi[200],light:Xi[50],dark:Xi[400]}:{main:Xi[500],light:Xi[300],dark:Xi[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Ji[500],light:Ji[300],dark:Ji[700]}:{main:Ji[700],light:Ji[400],dark:Ji[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:el[400],light:el[300],dark:el[700]}:{main:el[700],light:el[500],dark:el[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:tl[400],light:tl[300],dark:tl[700]}:{main:tl[800],light:tl[500],dark:tl[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:Qi[400],light:Qi[300],dark:Qi[700]}:{main:"#ed6c02",light:Qi[500],dark:Qi[900]}}(t);function d(e){return Gi.getContrastRatio(e,ol.text.primary)>=n?ol.text.primary:rl.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:a=700})=>{if(!(e=it({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(rt(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(rt(12,t?` (${t})`:"",JSON.stringify(e.main)));return al(e,"light",o,r),al(e,"dark",a,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:ol,light:rl};return Fr(it({common:it({},Ki),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:Zi,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const ll=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const sl={textTransform:"uppercase"},cl='"Roboto", "Helvetica", "Arial", sans-serif';function ul(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=cl,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,p=lt(n,ll),f=o/14,h=d||(e=>e/c*f+"rem"),m=(e,t,n,o,a)=>{return it({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===cl?{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,sl),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,sl),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Fr(it({htmlFontSize:c,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function dl(...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 pl=["none",dl(0,2,1,-1,0,1,1,0,0,1,3,0),dl(0,3,1,-2,0,2,2,0,0,1,5,0),dl(0,3,3,-2,0,3,4,0,0,1,8,0),dl(0,2,4,-1,0,4,5,0,0,1,10,0),dl(0,3,5,-1,0,5,8,0,0,1,14,0),dl(0,3,5,-1,0,6,10,0,0,1,18,0),dl(0,4,5,-2,0,7,10,1,0,2,16,1),dl(0,5,5,-3,0,8,10,1,0,3,14,2),dl(0,5,6,-3,0,9,12,1,0,3,16,2),dl(0,6,6,-3,0,10,14,1,0,4,18,3),dl(0,6,7,-4,0,11,15,1,0,4,20,3),dl(0,7,8,-4,0,12,17,2,0,5,22,4),dl(0,7,8,-4,0,13,19,2,0,5,24,4),dl(0,7,9,-4,0,14,21,2,0,5,26,4),dl(0,8,9,-5,0,15,22,2,0,6,28,5),dl(0,8,10,-5,0,16,24,2,0,6,30,5),dl(0,8,11,-5,0,17,26,2,0,6,32,5),dl(0,9,11,-5,0,18,28,2,0,7,34,6),dl(0,9,12,-6,0,19,29,2,0,7,36,6),dl(0,10,13,-6,0,20,31,3,0,8,38,7),dl(0,10,13,-6,0,21,33,3,0,8,40,7),dl(0,10,14,-6,0,22,35,3,0,8,42,7),dl(0,11,14,-7,0,23,36,3,0,9,44,8),dl(0,11,15,-7,0,24,38,3,0,9,46,8)],fl=["duration","easing","delay"],hl={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)"},ml={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function gl(e){return`${Math.round(e)}ms`}function bl(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function vl(e){const t=it({},hl,e.easing),n=it({},ml,e.duration);return it({getAutoHeightDuration:bl,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:a=t.easeInOut,delay:i=0}=r;return lt(r,fl),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:gl(o)} ${a} ${"string"==typeof i?i:gl(i)}`)).join(",")}},e,{easing:t,duration:n})}const yl={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},xl=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Sl(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:a={}}=e,i=lt(e,xl);if(e.vars&&void 0===e.generateCssVars)throw new Error(rt(18));const l=il(r),s=Jo(e);let c=Fr(s,{mixins:(u=s.breakpoints,d=n,it({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:pl.slice(),typography:ul(l,a),transitions:vl(o),zIndex:it({},yl)});var u,d;return c=Fr(c,i),c=t.reduce(((e,t)=>Fr(e,t)),c),c.unstable_sxConfig=it({},Vo,null==i?void 0:i.unstable_sxConfig),c.unstable_sx=function(e){return Ko({sx:e,theme:this})},c}const wl=Sl();function El(){const e=ta(wl);return e[at]||e}var kl,Cl={},Rl={exports:{}};var Ll,Ol={exports:{}};var Il,_l=r(Ar),Pl=r($r),Tl=r(eo),Ml=r(xa),Nl=r(Qo),ql=r(ia);function Dl(){if(Il)return Cl;Il=1;var e=Bi();Object.defineProperty(Cl,"__esModule",{value:!0}),Cl.default=function(e={}){const{themeId:a,defaultTheme:l=p,rootShouldForwardProp:s=d,slotShouldForwardProp:u=d}=e,b=e=>(0,i.default)((0,t.default)({},e,{theme:h((0,t.default)({},e,{defaultTheme:l,themeId:a}))}));return b.__mui_systemSx=!0,(e,i={})=>{(0,r.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:p,slot:v,skipVariantsResolver:y,skipSx:x,overridesResolver:S=m(f(v))}=i,w=(0,n.default)(i,c),E=void 0!==y?y:v&&"Root"!==v&&"root"!==v||!1,k=x||!1;let C=d;"Root"===v||"root"===v?C=s:v?C=u:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(C=void 0);const R=(0,r.default)(e,(0,t.default)({shouldForwardProp:C,label:undefined},w)),L=e=>"function"==typeof e&&e.__emotion_real!==e||(0,o.isPlainObject)(e)?n=>g(e,(0,t.default)({},n,{theme:h({theme:n.theme,defaultTheme:l,themeId:a})})):e,O=(n,...r)=>{let o=L(n);const i=r?r.map(L):[];p&&S&&i.push((e=>{const n=h((0,t.default)({},e,{defaultTheme:l,themeId:a}));if(!n.components||!n.components[p]||!n.components[p].styleOverrides)return null;const r=n.components[p].styleOverrides,o={};return Object.entries(r).forEach((([r,a])=>{o[r]=g(a,(0,t.default)({},e,{theme:n}))})),S(e,o)})),p&&!E&&i.push((e=>{var n;const r=h((0,t.default)({},e,{defaultTheme:l,themeId:a}));return g({variants:null==r||null==(n=r.components)||null==(n=n[p])?void 0:n.variants},(0,t.default)({},e,{theme:r}))})),k||i.push(b);const s=i.length-r.length;if(Array.isArray(n)&&s>0){const e=new Array(s).fill("");o=[...n,...e],o.raw=[...n.raw,...e]}const c=R(o,...i);return e.muiName&&(c.muiName=e.muiName),c};return R.withConfig&&(O.withConfig=R.withConfig),O}},Cl.shouldForwardProp=d,Cl.systemDefaultTheme=void 0;var t=e((kl||(kl=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)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Rl)),Rl.exports)),n=e((Ll||(Ll=1,function(e){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports}(Ol)),Ol.exports)),r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(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}(_l),o=Pl;e(Tl),e(Ml);var a=e(Nl),i=e(ql);const l=["ownerState"],s=["variants"],c=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}function d(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const p=Cl.systemDefaultTheme=(0,a.default)(),f=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function h({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function m(e){return e?(t,n)=>n[e]:null}function g(e,r){let{ownerState:o}=r,a=(0,n.default)(r,l);const i="function"==typeof e?e((0,t.default)({ownerState:o},a)):e;if(Array.isArray(i))return i.flatMap((e=>g(e,(0,t.default)({ownerState:o},a))));if(i&&"object"==typeof i&&Array.isArray(i.variants)){const{variants:e=[]}=i;let r=(0,n.default)(i,s);return e.forEach((e=>{let n=!0;"function"==typeof e.props?n=e.props((0,t.default)({ownerState:o},a,o)):Object.keys(e.props).forEach((t=>{(null==o?void 0:o[t])!==e.props[t]&&a[t]!==e.props[t]&&(n=!1)})),n&&(Array.isArray(r)||(r=[r]),r.push("function"==typeof e.style?e.style((0,t.default)({ownerState:o},a,o)):e.style))})),r}return i}return Cl}const Al=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,zl=n(Dl())({themeId:at,defaultTheme:wl,rootShouldForwardProp:Al}),jl=["theme"];function Fl(e){let{theme:t}=e,n=lt(e,jl);const r=t[at];let o=r||t;return"function"!=typeof t&&(r&&!r.vars?o=it({},r,{vars:null}):t&&!t.vars&&(o=it({},t,{vars:null}))),Pr.jsx(_i,it({},n,{themeId:r?at:void 0,theme:o}))}const $l=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Bl(e){return Li(e)}function Wl(e,t){return Wl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Wl(e,t)}function Hl(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Wl(e,t)}var Ul=et(),Vl=n(Ul),Gl=!1,Kl=v.createContext(null),Zl="unmounted",Xl="exited",Jl="entering",Ql="entered",Yl="exiting",es=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=Xl,r.appearStatus=Jl):o=Ql:o=t.unmountOnExit||t.mountOnEnter?Zl:Xl,r.state={status:o},r.nextCallback=null,r}Hl(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Zl?{status:Xl}: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!==Jl&&n!==Ql&&(t=Jl):n!==Jl&&n!==Ql||(t=Yl)}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===Jl){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Vl.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Xl&&this.setState({status:Zl})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Vl.findDOMNode(this),r],a=o[0],i=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||Gl?this.safeSetState({status:Ql},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,i),this.safeSetState({status:Jl},(function(){t.props.onEntering(a,i),t.onTransitionEnd(s,(function(){t.safeSetState({status:Ql},(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:Vl.findDOMNode(this);t&&!Gl?(this.props.onExit(r),this.safeSetState({status:Yl},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Xl},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Xl},(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:Vl.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===Zl)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=lt(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return v.createElement(Kl.Provider,{value:null},"function"==typeof n?n(e,r):v.cloneElement(v.Children.only(n),r))},t}(v.Component);function ts(){}function ns(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rs(e,t){var n=Object.create(null);return e&&b.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&b.isValidElement(e)?t(e):e}(e)})),n}function os(e,t,n){return null!=n[t]?n[t]:e.props[t]}function as(e,t,n){var r=rs(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(b.isValidElement(i)){var l=a in t,s=a in r,c=t[a],u=b.isValidElement(c)&&!c.props.in;!s||l&&!u?s||!l||u?s&&l&&b.isValidElement(c)&&(o[a]=b.cloneElement(i,{onExited:n.bind(null,i),in:c.props.in,exit:os(i,"exit",e),enter:os(i,"enter",e)})):o[a]=b.cloneElement(i,{in:!1}):o[a]=b.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:os(i,"exit",e),enter:os(i,"enter",e)})}})),o}es.contextType=Kl,es.propTypes={},es.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ts,onEntering:ts,onEntered:ts,onExit:ts,onExiting:ts,onExited:ts},es.UNMOUNTED=Zl,es.EXITED=Xl,es.ENTERING=Jl,es.ENTERED=Ql,es.EXITING=Yl;var is=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},ls=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(ns(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Hl(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,rs(n.children,(function(e){return b.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:os(e,"appear",n),enter:os(e,"enter",n),exit:os(e,"exit",n)})}))):as(e,o,a),firstRender:!1}},n.handleExited=function(e,t){var n=rs(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=it({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=lt(e,["component","childFactory"]),o=this.state.contextValue,a=is(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?v.createElement(Kl.Provider,{value:o},a):v.createElement(Kl.Provider,{value:o},v.createElement(t,r,a))},t}(v.Component);ls.propTypes={},ls.defaultProps={component:"div",childFactory:function(e){return e}};const ss=ha("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),cs=["center","classes","className"];let us,ds,ps,fs,hs=e=>e;const ms=sr(us||(us=hs`
|
|
24
24
|
0% {
|
|
25
25
|
transform: scale(0);
|
|
26
26
|
opacity: 0.1;
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
transform: scale(1);
|
|
31
31
|
opacity: 0.3;
|
|
32
32
|
}
|
|
33
|
-
`)),
|
|
33
|
+
`)),gs=sr(ds||(ds=hs`
|
|
34
34
|
0% {
|
|
35
35
|
opacity: 1;
|
|
36
36
|
}
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
100% {
|
|
39
39
|
opacity: 0;
|
|
40
40
|
}
|
|
41
|
-
`)),
|
|
41
|
+
`)),bs=sr(ps||(ps=hs`
|
|
42
42
|
0% {
|
|
43
43
|
transform: scale(1);
|
|
44
44
|
}
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
100% {
|
|
51
51
|
transform: scale(1);
|
|
52
52
|
}
|
|
53
|
-
`)),
|
|
53
|
+
`)),vs=zl("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),ys=zl((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]=b.useState(!1),p=ua(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:i,height:i,top:-i/2+a,left:-i/2+o},h=ua(n.child,u&&n.childLeaving,r&&n.childPulsate);return l||u||d(!0),b.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,c);return()=>{clearTimeout(e)}}}),[s,l,c]),Pr.jsx("span",{className:p,style:f,children:Pr.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(fs||(fs=hs`
|
|
54
54
|
opacity: 0;
|
|
55
55
|
position: absolute;
|
|
56
56
|
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
animation-iteration-count: infinite;
|
|
94
94
|
animation-delay: 200ms;
|
|
95
95
|
}
|
|
96
|
-
`),ms.rippleVisible,ws,550,(({theme:e})=>e.transitions.easing.easeInOut),ms.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),ms.child,ms.childLeaving,Es,550,(({theme:e})=>e.transitions.easing.easeInOut),ms.childPulsate,ks,(({theme:e})=>e.transitions.easing.easeInOut)),Ls=b.forwardRef((function(e,t){const n=Gl({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a}=n,i=lt(n,gs),[l,s]=b.useState([]),c=b.useRef(0),u=b.useRef(null);b.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[l]);const d=b.useRef(!1),p=ti(),f=b.useRef(null),h=b.useRef(null),m=b.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:a,cb:i}=e;s((e=>[...e,Tr.jsx(Rs,{classes:{ripple:ha(o.ripple,ms.ripple),rippleVisible:ha(o.rippleVisible,ms.rippleVisible),ripplePulsate:ha(o.ripplePulsate,ms.ripplePulsate),child:ha(o.child,ms.child),childLeaving:ha(o.childLeaving,ms.childLeaving),childPulsate:ha(o.childPulsate,ms.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:a},c.current)])),c.current+=1,u.current=i}),[o]),g=b.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=b.useCallback((()=>{g({},{pulsate:!0})}),[g]),y=b.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,(()=>{y(e,t)}));f.current=null,s((e=>e.length>0?e.slice(1):e)),u.current=t}),[p]);return b.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:y})),[v,g,y]),Tr.jsx(Cs,it({className:ha(ms.root,o.root,a),ref:h},i,{children:Tr.jsx(hs,{component:null,exit:!0,children:l})}))}));function Os(e){return ba("MuiButtonBase",e)}const Is=va("MuiButtonBase",["root","disabled","focusVisible"]),_s=["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"],Ps=Wl("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"},[`&.${Is.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ts=b.forwardRef((function(e,t){const n=Gl({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:y,onKeyDown:x,onKeyUp:S,onMouseDown:w,onMouseLeave:E,onMouseUp:k,onTouchEnd:C,onTouchMove:R,onTouchStart:L,tabIndex:O=0,TouchRippleProps:I,touchRippleRef:_,type:P}=n,T=lt(n,_s),M=b.useRef(null),N=b.useRef(null),q=Ja(N,_),{isFocusVisibleRef:A,onFocus:D,onBlur:z,ref:j}=ui(),[F,$]=b.useState(!1);s&&F&&$(!1),b.useImperativeHandle(r,(()=>({focusVisible:()=>{$(!0),M.current.focus()}})),[]);const[B,W]=b.useState(!1);b.useEffect((()=>{W(!0)}),[]);const H=B&&!c&&!s;function U(e,t,n=u){return Xa((r=>{t&&t(r);return!n&&N.current&&N.current[e](r),!0}))}b.useEffect((()=>{F&&d&&!c&&B&&N.current.pulsate()}),[c,d,F,B]);const V=U("start",w),G=U("stop",m),K=U("stop",g),Z=U("stop",k),X=U("stop",(e=>{F&&e.preventDefault(),E&&E(e)})),J=U("start",L),Q=U("stop",C),Y=U("stop",R),ee=U("stop",(e=>{z(e),!1===A.current&&$(!1),f&&f(e)}),!1),te=Xa((e=>{M.current||(M.current=e.currentTarget),D(e),!0===A.current&&($(!0),y&&y(e)),v&&v(e)})),ne=()=>{const e=M.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=b.useRef(!1),oe=Xa((e=>{d&&!re.current&&F&&N.current&&" "===e.key&&(re.current=!0,N.current.stop(e,(()=>{N.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),ae=Xa((e=>{d&&" "===e.key&&N.current&&F&&!e.defaultPrevented&&(re.current=!1,N.current.stop(e,(()=>{N.current.pulsate(e)}))),S&&S(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===P?"button":P,le.disabled=s):(T.href||T.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=Ja(t,j,M),ce=it({},n,{centerRipple:o,component:l,disabled:s,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:O,focusVisible:F}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=fi({root:["root",t&&"disabled",n&&"focusVisible"]},Os,o);return n&&r&&(a.root+=` ${r}`),a})(ce);return Tr.jsxs(Ps,it({as:ie,className:ha(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:Q,onTouchMove:Y,onTouchStart:J,ref:se,tabIndex:s?-1:O,type:P},le,T,{children:[a,H?Tr.jsx(Ls,it({ref:q,center:o},I)):null]}))}));function Ms(e){return ba("MuiButton",e)}const Ns=va("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","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),qs=b.createContext({}),As=b.createContext(void 0),Ds=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],zs=e=>it({},"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}}),js=Wl(Ts,{shouldForwardProp:e=>Bl(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ro(n.color)}`],t[`size${ro(n.size)}`],t[`${n.variant}Size${ro(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 it({},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":it({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Qi.alpha(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})`:Qi.alpha(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})`:Qi.alpha(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":it({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Ns.focusVisible}`]:it({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Ns.disabled}`]:it({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 ${Qi.alpha(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"},[`&.${Ns.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ns.disabled}`]:{boxShadow:"none"}})),Fs=Wl("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ro(n.size)}`]]}})((({ownerState:e})=>it({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},zs(e)))),$s=Wl("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ro(n.size)}`]]}})((({ownerState:e})=>it({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},zs(e)))),Bs=b.forwardRef((function(e,t){const n=b.useContext(qs),r=b.useContext(As),o=Gl({props:qa(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:y="text"}=o,x=lt(o,Ds),S=it({},o,{color:i,component:l,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:h,size:m,type:v,variant:y}),w=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,classes:i}=e;return it({},i,fi({root:["root",a,`${a}${ro(t)}`,`size${ro(o)}`,`${a}Size${ro(o)}`,`color${ro(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ro(o)}`],endIcon:["icon","endIcon",`iconSize${ro(o)}`]},Ms,i))})(S),E=g&&Tr.jsx(Fs,{className:w.startIcon,ownerState:S,children:g}),k=p&&Tr.jsx($s,{className:w.endIcon,ownerState:S,children:p}),C=r||"";return Tr.jsxs(js,it({ownerState:S,className:ha(n.className,w.root,s,C),component:l,disabled:c,focusRipple:!d,focusVisibleClassName:ha(w.focusVisible,f),ref:t,type:v},x,{classes:w,children:[E,a,k]}))}));var Ws={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 Hs={green:"#00873D",blue:"#3F8AB3",grey100:"#ffffff",grey98:"#FBFBFB",grey95:"#F2F2F2",grey90:"#E6E6E6",grey45:"#737373",grey25:"#404040",grey20:"#333333",grey15:"#262626",grey10:"#1A1A1A",grey0:"#000000"},Us={mode:"light",palette:{primary:{main:Hs.grey25,contrastText:Hs.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:Hs.grey25,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)",light:Hs.grey100,dark:Hs.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:Hs.grey100,default:Hs.grey100,lightest:Hs.grey100,lighter:Hs.grey98,darker:Hs.grey95,darkest:Hs.grey90},custom:{focusBorder:Hs.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)",disabledBackground:Hs.grey45,disabledContrastText:Hs.grey100},selected:{main:Hs.green,alternative:"#E4E4E4",excluded:"#BEBEBE",selectedExcluded:"#BEBEBE",possible:Hs.grey100,selectedContrastText:Hs.grey100,mainContrastText:Hs.grey100,alternativeContrastText:Hs.grey25,excludedContrastText:Hs.grey25,selectedExcludedContrastText:Hs.grey100,possibleContrastText:Hs.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)"}}},Vs={mode:"dark",palette:{primary:{main:Hs.grey20,contrastText:Hs.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:Hs.grey100,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)",light:Hs.grey100,dark:Hs.grey0},action:{active:Hs.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:Hs.grey25,lighter:Hs.grey20,darker:Hs.grey15,darkest:Hs.grey10},custom:{focusBorder:Hs.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)",disabledBackground:Hs.grey45,disabledContrastText:Hs.grey100},selected:{main:Hs.green,alternative:Hs.grey20,excluded:Hs.grey10,selectedExcluded:Hs.grey10,possible:Hs.grey80,selectedContrastText:Hs.grey100,mainContrastText:Hs.grey100,alternativeContrastText:Hs.grey100,excludedContrastText:Hs.grey100,selectedExcludedContrastText:Hs.grey100,possibleContrastText:Hs.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)"}}},Gs={},Ks=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(Ns.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(Ns.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(Ns.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(Ns.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function Zs(e){let t=Us,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=Vs));const r=JSON.stringify(t);if(Gs[r])return Gs[r];const o={palette:c(c({type:t.mode},Ws.palette),t.palette),typography:c({},Ws.typography),shadows:Ws.shadows,props:c({},Ws.props),shape:c({},Ws.shape)};return Gs[r]=Rl(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:a={},styleOverrides:i={}}=e,l=it({},lt(e,Bi),{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=wo(e.spacing);const s=Kr(e.breakpoints||{}),c=l.spacing;l.mixins=it({gutters:(e={})=>it({paddingLeft:c(2),paddingRight:c(2)},e,{[s.up("sm")]:it({paddingLeft:c(3),paddingRight:c(3)},e[s.up("sm")])})},n);const{type:u,mode:d}=o,p=lt(o,Wi),f=d||u||"light";return l.palette=it({text:{hint:"dark"===f?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:f,type:f},p),l}(c(c({},o),{},{overrides:Ks(o)}))),Gs[r].name=n,Gs[r]}pa.configure((e=>"njs-".concat("4f66","-").concat(e.replace("Mui",""))));var Xs=v.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null,modelStore:{},selectionStore:{}});const Js={active:!0,select:!0,passive:!0,edit:!1};function Qs(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(Js).forEach((e=>{void 0!==r[e]?(t[e]=r[e],n[e]=!r[e]):(t[e]=Js[e],n[e]=!Js[e])})),e.constraints=n,e.interactions=t}var Ys=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={},o={get:e=>t[e],set:(n,o)=>{if(void 0===n||"object"==typeof n)throw new Error("Invalid key: ".concat(JSON.stringify(n)));return t[n]=o,r[n]=e({type:"SET",value:o}),o},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)))},destroy:()=>{Object.keys(r).forEach((e=>{r[e]&&r[e]()}))}};return[()=>{const[,e]=b.useState(t);return b.useEffect((()=>(n.push(e),()=>{const t=n.indexOf(e);n.splice(t,1)})),[e]),[o]},o]};const ec=b.forwardRef(((e,t)=>{let{initialContext:n,renderCallback:r,modelStore:o,selectionStore:a}=e;const[i,l]=b.useState(n),[s,c]=b.useState(),{theme:u}=b.useMemo((()=>({theme:Zs(s)})),[s]),[d,p]=b.useState([]);return b.useEffect((()=>{r&&r()}),[]),b.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(Nr,{injectFirst:!0},v.createElement(Ul,{theme:u},v.createElement(Xs.Provider,{value:i},d)))}));function tc(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.12.5"),i.setAttribute("data-app-id",n.id),document.body.appendChild(i),r&&Qs(r);const l=function(e){const[t,n]=Ys({}),[r,o]=Ys({}),[a,i]=Ys({}),[l,s]=Ys({}),[c,u]=Ys({}),[,d]=Ys({}),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("closed",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]=Ys({},p);return{subscribe:e=>{const t=p({type:"SET",value:e});return()=>{t(),h.clear(e.id)}},destroy:()=>{h.destroy()},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]=Ys({}),[r,o]=Ys({}),[a,i]=Ys({});return{useAppSelectionsStore:t,useAppModalStore:r,appSelectionsStore:n,appModalStore:o,useModalObjectStore:a,modalObjectStore:i,appId:e}}(n.id),c=nt.createRoot(i);c.render(v.createElement(ec,{ref:a,initialContext:r,renderCallback:t,modelStore:l,selectionStore:s}));const u={},d=[],p=[];return[{toggleFocusOfCells(e){Object.keys(u).forEach((t=>{u[t].current.toggleFocus(t===e)}))},cells:u,addCell(e,t){u[e]=t},removeCell(e){delete u[e]},add(e,t){(async()=>{await o,p.push(e),d.push(t),a.current.setComps(p)})()},remove(e){(async t=>{await o;const n=p.indexOf(e);var r;-1!==n&&(null===(r=d[n])||void 0===r||r.call(d),p.splice(n,1),d.splice(n,1));null==a||null===(t=a.current)||void 0===t||t.setComps(p)})()},setMuiThemeName(e){(async()=>{await o,a.current.setMuiThemeName(e)})()},context(e){(async()=>{await o,e&&Qs(e),a.current.setContext(e)})()},destroy(){d.forEach((e=>{e&&e()})),l.destroy(),c.unmount()}},l,s,a,o]}function nc(e){return ba("MuiSvgIcon",e)}va("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const rc=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],oc=Wl("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${ro(n.color)}`],t[`fontSize${ro(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]}})),ac=b.forwardRef((function(e,t){const n=Gl({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=lt(n,rc),f=b.isValidElement(r)&&"svg"===r.type,h=it({},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 fi({root:["root","inherit"!==t&&`color${ro(t)}`,`fontSize${ro(n)}`]},nc,r)})(h);return Tr.jsxs(oc,it({as:i,className:ha(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?Tr.jsx("title",{children:u}):null]}))}));function ic(e,t){function n(n,r){return Tr.jsx(ac,it({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=ac.muiName,b.memo(b.forwardRef(n))}ac.muiName="SvgIcon";const lc={configure:e=>{pa.configure(e)}};var sc=Object.freeze({__proto__:null,capitalize:ro,createChainedFunction:Fa,createSvgIcon:ic,debounce:$a,deprecatedPropType:function(e,t){return()=>null},isMuiElement:Ba,ownerDocument:Wa,ownerWindow:Ha,requirePropFactory:function(e,t){return()=>null},setRef:Ua,unstable_ClassNameGenerator:lc,unstable_useEnhancedEffect:Da,unstable_useId:Ka,unsupportedProp:function(e,t,n,r,o){return null},useControlled:Za,useEventCallback:Xa,useForkRef:Ja,useIsFocusVisible:ui});const cc=e=>e.scrollTop;function uc(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 dc(e){return ba("MuiPaper",e)}va("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 pc=["className","component","elevation","square","variant"],fc=Wl("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 it({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&&it({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Qi.alpha("#fff",Vl(t.elevation))}, ${Qi.alpha("#fff",Vl(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),hc=b.forwardRef((function(e,t){const n=Gl({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:a=1,square:i=!1,variant:l="elevation"}=n,s=lt(n,pc),c=it({},n,{component:o,elevation:a,square:i,variant:l}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return fi({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},dc,o)})(c);return Tr.jsx(fc,it({as:o,ownerState:c,className:ha(u.root,r),ref:t},s))}));function mc(e){return ba("MuiIconButton",e)}const gc=va("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),bc=["edge","children","className","color","disabled","disableFocusRipple","size"],vc=Wl(Ts,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${ro(n.color)}`],n.edge&&t[`edge${ro(n.edge)}`],t[`size${ro(n.size)}`]]}})((({theme:e,ownerState:t})=>it({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})`:Qi.alpha(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 it({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&it({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":it({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qi.alpha(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)},{[`&.${gc.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),yc=b.forwardRef((function(e,t){const n=Gl({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=lt(n,bc),d=it({},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 fi({root:["root",n&&"disabled","default"!==r&&`color${ro(r)}`,o&&`edge${ro(o)}`,`size${ro(a)}`]},mc,t)})(d);return Tr.jsx(vc,it({className:ha(p.root,a),centerRipple:!0,focusRipple:!s,disabled:l,ref:t},u,{ownerState:d,children:o}))}));function xc(e){return ba("MuiTypography",e)}va("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Sc=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],wc=Wl("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${ro(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>it({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}))),Ec={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},kc={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Cc=b.forwardRef((function(e,t){const n=Gl({props:e,name:"MuiTypography"}),r=(e=>kc[e]||e)(n.color),o=ca(it({},n,{color:r})),{align:a="inherit",className:i,component:l,gutterBottom:s=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=Ec}=o,f=lt(o,Sc),h=it({},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]||Ec[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e;return fi({root:["root",a,"inherit"!==e.align&&`align${ro(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},xc,i)})(h);return Tr.jsx(wc,it({as:m,ref:t,ownerState:h,className:ha(g.root,i)},f))}));var Rc,Lc={};function Oc(){if(Rc)return Lc;Rc=1,Object.defineProperty(Lc,"__esModule",{value:!0}),Lc.default=void 0;var e=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(o,i,l):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}(g()),t=ql;function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}return Lc.default=function(n=null){const r=e.useContext(t.ThemeContext);return r&&(o=r,0!==Object.keys(o).length)?r:n;var o},Lc}var Ic=n(Oc()),_c="top",Pc="bottom",Tc="right",Mc="left",Nc="auto",qc=[_c,Pc,Tc,Mc],Ac="start",Dc="end",zc="clippingParents",jc="viewport",Fc="popper",$c="reference",Bc=qc.reduce((function(e,t){return e.concat([t+"-"+Ac,t+"-"+Dc])}),[]),Wc=[].concat(qc,[Nc]).reduce((function(e,t){return e.concat([t,t+"-"+Ac,t+"-"+Dc])}),[]),Hc=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Uc(e){return e?(e.nodeName||"").toLowerCase():null}function Vc(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Gc(e){return e instanceof Vc(e).Element||e instanceof Element}function Kc(e){return e instanceof Vc(e).HTMLElement||e instanceof HTMLElement}function Zc(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Vc(e).ShadowRoot||e instanceof ShadowRoot)}var Xc={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];Kc(o)&&Uc(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}),{});Kc(r)&&Uc(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Jc(e){return e.split("-")[0]}var Qc=Math.max,Yc=Math.min,eu=Math.round;function tu(){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 nu(){return!/^((?!chrome|android).)*safari/i.test(tu())}function ru(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&Kc(e)&&(o=e.offsetWidth>0&&eu(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&eu(r.height)/e.offsetHeight||1);var i=(Gc(e)?Vc(e):window).visualViewport,l=!nu()&&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 ou(e){var t=ru(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 au(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Zc(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function iu(e){return Vc(e).getComputedStyle(e)}function lu(e){return["table","td","th"].indexOf(Uc(e))>=0}function su(e){return((Gc(e)?e.ownerDocument:e.document)||window.document).documentElement}function cu(e){return"html"===Uc(e)?e:e.assignedSlot||e.parentNode||(Zc(e)?e.host:null)||su(e)}function uu(e){return Kc(e)&&"fixed"!==iu(e).position?e.offsetParent:null}function du(e){for(var t=Vc(e),n=uu(e);n&&lu(n)&&"static"===iu(n).position;)n=uu(n);return n&&("html"===Uc(n)||"body"===Uc(n)&&"static"===iu(n).position)?t:n||function(e){var t=/firefox/i.test(tu());if(/Trident/i.test(tu())&&Kc(e)&&"fixed"===iu(e).position)return null;var n=cu(e);for(Zc(n)&&(n=n.host);Kc(n)&&["html","body"].indexOf(Uc(n))<0;){var r=iu(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 pu(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function fu(e,t,n){return Qc(e,Yc(t,n))}function hu(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function mu(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var gu={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=Jc(n.placement),s=pu(l),c=[Mc,Tc].indexOf(l)>=0?"height":"width";if(a&&i){var u=function(e,t){return hu("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:mu(e,qc))}(o.padding,n),d=ou(a),p="y"===s?_c:Mc,f="y"===s?Pc:Tc,h=n.rects.reference[c]+n.rects.reference[s]-i[s]-n.rects.popper[c],m=i[s]-n.rects.reference[s],g=du(a),b=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,v=h/2-m/2,y=u[p],x=b-d[c]-u[f],S=b/2-d[c]/2+v,w=fu(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)))&&au(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function bu(e){return e.split("-")[1]}var vu={top:"auto",right:"auto",bottom:"auto",left:"auto"};function yu(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 b=i.hasOwnProperty("x"),v=i.hasOwnProperty("y"),y=Mc,x=_c,S=window;if(c){var w=du(n),E="clientHeight",k="clientWidth";if(w===Vc(n)&&"static"!==iu(w=su(n)).position&&"absolute"===l&&(E="scrollHeight",k="scrollWidth"),o===_c||(o===Mc||o===Tc)&&a===Dc)x=Pc,m-=(d&&w===S&&S.visualViewport?S.visualViewport.height:w[E])-r.height,m*=s?1:-1;if(o===Mc||(o===_c||o===Pc)&&a===Dc)y=Tc,f-=(d&&w===S&&S.visualViewport?S.visualViewport.width:w[k])-r.width,f*=s?1:-1}var C,R=Object.assign({position:l},c&&vu),L=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:eu(n*o)/o||0,y:eu(r*o)/o||0}}({x:f,y:m},Vc(n)):{x:f,y:m};return f=L.x,m=L.y,s?Object.assign({},R,((C={})[x]=v?"0":"",C[y]=b?"0":"",C.transform=(S.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",C)):Object.assign({},R,((t={})[x]=v?m+"px":"",t[y]=b?f+"px":"",t.transform="",t))}var xu={passive:!0};var Su={left:"right",right:"left",bottom:"top",top:"bottom"};function wu(e){return e.replace(/left|right|bottom|top/g,(function(e){return Su[e]}))}var Eu={start:"end",end:"start"};function ku(e){return e.replace(/start|end/g,(function(e){return Eu[e]}))}function Cu(e){var t=Vc(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ru(e){return ru(su(e)).left+Cu(e).scrollLeft}function Lu(e){var t=iu(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Ou(e){return["html","body","#document"].indexOf(Uc(e))>=0?e.ownerDocument.body:Kc(e)&&Lu(e)?e:Ou(cu(e))}function Iu(e,t){var n;void 0===t&&(t=[]);var r=Ou(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=Vc(r),i=o?[a].concat(a.visualViewport||[],Lu(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(Iu(cu(i)))}function _u(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Pu(e,t,n){return t===jc?_u(function(e,t){var n=Vc(e),r=su(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,l=0,s=0;if(o){a=o.width,i=o.height;var c=nu();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:i,x:l+Ru(e),y:s}}(e,n)):Gc(t)?function(e,t){var n=ru(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):_u(function(e){var t,n=su(e),r=Cu(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=Qc(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Qc(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Ru(e),s=-r.scrollTop;return"rtl"===iu(o||n).direction&&(l+=Qc(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:l,y:s}}(su(e)))}function Tu(e,t,n,r){var o="clippingParents"===t?function(e){var t=Iu(cu(e)),n=["absolute","fixed"].indexOf(iu(e).position)>=0&&Kc(e)?du(e):e;return Gc(n)?t.filter((function(e){return Gc(e)&&au(e,n)&&"body"!==Uc(e)})):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],l=a.reduce((function(t,n){var o=Pu(e,n,r);return t.top=Qc(o.top,t.top),t.right=Yc(o.right,t.right),t.bottom=Yc(o.bottom,t.bottom),t.left=Qc(o.left,t.left),t}),Pu(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 Mu(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?Jc(o):null,i=o?bu(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(a){case _c:t={x:l,y:n.y-r.height};break;case Pc:t={x:l,y:n.y+n.height};break;case Tc:t={x:n.x+n.width,y:s};break;case Mc:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=a?pu(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case Ac:t[c]=t[c]-(n[u]/2-r[u]/2);break;case Dc:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function Nu(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?zc:l,c=n.rootBoundary,u=void 0===c?jc:c,d=n.elementContext,p=void 0===d?Fc:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,b=hu("number"!=typeof g?g:mu(g,qc)),v=p===Fc?$c:Fc,y=e.rects.popper,x=e.elements[h?v:p],S=Tu(Gc(x)?x:x.contextElement||su(e.elements.popper),s,u,i),w=ru(e.elements.reference),E=Mu({reference:w,element:y,placement:o}),k=_u(Object.assign({},y,E)),C=p===Fc?k:w,R={top:S.top-C.top+b.top,bottom:C.bottom-S.bottom+b.bottom,left:S.left-C.left+b.left,right:C.right-S.right+b.right},L=e.modifiersData.offset;if(p===Fc&&L){var O=L[o];Object.keys(R).forEach((function(e){var t=[Tc,Pc].indexOf(e)>=0?1:-1,n=[_c,Pc].indexOf(e)>=0?"y":"x";R[e]+=O[n]*t}))}return R}function qu(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?Wc:s,u=bu(r),d=u?l?Bc:Bc.filter((function(e){return bu(e)===u})):qc,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]=Nu(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[Jc(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}var Au={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,b=Jc(g),v=s||(b===g||!h?[wu(g)]:function(e){if(Jc(e)===Nc)return[];var t=wu(e);return[ku(e),t,ku(t)]}(g)),y=[g].concat(v).reduce((function(e,n){return e.concat(Jc(n)===Nc?qu(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,k=y[0],C=0;C<y.length;C++){var R=y[C],L=Jc(R),O=bu(R)===Ac,I=[_c,Pc].indexOf(L)>=0,_=I?"width":"height",P=Nu(t,{placement:R,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),T=I?O?Tc:Mc:O?Pc:_c;x[_]>S[_]&&(T=wu(T));var M=wu(T),N=[];if(a&&N.push(P[L]<=0),l&&N.push(P[T]<=0,P[M]<=0),N.every((function(e){return e}))){k=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 k=t,"break"},A=h?3:1;A>0;A--){if("break"===q(A))break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Du(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 zu(e){return[_c,Tc,Pc,Mc].some((function(t){return e[t]>=0}))}var ju={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=Wc.reduce((function(e,n){return e[n]=function(e,t,n){var r=Jc(e),o=[Mc,_c].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,[Mc,Tc].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 Fu={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=Nu(t,{boundary:s,rootBoundary:c,padding:d,altBoundary:u}),b=Jc(t.placement),v=bu(t.placement),y=!v,x=pu(b),S="x"===x?"y":"x",w=t.modifiersData.popperOffsets,E=t.rects.reference,k=t.rects.popper,C="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,R="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(w){if(a){var I,_="y"===x?_c:Mc,P="y"===x?Pc:Tc,T="y"===x?"height":"width",M=w[x],N=M+g[_],q=M-g[P],A=f?-k[T]/2:0,D=v===Ac?E[T]:k[T],z=v===Ac?-k[T]:-E[T],j=t.elements.arrow,F=f&&j?ou(j):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=$[_],W=$[P],H=fu(0,E[T],F[T]),U=y?E[T]/2-A-H-B-R.mainAxis:D-H-B-R.mainAxis,V=y?-E[T]/2+A+H+W+R.mainAxis:z+H+W+R.mainAxis,G=t.elements.arrow&&du(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,J=fu(f?Yc(N,M+U-Z-K):N,M,f?Qc(q,X):q);w[x]=J,O[x]=J-M}if(l){var Q,Y="x"===x?_c:Mc,ee="x"===x?Pc:Tc,te=w[S],ne="y"===S?"height":"width",re=te+g[Y],oe=te-g[ee],ae=-1!==[_c,Mc].indexOf(b),ie=null!=(Q=null==L?void 0:L[S])?Q:0,le=ae?re:te-E[ne]-k[ne]-ie+R.altAxis,se=ae?te+E[ne]+k[ne]-ie-R.altAxis:oe,ce=f&&ae?function(e,t,n){var r=fu(e,t,n);return r>n?n:r}(le,te,se):fu(f?le:re,te,f?se:oe);w[S]=ce,O[S]=ce-te}t.modifiersData[r]=O}},requiresIfExists:["offset"]};function $u(e,t,n){void 0===n&&(n=!1);var r=Kc(t),o=Kc(t)&&function(e){var t=e.getBoundingClientRect(),n=eu(t.width)/e.offsetWidth||1,r=eu(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),a=su(t),i=ru(e,o,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==Uc(t)||Lu(a))&&(l=function(e){return e!==Vc(e)&&Kc(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Cu(e);var t}(t)),Kc(t)?((s=ru(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):a&&(s.x=Ru(a))),{x:i.left+l.scrollLeft-s.x,y:i.top+l.scrollTop-s.y,width:i.width,height:i.height}}function Bu(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 Wu={placement:"bottom",modifiers:[],strategy:"absolute"};function Hu(){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 Uu(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?Wu:o;return function(e,t,n){void 0===n&&(n=a);var o,i,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Wu,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:Gc(e)?Iu(e):e.contextElement?Iu(e.contextElement):[],popper:Iu(t)};var i,c,p=function(e){var t=Bu(e);return Hc.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(Hu(t,n)){l.rects={reference:$u(t,du(n),"fixed"===l.options.strategy),popper:ou(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(!Hu(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 Vu=Uu({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=Vc(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",n.update,xu)})),l&&s.addEventListener("resize",n.update,xu),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",n.update,xu)})),l&&s.removeEventListener("resize",n.update,xu)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Mu({reference:t.rects.reference,element:t.rects.popper,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:Jc(t.placement),variation:bu(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,yu(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,yu(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:{}},Xc,ju,Au,Fu,gu,{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=Nu(t,{elementContext:"reference"}),l=Nu(t,{altBoundary:!0}),s=Du(i,r),c=Du(l,o,a),u=zu(s),d=zu(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 Gu=b.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[a,i]=b.useState(null),l=Ja(b.isValidElement(n)?wi(n):null,t);if(Da((()=>{o||i(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),Da((()=>{if(a&&!o)return Ua(t,a),()=>{Ua(t,null)}}),[t,a,o]),o){if(b.isValidElement(n)){const e={ref:l};return b.cloneElement(n,e)}return Tr.jsx(b.Fragment,{children:n})}return Tr.jsx(b.Fragment,{children:a?Ql.createPortal(n,a):a})}));function Ku(e){return ba("MuiPopper",e)}va("MuiPopper",["root"]);const Zu=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Xu=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Ju(e){return"function"==typeof e?e():e}const Qu={},Yu=b.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=lt(e,Zu),g=b.useRef(null),v=Ja(g,t),y=b.useRef(null),x=Ja(y,d),S=b.useRef(x);Da((()=>{S.current=x}),[x]),b.useImperativeHandle(d,(()=>y.current),[]);const w=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),[E,k]=b.useState(w),[C,R]=b.useState(Ju(r));b.useEffect((()=>{y.current&&y.current.forceUpdate()})),b.useEffect((()=>{r&&R(Ju(r))}),[r]),Da((()=>{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})=>{k(e.placement)}}];null!=l&&(e=e.concat(l)),u&&null!=u.modifiers&&(e=e.concat(u.modifiers));const t=Vu(C,g.current,it({placement:w},u,{modifiers:e}));return S.current(t),()=>{t.destroy(),S.current(null)}}),[C,i,l,s,u,w]);const L={placement:E};null!==h&&(L.TransitionProps=h);const O=(e=>{const{classes:t}=e;return fi({root:["root"]},Ku,t)})(e),I=null!=(n=f.root)?n:"div",_=Si({elementType:I,externalSlotProps:p.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:v},ownerState:e,className:O.root});return Tr.jsx(I,it({},_,{children:"function"==typeof o?o(L):o}))})),ed=b.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=Qu,popperRef:p,style:f,transition:h=!1,slotProps:m={},slots:g={}}=e,v=lt(e,Xu),[y,x]=b.useState(!0);if(!l&&!c&&(!h||y))return null;let S;if(o)S=o;else if(n){const e=Ju(n);S=e&&void 0!==e.nodeType?Wa(e).body:Wa(null).body}const w=c||!l||h&&!y?void 0:"none",E=h?{in:c,onEnter:()=>{x(!1)},onExited:()=>{x(!0)}}:void 0;return Tr.jsx(Gu,{disablePortal:i,container:S,children:Tr.jsx(Yu,it({anchorEl:n,direction:a,disablePortal:i,modifiers:s,ref:t,open:h?!y:c,placement:u,popperOptions:d,popperRef:p,slotProps:m,slots:g},v,{style:it({position:"fixed",top:0,left:0,display:w},f),TransitionProps:E,children:r}))})})),td=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],nd=Wl(ed,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),rd=b.forwardRef((function(e,t){var n;const r=Ic(),o=Gl({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:b,slots:v,slotProps:y}=o,x=lt(o,td),S=null!=(n=null==v?void 0:v.root)?n:null==l?void 0:l.Root,w=it({anchorEl:a,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:b},x);return Tr.jsx(nd,it({as:i,direction:null==r?void 0:r.direction,slots:{root:S},slotProps:null!=y?y:s},w,{ref:t}))})),od=["onChange","maxRows","minRows","style","value"];function ad(e){return parseInt(e,10)||0}const id={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function ld(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const sd=b.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:a,value:i}=e,l=lt(e,od),{current:s}=b.useRef(null!=i),c=b.useRef(null),u=Ja(t,c),d=b.useRef(null),p=b.useRef(null),f=b.useCallback((()=>{const t=c.current,n=p.current;if(!t||!n)return;const a=Ha(t).getComputedStyle(t);if("0px"===a.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=a.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const i=a.boxSizing,l=ad(a.paddingBottom)+ad(a.paddingTop),s=ad(a.borderBottomWidth)+ad(a.borderTopWidth),u=n.scrollHeight;n.value="x";const d=n.scrollHeight;let f=u;o&&(f=Math.max(Number(o)*d,f)),r&&(f=Math.min(Number(r)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===i?l+s:0),overflowing:Math.abs(f-u)<=1}}),[r,o,e.placeholder]),h=Xa((()=>{const e=c.current,t=f();if(!e||!t||ld(t))return!1;const n=t.outerHeightStyle;return null!=d.current&&d.current!==n})),m=b.useCallback((()=>{const e=c.current,t=f();if(!e||!t||ld(t))return;const n=t.outerHeightStyle;d.current!==n&&(d.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""}),[f]),g=b.useRef(-1);Da((()=>{const e=$a(m),t=null==c?void 0:c.current;if(!t)return;const n=Ha(t);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver((()=>{h()&&(r.unobserve(t),cancelAnimationFrame(g.current),m(),g.current=requestAnimationFrame((()=>{r.observe(t)})))})),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),n.removeEventListener("resize",e),r&&r.disconnect()}}),[f,m,h]),Da((()=>{m()}));return Tr.jsxs(b.Fragment,{children:[Tr.jsx("textarea",it({value:i,onChange:e=>{s||m(),n&&n(e)},ref:u,rows:o,style:a},l)),Tr.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:it({},id,a,{paddingTop:0,paddingBottom:0})})]})}));function cd({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)),{})}const ud=b.createContext(void 0);function dd(){return b.useContext(ud)}function pd(e){return Tr.jsx(ia,it({},e,{defaultTheme:Ll,themeId:at}))}function fd(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function hd(e){return ba("MuiInputBase",e)}const md=va("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),gd=["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"],bd=(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${ro(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},vd=(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]},yd=Wl("div",{name:"MuiInputBase",slot:"Root",overridesResolver:bd})((({theme:e,ownerState:t})=>it({},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",[`&.${md.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&it({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),xd=Wl("input",{name:"MuiInputBase",slot:"Input",overridesResolver:vd})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=it({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 it({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] + .${md.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},[`&.${md.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"})})),Sd=Tr.jsx(pd,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),wd=b.forwardRef((function(e,t){var n;const r=Gl({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:y,maxRows:x,minRows:S,multiline:w=!1,name:E,onBlur:k,onChange:C,onClick:R,onFocus:L,onKeyDown:O,onKeyUp:I,placeholder:_,readOnly:P,renderSuffix:T,rows:M,slotProps:N={},slots:q={},startAdornment:A,type:D="text",value:z}=r,j=lt(r,gd),F=null!=v.value?v.value:z,{current:$}=b.useRef(null!=F),B=b.useRef(),W=b.useCallback((e=>{}),[]),H=Ja(B,y,v.ref,W),[U,V]=b.useState(!1),G=dd(),K=cd({props:r,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=G?G.focused:U,b.useEffect((()=>{!G&&d&&U&&(V(!1),k&&k())}),[G,d,U,k]);const Z=G&&G.onFilled,X=G&&G.onEmpty,J=b.useCallback((e=>{!function(e,t=!1){return e&&(fd(e.value)&&""!==e.value||t&&fd(e.defaultValue)&&""!==e.defaultValue)}(e)?X&&X():Z&&Z()}),[Z,X]);Da((()=>{$&&J({value:F})}),[F,J,$]);b.useEffect((()=>{J(B.current)}),[]);let Q=g,Y=v;w&&"input"===Q&&(Y=it(M?{type:void 0,minRows:M,maxRows:M}:{type:void 0,maxRows:x,minRows:S},Y),Q=sd);b.useEffect((()=>{G&&G.setAdornedStart(Boolean(A))}),[G,A]);const ee=it({},r,{color:K.color||"primary",disabled:K.disabled,endAdornment:f,error:K.error,focused:K.focused,formControl:G,fullWidth:h,hiddenLabel:K.hiddenLabel,multiline:w,size:K.size,startAdornment:A,type:D}),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 fi({root:["root",`color${ro(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",i&&"focused",l&&"formControl",p&&"medium"!==p&&`size${ro(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"]},hd,t)})(ee),ne=q.root||s.Root||yd,re=N.root||c.root||{},oe=q.input||s.Input||xd;return Y=it({},Y,null!=(n=N.input)?n:c.input),Tr.jsxs(b.Fragment,{children:[!p&&Sd,Tr.jsxs(ne,it({},re,!hi(ne)&&{ownerState:it({},ee,re.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),R&&R(e)}},j,{className:ha(te.root,re.className,l,P&&"MuiInputBase-readOnly"),children:[A,Tr.jsx(ud.Provider,{value:null,children:Tr.jsx(oe,it({ownerState:ee,"aria-invalid":K.error,"aria-describedby":o,autoComplete:a,autoFocus:i,defaultValue:u,disabled:K.disabled,id:m,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?B.current:{value:"x"})},name:E,placeholder:_,readOnly:P,required:K.required,rows:M,value:F,onKeyDown:O,onKeyUp:I,type:D},Y,!hi(oe)&&{as:Q,ownerState:it({},ee,Y.ownerState)},{ref:H,className:ha(te.input,Y.className,P&&"MuiInputBase-readOnly"),onBlur:e=>{k&&k(e),v.onBlur&&v.onBlur(e),G&&G.onBlur?G.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||B.current;if(null==t)throw new Error(rt(1));J({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(it({},K,{startAdornment:A})):null]}))]})}));function Ed(e){return ba("MuiOutlinedInput",e)}const kd=it({},md,va("MuiOutlinedInput",["root","notchedOutline","input"])),Cd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Rd={entering:{opacity:1},entered:{opacity:1}},Ld=b.forwardRef((function(e,t){const n=Ol(),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=ls}=e,y=lt(e,Cd),x=b.useRef(null),S=Ja(x,wi(i),t),w=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},E=w(d),k=w(((e,t)=>{cc(e);const r=uc({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=w(u),R=w(h),L=w((e=>{const t=uc({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)})),O=w(f);return Tr.jsx(v,it({appear:a,in:s,nodeRef:x,onEnter:k,onEntered:C,onEntering:E,onExit:L,onExited:O,onExiting:R,addEndListener:e=>{o&&o(x.current,e)},timeout:g},y,{children:(e,t)=>b.cloneElement(i,it({style:it({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},Rd[e],m,i.props.style),ref:S},t))}))}));function Od(e){return ba("MuiBackdrop",e)}va("MuiBackdrop",["root","invisible"]);const Id=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],_d=Wl("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>it({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"}))),Pd=b.forwardRef((function(e,t){var n,r,o;const a=Gl({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=Ld,transitionDuration:g}=a,b=lt(a,Id),v=it({},a,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return fi({root:["root",n&&"invisible"]},Od,t)})(v),x=null!=(n=f.root)?n:u.root;return Tr.jsx(m,it({in:p,timeout:g},b,{children:Tr.jsx(_d,it({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:c.Root)?r:s,className:ha(y.root,l,null==x?void 0:x.className),ownerState:it({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:i}))}))}));function Td(e){return ba("MuiBadge",e)}const Md=va("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"]),Nd=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],qd=Wl("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Ad=Wl("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${ro(n.anchorOrigin.vertical)}${ro(n.anchorOrigin.horizontal)}${ro(n.overlap)}`],"default"!==n.color&&t[`color${ro(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%",[`&.${Md.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%",[`&.${Md.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%",[`&.${Md.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%",[`&.${Md.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%",[`&.${Md.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%",[`&.${Md.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%",[`&.${Md.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%",[`&.${Md.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})}}]}})),Dd=b.forwardRef((function(e,t){var n,r,o,a,i,l;const s=Gl({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:b=!1,max:v=99,badgeContent:y,slots:x,slotProps:S,showZero:w=!1,variant:E="standard"}=s,k=lt(s,Nd),{badgeContent:C,invisible:R,max:L,displayValue:O}=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,a=pi({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:v,invisible:b,badgeContent:y,showZero:w}),I=pi({anchorOrigin:c,color:g,overlap:m,variant:E,badgeContent:y}),_=R||null==C&&"dot"!==E,{color:P=g,overlap:T=m,anchorOrigin:M=c,variant:N=E}=_?I:s,q="dot"!==N?O:void 0,A=it({},s,{badgeContent:C,invisible:_,max:L,displayValue:q,showZero:w,anchorOrigin:M,color:P,overlap:T,variant:N}),D=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:a,classes:i={}}=e;return fi({root:["root"],badge:["badge",a,r&&"invisible",`anchorOrigin${ro(n.vertical)}${ro(n.horizontal)}`,`anchorOrigin${ro(n.vertical)}${ro(n.horizontal)}${ro(o)}`,`overlap${ro(o)}`,"default"!==t&&`color${ro(t)}`]},Td,i)})(A),z=null!=(n=null!=(r=null==x?void 0:x.root)?r:p.Root)?n:qd,j=null!=(o=null!=(a=null==x?void 0:x.badge)?a:p.Badge)?o:Ad,F=null!=(i=null==S?void 0:S.root)?i:f.root,$=null!=(l=null==S?void 0:S.badge)?l:f.badge,B=Si({elementType:z,externalSlotProps:F,externalForwardedProps:k,additionalProps:{ref:t,as:d},ownerState:A,className:ha(null==F?void 0:F.className,D.root,u)}),W=Si({elementType:j,externalSlotProps:$,ownerState:A,className:ha(D.badge,null==$?void 0:$.className)});return Tr.jsxs(z,it({},B,{children:[h,Tr.jsx(j,it({},W,{children:q}))]}))})),zd=va("MuiBox",["root"]),jd=Rl(),Fd=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,a=Ar("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Qo),i=b.forwardRef((function(e,i){const l=aa(n),s=ca(e),{className:c,component:u="div"}=s,d=Fr(s,ma);return Tr.jsx(a,jr({as:u,ref:i,className:ha(c,o?o(r):r),theme:t&&l[t]||l},d))}));return i}({themeId:at,defaultTheme:jd,defaultClassName:zd.root,generateClassName:pa.generate});function $d(e){return ba("PrivateSwitchBase",e)}va("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Bd=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Wd=Wl(Ts)((({ownerState:e})=>it({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),Hd=Wl("input",{shouldForwardProp:Bl})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Ud=b.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:b,readOnly:v,required:y=!1,tabIndex:x,type:S,value:w}=e,E=lt(e,Bd),[k,C]=Za({controlled:r,default:Boolean(i),name:"SwitchBase",state:"checked"}),R=dd();let L=l;R&&void 0===L&&(L=R.disabled);const O="checkbox"===S||"radio"===S,I=it({},e,{checked:k,disabled:L,disableFocusRipple:s,edge:c}),_=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return fi({root:["root",n&&"checked",r&&"disabled",o&&`edge${ro(o)}`],input:["input"]},$d,t)})(I);return Tr.jsxs(Wd,it({component:"span",className:ha(_.root,a),centerRipple:!0,focusRipple:!s,disabled:L,tabIndex:null,role:void 0,onFocus:e=>{b&&b(e),R&&R.onFocus&&R.onFocus(e)},onBlur:e=>{m&&m(e),R&&R.onBlur&&R.onBlur(e)},ownerState:I,ref:t},E,{children:[Tr.jsx(Hd,it({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;C(t),g&&g(e,t)},readOnly:v,ref:f,required:y,ownerState:I,tabIndex:x,type:S},"checkbox"===S&&void 0===w?{}:{value:w},p)),k?o:u]}))}));var Vd=ic(Tr.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"),Gd=ic(Tr.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"),Kd=ic(Tr.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 Zd(e){return ba("MuiCheckbox",e)}const Xd=va("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Jd=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Qd=Wl(Ud,{shouldForwardProp:e=>Bl(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${ro(n.size)}`],"default"!==n.color&&t[`color${ro(n.color)}`]]}})((({theme:e,ownerState:t})=>it({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})`:Qi.alpha("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Xd.checked}, &.${Xd.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Xd.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),Yd=Tr.jsx(Gd,{}),ep=Tr.jsx(Vd,{}),tp=Tr.jsx(Kd,{}),np=b.forwardRef((function(e,t){var n,r;const o=Gl({props:e,name:"MuiCheckbox"}),{checkedIcon:a=Yd,color:i="primary",icon:l=ep,indeterminate:s=!1,indeterminateIcon:c=tp,inputProps:u,size:d="medium",className:p}=o,f=lt(o,Jd),h=s?c:l,m=s?c:a,g=it({},o,{color:i,indeterminate:s,size:d}),v=(e=>{const{classes:t,indeterminate:n,color:r,size:o}=e;return it({},t,fi({root:["root",n&&"indeterminate",`color${ro(r)}`,`size${ro(o)}`]},Zd,t))})(g);return Tr.jsx(Qd,it({type:"checkbox",inputProps:it({"data-indeterminate":s},u),icon:b.cloneElement(h,{fontSize:null!=(n=h.props.fontSize)?n:d}),checkedIcon:b.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:d}),ownerState:g,ref:t,className:ha(v.root,p)},f,{classes:v}))}));function rp(e){return ba("MuiCircularProgress",e)}va("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const op=["className","color","disableShrink","size","style","thickness","value","variant"];let ap,ip,lp,sp,cp=e=>e;const up=44,dp=sr(ap||(ap=cp`
|
|
96
|
+
`),ss.rippleVisible,ms,550,(({theme:e})=>e.transitions.easing.easeInOut),ss.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),ss.child,ss.childLeaving,gs,550,(({theme:e})=>e.transitions.easing.easeInOut),ss.childPulsate,bs,(({theme:e})=>e.transitions.easing.easeInOut)),xs=b.forwardRef((function(e,t){const n=Bl({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a}=n,i=lt(n,cs),[l,s]=b.useState([]),c=b.useRef(0),u=b.useRef(null);b.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[l]);const d=b.useRef(!1),p=Xa(),f=b.useRef(null),h=b.useRef(null),m=b.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:a,cb:i}=e;s((e=>[...e,Pr.jsx(ys,{classes:{ripple:ua(o.ripple,ss.ripple),rippleVisible:ua(o.rippleVisible,ss.rippleVisible),ripplePulsate:ua(o.ripplePulsate,ss.ripplePulsate),child:ua(o.child,ss.child),childLeaving:ua(o.childLeaving,ss.childLeaving),childPulsate:ua(o.childPulsate,ss.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:a},c.current)])),c.current+=1,u.current=i}),[o]),g=b.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=b.useCallback((()=>{g({},{pulsate:!0})}),[g]),y=b.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,(()=>{y(e,t)}));f.current=null,s((e=>e.length>0?e.slice(1):e)),u.current=t}),[p]);return b.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:y})),[v,g,y]),Pr.jsx(vs,it({className:ua(ss.root,o.root,a),ref:h},i,{children:Pr.jsx(ls,{component:null,exit:!0,children:l})}))}));function Ss(e){return fa("MuiButtonBase",e)}const ws=ha("MuiButtonBase",["root","disabled","focusVisible"]),Es=["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"],ks=zl("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"},[`&.${ws.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Cs=b.forwardRef((function(e,t){const n=Bl({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:y,onKeyDown:x,onKeyUp:S,onMouseDown:w,onMouseLeave:E,onMouseUp:k,onTouchEnd:C,onTouchMove:R,onTouchStart:L,tabIndex:O=0,TouchRippleProps:I,touchRippleRef:_,type:P}=n,T=lt(n,Es),M=b.useRef(null),N=b.useRef(null),q=Va(N,_),{isFocusVisibleRef:D,onFocus:A,onBlur:z,ref:j}=ai(),[F,$]=b.useState(!1);s&&F&&$(!1),b.useImperativeHandle(r,(()=>({focusVisible:()=>{$(!0),M.current.focus()}})),[]);const[B,W]=b.useState(!1);b.useEffect((()=>{W(!0)}),[]);const H=B&&!c&&!s;function U(e,t,n=u){return Ua((r=>{t&&t(r);return!n&&N.current&&N.current[e](r),!0}))}b.useEffect((()=>{F&&d&&!c&&B&&N.current.pulsate()}),[c,d,F,B]);const V=U("start",w),G=U("stop",m),K=U("stop",g),Z=U("stop",k),X=U("stop",(e=>{F&&e.preventDefault(),E&&E(e)})),J=U("start",L),Q=U("stop",C),Y=U("stop",R),ee=U("stop",(e=>{z(e),!1===D.current&&$(!1),f&&f(e)}),!1),te=Ua((e=>{M.current||(M.current=e.currentTarget),A(e),!0===D.current&&($(!0),y&&y(e)),v&&v(e)})),ne=()=>{const e=M.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=b.useRef(!1),oe=Ua((e=>{d&&!re.current&&F&&N.current&&" "===e.key&&(re.current=!0,N.current.stop(e,(()=>{N.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),ae=Ua((e=>{d&&" "===e.key&&N.current&&F&&!e.defaultPrevented&&(re.current=!1,N.current.stop(e,(()=>{N.current.pulsate(e)}))),S&&S(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===P?"button":P,le.disabled=s):(T.href||T.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=Va(t,j,M),ce=it({},n,{centerRipple:o,component:l,disabled:s,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:O,focusVisible:F}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=si({root:["root",t&&"disabled",n&&"focusVisible"]},Ss,o);return n&&r&&(a.root+=` ${r}`),a})(ce);return Pr.jsxs(ks,it({as:ie,className:ua(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:Q,onTouchMove:Y,onTouchStart:J,ref:se,tabIndex:s?-1:O,type:P},le,T,{children:[a,H?Pr.jsx(xs,it({ref:q,center:o},I)):null]}))}));function Rs(e){return fa("MuiButton",e)}const Ls=ha("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","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Os=b.createContext({}),Is=b.createContext(void 0),_s=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Ps=e=>it({},"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}}),Ts=zl(Cs,{shouldForwardProp:e=>Al(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Yr(n.color)}`],t[`size${Yr(n.size)}`],t[`${n.variant}Size${Yr(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 it({},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":it({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Gi.alpha(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})`:Gi.alpha(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})`:Gi.alpha(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":it({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Ls.focusVisible}`]:it({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Ls.disabled}`]:it({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 ${Gi.alpha(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"},[`&.${Ls.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ls.disabled}`]:{boxShadow:"none"}})),Ms=zl("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Yr(n.size)}`]]}})((({ownerState:e})=>it({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Ps(e)))),Ns=zl("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Yr(n.size)}`]]}})((({ownerState:e})=>it({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Ps(e)))),qs=b.forwardRef((function(e,t){const n=b.useContext(Os),r=b.useContext(Is),o=Bl({props:Pa(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:y="text"}=o,x=lt(o,_s),S=it({},o,{color:i,component:l,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:h,size:m,type:v,variant:y}),w=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,classes:i}=e;return it({},i,si({root:["root",a,`${a}${Yr(t)}`,`size${Yr(o)}`,`${a}Size${Yr(o)}`,`color${Yr(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Yr(o)}`],endIcon:["icon","endIcon",`iconSize${Yr(o)}`]},Rs,i))})(S),E=g&&Pr.jsx(Ms,{className:w.startIcon,ownerState:S,children:g}),k=p&&Pr.jsx(Ns,{className:w.endIcon,ownerState:S,children:p}),C=r||"";return Pr.jsxs(Ts,it({ownerState:S,className:ua(n.className,w.root,s,C),component:l,disabled:c,focusRipple:!d,focusVisibleClassName:ua(w.focusVisible,f),ref:t,type:v},x,{classes:w,children:[E,a,k]}))}));var Ds={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 As={green:"#00873D",blue:"#3F8AB3",grey100:"#ffffff",grey98:"#FBFBFB",grey95:"#F2F2F2",grey90:"#E6E6E6",grey45:"#737373",grey25:"#404040",grey20:"#333333",grey15:"#262626",grey10:"#1A1A1A",grey0:"#000000"},zs={mode:"light",palette:{primary:{main:As.grey25,contrastText:As.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:As.grey25,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)",light:As.grey100,dark:As.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:As.grey100,default:As.grey100,lightest:As.grey100,lighter:As.grey98,darker:As.grey95,darkest:As.grey90},custom:{focusBorder:As.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)",disabledBackground:As.grey45,disabledContrastText:As.grey100},selected:{main:As.green,alternative:"#E4E4E4",excluded:"#BEBEBE",selectedExcluded:"#BEBEBE",possible:As.grey100,selectedContrastText:As.grey100,mainContrastText:As.grey100,alternativeContrastText:As.grey25,excludedContrastText:As.grey25,selectedExcludedContrastText:As.grey100,possibleContrastText:As.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)"}}},js={mode:"dark",palette:{primary:{main:As.grey20,contrastText:As.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:As.grey100,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)",light:As.grey100,dark:As.grey0},action:{active:As.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:As.grey25,lighter:As.grey20,darker:As.grey15,darkest:As.grey10},custom:{focusBorder:As.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)",disabledBackground:As.grey45,disabledContrastText:As.grey100},selected:{main:As.green,alternative:As.grey20,excluded:As.grey10,selectedExcluded:As.grey10,possible:As.grey80,selectedContrastText:As.grey100,mainContrastText:As.grey100,alternativeContrastText:As.grey100,excludedContrastText:As.grey100,selectedExcludedContrastText:As.grey100,possibleContrastText:As.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)"}}},Fs={},$s=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(Ls.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(Ls.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(Ls.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(Ls.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function Bs(e){let t=zs,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=js));const r=JSON.stringify(t);if(Fs[r])return Fs[r];const o={palette:c(c({type:t.mode},Ds.palette),t.palette),typography:c({},Ds.typography),shadows:Ds.shadows,props:c({},Ds.props),shape:c({},Ds.shape)};return Fs[r]=Sl(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:a={},styleOverrides:i={}}=e,l=it({},lt(e,Ai),{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=vo(e.spacing);const s=Hr(e.breakpoints||{}),c=l.spacing;l.mixins=it({gutters:(e={})=>it({paddingLeft:c(2),paddingRight:c(2)},e,{[s.up("sm")]:it({paddingLeft:c(3),paddingRight:c(3)},e[s.up("sm")])})},n);const{type:u,mode:d}=o,p=lt(o,zi),f=d||u||"light";return l.palette=it({text:{hint:"dark"===f?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:f,type:f},p),l}(c(c({},o),{},{overrides:$s(o)}))),Fs[r].name=n,Fs[r]}sa.configure((e=>"njs-".concat("c387","-").concat(e.replace("Mui",""))));var Ws=v.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null,modelStore:{},selectionStore:{}});const Hs={active:!0,select:!0,passive:!0,edit:!1};function Us(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(Hs).forEach((e=>{void 0!==r[e]?(t[e]=r[e],n[e]=!r[e]):(t[e]=Hs[e],n[e]=!Hs[e])})),e.constraints=n,e.interactions=t}var Vs=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={},o={get:e=>t[e],set:(n,o)=>{if(void 0===n||"object"==typeof n)throw new Error("Invalid key: ".concat(JSON.stringify(n)));return t[n]=o,r[n]=e({type:"SET",value:o}),o},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)))},destroy:()=>{Object.keys(r).forEach((e=>{r[e]&&r[e]()}))}};return[()=>{const[,e]=b.useState(t);return b.useEffect((()=>(n.push(e),()=>{const t=n.indexOf(e);n.splice(t,1)})),[e]),[o]},o]};const Gs=b.forwardRef(((e,t)=>{let{initialContext:n,renderCallback:r,modelStore:o,selectionStore:a}=e;const[i,l]=b.useState(n),[s,c]=b.useState(),{theme:u}=b.useMemo((()=>({theme:Bs(s)})),[s]),[d,p]=b.useState([]);return b.useEffect((()=>{r&&r()}),[]),b.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(Mr,{injectFirst:!0},v.createElement(Fl,{theme:u},v.createElement(Ws.Provider,{value:i},d)))}));function Ks(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.13.0"),i.setAttribute("data-app-id",n.id),document.body.appendChild(i),r&&Us(r);const l=function(e){const[t,n]=Vs({}),[r,o]=Vs({}),[a,i]=Vs({}),[l,s]=Vs({}),[c,u]=Vs({}),[,d]=Vs({}),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("closed",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]=Vs({},p);return{subscribe:e=>{const t=p({type:"SET",value:e});return()=>{t(),h.clear(e.id)}},destroy:()=>{h.destroy()},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]=Vs({}),[r,o]=Vs({}),[a,i]=Vs({});return{useAppSelectionsStore:t,useAppModalStore:r,appSelectionsStore:n,appModalStore:o,useModalObjectStore:a,modalObjectStore:i,appId:e}}(n.id),c=nt.createRoot(i);c.render(v.createElement(Gs,{ref:a,initialContext:r,renderCallback:t,modelStore:l,selectionStore:s}));const u={},d=[],p=[];return[{toggleFocusOfCells(e){Object.keys(u).forEach((t=>{var n;null===(n=u[t].current)||void 0===n||n.toggleFocus(t===e)}))},cells:u,addCell(e,t){u[e]=t},removeCell(e){delete u[e]},add(e,t){(async()=>{await o,p.push(e),d.push(t),a.current.setComps(p)})()},remove(e){(async t=>{await o;const n=p.indexOf(e);var r;-1!==n&&(null===(r=d[n])||void 0===r||r.call(d),p.splice(n,1),d.splice(n,1));null==a||null===(t=a.current)||void 0===t||t.setComps(p)})()},setMuiThemeName(e){(async()=>{await o,a.current.setMuiThemeName(e)})()},context(e){(async()=>{await o,e&&Us(e),a.current.setContext(e)})()},destroy(){d.forEach((e=>{e&&e()})),l.destroy(),c.unmount()}},l,s,a,o]}function Zs(e){return fa("MuiSvgIcon",e)}ha("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Xs=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Js=zl("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Yr(n.color)}`],t[`fontSize${Yr(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]}})),Qs=b.forwardRef((function(e,t){const n=Bl({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=lt(n,Xs),f=b.isValidElement(r)&&"svg"===r.type,h=it({},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 si({root:["root","inherit"!==t&&`color${Yr(t)}`,`fontSize${Yr(n)}`]},Zs,r)})(h);return Pr.jsxs(Js,it({as:i,className:ua(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?Pr.jsx("title",{children:u}):null]}))}));function Ys(e,t){function n(n,r){return Pr.jsx(Qs,it({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=Qs.muiName,b.memo(b.forwardRef(n))}Qs.muiName="SvgIcon";const ec={configure:e=>{sa.configure(e)}};var tc=Object.freeze({__proto__:null,capitalize:Yr,createChainedFunction:qa,createSvgIcon:Ys,debounce:Da,deprecatedPropType:function(e,t){return()=>null},isMuiElement:Aa,ownerDocument:za,ownerWindow:ja,requirePropFactory:function(e,t){return()=>null},setRef:Fa,unstable_ClassNameGenerator:ec,unstable_useEnhancedEffect:Ma,unstable_useId:Wa,unsupportedProp:function(e,t,n,r,o){return null},useControlled:Ha,useEventCallback:Ua,useForkRef:Va,useIsFocusVisible:ai});const nc=e=>e.scrollTop;function rc(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 oc(e){return fa("MuiPaper",e)}ha("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 ac=["className","component","elevation","square","variant"],ic=zl("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 it({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&&it({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Gi.alpha("#fff",$l(t.elevation))}, ${Gi.alpha("#fff",$l(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),lc=b.forwardRef((function(e,t){const n=Bl({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:a=1,square:i=!1,variant:l="elevation"}=n,s=lt(n,ac),c=it({},n,{component:o,elevation:a,square:i,variant:l}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return si({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},oc,o)})(c);return Pr.jsx(ic,it({as:o,ownerState:c,className:ua(u.root,r),ref:t},s))}));function sc(e){return fa("MuiIconButton",e)}const cc=ha("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),uc=["edge","children","className","color","disabled","disableFocusRipple","size"],dc=zl(Cs,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${Yr(n.color)}`],n.edge&&t[`edge${Yr(n.edge)}`],t[`size${Yr(n.size)}`]]}})((({theme:e,ownerState:t})=>it({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})`:Gi.alpha(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 it({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&it({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":it({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Gi.alpha(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)},{[`&.${cc.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),pc=b.forwardRef((function(e,t){const n=Bl({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=lt(n,uc),d=it({},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 si({root:["root",n&&"disabled","default"!==r&&`color${Yr(r)}`,o&&`edge${Yr(o)}`,`size${Yr(a)}`]},sc,t)})(d);return Pr.jsx(dc,it({className:ua(p.root,a),centerRipple:!0,focusRipple:!s,disabled:l,ref:t},u,{ownerState:d,children:o}))}));function fc(e){return fa("MuiTypography",e)}ha("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const hc=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],mc=zl("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${Yr(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>it({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}))),gc={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},bc={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},vc=b.forwardRef((function(e,t){const n=Bl({props:e,name:"MuiTypography"}),r=(e=>bc[e]||e)(n.color),o=aa(it({},n,{color:r})),{align:a="inherit",className:i,component:l,gutterBottom:s=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=gc}=o,f=lt(o,hc),h=it({},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]||gc[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e;return si({root:["root",a,"inherit"!==e.align&&`align${Yr(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},fc,i)})(h);return Pr.jsx(mc,it({as:m,ref:t,ownerState:h,className:ua(g.root,i)},f))}));var yc,xc={};function Sc(){if(yc)return xc;yc=1,Object.defineProperty(xc,"__esModule",{value:!0}),xc.default=void 0;var e=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=a?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(o,i,l):o[i]=e[i]}return o.default=e,r&&r.set(e,o),o}(g()),t=_l;function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}return xc.default=function(n=null){const r=e.useContext(t.ThemeContext);return r&&(o=r,0!==Object.keys(o).length)?r:n;var o},xc}var wc=n(Sc()),Ec="top",kc="bottom",Cc="right",Rc="left",Lc="auto",Oc=[Ec,kc,Cc,Rc],Ic="start",_c="end",Pc="clippingParents",Tc="viewport",Mc="popper",Nc="reference",qc=Oc.reduce((function(e,t){return e.concat([t+"-"+Ic,t+"-"+_c])}),[]),Dc=[].concat(Oc,[Lc]).reduce((function(e,t){return e.concat([t,t+"-"+Ic,t+"-"+_c])}),[]),Ac=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function zc(e){return e?(e.nodeName||"").toLowerCase():null}function jc(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Fc(e){return e instanceof jc(e).Element||e instanceof Element}function $c(e){return e instanceof jc(e).HTMLElement||e instanceof HTMLElement}function Bc(e){return"undefined"!=typeof ShadowRoot&&(e instanceof jc(e).ShadowRoot||e instanceof ShadowRoot)}var Wc={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];$c(o)&&zc(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}),{});$c(r)&&zc(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Hc(e){return e.split("-")[0]}var Uc=Math.max,Vc=Math.min,Gc=Math.round;function Kc(){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 Zc(){return!/^((?!chrome|android).)*safari/i.test(Kc())}function Xc(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&$c(e)&&(o=e.offsetWidth>0&&Gc(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Gc(r.height)/e.offsetHeight||1);var i=(Fc(e)?jc(e):window).visualViewport,l=!Zc()&&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 Jc(e){var t=Xc(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 Qc(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Bc(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Yc(e){return jc(e).getComputedStyle(e)}function eu(e){return["table","td","th"].indexOf(zc(e))>=0}function tu(e){return((Fc(e)?e.ownerDocument:e.document)||window.document).documentElement}function nu(e){return"html"===zc(e)?e:e.assignedSlot||e.parentNode||(Bc(e)?e.host:null)||tu(e)}function ru(e){return $c(e)&&"fixed"!==Yc(e).position?e.offsetParent:null}function ou(e){for(var t=jc(e),n=ru(e);n&&eu(n)&&"static"===Yc(n).position;)n=ru(n);return n&&("html"===zc(n)||"body"===zc(n)&&"static"===Yc(n).position)?t:n||function(e){var t=/firefox/i.test(Kc());if(/Trident/i.test(Kc())&&$c(e)&&"fixed"===Yc(e).position)return null;var n=nu(e);for(Bc(n)&&(n=n.host);$c(n)&&["html","body"].indexOf(zc(n))<0;){var r=Yc(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 au(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function iu(e,t,n){return Uc(e,Vc(t,n))}function lu(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function su(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var cu={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=Hc(n.placement),s=au(l),c=[Rc,Cc].indexOf(l)>=0?"height":"width";if(a&&i){var u=function(e,t){return lu("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:su(e,Oc))}(o.padding,n),d=Jc(a),p="y"===s?Ec:Rc,f="y"===s?kc:Cc,h=n.rects.reference[c]+n.rects.reference[s]-i[s]-n.rects.popper[c],m=i[s]-n.rects.reference[s],g=ou(a),b=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,v=h/2-m/2,y=u[p],x=b-d[c]-u[f],S=b/2-d[c]/2+v,w=iu(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)))&&Qc(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function uu(e){return e.split("-")[1]}var du={top:"auto",right:"auto",bottom:"auto",left:"auto"};function pu(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 b=i.hasOwnProperty("x"),v=i.hasOwnProperty("y"),y=Rc,x=Ec,S=window;if(c){var w=ou(n),E="clientHeight",k="clientWidth";if(w===jc(n)&&"static"!==Yc(w=tu(n)).position&&"absolute"===l&&(E="scrollHeight",k="scrollWidth"),o===Ec||(o===Rc||o===Cc)&&a===_c)x=kc,m-=(d&&w===S&&S.visualViewport?S.visualViewport.height:w[E])-r.height,m*=s?1:-1;if(o===Rc||(o===Ec||o===kc)&&a===_c)y=Cc,f-=(d&&w===S&&S.visualViewport?S.visualViewport.width:w[k])-r.width,f*=s?1:-1}var C,R=Object.assign({position:l},c&&du),L=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Gc(n*o)/o||0,y:Gc(r*o)/o||0}}({x:f,y:m},jc(n)):{x:f,y:m};return f=L.x,m=L.y,s?Object.assign({},R,((C={})[x]=v?"0":"",C[y]=b?"0":"",C.transform=(S.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",C)):Object.assign({},R,((t={})[x]=v?m+"px":"",t[y]=b?f+"px":"",t.transform="",t))}var fu={passive:!0};var hu={left:"right",right:"left",bottom:"top",top:"bottom"};function mu(e){return e.replace(/left|right|bottom|top/g,(function(e){return hu[e]}))}var gu={start:"end",end:"start"};function bu(e){return e.replace(/start|end/g,(function(e){return gu[e]}))}function vu(e){var t=jc(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function yu(e){return Xc(tu(e)).left+vu(e).scrollLeft}function xu(e){var t=Yc(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Su(e){return["html","body","#document"].indexOf(zc(e))>=0?e.ownerDocument.body:$c(e)&&xu(e)?e:Su(nu(e))}function wu(e,t){var n;void 0===t&&(t=[]);var r=Su(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=jc(r),i=o?[a].concat(a.visualViewport||[],xu(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(wu(nu(i)))}function Eu(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ku(e,t,n){return t===Tc?Eu(function(e,t){var n=jc(e),r=tu(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,l=0,s=0;if(o){a=o.width,i=o.height;var c=Zc();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:i,x:l+yu(e),y:s}}(e,n)):Fc(t)?function(e,t){var n=Xc(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):Eu(function(e){var t,n=tu(e),r=vu(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=Uc(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Uc(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+yu(e),s=-r.scrollTop;return"rtl"===Yc(o||n).direction&&(l+=Uc(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:l,y:s}}(tu(e)))}function Cu(e,t,n,r){var o="clippingParents"===t?function(e){var t=wu(nu(e)),n=["absolute","fixed"].indexOf(Yc(e).position)>=0&&$c(e)?ou(e):e;return Fc(n)?t.filter((function(e){return Fc(e)&&Qc(e,n)&&"body"!==zc(e)})):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],l=a.reduce((function(t,n){var o=ku(e,n,r);return t.top=Uc(o.top,t.top),t.right=Vc(o.right,t.right),t.bottom=Vc(o.bottom,t.bottom),t.left=Uc(o.left,t.left),t}),ku(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 Ru(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?Hc(o):null,i=o?uu(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(a){case Ec:t={x:l,y:n.y-r.height};break;case kc:t={x:l,y:n.y+n.height};break;case Cc:t={x:n.x+n.width,y:s};break;case Rc:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=a?au(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case Ic:t[c]=t[c]-(n[u]/2-r[u]/2);break;case _c:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function Lu(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?Pc:l,c=n.rootBoundary,u=void 0===c?Tc:c,d=n.elementContext,p=void 0===d?Mc:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,b=lu("number"!=typeof g?g:su(g,Oc)),v=p===Mc?Nc:Mc,y=e.rects.popper,x=e.elements[h?v:p],S=Cu(Fc(x)?x:x.contextElement||tu(e.elements.popper),s,u,i),w=Xc(e.elements.reference),E=Ru({reference:w,element:y,placement:o}),k=Eu(Object.assign({},y,E)),C=p===Mc?k:w,R={top:S.top-C.top+b.top,bottom:C.bottom-S.bottom+b.bottom,left:S.left-C.left+b.left,right:C.right-S.right+b.right},L=e.modifiersData.offset;if(p===Mc&&L){var O=L[o];Object.keys(R).forEach((function(e){var t=[Cc,kc].indexOf(e)>=0?1:-1,n=[Ec,kc].indexOf(e)>=0?"y":"x";R[e]+=O[n]*t}))}return R}function Ou(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?Dc:s,u=uu(r),d=u?l?qc:qc.filter((function(e){return uu(e)===u})):Oc,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]=Lu(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[Hc(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}var Iu={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,b=Hc(g),v=s||(b===g||!h?[mu(g)]:function(e){if(Hc(e)===Lc)return[];var t=mu(e);return[bu(e),t,bu(t)]}(g)),y=[g].concat(v).reduce((function(e,n){return e.concat(Hc(n)===Lc?Ou(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,k=y[0],C=0;C<y.length;C++){var R=y[C],L=Hc(R),O=uu(R)===Ic,I=[Ec,kc].indexOf(L)>=0,_=I?"width":"height",P=Lu(t,{placement:R,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),T=I?O?Cc:Rc:O?kc:Ec;x[_]>S[_]&&(T=mu(T));var M=mu(T),N=[];if(a&&N.push(P[L]<=0),l&&N.push(P[T]<=0,P[M]<=0),N.every((function(e){return e}))){k=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 k=t,"break"},D=h?3:1;D>0;D--){if("break"===q(D))break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function _u(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 Pu(e){return[Ec,Cc,kc,Rc].some((function(t){return e[t]>=0}))}var Tu={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=Dc.reduce((function(e,n){return e[n]=function(e,t,n){var r=Hc(e),o=[Rc,Ec].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,[Rc,Cc].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 Mu={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=Lu(t,{boundary:s,rootBoundary:c,padding:d,altBoundary:u}),b=Hc(t.placement),v=uu(t.placement),y=!v,x=au(b),S="x"===x?"y":"x",w=t.modifiersData.popperOffsets,E=t.rects.reference,k=t.rects.popper,C="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,R="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(w){if(a){var I,_="y"===x?Ec:Rc,P="y"===x?kc:Cc,T="y"===x?"height":"width",M=w[x],N=M+g[_],q=M-g[P],D=f?-k[T]/2:0,A=v===Ic?E[T]:k[T],z=v===Ic?-k[T]:-E[T],j=t.elements.arrow,F=f&&j?Jc(j):{width:0,height:0},$=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=$[_],W=$[P],H=iu(0,E[T],F[T]),U=y?E[T]/2-D-H-B-R.mainAxis:A-H-B-R.mainAxis,V=y?-E[T]/2+D+H+W+R.mainAxis:z+H+W+R.mainAxis,G=t.elements.arrow&&ou(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,J=iu(f?Vc(N,M+U-Z-K):N,M,f?Uc(q,X):q);w[x]=J,O[x]=J-M}if(l){var Q,Y="x"===x?Ec:Rc,ee="x"===x?kc:Cc,te=w[S],ne="y"===S?"height":"width",re=te+g[Y],oe=te-g[ee],ae=-1!==[Ec,Rc].indexOf(b),ie=null!=(Q=null==L?void 0:L[S])?Q:0,le=ae?re:te-E[ne]-k[ne]-ie+R.altAxis,se=ae?te+E[ne]+k[ne]-ie-R.altAxis:oe,ce=f&&ae?function(e,t,n){var r=iu(e,t,n);return r>n?n:r}(le,te,se):iu(f?le:re,te,f?se:oe);w[S]=ce,O[S]=ce-te}t.modifiersData[r]=O}},requiresIfExists:["offset"]};function Nu(e,t,n){void 0===n&&(n=!1);var r=$c(t),o=$c(t)&&function(e){var t=e.getBoundingClientRect(),n=Gc(t.width)/e.offsetWidth||1,r=Gc(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),a=tu(t),i=Xc(e,o,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==zc(t)||xu(a))&&(l=function(e){return e!==jc(e)&&$c(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:vu(e);var t}(t)),$c(t)?((s=Xc(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):a&&(s.x=yu(a))),{x:i.left+l.scrollLeft-s.x,y:i.top+l.scrollTop-s.y,width:i.width,height:i.height}}function qu(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 Du={placement:"bottom",modifiers:[],strategy:"absolute"};function Au(){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 zu(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?Du:o;return function(e,t,n){void 0===n&&(n=a);var o,i,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Du,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:Fc(e)?wu(e):e.contextElement?wu(e.contextElement):[],popper:wu(t)};var i,c,p=function(e){var t=qu(e);return Ac.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(Au(t,n)){l.rects={reference:Nu(t,ou(n),"fixed"===l.options.strategy),popper:Jc(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(!Au(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 ju=zu({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=jc(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",n.update,fu)})),l&&s.addEventListener("resize",n.update,fu),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",n.update,fu)})),l&&s.removeEventListener("resize",n.update,fu)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Ru({reference:t.rects.reference,element:t.rects.popper,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:Hc(t.placement),variation:uu(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,pu(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,pu(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:{}},Wc,Tu,Iu,Mu,cu,{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=Lu(t,{elementContext:"reference"}),l=Lu(t,{altBoundary:!0}),s=_u(i,r),c=_u(l,o,a),u=Pu(s),d=Pu(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 Fu=b.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[a,i]=b.useState(null),l=Va(b.isValidElement(n)?bi(n):null,t);if(Ma((()=>{o||i(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),Ma((()=>{if(a&&!o)return Fa(t,a),()=>{Fa(t,null)}}),[t,a,o]),o){if(b.isValidElement(n)){const e={ref:l};return b.cloneElement(n,e)}return Pr.jsx(b.Fragment,{children:n})}return Pr.jsx(b.Fragment,{children:a?Ul.createPortal(n,a):a})}));function $u(e){return fa("MuiPopper",e)}ha("MuiPopper",["root"]);const Bu=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Wu=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Hu(e){return"function"==typeof e?e():e}const Uu={},Vu=b.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=lt(e,Bu),g=b.useRef(null),v=Va(g,t),y=b.useRef(null),x=Va(y,d),S=b.useRef(x);Ma((()=>{S.current=x}),[x]),b.useImperativeHandle(d,(()=>y.current),[]);const w=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),[E,k]=b.useState(w),[C,R]=b.useState(Hu(r));b.useEffect((()=>{y.current&&y.current.forceUpdate()})),b.useEffect((()=>{r&&R(Hu(r))}),[r]),Ma((()=>{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})=>{k(e.placement)}}];null!=l&&(e=e.concat(l)),u&&null!=u.modifiers&&(e=e.concat(u.modifiers));const t=ju(C,g.current,it({placement:w},u,{modifiers:e}));return S.current(t),()=>{t.destroy(),S.current(null)}}),[C,i,l,s,u,w]);const L={placement:E};null!==h&&(L.TransitionProps=h);const O=(e=>{const{classes:t}=e;return si({root:["root"]},$u,t)})(e),I=null!=(n=f.root)?n:"div",_=gi({elementType:I,externalSlotProps:p.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:v},ownerState:e,className:O.root});return Pr.jsx(I,it({},_,{children:"function"==typeof o?o(L):o}))})),Gu=b.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=Uu,popperRef:p,style:f,transition:h=!1,slotProps:m={},slots:g={}}=e,v=lt(e,Wu),[y,x]=b.useState(!0);if(!l&&!c&&(!h||y))return null;let S;if(o)S=o;else if(n){const e=Hu(n);S=e&&void 0!==e.nodeType?za(e).body:za(null).body}const w=c||!l||h&&!y?void 0:"none",E=h?{in:c,onEnter:()=>{x(!1)},onExited:()=>{x(!0)}}:void 0;return Pr.jsx(Fu,{disablePortal:i,container:S,children:Pr.jsx(Vu,it({anchorEl:n,direction:a,disablePortal:i,modifiers:s,ref:t,open:h?!y:c,placement:u,popperOptions:d,popperRef:p,slotProps:m,slots:g},v,{style:it({position:"fixed",top:0,left:0,display:w},f),TransitionProps:E,children:r}))})})),Ku=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Zu=zl(Gu,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Xu=b.forwardRef((function(e,t){var n;const r=wc(),o=Bl({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:b,slots:v,slotProps:y}=o,x=lt(o,Ku),S=null!=(n=null==v?void 0:v.root)?n:null==l?void 0:l.Root,w=it({anchorEl:a,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:b},x);return Pr.jsx(Zu,it({as:i,direction:null==r?void 0:r.direction,slots:{root:S},slotProps:null!=y?y:s},w,{ref:t}))})),Ju=["onChange","maxRows","minRows","style","value"];function Qu(e){return parseInt(e,10)||0}const Yu={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function ed(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const td=b.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:a,value:i}=e,l=lt(e,Ju),{current:s}=b.useRef(null!=i),c=b.useRef(null),u=Va(t,c),d=b.useRef(null),p=b.useRef(null),f=b.useCallback((()=>{const t=c.current,n=p.current;if(!t||!n)return;const a=ja(t).getComputedStyle(t);if("0px"===a.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=a.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const i=a.boxSizing,l=Qu(a.paddingBottom)+Qu(a.paddingTop),s=Qu(a.borderBottomWidth)+Qu(a.borderTopWidth),u=n.scrollHeight;n.value="x";const d=n.scrollHeight;let f=u;o&&(f=Math.max(Number(o)*d,f)),r&&(f=Math.min(Number(r)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===i?l+s:0),overflowing:Math.abs(f-u)<=1}}),[r,o,e.placeholder]),h=Ua((()=>{const e=c.current,t=f();if(!e||!t||ed(t))return!1;const n=t.outerHeightStyle;return null!=d.current&&d.current!==n})),m=b.useCallback((()=>{const e=c.current,t=f();if(!e||!t||ed(t))return;const n=t.outerHeightStyle;d.current!==n&&(d.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""}),[f]),g=b.useRef(-1);Ma((()=>{const e=Da(m),t=null==c?void 0:c.current;if(!t)return;const n=ja(t);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver((()=>{h()&&(r.unobserve(t),cancelAnimationFrame(g.current),m(),g.current=requestAnimationFrame((()=>{r.observe(t)})))})),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),n.removeEventListener("resize",e),r&&r.disconnect()}}),[f,m,h]),Ma((()=>{m()}));return Pr.jsxs(b.Fragment,{children:[Pr.jsx("textarea",it({value:i,onChange:e=>{s||m(),n&&n(e)},ref:u,rows:o,style:a},l)),Pr.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:it({},Yu,a,{paddingTop:0,paddingBottom:0})})]})}));function nd({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)),{})}const rd=b.createContext(void 0);function od(){return b.useContext(rd)}function ad(e){return Pr.jsx(na,it({},e,{defaultTheme:wl,themeId:at}))}function id(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function ld(e){return fa("MuiInputBase",e)}const sd=ha("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),cd=["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"],ud=(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${Yr(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},dd=(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]},pd=zl("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ud})((({theme:e,ownerState:t})=>it({},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",[`&.${sd.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&it({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),fd=zl("input",{name:"MuiInputBase",slot:"Input",overridesResolver:dd})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=it({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 it({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] + .${sd.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},[`&.${sd.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"})})),hd=Pr.jsx(ad,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),md=b.forwardRef((function(e,t){var n;const r=Bl({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:y,maxRows:x,minRows:S,multiline:w=!1,name:E,onBlur:k,onChange:C,onClick:R,onFocus:L,onKeyDown:O,onKeyUp:I,placeholder:_,readOnly:P,renderSuffix:T,rows:M,slotProps:N={},slots:q={},startAdornment:D,type:A="text",value:z}=r,j=lt(r,cd),F=null!=v.value?v.value:z,{current:$}=b.useRef(null!=F),B=b.useRef(),W=b.useCallback((e=>{}),[]),H=Va(B,y,v.ref,W),[U,V]=b.useState(!1),G=od(),K=nd({props:r,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=G?G.focused:U,b.useEffect((()=>{!G&&d&&U&&(V(!1),k&&k())}),[G,d,U,k]);const Z=G&&G.onFilled,X=G&&G.onEmpty,J=b.useCallback((e=>{!function(e,t=!1){return e&&(id(e.value)&&""!==e.value||t&&id(e.defaultValue)&&""!==e.defaultValue)}(e)?X&&X():Z&&Z()}),[Z,X]);Ma((()=>{$&&J({value:F})}),[F,J,$]);b.useEffect((()=>{J(B.current)}),[]);let Q=g,Y=v;w&&"input"===Q&&(Y=it(M?{type:void 0,minRows:M,maxRows:M}:{type:void 0,maxRows:x,minRows:S},Y),Q=td);b.useEffect((()=>{G&&G.setAdornedStart(Boolean(D))}),[G,D]);const ee=it({},r,{color:K.color||"primary",disabled:K.disabled,endAdornment:f,error:K.error,focused:K.focused,formControl:G,fullWidth:h,hiddenLabel:K.hiddenLabel,multiline:w,size:K.size,startAdornment:D,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 si({root:["root",`color${Yr(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",i&&"focused",l&&"formControl",p&&"medium"!==p&&`size${Yr(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"]},ld,t)})(ee),ne=q.root||s.Root||pd,re=N.root||c.root||{},oe=q.input||s.Input||fd;return Y=it({},Y,null!=(n=N.input)?n:c.input),Pr.jsxs(b.Fragment,{children:[!p&&hd,Pr.jsxs(ne,it({},re,!ci(ne)&&{ownerState:it({},ee,re.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),R&&R(e)}},j,{className:ua(te.root,re.className,l,P&&"MuiInputBase-readOnly"),children:[D,Pr.jsx(rd.Provider,{value:null,children:Pr.jsx(oe,it({ownerState:ee,"aria-invalid":K.error,"aria-describedby":o,autoComplete:a,autoFocus:i,defaultValue:u,disabled:K.disabled,id:m,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?B.current:{value:"x"})},name:E,placeholder:_,readOnly:P,required:K.required,rows:M,value:F,onKeyDown:O,onKeyUp:I,type:A},Y,!ci(oe)&&{as:Q,ownerState:it({},ee,Y.ownerState)},{ref:H,className:ua(te.input,Y.className,P&&"MuiInputBase-readOnly"),onBlur:e=>{k&&k(e),v.onBlur&&v.onBlur(e),G&&G.onBlur?G.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||B.current;if(null==t)throw new Error(rt(1));J({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(it({},K,{startAdornment:D})):null]}))]})}));function gd(e){return fa("MuiOutlinedInput",e)}const bd=it({},sd,ha("MuiOutlinedInput",["root","notchedOutline","input"])),vd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],yd={entering:{opacity:1},entered:{opacity:1}},xd=b.forwardRef((function(e,t){const n=El(),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=es}=e,y=lt(e,vd),x=b.useRef(null),S=Va(x,bi(i),t),w=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},E=w(d),k=w(((e,t)=>{nc(e);const r=rc({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=w(u),R=w(h),L=w((e=>{const t=rc({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)})),O=w(f);return Pr.jsx(v,it({appear:a,in:s,nodeRef:x,onEnter:k,onEntered:C,onEntering:E,onExit:L,onExited:O,onExiting:R,addEndListener:e=>{o&&o(x.current,e)},timeout:g},y,{children:(e,t)=>b.cloneElement(i,it({style:it({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},yd[e],m,i.props.style),ref:S},t))}))}));function Sd(e){return fa("MuiBackdrop",e)}ha("MuiBackdrop",["root","invisible"]);const wd=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Ed=zl("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>it({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"}))),kd=b.forwardRef((function(e,t){var n,r,o;const a=Bl({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=xd,transitionDuration:g}=a,b=lt(a,wd),v=it({},a,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return si({root:["root",n&&"invisible"]},Sd,t)})(v),x=null!=(n=f.root)?n:u.root;return Pr.jsx(m,it({in:p,timeout:g},b,{children:Pr.jsx(Ed,it({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:c.Root)?r:s,className:ua(y.root,l,null==x?void 0:x.className),ownerState:it({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:i}))}))}));function Cd(e){return fa("MuiBadge",e)}const Rd=ha("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"]),Ld=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Od=zl("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Id=zl("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Yr(n.anchorOrigin.vertical)}${Yr(n.anchorOrigin.horizontal)}${Yr(n.overlap)}`],"default"!==n.color&&t[`color${Yr(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%",[`&.${Rd.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%",[`&.${Rd.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%",[`&.${Rd.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%",[`&.${Rd.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%",[`&.${Rd.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%",[`&.${Rd.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%",[`&.${Rd.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%",[`&.${Rd.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})}}]}})),_d=b.forwardRef((function(e,t){var n,r,o,a,i,l;const s=Bl({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:b=!1,max:v=99,badgeContent:y,slots:x,slotProps:S,showZero:w=!1,variant:E="standard"}=s,k=lt(s,Ld),{badgeContent:C,invisible:R,max:L,displayValue:O}=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,a=li({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:v,invisible:b,badgeContent:y,showZero:w}),I=li({anchorOrigin:c,color:g,overlap:m,variant:E,badgeContent:y}),_=R||null==C&&"dot"!==E,{color:P=g,overlap:T=m,anchorOrigin:M=c,variant:N=E}=_?I:s,q="dot"!==N?O:void 0,D=it({},s,{badgeContent:C,invisible:_,max:L,displayValue:q,showZero:w,anchorOrigin:M,color:P,overlap:T,variant:N}),A=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:a,classes:i={}}=e;return si({root:["root"],badge:["badge",a,r&&"invisible",`anchorOrigin${Yr(n.vertical)}${Yr(n.horizontal)}`,`anchorOrigin${Yr(n.vertical)}${Yr(n.horizontal)}${Yr(o)}`,`overlap${Yr(o)}`,"default"!==t&&`color${Yr(t)}`]},Cd,i)})(D),z=null!=(n=null!=(r=null==x?void 0:x.root)?r:p.Root)?n:Od,j=null!=(o=null!=(a=null==x?void 0:x.badge)?a:p.Badge)?o:Id,F=null!=(i=null==S?void 0:S.root)?i:f.root,$=null!=(l=null==S?void 0:S.badge)?l:f.badge,B=gi({elementType:z,externalSlotProps:F,externalForwardedProps:k,additionalProps:{ref:t,as:d},ownerState:D,className:ua(null==F?void 0:F.className,A.root,u)}),W=gi({elementType:j,externalSlotProps:$,ownerState:D,className:ua(A.badge,null==$?void 0:$.className)});return Pr.jsxs(z,it({},B,{children:[h,Pr.jsx(j,it({},W,{children:q}))]}))})),Pd=ha("MuiBox",["root"]),Td=Sl(),Md=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,a=qr("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Ko),i=b.forwardRef((function(e,i){const l=ta(n),s=aa(e),{className:c,component:u="div"}=s,d=lt(s,da);return Pr.jsx(a,it({as:u,ref:i,className:ua(c,o?o(r):r),theme:t&&l[t]||l},d))}));return i}({themeId:at,defaultTheme:Td,defaultClassName:Pd.root,generateClassName:sa.generate});function Nd(e){return fa("PrivateSwitchBase",e)}ha("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const qd=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Dd=zl(Cs)((({ownerState:e})=>it({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),Ad=zl("input",{shouldForwardProp:Al})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),zd=b.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:b,readOnly:v,required:y=!1,tabIndex:x,type:S,value:w}=e,E=lt(e,qd),[k,C]=Ha({controlled:r,default:Boolean(i),name:"SwitchBase",state:"checked"}),R=od();let L=l;R&&void 0===L&&(L=R.disabled);const O="checkbox"===S||"radio"===S,I=it({},e,{checked:k,disabled:L,disableFocusRipple:s,edge:c}),_=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return si({root:["root",n&&"checked",r&&"disabled",o&&`edge${Yr(o)}`],input:["input"]},Nd,t)})(I);return Pr.jsxs(Dd,it({component:"span",className:ua(_.root,a),centerRipple:!0,focusRipple:!s,disabled:L,tabIndex:null,role:void 0,onFocus:e=>{b&&b(e),R&&R.onFocus&&R.onFocus(e)},onBlur:e=>{m&&m(e),R&&R.onBlur&&R.onBlur(e)},ownerState:I,ref:t},E,{children:[Pr.jsx(Ad,it({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;C(t),g&&g(e,t)},readOnly:v,ref:f,required:y,ownerState:I,tabIndex:x,type:S},"checkbox"===S&&void 0===w?{}:{value:w},p)),k?o:u]}))}));var jd=Ys(Pr.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"),Fd=Ys(Pr.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"),$d=Ys(Pr.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 Bd(e){return fa("MuiCheckbox",e)}const Wd=ha("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Hd=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Ud=zl(zd,{shouldForwardProp:e=>Al(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Yr(n.size)}`],"default"!==n.color&&t[`color${Yr(n.color)}`]]}})((({theme:e,ownerState:t})=>it({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})`:Gi.alpha("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Wd.checked}, &.${Wd.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Wd.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),Vd=Pr.jsx(Fd,{}),Gd=Pr.jsx(jd,{}),Kd=Pr.jsx($d,{}),Zd=b.forwardRef((function(e,t){var n,r;const o=Bl({props:e,name:"MuiCheckbox"}),{checkedIcon:a=Vd,color:i="primary",icon:l=Gd,indeterminate:s=!1,indeterminateIcon:c=Kd,inputProps:u,size:d="medium",className:p}=o,f=lt(o,Hd),h=s?c:l,m=s?c:a,g=it({},o,{color:i,indeterminate:s,size:d}),v=(e=>{const{classes:t,indeterminate:n,color:r,size:o}=e;return it({},t,si({root:["root",n&&"indeterminate",`color${Yr(r)}`,`size${Yr(o)}`]},Bd,t))})(g);return Pr.jsx(Ud,it({type:"checkbox",inputProps:it({"data-indeterminate":s},u),icon:b.cloneElement(h,{fontSize:null!=(n=h.props.fontSize)?n:d}),checkedIcon:b.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:d}),ownerState:g,ref:t,className:ua(v.root,p)},f,{classes:v}))}));function Xd(e){return fa("MuiCircularProgress",e)}ha("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Jd=["className","color","disableShrink","size","style","thickness","value","variant"];let Qd,Yd,ep,tp,np=e=>e;const rp=44,op=sr(Qd||(Qd=np`
|
|
97
97
|
0% {
|
|
98
98
|
transform: rotate(0deg);
|
|
99
99
|
}
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
100% {
|
|
102
102
|
transform: rotate(360deg);
|
|
103
103
|
}
|
|
104
|
-
`)),
|
|
104
|
+
`)),ap=sr(Yd||(Yd=np`
|
|
105
105
|
0% {
|
|
106
106
|
stroke-dasharray: 1px, 200px;
|
|
107
107
|
stroke-dashoffset: 0;
|
|
@@ -116,11 +116,11 @@
|
|
|
116
116
|
stroke-dasharray: 100px, 200px;
|
|
117
117
|
stroke-dashoffset: -125px;
|
|
118
118
|
}
|
|
119
|
-
`)),
|
|
119
|
+
`)),ip=zl("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Yr(n.color)}`]]}})((({ownerState:e,theme:t})=>it({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&&lr(ep||(ep=np`
|
|
120
120
|
animation: ${0} 1.4s linear infinite;
|
|
121
|
-
`),
|
|
121
|
+
`),op))),lp=zl("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),sp=zl("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Yr(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})((({ownerState:e,theme:t})=>it({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&&lr(tp||(tp=np`
|
|
122
122
|
animation: ${0} 1.4s ease-in-out infinite;
|
|
123
|
-
`),pp))),gp=b.forwardRef((function(e,t){const n=Gl({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=lt(n,op),p=it({},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 fi({root:["root",n,`color${ro(r)}`],svg:["svg"],circle:["circle",`circle${ro(n)}`,o&&"circleDisableShrink"]},rp,t)})(p),h={},m={},g={};if("determinate"===u){const e=2*Math.PI*((up-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 Tr.jsx(fp,it({className:ha(f.root,r),style:it({width:i,height:i},m,l),ownerState:p,ref:t,role:"progressbar"},g,d,{children:Tr.jsx(hp,{className:f.svg,ownerState:p,viewBox:"22 22 44 44",children:Tr.jsx(mp,{className:f.circle,style:h,ownerState:p,cx:up,cy:up,r:(up-s)/2,fill:"none",strokeWidth:s})})}))}));function bp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function vp(e){return parseInt(Ha(e).getComputedStyle(e).paddingRight,10)||0}function yp(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&&bp(e,o)}))}function xp(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function Sp(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Wa(e);return t.body===e?Ha(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=di(Wa(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${vp(r)+e}px`;const t=Wa(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${vp(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=Wa(r).body;else{const t=r.parentElement,n=Ha(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 wp=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Ep(e){const t=[],n=[];return Array.from(e.querySelectorAll(wp)).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 kp(){return!0}function Cp(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=Ep,isEnabled:i=kp,open:l}=e,s=b.useRef(!1),c=b.useRef(null),u=b.useRef(null),d=b.useRef(null),p=b.useRef(null),f=b.useRef(!1),h=b.useRef(null),m=Ja(wi(t),h),g=b.useRef(null);b.useEffect((()=>{l&&h.current&&(f.current=!n)}),[n,l]),b.useEffect((()=>{if(!l||!h.current)return;const e=Wa(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]),b.useEffect((()=>{if(!l||!h.current)return;const e=Wa(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 Tr.jsxs(b.Fragment,{children:[Tr.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),b.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)}}),Tr.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelEnd"})]})}const Rp=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&&bp(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);yp(t,e.mount,e.modalRef,r,!0);const o=xp(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=xp(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=Sp(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=xp(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&&bp(e.modalRef,t),yp(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&&bp(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Lp(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=Rp,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:l,children:s,onClose:c,open:u,rootRef:d}=e,p=b.useRef({}),f=b.useRef(null),h=b.useRef(null),m=Ja(h,d),[g,v]=b.useState(!u),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),w=()=>{o.mount(S(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},E=Xa((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Wa(f.current).body;o.add(S(),e),h.current&&w()})),k=b.useCallback((()=>o.isTopModal(S())),[o]),C=Xa((e=>{f.current=e,e&&(u&&k()?w():h.current&&bp(h.current,x))})),R=b.useCallback((()=>{o.remove(S(),x)}),[x,o]);b.useEffect((()=>()=>{R()}),[R]),b.useEffect((()=>{u?E():y&&a||R()}),[u,R,y,a,E]);const L=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&k()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},O=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=vi(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=it({},n,t);return it({role:"presentation"},r,{onKeyDown:L(r),ref:m})},getBackdropProps:(e={})=>it({"aria-hidden":!0},e,{onClick:O(e),open:u}),getTransitionProps:()=>({onEnter:Fa((()=>{v(!1),i&&i()}),null==s?void 0:s.props.onEnter),onExited:Fa((()=>{v(!0),l&&l(),a&&R()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:C,isTopModal:k,exited:g,hasTransition:y}}function Op(e){return ba("MuiModal",e)}va("MuiModal",["root","hidden","backdrop"]);const Ip=["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"],_p=Wl("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})=>it({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),Pp=Wl(Pd,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Tp=b.forwardRef((function(e,t){var n,r,o,a,i,l;const s=Gl({name:"MuiModal",props:e}),{BackdropComponent:c=Pp,BackdropProps:u,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:v={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:w=!1,disableRestoreFocus:E=!1,disableScrollLock:k=!1,hideBackdrop:C=!1,keepMounted:R=!1,onBackdropClick:L,open:O,slotProps:I,slots:_}=s,P=lt(s,Ip),T=it({},s,{closeAfterTransition:p,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:E,disableScrollLock:k,hideBackdrop:C,keepMounted:R}),{getRootProps:M,getBackdropProps:N,getTransitionProps:q,portalRef:A,isTopModal:D,exited:z,hasTransition:j}=Lp(it({},T,{rootRef:t})),F=it({},T,{exited:z}),$=(e=>{const{open:t,exited:n,classes:r}=e;return fi({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Op,r)})(F),B={};if(void 0===f.props.tabIndex&&(B.tabIndex="-1"),j){const{onEnter:e,onExited:t}=q();B.onEnter=e,B.onExited=t}const W=null!=(n=null!=(r=null==_?void 0:_.root)?r:g.Root)?n:_p,H=null!=(o=null!=(a=null==_?void 0:_.backdrop)?a:g.Backdrop)?o:c,U=null!=(i=null==I?void 0:I.root)?i:v.root,V=null!=(l=null==I?void 0:I.backdrop)?l:v.backdrop,G=Si({elementType:W,externalSlotProps:U,externalForwardedProps:P,getSlotProps:M,additionalProps:{ref:t,as:m},ownerState:F,className:ha(d,null==U?void 0:U.className,null==$?void 0:$.root,!F.open&&F.exited&&(null==$?void 0:$.hidden))}),K=Si({elementType:H,externalSlotProps:V,additionalProps:u,getSlotProps:e=>N(it({},e,{onClick:t=>{L&&L(t),null!=e&&e.onClick&&e.onClick(t)}})),className:ha(null==V?void 0:V.className,null==u?void 0:u.className,null==$?void 0:$.backdrop),ownerState:F});return R||O||j&&!z?Tr.jsx(Gu,{ref:A,container:h,disablePortal:w,children:Tr.jsxs(W,it({},G,{children:[!C&&c?Tr.jsx(H,it({},K)):null,Tr.jsx(Cp,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:E,isEnabled:D,open:O,children:b.cloneElement(f,B)})]}))}):null}));function Mp(e){return ba("MuiDivider",e)}const Np=va("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),qp=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Ap=Wl("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})=>it({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)`:Qi.alpha(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})=>it({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>it({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}})),(({theme:e,ownerState:t})=>it({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}})),(({ownerState:e})=>it({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Dp=Wl("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>it({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)`}))),zp=b.forwardRef((function(e,t){const n=Gl({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=lt(n,qp),h=it({},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 fi({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"]},Mp,r)})(h);return Tr.jsx(Ap,it({as:i,className:ha(m.root,a),role:u,ref:t,ownerState:h},f,{children:o?Tr.jsx(Dp,{className:m.wrapper,ownerState:h,children:o}):null}))}));zp.muiSkipListHighlight=!0;const jp=function(e={}){const{createStyledComponent:t=zi,useThemeProps:n=ji,componentName:r="MuiStack"}=e,o=t($i),a=b.forwardRef((function(e,t){const a=ca(n(e)),{component:i="div",direction:l="column",spacing:s=0,divider:c,children:u,className:d,useFlexGap:p=!1}=a,f=Fr(a,Ai),h={direction:l,spacing:s,useFlexGap:p},m=fi({root:["root"]},(e=>ba(r,e)),{});return Tr.jsx(o,jr({as:i,ownerState:h,ref:t,className:ha(m.root,d)},f,{children:c?Fi(u,c):u}))}));return a}({createStyledComponent:Wl("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Gl({props:e,name:"MuiStack"})});function Fp(e){return ba("MuiFormControlLabel",e)}const $p=va("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Bp=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Wp=Wl("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${$p.label}`]:t.label},t.root,t[`labelPlacement${ro(n.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>it({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${$p.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},{[`& .${$p.label}`]:{[`&.${$p.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),Hp=Wl("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${$p.error}`]:{color:(e.vars||e).palette.error.main}}))),Up=b.forwardRef((function(e,t){var n,r;const o=Gl({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=lt(o,Bp),m=dd(),g=null!=(n=null!=s?s:l.props.disabled)?n:null==m?void 0:m.disabled,v=null!=p?p:l.props.required,y={disabled:g,required:v};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===l.props[e]&&void 0!==o[e]&&(y[e]=o[e])}));const x=cd({props:o,muiFormControl:m,states:["error"]}),S=it({},o,{disabled:g,labelPlacement:d,required:v,error:x.error}),w=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:a}=e;return fi({root:["root",n&&"disabled",`labelPlacement${ro(r)}`,o&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]},Fp,t)})(S),E=null!=(r=f.typography)?r:i.typography;let k=u;return null==k||k.type===Cc||c||(k=Tr.jsx(Cc,it({component:"span"},E,{className:ha(w.label,null==E?void 0:E.className),children:k}))),Tr.jsxs(Wp,it({className:ha(w.root,a),ownerState:S,ref:t},h,{children:[b.cloneElement(l,y),v?Tr.jsxs(jp,{display:"block",children:[k,Tr.jsxs(Hp,{ownerState:S,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]}):k]}))})),Vp=b.createContext();function Gp(e){return ba("MuiGrid",e)}const Kp=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Zp=va("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}`)),...Kp.map((e=>`grid-xs-${e}`)),...Kp.map((e=>`grid-sm-${e}`)),...Kp.map((e=>`grid-md-${e}`)),...Kp.map((e=>`grid-lg-${e}`)),...Kp.map((e=>`grid-xl-${e}`))]),Xp=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Jp(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function Qp({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 Yp=Wl("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})=>it({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 Yr({theme:e},no({values:t.direction,breakpoints:e.breakpoints.values}),(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${Zp.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&0!==r){const t=no({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=Qp({breakpoints:e.breakpoints.values,values:t})),o=Yr({theme:e},t,((t,r)=>{var o;const a=e.spacing(t);return"0px"!==a?{marginTop:`-${Jp(a)}`,[`& > .${Zp.item}`]:{paddingTop:Jp(a)}}:null!=(o=n)&&o.includes(r)?{}:{marginTop:0,[`& > .${Zp.item}`]:{paddingTop:0}}}))}return o}),(function({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&0!==r){const t=no({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=Qp({breakpoints:e.breakpoints.values,values:t})),o=Yr({theme:e},t,((t,r)=>{var o;const a=e.spacing(t);return"0px"!==a?{width:`calc(100% + ${Jp(a)})`,marginLeft:`-${Jp(a)}`,[`& > .${Zp.item}`]:{paddingLeft:Jp(a)}}:null!=(o=n)&&o.includes(r)?{}:{width:"100%",marginLeft:0,[`& > .${Zp.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=no({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} + ${Jp(n)})`;c={flexBasis:e,maxWidth:e}}}a=it({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 ef=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 fi({root:["root",n&&"container",o&&"item",l&&"zeroMinWidth",...c,"row"!==r&&`direction-xs-${String(r)}`,"wrap"!==i&&`wrap-xs-${String(i)}`,...u]},Gp,t)},tf=b.forwardRef((function(e,t){const n=Gl({props:e,name:"MuiGrid"}),{breakpoints:r}=Ol(),o=ca(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=lt(o,Xp),v=p||f,y=l||f,x=b.useContext(Vp),S=c?i||12:x,w={},E=it({},g);r.keys.forEach((e=>{null!=g[e]&&(w[e]=g[e],delete E[e])}));const k=it({},o,{columns:S,container:c,direction:u,item:d,rowSpacing:v,columnSpacing:y,wrap:h,zeroMinWidth:m,spacing:f},w,{breakpoints:r.keys}),C=ef(k);return Tr.jsx(Vp.Provider,{value:S,children:Tr.jsx(Yp,it({ownerState:k,className:ha(C.root,a),as:s,ref:t},E))})})),nf=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function rf(e){return`scale(${e}, ${e**2})`}const of={entering:{opacity:1,transform:rf(1)},entered:{opacity:1,transform:"none"}},af="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),lf=b.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=ls}=e,g=lt(e,nf),v=ti(),y=b.useRef(),x=Ol(),S=b.useRef(null),w=Ja(S,wi(o),t),E=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},k=E(c),C=E(((e,t)=>{cc(e);const{duration:n,delay:r,easing:o}=uc({style:f,timeout:h,easing:a},{mode:"enter"});let i;"auto"===h?(i=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=i):i=n,e.style.transition=[x.transitions.create("opacity",{duration:i,delay:r}),x.transitions.create("transform",{duration:af?i:.666*i,delay:r,easing:o})].join(","),l&&l(e,t)})),R=E(s),L=E(p),O=E((e=>{const{duration:t,delay:n,easing:r}=uc({style:f,timeout:h,easing:a},{mode:"exit"});let o;"auto"===h?(o=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:n}),x.transitions.create("transform",{duration:af?o:.666*o,delay:af?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=rf(.75),u&&u(e)})),I=E(d);return Tr.jsx(m,it({appear:r,in:i,nodeRef:S,onEnter:C,onEntered:R,onEntering:k,onExit:O,onExited:I,onExiting:L,addEndListener:e=>{"auto"===h&&v.start(y.current||0,e),n&&n(S.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>b.cloneElement(o,it({style:it({opacity:0,transform:rf(.75),visibility:"exited"!==e||i?void 0:"hidden"},of[e],f,o.props.style),ref:w},t))}))}));function sf(e){return ba("MuiIcon",e)}lf.muiSupportAuto=!0,va("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const cf=["baseClassName","className","color","component","fontSize"],uf=Wl("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${ro(n.color)}`],t[`fontSize${ro(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]}))),df=b.forwardRef((function(e,t){const n=Gl({props:e,name:"MuiIcon"}),{baseClassName:r="material-icons",className:o,color:a="inherit",component:i="span",fontSize:l="medium"}=n,s=lt(n,cf),c=it({},n,{baseClassName:r,color:a,component:i,fontSize:l}),u=(e=>{const{color:t,fontSize:n,classes:r}=e;return fi({root:["root","inherit"!==t&&`color${ro(t)}`,`fontSize${ro(n)}`]},sf,r)})(c);return Tr.jsx(uf,it({as:i,className:ha(r,"notranslate",u.root,o),ownerState:c,"aria-hidden":!0,ref:t},s))}));function pf(e){return ba("MuiInputAdornment",e)}df.muiName="Icon";const ff=va("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var hf;const mf=["children","className","component","disablePointerEvents","disableTypography","position","variant"],gf=Wl("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ro(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>it({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${ff.positionStart}&:not(.${ff.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),bf=b.forwardRef((function(e,t){const n=Gl({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:a="div",disablePointerEvents:i=!1,disableTypography:l=!1,position:s,variant:c}=n,u=lt(n,mf),d=dd()||{};let p=c;c&&d.variant,d&&!p&&(p=d.variant);const f=it({},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 fi({root:["root",n&&"disablePointerEvents",o&&`position${ro(o)}`,i,r&&"hiddenLabel",a&&`size${ro(a)}`]},pf,t)})(f);return Tr.jsx(ud.Provider,{value:null,children:Tr.jsx(gf,it({as:a,ownerState:f,className:ha(h.root,o),ref:t},u,{children:"string"!=typeof r||l?Tr.jsxs(b.Fragment,{children:["start"===s?hf||(hf=Tr.jsx("span",{className:"notranslate",children:""})):null,r]}):Tr.jsx(Cc,{color:"text.secondary",children:r})}))})})),vf=b.createContext({});function yf(e){return ba("MuiList",e)}va("MuiList",["root","padding","dense","subheader"]);const xf=["children","className","component","dense","disablePadding","subheader"],Sf=Wl("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})=>it({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),wf=b.forwardRef((function(e,t){const n=Gl({props:e,name:"MuiList"}),{children:r,className:o,component:a="ul",dense:i=!1,disablePadding:l=!1,subheader:s}=n,c=lt(n,xf),u=b.useMemo((()=>({dense:i})),[i]),d=it({},n,{component:a,dense:i,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return fi({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},yf,t)})(d);return Tr.jsx(vf.Provider,{value:u,children:Tr.jsxs(Sf,it({as:a,className:ha(p.root,o),ref:t,ownerState:d},c,{children:[s,r]}))})}));function Ef(e){return ba("MuiListItem",e)}const kf=va("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Cf=va("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Rf(e){return ba("MuiListItemSecondaryAction",e)}va("MuiListItemSecondaryAction",["root","disableGutters"]);const Lf=["className"],Of=Wl("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>it({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),If=b.forwardRef((function(e,t){const n=Gl({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=lt(n,Lf),a=it({},n,{disableGutters:b.useContext(vf).disableGutters}),i=(e=>{const{disableGutters:t,classes:n}=e;return fi({root:["root",t&&"disableGutters"]},Rf,n)})(a);return Tr.jsx(Of,it({className:ha(i.root,r),ownerState:a,ref:t},o))}));If.muiName="ListItemSecondaryAction";const _f=["className"],Pf=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Tf=Wl("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})=>it({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&it({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Cf.root}`]:{paddingRight:48}},{[`&.${kf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${kf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Qi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${kf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${kf.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"}},[`&.${kf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Qi.alpha(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})`:Qi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),Mf=Wl("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Nf=b.forwardRef((function(e,t){const n=Gl({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:y,secondaryAction:x,selected:S=!1,slotProps:w={},slots:E={}}=n,k=lt(n.ContainerProps,_f),C=lt(n,Pf),R=b.useContext(vf),L=b.useMemo((()=>({dense:f||R.dense||!1,alignItems:r,disableGutters:m})),[r,R.dense,f,m]),O=b.useRef(null);Da((()=>{o&&O.current&&O.current.focus()}),[o]);const I=b.Children.toArray(i),_=I.length&&Ba(I[I.length-1],["ListItemSecondaryAction"]),P=it({},n,{alignItems:r,autoFocus:o,button:a,dense:L.dense,disabled:h,disableGutters:m,disablePadding:g,divider:v,hasSecondaryAction:_,selected:S}),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 fi({root:["root",o&&"dense",!i&&"gutters",!l&&"padding",s&&"divider",a&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},Ef,r)})(P),M=Ja(O,t),N=E.root||c.Root||Tf,q=w.root||u.root||{},A=it({className:ha(T.root,q.className,l),disabled:h},C);let D=s||"li";return a&&(A.component=s||"div",A.focusVisibleClassName=ha(kf.focusVisible,y),D=Ts),_?(D=A.component||s?D:"div","li"===d&&("li"===D?D="div":"li"===A.component&&(A.component="div")),Tr.jsx(vf.Provider,{value:L,children:Tr.jsxs(Mf,it({as:d,className:ha(T.container,p),ref:M,ownerState:P},k,{children:[Tr.jsx(N,it({},q,!hi(N)&&{as:D,ownerState:it({},P,q.ownerState)},A,{children:I})),I.pop()]}))})):Tr.jsx(vf.Provider,{value:L,children:Tr.jsxs(N,it({},q,{as:D,ref:M},!hi(N)&&{ownerState:it({},P,q.ownerState)},A,{children:[I,x&&Tr.jsx(If,{children:x})]}))})}));function qf(e){return ba("MuiListItemIcon",e)}const Af=va("MuiListItemIcon",["root","alignItemsFlexStart"]),Df=["className"],zf=Wl("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})=>it({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),jf=b.forwardRef((function(e,t){const n=Gl({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=lt(n,Df),a=it({},n,{alignItems:b.useContext(vf).alignItems}),i=(e=>{const{alignItems:t,classes:n}=e;return fi({root:["root","flex-start"===t&&"alignItemsFlexStart"]},qf,n)})(a);return Tr.jsx(zf,it({className:ha(i.root,r),ownerState:a,ref:t},o))})),Ff=va("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),$f=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Bf(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Wf(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Hf(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 Uf(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")&&Hf(l,a)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}const Vf=b.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=lt(e,$f),p=b.useRef(null),f=b.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Da((()=>{r&&p.current.focus()}),[r]),b.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${di(Wa(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const h=Ja(p,t);let m=-1;b.Children.forEach(a,((e,t)=>{b.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=b.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),b.cloneElement(e,t)}return e}));return Tr.jsx(wf,it({role:"menu",ref:h,className:i,onKeyDown:e=>{const t=p.current,n=e.key,r=Wa(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Uf(t,r,s,l,Bf);else if("ArrowUp"===n)e.preventDefault(),Uf(t,r,s,l,Wf);else if("Home"===n)e.preventDefault(),Uf(t,null,s,l,Bf);else if("End"===n)e.preventDefault(),Uf(t,null,s,l,Wf);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&&Hf(r,o);o.previousKeyMatched&&(s||Uf(t,r,!1,l,Bf,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1},d,{children:g}))}));function Gf(e){return ba("MuiPopover",e)}va("MuiPopover",["root","paper"]);const Kf=["onEntering"],Zf=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Xf=["slotProps"];function Jf(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Qf(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Yf(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function eh(e){return"function"==typeof e?e():e}const th=Wl(Tp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),nh=Wl(hc,{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}),rh=b.forwardRef((function(e,t){var n,r,o;const a=Gl({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:y,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:w=lf,transitionDuration:E="auto",TransitionProps:{onEntering:k}={},disableScrollLock:C=!1}=a,R=lt(a.TransitionProps,Kf),L=lt(a,Zf),O=null!=(n=null==x?void 0:x.paper)?n:v,I=b.useRef(),_=Ja(I,O.ref),P=it({},a,{anchorOrigin:s,anchorReference:u,elevation:h,marginThreshold:m,externalPaperSlotProps:O,transformOrigin:S,TransitionComponent:w,transitionDuration:E,TransitionProps:R}),T=(e=>{const{classes:t}=e;return fi({root:["root"],paper:["paper"]},Gf,t)})(P),M=b.useCallback((()=>{if("anchorPosition"===u)return c;const e=eh(l),t=(e&&1===e.nodeType?e:Wa(I.current).body).getBoundingClientRect();return{top:t.top+Jf(t,s.vertical),left:t.left+Qf(t,s.horizontal)}}),[l,s.horizontal,s.vertical,c,u]),N=b.useCallback((e=>({vertical:Jf(e,S.vertical),horizontal:Qf(e,S.horizontal)})),[S.horizontal,S.vertical]),q=b.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=N(t);if("none"===u)return{top:null,left:null,transformOrigin:Yf(n)};const r=M();let o=r.top-n.vertical,a=r.left-n.horizontal;const i=o+t.height,s=a+t.width,c=Ha(eh(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:Yf(n)}}),[l,u,M,N,m]),[A,D]=b.useState(g),z=b.useCallback((()=>{const e=I.current;if(!e)return;const t=q(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,D(!0)}),[q]);b.useEffect((()=>(C&&window.addEventListener("scroll",z),()=>window.removeEventListener("scroll",z))),[l,C,z]);b.useEffect((()=>{g&&z()})),b.useImperativeHandle(i,(()=>g?{updatePosition:()=>{z()}}:null),[g,z]),b.useEffect((()=>{if(!g)return;const e=$a((()=>{z()})),t=Ha(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,z]);let j=E;"auto"!==E||w.muiSupportAuto||(j=void 0);const F=f||(l?Wa(eh(l)).body:void 0),$=null!=(r=null==y?void 0:y.root)?r:th,B=null!=(o=null==y?void 0:y.paper)?o:nh,W=Si({elementType:B,externalSlotProps:it({},O,{style:A?O.style:it({},O.style,{opacity:0})}),additionalProps:{elevation:h,ref:_},ownerState:P,className:ha(T.paper,null==O?void 0:O.className)}),H=Si({elementType:$,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:L,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:P,className:ha(T.root,p)}),{slotProps:U}=H,V=lt(H,Xf);return Tr.jsx($,it({},V,!hi($)&&{slotProps:U,disableScrollLock:C},{children:Tr.jsx(w,it({appear:!0,in:g,onEntering:(e,t)=>{k&&k(e,t),z()},onExited:()=>{D(!1)},timeout:j},R,{children:Tr.jsx(B,it({},W,{children:d}))}))}))}));function oh(e){return ba("MuiMenuItem",e)}const ah=va("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),ih=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],lh=Wl(Ts,{shouldForwardProp:e=>Bl(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})=>it({},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"}},[`&.${ah.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Qi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ah.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ah.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Qi.alpha(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})`:Qi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ah.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ah.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Np.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Np.inset}`]:{marginLeft:52},[`& .${Ff.root}`]:{marginTop:0,marginBottom:0},[`& .${Ff.inset}`]:{paddingLeft:36},[`& .${Af.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&it({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Af.root} svg`]:{fontSize:"1.25rem"}})))),sh=b.forwardRef((function(e,t){const n=Gl({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=lt(n,ih),f=b.useContext(vf),h=b.useMemo((()=>({dense:a||f.dense||!1,disableGutters:l})),[f.dense,a,l]),m=b.useRef(null);Da((()=>{r&&m.current&&m.current.focus()}),[r]);const g=it({},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 it({},i,fi({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},oh,i))})(n),y=Ja(m,t);let x;return n.disabled||(x=void 0!==u?u:-1),Tr.jsx(vf.Provider,{value:h,children:Tr.jsx(lh,it({ref:y,role:c,tabIndex:x,component:o,focusVisibleClassName:ha(v.focusVisible,s),className:ha(v.root,d)},p,{ownerState:g,classes:v}))})}));var ch;const uh=["children","classes","className","label","notched"],dh=Wl("fieldset",{shouldForwardProp:Bl})({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%"}),ph=Wl("legend",{shouldForwardProp:Bl})((({ownerState:e,theme:t})=>it({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&&it({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 fh=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],hh=Wl(yd,{shouldForwardProp:e=>Bl(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:bd})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return it({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${kd.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${kd.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${kd.focused} .${kd.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${kd.error} .${kd.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${kd.disabled} .${kd.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&it({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),mh=Wl((function(e){const{className:t,label:n,notched:r}=e,o=lt(e,uh),a=null!=n&&""!==n,i=it({},e,{notched:r,withLabel:a});return Tr.jsx(dh,it({"aria-hidden":!0,className:t,ownerState:i},o,{children:Tr.jsx(ph,{ownerState:i,children:a?Tr.jsx("span",{children:n}):ch||(ch=Tr.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}})),gh=Wl(xd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:vd})((({theme:e,ownerState:t})=>it({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}))),bh=b.forwardRef((function(e,t){var n,r,o,a,i;const l=Gl({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=lt(l,fh),v=(e=>{const{classes:t}=e;return it({},t,fi({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Ed,t))})(l),y=dd(),x=cd({props:l,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=it({},l,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:y,fullWidth:c,hiddenLabel:x.hiddenLabel,multiline:p,size:x.size,type:m}),w=null!=(n=null!=(r=h.root)?r:s.Root)?n:hh,E=null!=(o=null!=(a=h.input)?a:s.Input)?o:gh;return Tr.jsx(wd,it({slots:{root:w,input:E},renderSuffix:e=>Tr.jsx(mh,{ownerState:S,className:v.notchedOutline,label:null!=d&&""!==d&&x.required?i||(i=Tr.jsxs(b.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:it({},v,{notchedOutline:null})}))}));bh.muiName="Input";var vh=ic(Tr.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"),yh=ic(Tr.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 xh=Wl("span",{shouldForwardProp:Bl})({position:"relative",display:"flex"}),Sh=Wl(vh)({transform:"scale(1)"}),wh=Wl(yh)((({theme:e,ownerState:t})=>it({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 Eh(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=it({},e,{checked:t});return Tr.jsxs(xh,{className:n.root,ownerState:o,children:[Tr.jsx(Sh,{fontSize:r,className:n.background,ownerState:o}),Tr.jsx(wh,{fontSize:r,className:n.dot,ownerState:o})]})}const kh=b.createContext(void 0);function Ch(e){return ba("MuiRadio",e)}const Rh=va("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),Lh=["checked","checkedIcon","color","icon","name","onChange","size","className"],Oh=Wl(Ud,{shouldForwardProp:e=>Bl(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"medium"!==n.size&&t[`size${ro(n.size)}`],t[`color${ro(n.color)}`]]}})((({theme:e,ownerState:t})=>it({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})`:Qi.alpha("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Rh.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${Rh.disabled}`]:{color:(e.vars||e).palette.action.disabled}})));const Ih=Tr.jsx(Eh,{checked:!0}),_h=Tr.jsx(Eh,{}),Ph=b.forwardRef((function(e,t){var n,r;const o=Gl({props:e,name:"MuiRadio"}),{checked:a,checkedIcon:i=Ih,color:l="primary",icon:s=_h,name:c,onChange:u,size:d="medium",className:p}=o,f=lt(o,Lh),h=it({},o,{color:l,size:d}),m=(e=>{const{classes:t,color:n,size:r}=e;return it({},t,fi({root:["root",`color${ro(n)}`,"medium"!==r&&`size${ro(r)}`]},Ch,t))})(h),g=b.useContext(kh);let v=a;const y=Fa(u,g&&g.onChange);let x=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===x&&(x=g.name)),Tr.jsx(Oh,it({type:"radio",icon:b.cloneElement(s,{fontSize:null!=(n=_h.props.fontSize)?n:d}),checkedIcon:b.cloneElement(i,{fontSize:null!=(r=Ih.props.fontSize)?r:d}),ownerState:h,classes:m,name:x,checked:v,onChange:y,ref:t,className:ha(m.root,p)},f))}));function Th(e){return ba("MuiTooltip",e)}const Mh=va("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Nh=["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 qh=Wl(rd,{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})=>it({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Mh.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Mh.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Mh.arrow}`]:it({},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"] .${Mh.arrow}`]:it({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),Ah=Wl("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${ro(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return it({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Qi.alpha(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},{[`.${Mh.popper}[data-popper-placement*="left"] &`]:it({transformOrigin:"right center"},t.isRtl?it({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):it({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Mh.popper}[data-popper-placement*="right"] &`]:it({transformOrigin:"left center"},t.isRtl?it({marginRight:"14px"},t.touch&&{marginRight:"24px"}):it({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Mh.popper}[data-popper-placement*="top"] &`]:it({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Mh.popper}[data-popper-placement*="bottom"] &`]:it({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n})),Dh=Wl("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:Qi.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let zh=!1;const jh=new ei;let Fh={x:0,y:0};function $h(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Bh=b.forwardRef((function(e,t){var n,r,o,a,i,l,s,c,u,d,p,f,h,m,g,v,y,x,S;const w=Gl({props:e,name:"MuiTooltip"}),{arrow:E=!1,children:k,components:C={},componentsProps:R={},describeChild:L=!1,disableFocusListener:O=!1,disableHoverListener:I=!1,disableInteractive:_=!1,disableTouchListener:P=!1,enterDelay:T=100,enterNextDelay:M=0,enterTouchDelay:N=700,followCursor:q=!1,id:A,leaveDelay:D=0,leaveTouchDelay:z=1500,onClose:j,onOpen:F,open:$,placement:B="bottom",PopperComponent:W,PopperProps:H={},slotProps:U={},slots:V={},title:G,TransitionComponent:K=lf,TransitionProps:Z}=w,X=lt(w,Nh),J=b.isValidElement(k)?k:Tr.jsx("span",{children:k}),Q=Ol(),Y=(()=>{const e=b.useContext(Oi);return null!=e&&e})(),[ee,te]=b.useState(),[ne,re]=b.useState(null),oe=b.useRef(!1),ae=_||q,ie=ti(),le=ti(),se=ti(),ce=ti(),[ue,de]=Za({controlled:$,default:!1,name:"Tooltip",state:"open"});let pe=ue;const fe=Ka(A),he=b.useRef(),me=Xa((()=>{void 0!==he.current&&(document.body.style.WebkitUserSelect=he.current,he.current=void 0),ce.clear()}));b.useEffect((()=>me),[me]);const ge=e=>{jh.clear(),zh=!0,de(!0),F&&!pe&&F(e)},be=Xa((e=>{jh.start(800+D,(()=>{zh=!1})),de(!1),j&&pe&&j(e),ie.start(Q.transitions.duration.shortest,(()=>{oe.current=!1}))})),ve=e=>{oe.current&&"touchstart"!==e.type||(ee&&ee.removeAttribute("title"),le.clear(),se.clear(),T||zh&&M?le.start(zh?M:T,(()=>{ge(e)})):ge(e))},ye=e=>{le.clear(),se.start(D,(()=>{be(e)}))},{isFocusVisibleRef:xe,onBlur:Se,onFocus:we,ref:Ee}=ui(),[,ke]=b.useState(!1),Ce=e=>{Se(e),!1===xe.current&&(ke(!1),ye(e))},Re=e=>{ee||te(e.currentTarget),we(e),!0===xe.current&&(ke(!0),ve(e))},Le=e=>{oe.current=!0;const t=J.props;t.onTouchStart&&t.onTouchStart(e)},Oe=e=>{Le(e),se.clear(),ie.clear(),me(),he.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ce.start(N,(()=>{document.body.style.WebkitUserSelect=he.current,ve(e)}))},Ie=e=>{J.props.onTouchEnd&&J.props.onTouchEnd(e),me(),se.start(z,(()=>{be(e)}))};b.useEffect((()=>{if(pe)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||be(e)}}),[be,pe]);const _e=Ja(wi(J),Ee,te,t);G||0===G||(pe=!1);const Pe=b.useRef(),Te={},Me="string"==typeof G;L?(Te.title=pe||!Me||I?null:G,Te["aria-describedby"]=pe?fe:null):(Te["aria-label"]=Me?G:null,Te["aria-labelledby"]=pe&&!Me?fe:null);const Ne=it({},Te,X,J.props,{className:ha(X.className,J.props.className),onTouchStart:Le,ref:_e},q?{onMouseMove:e=>{const t=J.props;t.onMouseMove&&t.onMouseMove(e),Fh={x:e.clientX,y:e.clientY},Pe.current&&Pe.current.update()}}:{}),qe={};P||(Ne.onTouchStart=Oe,Ne.onTouchEnd=Ie),I||(Ne.onMouseOver=$h(ve,Ne.onMouseOver),Ne.onMouseLeave=$h(ye,Ne.onMouseLeave),ae||(qe.onMouseOver=ve,qe.onMouseLeave=ye)),O||(Ne.onFocus=$h(Re,Ne.onFocus),Ne.onBlur=$h(Ce,Ne.onBlur),ae||(qe.onFocus=Re,qe.onBlur=Ce));const Ae=b.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(ne),options:{element:ne,padding:4}}];return null!=(e=H.popperOptions)&&e.modifiers&&(t=t.concat(H.popperOptions.modifiers)),it({},H.popperOptions,{modifiers:t})}),[ne,H]),De=it({},w,{isRtl:Y,arrow:E,disableInteractive:ae,placement:B,PopperComponentProp:W,touch:oe.current}),ze=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e;return fi({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${ro(a.split("-")[0])}`],arrow:["arrow"]},Th,t)})(De),je=null!=(n=null!=(r=V.popper)?r:C.Popper)?n:qh,Fe=null!=(o=null!=(a=null!=(i=V.transition)?i:C.Transition)?a:K)?o:lf,$e=null!=(l=null!=(s=V.tooltip)?s:C.Tooltip)?l:Ah,Be=null!=(c=null!=(u=V.arrow)?u:C.Arrow)?c:Dh,We=mi(je,it({},H,null!=(d=U.popper)?d:R.popper,{className:ha(ze.popper,null==H?void 0:H.className,null==(p=null!=(f=U.popper)?f:R.popper)?void 0:p.className)}),De),He=mi(Fe,it({},Z,null!=(h=U.transition)?h:R.transition),De),Ue=mi($e,it({},null!=(m=U.tooltip)?m:R.tooltip,{className:ha(ze.tooltip,null==(g=null!=(v=U.tooltip)?v:R.tooltip)?void 0:g.className)}),De),Ve=mi(Be,it({},null!=(y=U.arrow)?y:R.arrow,{className:ha(ze.arrow,null==(x=null!=(S=U.arrow)?S:R.arrow)?void 0:x.className)}),De);return Tr.jsxs(b.Fragment,{children:[b.cloneElement(J,Ne),Tr.jsx(je,it({as:null!=W?W:rd,placement:B,anchorEl:q?{getBoundingClientRect:()=>({top:Fh.y,left:Fh.x,right:Fh.x,bottom:Fh.y,width:0,height:0})}:ee,popperRef:Pe,open:!!ee&&pe,id:fe,transition:!0},qe,We,{popperOptions:Ae,children:({TransitionProps:e})=>Tr.jsx(Fe,it({timeout:Q.transitions.duration.shorter},e,He,{children:Tr.jsxs($e,it({},Ue,{children:[G,E?Tr.jsx(Be,it({},Ve,{ref:re})):null]}))}))}))]})}));function Wh(){const{useModelStore:e}=b.useContext(Xs).modelStore;return e()}function Hh(e,t){const n=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[r]=Wh(),[o]=function(){const{useRpcRequestSessionModelStore:e}=b.useContext(Xs).modelStore;return e()}(),[a,i]=b.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 b.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 Uh={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function Vh(e){return Hh(Uh,e)}const Gh=e=>new Promise((t=>{setTimeout(t,e)})),Kh=(e,t)=>{const{rpcResultStore:n,key:r,method:o}=t;let a;switch(t.type){case"INVALID":a=c(c({},e),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":a={result:c({},t.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":a=c(c({},e),{},{invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1});break;default:throw new Error("Undefined action")}let i=n.get(r);return i||(i={}),i[o]=a,n.set(r,i),a};function Zh(e,t){const n=e?"".concat(e.id):null,[r]=function(){const{useRpcResultStore:e}=b.useContext(Xs).modelStore;return e()}(),[o,a]=b.useReducer(Kh,n?r.get(n):null),[i]=function(){const{useModelChangedStore:e}=b.useContext(Xs).modelStore;return e()}(),[l]=function(){const{useRpcRequestStore:e}=b.useContext(Xs).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 Gh(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 b.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 Xh(e){return Zh(e,"getLayout")}function Jh(e){return Zh(e,"getAppLayout")}function Qh(){const[e,t]=b.useState(),[n,r]=b.useState(),o=b.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 b.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 Yh(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function em(e){let{size:t,style:n={},viewBox:r="0 0 16 16",shapes:o=[]}=e;const a=c({fontSize:Yh(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:a},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,l({key:t},r))}))))}var tm=e=>em((e=>c(c({},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 nm=e=>em((e=>c(c({},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 rm=e=>c(c({},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 om=e=>em(rm(e));var am=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}}(),im=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},lm=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=im(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},im(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),am(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}(b.PureComponent);const sm=["S","XS"],cm=e=>e.reduce(((e,t)=>e.concat(t)));function um(e){if(!e||!e.length)return[];const t=e.map((e=>e.qMatrix.map((e=>{const[t]=e;return n=t.qState,!!sm.includes(n)&&t.qElemNumber;var n})).filter((e=>!1!==e))));return cm(t)}async function dm(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 pm="RowColumn",fm={row:"".concat(pm,"-row"),rowBorderBottom:"".concat(pm,"-rowBorderBottom"),column:"".concat(pm,"-column"),fieldRoot:"".concat(pm,"-fieldRoot"),cell:"".concat(pm,"-cell"),labelText:"".concat(pm,"-labelText"),labelDense:"".concat(pm,"-labelDense"),highlighted:"".concat(pm,"-highlighted"),checkboxLabel:"".concat(pm,"-checkboxLabel"),icon:"".concat(pm,"-icon"),S:"".concat(pm,"-S"),XS:"".concat(pm,"-XS"),A:"".concat(pm,"-A"),X:"".concat(pm,"-X"),frequencyCount:"".concat(pm,"-frequencyCount"),barContainer:"".concat(pm,"-barContainer"),bar:"".concat(pm,"-bar"),barSelected:"".concat(pm,"-barSelected"),barWithCheckbox:"".concat(pm,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(pm,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(pm,"-excludedTextWithCheckbox")},hm=".".concat(fm.fieldRoot),mm=e=>!(null!=e&&e.metaKey||null!=e&&e.ctrlKey);function gm(e){var t;let{selectionState:n,selections:r,checkboxes:o=!1,doc:a=document,loaderRef:i}=e;const l=b.useRef({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});b.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(),dm({selections:r,elemNumbers:l.current.elemNumbers,isSingleSelect:n.isSingleSelect,toggle:l.current.toggle}))},c=(e,t)=>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],function(e){if(!e||!e.length)return[];const t=e.map((e=>e.qMatrix.map((e=>{const[{qElemNumber:t}]=e;return t}))));return cm(t)}(n.enginePages)),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=b.useCallback((e=>{if(n.selectDisabled())return;const t=+e.target.getAttribute("data-n"),r=!n.isSingleSelect&&mm(e.nativeEvent);l.current.elemNumbers=[t],l.current.toggle=r,r||n.clearItemStates(!0),n.updateItem(t),l.current.active=!1,s()}),[]),p=b.useCallback((e=>{if(0!==e.button||n.selectDisabled())return;const t=+e.currentTarget.getAttribute("data-n"),r=!n.isSingleSelect&&mm(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=b.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=b.useCallback((e=>{0===e.button&&l.current.active&&(l.current.active=!1,s())}),[]),m=b.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=b.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(hm))||void 0===t?void 0:t.getAttribute("data-n")),a=Number(null===(r=e.touches[1].target)||void 0===r||null===(r=r.closest(hm))||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=b.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()}),[]);b.useEffect((()=>(a.addEventListener("mouseup",h),()=>{a.removeEventListener("mouseup",h)})),[h]),b.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 y={};return o?Object.assign(y,{onChange:d}):Object.assign(y,{onMouseUp:f,onMouseDown:p,onMouseEnter:m,onTouchStart:g,onTouchEnd:v}),{interactionEvents:y,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&&mm(null==a?void 0:a.nativeEvent);i||n.clearItemStates(!0);const l=[];return n.updateItems(t,o,l),n.setSelectableValuesUpdating(),dm({selections:r,elemNumbers:o?l:t,isSingleSelect:n.isSingleSelect,toggle:i})}}}const bm=e=>c(c({},e),{},{shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]});var vm=e=>em(bm(e));const ym=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,xm=e=>{let{cell:t,checkboxes:n}=e;return(((r=t)?"A"===r.qState:null)||ym(t))&&n;var r};const Sm=e=>{let{column:t,histogram:n,cell:r,showGray:o}=e;if(!r)return[];const a=[t?fm.column:fm.row];n||a.push(fm.rowBorderBottom);const i=function(e){let t,{cell:n,showGray:r}=e;switch(n.qState){case"XS":t=r?fm.XS:fm.S;break;case"S":case"L":t=fm.S;break;case"A":t=!!r&&fm.A;break;case"X":case"XL":t=!!r&&fm.X;break;default:t=!1}return t}({cell:r,showGray:o});return i&&a.push(i),a},wm=9,Em=4,km=7,Cm=12+2*(km+1),Rm=80,Lm=10,Om=150,Im=56,_m=20,Pm="-",Tm=32,Mm=29,Nm=20,qm=4,Am=e=>e.filter((e=>!!e)).join(" ").trim(),Dm=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,"%")},zm=e=>e||Pm,jm=["backgroundColor"],Fm=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%"},$m=e=>{let{sizes:t,frequencyMode:n,isGridMode:r}=e;return r?"max-content":"P"===n?t.freqMinWidth:t.freqMaxWidth},Bm=e=>{let{theme:t,checkboxes:n,styles:r,selectionState:o}=e;if(n)return"selected"===o?{["& .".concat(fm.labelText)]:{color:r.selections.selected}}:{};const a=r.selections,i=a[o],l=a["".concat(o,"Contrast")];return{background:i,color:l,"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder),outline:"none"},"& $cell":{paddingRight:0},["& .".concat(fm.labelText)]:{color:l},["& .".concat(fm.icon)]:{color:l}}},Wm={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},Hm=Wl("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:a,direction:i,sizes:l,frequencyMode:s,freqHitsValue:d,styles:p}=e;const f=p.content,{backgroundColor:h}=f,m=u(f,jm),g=Bm({theme:t,styles:p,checkboxes:n,selectionState:"selected"}),b=Bm({theme:t,styles:p,checkboxes:n,selectionState:"excluded"}),v={height:"100%",transition:"width 0.2s",border:"".concat(1,"px solid"),borderColor:"#D9D9D9",backgroundColor:"#FAFAFA"},y={opacity:"30%"};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(fm.row)]:c({flexWrap:"nowrap"},p.content),["& .".concat(fm.rowBorderBottom)]:{borderBottom:o?"none":"1px solid ".concat(t.palette.divider),borderLeft:o?"1px solid ".concat(t.palette.divider):"none"},["& .".concat(fm.column)]:c({flexWrap:"nowrap",borderRight:"1px solid ".concat(t.palette.divider)},p.content),["& .".concat(fm.cell)]:{zIndex:2,display:"flex",alignItems:"center",flexGrow:1,minWidth:n?"52px":"26px",flexBasis:n?"auto":"max-content",paddingLeft:"".concat(wm,"px"),paddingRight:0},["& .".concat(fm.labelText)]:c(c({lineHeight:"24px",userSelect:"none",paddingRight:"1px"},Wm),m),["& .".concat(fm.labelDense)]:{lineHeight:"18px"},["& .".concat(fm.highlighted)]:{backgroundColor:"#FFC72A"},["& .".concat(fm.checkboxLabel)]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":c(c({},Wm),{},{display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"})},["& .".concat(fm.icon)]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24,color:m.color},["& .".concat(fm.S)]:c(c({},g),{},{border:r?"none":void 0}),["& .".concat(fm.XS)]:c(c({},Bm({theme:t,styles:p,checkboxes:n,selectionState:"selectedExcluded"})),{},{border:r?"none":void 0}),["& .".concat(fm.A)]:c(c({},Bm({theme:t,styles:p,checkboxes:n,selectionState:"alternative"})),{},{border:r?"none":void 0}),["& .".concat(fm.X)]:c(c({},b),{},{border:r?"none":void 0}),["& .".concat(fm.X,", & .").concat(fm.XS)]:{border:r?"none":void 0,["& .".concat(fm.barSelected," .bar-filled")]:c({},v)},["& .".concat(fm.frequencyCount)]:c(c({zIndex:3,justifyContent:"flex-end"},Wm),{},{flex:"0 0 ".concat(Fm({sizes:l,frequencyMode:s,isGridMode:r,freqHitsValue:d})),minWidth:!r&&"P"!==s&&d?l.freqMinWidth:"max-content",maxWidth:$m({sizes:l,frequencyMode:s,isGridMode:r}),textAlign:"rtl"===i?"left":"right",paddingLeft:"rtl"!==i?"8px":0}),["&.".concat(fm.barContainer)]:{height:"100%",display:"flex",alignItems:"center"},["& .".concat(fm.bar)]:{height:a?"16px":"20px",position:"absolute",zIndex:1,alignSelf:"center",left:4,width:"calc(100% - ".concat(8,"px)"),display:"flex",alignItems:"center","& .bar-filled":c({},v)},["& .".concat(fm.barSelected)]:{"& .bar-filled":c({},y)},["& .".concat(fm.barWithCheckbox)]:{left:"rtl"===i?4:29,width:"calc(100% - ".concat(33,"px)")},["& .".concat(fm.barSelectedWithCheckbox)]:{"& .bar-filled":c(c({},y),{},{backgroundColor:p.selections.selected||"#BFE5D0",borderColor:p.selections.selected})},["& .".concat(fm.excludedTextWithCheckbox)]:{color:p.content.color,fontStyle:"italic"}}}));var Um=v.memo(Hm);const Vm="ListBoxCheckbox",Gm={cbIcon:"".concat(Vm,"-cbIcon"),cbIconChecked:"".concat(Vm,"-cbIconChecked"),cbIconExcluded:"".concat(Vm,"-cbIconExcluded"),cbIconAlternative:"".concat(Vm,"-cbIconAlternative"),checkbox:"".concat(Vm,"-checkbox"),dense:"".concat(Vm,"-dense")},Km=Wl(np,{shouldForwardProp:e=>"styles"!==e})((e=>{let{styles:t}=e;return{["& .".concat(Gm.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(Gm.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(Gm.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:t.selections.excluded},["& .".concat(Gm.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:t.selections.alternative},["&.".concat(Gm.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(Gm.dense)]:{padding:"4px 8px"}}})),Zm=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 Xm(e){let{onChange:t,checked:n,label:r,dense:o,excluded:a,styles:i,showGray:l=!0,dataN:s}=e;return v.createElement(Km,{edge:"start",onChange:t,checked:n,disableRipple:!0,className:[Gm.checkbox,o&&Gm.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":r,"data-n":s},name:r,icon:Zm(Gm,l,a),checkedIcon:v.createElement("span",{className:Gm.cbIconChecked}),styles:i})}const Jm={radioButton:"".concat("ListBoxRadioButton","-radioButton")},Qm=Wl(Ph,{shouldForwardProp:e=>!["dense","styles"].includes(e)})((e=>{let{checked:t,styles:n,dense:r}=e;return{["&.".concat(Jm.radioButton)]:{right:"5px",color:t?n.selections.selected:n.content.color,padding:r?"0px 0px 0px 12px":void 0,backgroundColor:"transparent"}}}));function Ym(e){let{onChange:t,checked:n,label:r,dense:o,dataN:a,styles:i}=e;return v.createElement(Qm,{checked:n,onChange:t,value:r,name:r,className:Jm.radioButton,inputProps:{"data-n":a},disableRipple:!0,size:o?"small":"medium",dense:o,styles:i})}function eg(e){let{label:t,dense:n,showGray:r=!0,checkboxes:o,cell:a,valueTextAlign:i}=e;return v.createElement(Cc,{component:"span",variant:"body2",className:Am([fm.labelText,n&&fm.labelDense,r&&xm({cell:a,checkboxes:o})&&fm.excludedTextWithCheckbox]),align:i,dir:"auto"},v.createElement("span",null,t))}function tg(e){let{label:t,color:n,dense:r,showGray:o,checkboxes:a,cell:i,valueTextAlign:l}=e;return"string"==typeof t?v.createElement(eg,{label:t,color:n,dense:r,showGray:o,checkboxes:a,cell:i,valueTextAlign:l}):t}function ng(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(Xm,{onChange:t,label:n,checked:o,dense:a,excluded:ym(i),isGridCol:l,showGray:s,dataN:r,styles:p}),h=v.createElement(Ym,{onChange:t,label:n,checked:o,dense:a,dataN:r,styles:p});return v.createElement(Up,{control:c?h:f,className:fm.checkboxLabel,label:v.createElement(tg,{label:n,dense:a,showGray:s,checkboxes:u,cell:i,valueTextAlign:d}),key:r})}function rg(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?fm.highlighted:""},n)}));return v.createElement(eg,{label:a,dense:n,showGray:r,checkboxes:o})}function og(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(rg,{labels:n,dense:o,showGray:a,checkboxes:r});return r?v.createElement(ng,{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 ag=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(ng,{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(eg,{label:n,dense:a,showGray:!0,checkboxes:u,cell:i,valueTextAlign:d})}));function ig(e){let{qFrequency:t,histogram:n,checkboxes:r,isSelected:o,frequencyMax:a}=e;if(!(t&&n&&zm(t)!==Pm))return;const i=Dm({qFrequency:t,frequencyMax:a});return v.createElement(Fd,{className:Am([fm.bar,r&&fm.barWithCheckbox,o&&(r?fm.barSelectedWithCheckbox:fm.barSelected)])},v.createElement(Fd,{className:"bar-filled",width:i}))}function lg(e){let{cell:t,checkboxes:n,dense:r,showGray:o}=e;const a=zm(null==t?void 0:t.qFrequency);return v.createElement(tf,{item:!0,style:{display:"flex",alignItems:"center"},className:fm.frequencyCount,"aria-label":a,title:a},v.createElement(Cc,{noWrap:!0,color:"inherit",variant:"body2",className:Am([r&&fm.labelDense,fm.labelText,o&&xm({cell:t,checkboxes:n})&&fm.excludedTextWithCheckbox])},a))}function sg(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 cg=Wl(tf,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction","fillHeight"].includes(e)})((e=>{let{dataLayout:t,layoutOrder:n,itemPadding:r,cellPaddingRight:o,direction:a,fillHeight:i}=e;const l="padding".concat("rtl"===a?"Left":"Right");return{["&.".concat(fm.fieldRoot)]:c(c({},sg({dataLayout:t,layoutOrder:n,itemPadding:r,fillHeight:i})),{},{[l]:o?"8px":void 0})}}));const ug=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===ug.ARROW_UP||e===ug.ARROW_DOWN||e===ug.ARROW_LEFT||e===ug.ARROW_RIGHT});function dg(e){null==e||e.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")}))}function pg(e){return(null==e?void 0:e.closest(".njs-cell"))||(null==e?void 0:e.closest(".qv-gridcell"))||(null==e?void 0:e.closest(".qv-gs-listbox"))}function fg(e){let{containerRef:t,enabled:n}=e;const[r,o]=b.useState(!1);return{enabled:n,active:r,innerTabStops:!n||r,blur(e){var r;if(!n)return;o(!1);const a=pg(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)})),dg(t.current),e&&a&&(a.setAttribute("tabIndex",0),t.current.setAttribute("tabIndex",-1),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=(null==e?void 0:e.querySelector(".listbox-cyclic-button"))||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:not(:disabled)"),n=e||t;return null==n||n.setAttribute("tabIndex",0),null==n||n.focus(),n}}}const hg=e=>+e.getAttribute("data-n"),mg=e=>{const t=null==e?void 0:e.querySelector(".search input");return null==t||t.focus(),t},gg=e=>{const t=null==e?void 0:e.querySelector(".value.last-focused"),n=null==e?void 0:e.querySelector(".value.selector"),r=null==e?void 0:e.querySelector(".value"),o=t||n||r;return null==o||o.setAttribute("tabIndex",0),null==o||o.focus(),dg(e),o},bg=e=>{const t=null==e?void 0:e.querySelector(".listbox-cyclic-button:not(:disabled)");return null==t||t.setAttribute("tabIndex",0),null==t||t.focus(),t},vg=(e,t)=>{if(!t.enabled)return;const{currentTarget:n,target:r}=e,o=r.classList.contains("listbox-container"),a=n.closest(".listbox-container"),i=pg(a),l=1===(null==i?void 0:i.querySelectorAll(".listbox-container").length);if(o||l)t.blur(!0);else{dg(a),n.classList.add("last-focused"),t.blur();const e=n.closest(".listbox-container");e.setAttribute("tabIndex",-1),null==e||e.focus()}},yg=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===ug.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};const xg={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 Sg(e){var t,n;let{index:r,rowIndex:o,columnIndex:a,style:i,data:l}=e;const{onChange:s,onClick:u,onMouseDown:d,onMouseUp:p,onMouseEnter:f,onTouchStart:h,onTouchEnd:m,pages:g,isLocked:y,column:x=!1,checkboxes:S=!1,textAlign:w,direction:E,layoutOptions:k={},freqIsAllowed:C,isSingleSelect:R,actions:L,frequencyMax:O="",histogram:I=!1,keyboard:_,showGray:P=!0,showTick:T=!0,columnCount:M=1,rowCount:N=1,dataOffset:q,deducedFrequencyMode:A,focusListItems:D,listCount:z,sizes:j,translator:F,showSearch:$,isModal:B,contentFontStyle:W,styles:H,fillHeight:U}=l,{dense:V=!1,dataLayout:G="singleColumn",layoutOrder:K}=k,{itemPadding:Z}=j;let X,J;const Q={max:null,currentIndex:null};if("number"==typeof o&&"number"==typeof a){"row"===K?(X=o*M+a,Q.max=N,Q.currentIndex=o):(X=a*N+o,Q.max=M,Q.currentIndex=a);const e=0;J=c(c({},i),{},{height:U?"100%":i.height,left:e+(0===a?i.left:Number(i.left)+a*e),top:0===o?i.top:Number(i.top)+o*e})}else X=r,Q.max=z,Q.currentIndex=r,J=c({},i);X+=q;const[Y,ee]=b.useState(null);b.useEffect((()=>{null!==Y&&(0===Q.currentIndex&&D.first&&(Y.focus(),D.setFirst(!1)),Q.currentIndex===Q.max-1&&D.last&&(Y.focus(),D.setLast(!1)))}),[Y,D.first,D.last]);const te=b.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===ug.ARROW_LEFT||e===ug.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=yg({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 b=e=>{g=e};return e=>{let u;const{currentTarget:d,nativeEvent:p}=e,{keyCode:f,shiftKey:h=!1,ctrlKey:v=!1,metaKey:y=!1}=p;switch(f){case ug.TAB:{const t=d.closest(".listbox-container"),n=void 0!==c?c():void 0;if(d.classList.add("last-focused"),null==s||!s.enabled){if(!n)return;return s.focusSelection(),e.preventDefault(),void e.stopPropagation()}if(h){mg(t)||bg(t)||(n?s.focusSelection():vg(e,s));break}s.focusSelection()||bg(t)||mg(t)||(d.blur(),vg(e,s));break}case ug.SHIFT:b(!0);break;case ug.SPACE:t([hg(d)],!1,e);break;case ug.ARROW_DOWN:case ug.ARROW_RIGHT:u=m(f,d,!0),h&&u&&(g&&(t([hg(d)],!0),b(!1)),t([hg(u)],!0));break;case ug.ARROW_UP:case ug.ARROW_LEFT:u=m(f,d,!1),h&&u&&(g&&(t([hg(d)],!0),b(!1)),t([hg(u)],!0));break;case ug.ENTER:if(o(),void 0===c)return;break;case ug.ESCAPE:if(void 0===c)return void a();if(!c())return;a();break;case ug.HOME:if(l.setFirst(!0),v){null==i||i("overflowStart");break}null==i||i("start");break;case ug.END:if(l.setLast(!0),v){null==i||i("overflowEnd");break}null==i||i("end");break;case ug.A:if(v||y){n();break}return;case ug.F:if(v||y){r();break}return;default:return}u&&u.focus(),e.preventDefault(),e.stopPropagation()}}(c(c({},L),{},{focusListItems:D,keyboard:_,isModal:B,rowCount:N,columnCount:M,rowIndex:o,columnIndex:a,layoutOrder:K})),[L,null==_?void 0:_.innerTabStops,N,M,o,a,K]),ne=b.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=b.useMemo((()=>Sm({column:x,histogram:I,cell:ne,showGray:P})),[null==ne?void 0:ne.qState,I,V]),ae=b.useCallback((e=>{e.preventDefault()}),[S]),ie=b.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:E,cell:ne,textAlign:w})),[E,ne,w]);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"===E,pe={display:"flex",alignItems:"center",flexGrow:1,paddingLeft:de?8:S?0:void 0,paddingRight:S?0:de?8:0,justifyContent:ie,textAlign:ie},fe=0===r,he=re&&y,me=!S&&re&&!y,ge=!S&&T,be=S||!T,ve=function(e){let{translator:t,label:n,qState:r,isSelected:o,currentIndex:a,maxIndex:i,showSearch:l}=e;const s=xg[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:F,label:se,qState:ne.qState,currentIndex:Q.currentIndex,maxIndex:Q.max,showSearch:$}),ye=!de&&"right"===ie||de&&"left"===ie;return v.createElement(Um,{className:fm.barContainer,checkboxes:S,style:J,styles:H,isGridCol:le,isGridMode:"grid"===G,dense:V,direction:E,sizes:j,frequencyMode:A,freqHitsValue:ye,contentFontStyle:W,"data-testid":"listbox.item"},v.createElement(cg,{role:"row","aria-label":ve,"aria-selected":re,"aria-setsize":Q.max,"aria-rowindex":Q.currentIndex,ref:ee,container:!0,dataLayout:G,cellPaddingRight:be,layoutOrder:K,itemPadding:Z,gap:0,className:Am(["value",...oe]),classes:{root:fm.fieldRoot},onClick:u,onMouseDown:d,onMouseUp:p,onMouseEnter:f,onKeyDown:te,onTouchStart:h,onTouchEnd:m,onContextMenu:ae,tabIndex:fe&&_.innerTabStops?0:-1,"data-n":null==ne?void 0:ne.qElemNumber,direction:E,fillHeight:U},(null==ne?void 0:ne.qFrequency)&&v.createElement(ig,{qFrequency:null==ne?void 0:ne.qFrequency,histogram:I,checkboxes:S,isSelected:re,frequencyMax:O}),v.createElement(tf,{item:!0,style:pe,className:Am([fm.cell,fm.selectedCell]),title:"".concat(se)},ce?v.createElement(og,{onChange:s,labels:ce,checkboxes:S,dense:V,showGray:P,qElemNumber:ne.qElemNumber,isSelected:re,cell:ne,isGridCol:le,isSingleSelect:R,valueTextAlign:ie,styles:H}):v.createElement(ag,{onChange:s,label:se,qElemNumber:ne.qElemNumber,isSelected:re,dense:V,cell:ne,isGridCol:le,showGray:P,isSingleSelect:R,checkboxes:S,valueTextAlign:ie,styles:H})),C&&v.createElement(lg,{cell:ne,checkboxes:S,dense:V,showGray:P}),ge&&v.createElement(tf,{item:!0,className:fm.icon},he&&v.createElement(nm,{style:ue,size:"small"}),me&&v.createElement(vm,{style:ue,size:"small"}))))}var wg=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Eg(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||wg(r)&&wg(o)))return!1;var r,o;return!0}function kg(e,t){var n;void 0===t&&(t=Eg);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 Cg="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function Rg(e){cancelAnimationFrame(e.id)}function Lg(e,t){var n=Cg();var r={id:requestAnimationFrame((function o(){Cg()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var Og=-1;function Ig(e){if(void 0===e&&(e=!1),-1===Og||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),Og=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Og}var _g=null;function Pg(e){if(void 0===e&&(e=!1),null===_g||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?_g="positive-descending":(t.scrollLeft=1,_g=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),_g}return _g}var Tg=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function Mg(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,cs(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:cs(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=kg((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=kg((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=kg((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(Pg()){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&&Rg(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=Lg(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}Jl(t,e),t.getDerivedStateFromProps=function(e,t){return Ng(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,b=Ig();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 v=i(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?b:0,x=v>d?b: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(Pg()){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&&Rg(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?Tg:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,v=e.style,y=e.useIsScrolling,x=e.width,S=this.state.isScrolling,w=this._getHorizontalRangeToRender(),E=w[0],k=w[1],C=this._getVerticalRangeToRender(),R=C[0],L=C[1],O=[];if(r>0&&g)for(var I=R;I<=L;I++)for(var _=E;_<=k;_++)O.push(b.createElement(t,{columnIndex:_,data:d,isScrolling:y?S:void 0,key:f({columnIndex:_,data:d,rowIndex:I}),rowIndex:I,style:this._getItemStyle(I,_)}));var P=i(this.props,this._instanceProps),T=l(this.props,this._instanceProps);return b.createElement(h||m||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:Kl({position:"relative",height:a,width:x,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},b.createElement(c||u||"div",{children:O,ref:s,style:{height:P,pointerEvents:S?"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,b=m.scrollLeft,v=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(b,v,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}(b.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var Ng=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},qg=function(e,t){return e};function Ag(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,cs(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:cs(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=kg((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=kg((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=kg((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(Pg()){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&&Rg(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=Lg(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}Jl(t,e),t.getDerivedStateFromProps=function(e,t){return Dg(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?Ig():0:s.scrollHeight>s.clientHeight?Ig():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(Pg()){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&&Rg(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?qg:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S="horizontal"===o||"horizontal"===f,w=S?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),k=E[0],C=E[1],R=[];if(c>0)for(var L=k;L<=C;L++)R.push(b.createElement(t,{data:u,key:p(L,u),index:L,isScrolling:v?x:void 0,style:this._getItemStyle(L)}));var O=r(this.props,this._instanceProps);return b.createElement(h||m||"div",{className:n,onScroll:w,ref:this._outerRefSetter,style:Kl({position:"relative",height:a,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},b.createElement(l||s||"div",{children:R,ref:i,style:{height:S?"100%":O,pointerEvents:x?"none":void 0,width:S?O:"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}(b.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var Dg=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},zg=Mg({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}}),jg=Ag({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 Fg="#BBB",$g="#f1f1f1",Bg={styledScrollbars:"".concat("ListBox","-styledScrollbars")};const Wg=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStopIndex)||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex,Hg=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStartIndex)||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex,Ug=(e,t,n,r)=>e===t*n+r+n;function Vg(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=Wg(t,c),d=c?r.column:r.row,p=(c?o:a)>=d,f=Ug(l,u,c?a:o,s),h=!!s&&Hg(t,c),m=p&&!f&&u>=d-1||h||i.state.show;i.set(m)}const{StyledFixedSizeList:Gg,StyledFixedSizeGrid:Kg}=function(){const e=e=>({scrollbarColor:"".concat(Fg," ").concat($g),overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:$g},"&::-webkit-scrollbar-thumb":{backgroundColor:Fg,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:gr(jg,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(Bg.styledScrollbars)]:e(n)}})),StyledFixedSizeGrid:gr(zg,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(Bg.styledScrollbars)]:e(n)}}))}}();const Zg=(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)},Xg=e=>{const t=b.useMemo((()=>"text"in e?e:{}),[e]);return b.useMemo((()=>Zg(t.text,t.font||"12px Source Sans Pro")),[t.text,t.font])};function Jg(e){if(!e)return"";const t="number"==typeof e?e:e.qListObject.qDimensionInfo.qApprMaxGlyphCount;return Array(t).fill("M").join("")}function Qg(e){let{isGridMode:t,dense:n}=e;let r=n?Nm:t?Tm:Mm;return t&&(r+=qm),r}function Yg(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)||{},b="".concat(m," ").concat(g),v=Xg({text:Jg(t),font:b}),y=Xg({text:Jg(5),font:b}),x=Xg({text:Jg(8),font:b}),S=i?y:0,w=l?_m:0;let E=Im+S+w;!l&&E>=Rm&&(E+=_m);let k,C,R,L,O=v+18+S+w;!l&&O>=Rm&&(O+=_m),O=Math.min(Om,Math.max(O,E));const I=Qg({isGridMode:"grid"===h,dense:f}),_=null!=r?r:8*I;if(u){let e=n;"row"===u?(k={overflowX:"hidden"},e+=2*qm,({rowCount:L,columnWidth:R,columnCount:C}=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-Lm;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}))):(k={overflowY:"hidden"},({rowCount:L,columnWidth:R,columnCount:C}=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})))}C=("singleColumn"===h?1:C)||1,L=("singleColumn"===h?a:L)||o;const P=c.dense?838e3:577e3;L=Math.min(L,P);const T=Math.floor(3355e4/R);C=Math.min(C,T)||1;const M=L*C,N=Math.min(o,M);return{columnCount:C,columnWidth:R,rowCount:L,overflowStyling:k,itemHeight:I,listHeight:_,listWidth:n,scrollBarWidth:Lm,count:a,listCount:N,maxCount:{row:P,column:T},itemPadding:qm,textWidth:v,freqMinWidth:y,freqMaxWidth:x}}const eb=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[tb,nb]=Ys({});function rb(e){const t="".concat(e.id),[n]=tb();return{setStoreValue:(e,r)=>n.set("".concat(t,"/").concat(e),r),getStoreValue:e=>n.get("".concat(t,"/").concat(e))}}const ob=Wl(Cc,{shouldForwardProp:e=>!["width","dense"].includes(e)})((e=>{let{width:t,dense:n}=e;return c({minWidth:"".concat(t,"px"),textAlign:"center",fontSize:"".concat(n?"12px":"14px")},n&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:t})}));function ab(e){let{width:t,text:n,dense:r,tooltip:o}=e;const{translator:a}=b.useContext(Xs);return v.createElement(Bh,{title:o?a.get(n):""},v.createElement(ob,{width:t,dense:r,component:"div",variant:"body1",py:"12px"},a.get(n)))}var ib,lb={},sb={exports:{}};var cb,ub,db={},pb=r(sc);function fb(){return cb||(cb=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=pb}(db)),db}function hb(){if(ub)return lb;ub=1;var e=(ib||(ib=1,function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(sb)),sb.exports);Object.defineProperty(lb,"__esModule",{value:!0}),lb.default=void 0;var t=e(fb()),n=Pr();return lb.default=(0,t.default)((0,n.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"),lb}var mb=n(hb());const gb=Wl(hc)((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}})),bb=Wl("div")((()=>({paddingLeft:"6px",flexGrow:1}))),vb=Wl("div")((e=>{let{dense:t}=e;return{display:"flex",alignItems:"".concat(t?"center":"flex-start")}})),yb=Wl(mb)((()=>({fontSize:"14px"})));function xb(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(gb,{left:l,style:{maxWidth:i}},v.createElement(bb,null,v.createElement(ab,{text:t,dense:r,width:s,tooltip:c})),v.createElement(vb,{dense:r},a&&v.createElement(yc,{"aria-label":"close",onClick:()=>n()},v.createElement(yb,null))))}const Sb=(e,t)=>e.qListObject.qDimensionInfo.qCardinal-t;const wb=80;function Eb(e){let{itemWidth:t,layout:n,frequencyMode:r}=e;const o=t>wb,{frequencyEnabled:a=!1}=(null==n?void 0:n.qListObject)||{},i=!["N",void 0].includes(r);return!(!o||!i&&!a)}const kb=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,"))")},Cb=(e,t)=>{const n=(e=>"fetch"===(null==e?void 0:e.frequencyMax))(t),[r,o]=b.useState(),[a,i]=b.useState(n);return b.useEffect((()=>{if(!n)return;(async()=>{const n=await(async(e,t)=>{const n=e.qListObject.qDimensionInfo,r=n.qGroupFieldDefs[n.qGroupPos],o=kb(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 Rb=["isLoadingData"],Lb=100,Ob=Wl("div")((()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}})));function Ib(e){var t,n;let{model:r,app:o,constraints:a,layout:i,selections:s,selectionState:d,direction:p,checkboxes:f,height:h,width:m,frequencyMode:g,update:y,fetchStart:x,postProcessPages:S,calculatePagesHeight:w=!1,keyboard:E={},showGray:k=!0,scrollState:C,keyScroll:R={state:{},reset:()=>{}},currentScrollIndex:L={set:()=>{}},renderedCallback:O,onCtrlF:I,showSearch:_,isModal:P,styles:T}=e;const{translator:M}=b.useContext(Xs),[N,q]=b.useState(!1),A=!(!i||!i.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:D=f,histogram:z}=null!=i?i:{},j=b.useRef(null),F=b.useRef({queue:[],validPages:!1,dataOffset:0}),$=b.useRef({pages:[]}),{frequencyMax:B,awaitingFrequencyMax:W}=Cb(o,i),H=function(e){let{local:t,loaderRef:n,model:r,fetchStart:o,scrollTimeout:a,postProcessPages:i,listData:l}=e;const[s,c]=b.useState(!1),[u,d]=b.useState([]);let[p]=b.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:x,scrollTimeout:0,postProcessPages:S,listData:$}),{isLoadingData:U}=H,V=u(H,Rb),{getStoreValue:G,setStoreValue:K}=rb(r),Z=b.useCallback(V.loadMoreItems,[i]),[X,J]=b.useState({show:!1,dismissed:!1}),[Q,Y]=b.useState([]);null!=V&&V.pages&&d.update({setPages:Y,pages:V.pages,isSingleSelect:A,layout:i});const ee=null==i?void 0:i.qListObject.qDimensionInfo.qCardinal;(null!=V&&V.pages.length&&!W||0===ee)&&(null==O||O());const te=b.useCallback((e=>{if(null==Q||!Q.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=Q.filter((e=>t(e)))[0];return n&&t(n)}),[i,Q]),{interactionEvents:ne,select:re}=gm({selectionState:d,selections:s,checkboxes:D,doc:document,loaderRef:j}),{layoutOptions:oe={}}=i||{};let ae=!0;oe.dataLayout&&(ae="singleColumn"===oe.dataLayout||"row"===(null==oe?void 0:oe.layoutOrder));const ie="grid"===(null==oe?void 0:oe.dataLayout),le=e=>{const t=c({},ae?{rowIndex:e}:{columnIndex:e}),n=ie?t:e;j.current._listRef.scrollToItem(n)},se=()=>{if(F.current.queue=[],F.current.validPages=!1,j.current){j.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===R.state.scrollPosition;if(i&&i.qSelectionInfo.qInSelections||e)return void(e&&R.reset());F.current.dataOffset=0,le(0)}};y&&y.call(null,se),b.useEffect((()=>{C&&!N&&j.current&&(j.current._listRef.scrollToItem(C.initScrollPos),q(!0))}),[j.current]),b.useEffect((()=>{se()}),[i,F.current.dataOffset]);let ce=Lb;const ue="grid"!==oe.dataLayout,de=null==i||null===(t=i.qListObject.qSize)||void 0===t?void 0:t.qcy,pe=function(e){let{pages:t,minimumBatchSize:n,count:r,calculatePagesHeight:o=!1}=e;return(null!=t&&t.length&&o?eb({pages:t,minimumBatchSize:n,count:r}):r)||0}({pages:Q,minimumBatchSize:ce,count:de,calculatePagesHeight:w});let fe=Eb({itemWidth:m,layout:i,frequencyMode:g});const he=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":"-"}(Q),me=Yg({layout:i,width:m,height:h,listCount:pe,count:de,freqIsAllowed:fe,checkboxes:D,styles:T});me.columnWidth&&(fe=Eb({itemWidth:me.columnWidth,layout:i,frequencyMode:g}));const{listCount:ge}=me;K("listCount",ge);const be=G("inputText"),ve=function(e){let{layout:t,searchInputText:n,listCount:r}=e;const{translator:o}=b.useContext(Xs),a=[];if(null!=n&&n.length){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}(r),t=o.get(e,[r]);a.push(t)}const i=function(e){var t;let{layout:n,translatorDynamic:r}=e;const{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"}return r.get(i,[a])}({layout:t,translatorDynamic:o});a.push(i);const l=a.filter((e=>!(null==e||!e.length))).join(". ");return l}({layout:i,searchInputText:be,listCount:ge}),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=Sb(a,o.listCount),t=a.qListObject.qDimensionInfo.qCardinal,l=!0}return{scrollIndex:t,offset:s,triggerRerender:l}}({position:e,isRow:ae,sizes:me,layout:i,offset:F.current.dataOffset});F.current.dataOffset=n,r&&d.triggerStateChanged(),le(t)};b.useEffect((()=>{const e=R.state;e.up?le(L.state.start-e.up):e.down?le(L.state.stop+e.down):e.scrollPosition&&ye(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&R.reset()}),[R.state.up,R.state.down,R.state.scrollPosition]);const{textAlign:xe}=(null==i?void 0:i.qListObject.qDimensionInfo)||{},[Se,we]=b.useState({first:!1,last:!1}),{List:Ee,Grid:ke}=function(e){let{layout:t,width:n,checkboxes:r,local:o,isVertical:a,pages:i,selectionState:s,interactionEvents:u,deducedFrequencyMode:d,histogram:p,isSingleSelect:f,select:h,selectAll:m,onCtrlF:g,textAlign:b,selections:y,keyboard:x,showGray:S,scrollState:w,direction:E,sizes:k,listCount:C,overflowDisclaimer:R,setScrollPosition:L,focusListItems:O,setCurrentScrollIndex:I,constraints:_,frequencyMax:P,freqIsAllowed:T,translator:M,showSearch:N,isModal:q,styles:A}=e;const{layoutOptions:D={}}=t||{},{columnWidth:z,listHeight:j,itemHeight:F,rowCount:$,columnCount:B}=k||{},W=("grid"===D.dataLayout?z:n)>Rm,H={direction:"rtl"===E?"rtl":"ltr",useIsScrolling:!0,className:Bg.styledScrollbars},U=null==t?void 0:t.qListObject.qDimensionInfo.qLocked,V=j<=F,G=c(c({isLocked:U,column:!a,pages:i},U||s.selectDisabled()?{}:u),{},{checkboxes:r,layoutOptions:D,deducedFrequencyMode:d,freqIsAllowed:T,isSingleSelect:f,textAlign:b,sizes:k,actions:{select:h,confirm:()=>null==y?void 0:y.confirm.call(y),cancel:()=>null==y?void 0:y.cancel.call(y),setScrollPosition:L,selectAll:m,onCtrlF:g},frequencyMax:P,histogram:p,keyboard:x,showGray:S,showTick:W,dataOffset:o.current.dataOffset,focusListItems:O,direction:E,translator:M,showSearch:N,isModal:q,styles:A,fillHeight:V});return{List:e=>{let{onItemsRendered:r,ref:a}=e;return o.current.listRef=a,v.createElement(Gg,l({},H,{dataTestid:"fixed-size-list",scrollDisabled:null==_?void 0:_.active,height:j,width:n,itemCount:C,itemData:c(c({},G),{},{listCount:C}),itemSize:F,onItemsRendered:e=>{var n;I({start:e.visibleStartIndex,stop:e.visibleStopIndex}),w&&w.setScrollPos(e.visibleStopIndex),Vg({renderProps:e,layoutOptions:D,maxCount:k.maxCount,columnCount:B,rowCount:$,overflowDisclaimer:R,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(c({},e))},ref:a}),Sg)},Grid:e=>{let{onItemsRendered:r,ref:a}=e;const{overflowStyling:i,scrollBarWidth:s}=k,{layoutOrder:u}=D||{},d=Math.min(j,$*F+s);return o.current.listRef=a,v.createElement(Kg,l({},H,{dataTestid:"fixed-size-grid",scrollDisabled:null==_?void 0:_.active,height:d,width:n,columnCount:B,columnWidth:z,rowCount:$,rowHeight:F,style:c({},i),itemData:c(c({},G),{},{column:void 0,columnCount:B,rowCount:$}),onItemsRendered:e=>{var n;const a="row"===u;I({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:w,layoutOrder:u,rowCount:$,columnCount:B});Vg({renderProps:e,layoutOptions:D,maxCount:k.maxCount,columnCount:B,rowCount:$,overflowDisclaimer:R,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:a}),Sg)}}}({direction:p,layout:i,width:m,checkboxes:D,deducedFrequencyMode:he,histogram:z,keyboard:E,showGray:k,interactionEvents:ne,select:re,selectAll:()=>{d.clearItemStates(!1),r.selectListObjectAll("/qListObjectDef")},onCtrlF:I,textAlign:xe,isVertical:ue,pages:Q,selectionState:d,isSingleSelect:A,selections:s,scrollState:C,local:F,sizes:me,listCount:ge,overflowDisclaimer:{state:X,set:e=>J((t=>c(c({},t),{},{show:e})))},setScrollPosition:ye,focusListItems:{first:Se.first,setFirst:e=>we((t=>c(c({},t),{},{first:e}))),last:Se.last,setLast:e=>we((t=>c(c({},t),{},{last:e})))},setCurrentScrollIndex:L.set,constraints:a,frequencyMax:B,freqIsAllowed:fe,translator:M,showSearch:_,isModal:P,styles:T}),{columnWidth:Ce,listHeight:Re,itemHeight:Le}=me||{};return ue||(ce=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:Ce,listHeight:Re,itemHeight:Le})),v.createElement(Ob,null,v.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},ve),!ge&&ee>0&&v.createElement(ab,{width:m,text:"Listbox.NoMatchesForYourTerms"}),v.createElement(lm,{isItemLoaded:te,itemCount:ge||1,loadMoreItems:Z.with({minimumBatchSize:ce}),threshold:0,minimumBatchSize:ce,ref:j,role:"grid"},ue?Ee:ke),X.show&&!X.dismissed&&v.createElement(xb,{text:"Listbox.ItemsOverflow",dismiss:()=>J((e=>c(c({},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==oe?void 0:oe.dense}))}const _b=e=>c(c({},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"}}]}),Pb=e=>c(c({},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"}}]}),Tb=e=>c(c({},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"}}]}),Mb=e=>c(c({},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 Nb=e=>{let{layout:t,model:n,translator:r,selectionState:o,isDirectQuery:a=!1,selections:i}=e;if(t.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];const l="/qListObjectDef",s=()=>{i.isActive()||i.begin(l)};return[{key:"selectAll",type:"menu-icon-button",label:r.get("Selection.SelectAll"),getSvgIconShape:_b,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{s(),o.clearItemStates(!1),n.selectListObjectAll(l)}},{key:"selectPossible",type:"menu-icon-button",label:r.get("Selection.SelectPossible"),getSvgIconShape:Tb,enabled:()=>["qOption"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{s(),o.clearItemStates(!1),n.selectListObjectPossible(l)}},!a&&{key:"selectAlternative",type:"menu-icon-button",label:r.get("Selection.SelectAlternative"),getSvgIconShape:Pb,enabled:()=>["qAlternative"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{s(),o.clearItemStates(!1),n.selectListObjectAlternative(l)}},!a&&{key:"selectExcluded",type:"menu-icon-button",label:r.get("Selection.SelectExcluded"),getSvgIconShape:Mb,enabled:()=>["qAlternative","qExcluded"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{s(),o.clearItemStates(!1),n.selectListObjectExcluded(l)}}].filter(Boolean)};const qb=e=>c(c({},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 Ab(e){const t=Ol(),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 Db={className:"njs-cell-action"},zb=v.forwardRef(((e,t)=>{let{ariaExpanded:n=!1,item:r,addAnchor:o=!1}=e;const a=Ol(),{hidden:i,disabled:l,style:s,hasSvgIconShape:c}=Ab(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(yc,{ref:o?null:t,title:r.label,onClick:r.action,onKeyDown:p,onKeyUp:f,disabled:l,style:s,className:[Db.className,h].join(" "),size:"large",disableRipple:!0,"aria-expanded":n,"aria-controls":"moreMenuList","data-testid":h},c&&em(r.getSvgIconShape()),o&&v.createElement("div",{ref:t,style:{bottom:-u,right:0,position:"absolute",width:"100%",height:0}}))})),jb=e=>c(c({},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"}}]});var Fb=e=>em(jb(e));const $b=e=>c(c({},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 Bb=e=>em($b(e));const Wb="njs-action-toolbar-more",Hb={icon:"".concat("More","-icon")},Ub=Wl(rh)((e=>{let{theme:t}=e;return{pointerEvents:"none",["& .".concat(Hb.icon," *")]:{color:t.palette.text.primary}}}));function Vb(e){let{item:t,autoFocus:n,onActionClick:r=(()=>{})}=e;const{hidden:o,disabled:a,hasSvgIconShape:i}=Ab(t);return o?null:v.createElement(sh,{autoFocus:n,title:t.label,onClick:()=>{t.action(),r()},disabled:a,tabindex:"0"},i&&v.createElement(jf,{className:Hb.icon},em(t.getSvgIconShape())),v.createElement(Cc,{noWrap:!0},t.label))}const Gb=v.forwardRef(((e,t)=>{let{actions:n=[],show:r=!0,alignTo:o,popoverProps:a={},popoverPaperStyle:i={},onCloseOrActionClick:s=(()=>{}),disablePortal:u=!0}=e;const d=n.length>0,p=n.findIndex((e=>!e.disabled));return d&&v.createElement(Ub,l({},a,{onClose:s,ref:t,open:r,anchorEl:o.current,getContentAnchorEl:u?null:void 0,container:u?o.current:void 0,disablePortal:u,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:Wb},paper:{style:c({pointerEvents:"auto",maxWidth:"250px"},i)}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}),v.createElement(Vf,{id:"moreMenuList"},n.map(((e,t)=>v.createElement(Vb,{key:t,item:e,autoFocus:t===p,onActionClick:s})))))})),Kb=e=>{const t=e.closest("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");return Array.from(n).indexOf(e)},Zb=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 Xb="ActionsToolbar",Jb={item:"".concat(Xb,"-item"),itemSpacing:"".concat(Xb,"-itemSpacing")},Qb=Wl(rh)((e=>{let{theme:t}=e;return{["& .".concat(Jb.itemSpacing)]:{padding:t.spacing(0,.25)}}})),Yb={className:"njs-action-toolbar-popover"},ev=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(tf,{item:!0,container:!0,gap:0,flexDirection:i?"row-reverse":"row",wrap:"nowrap",className:n},o.map(((e,n)=>v.createElement(tf,{item:!0,key:e.key,className:"".concat(Jb.itemSpacing," ").concat(Jb.item)},v.createElement(zb,{ariaExpanded:r,key:e.key,item:e,ref:0===n?t:null,addAnchor:a}))))):null})),tv={pointerEvents:"none"},nv={vertical:"bottom",horizontal:"right"};function rv(e){var t,n;let{show:r=!0,actions:o=[],maxItems:a=3,selections:i={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},extraItems:l,more:s={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{},disablePortal:!0},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}=b.useContext(Xs);return[{key:"clear",type:"icon-button",label:i.get("Selection.Clear"),enabled:()=>t.canClear(n),action:()=>t.clear(),getSvgIconShape:$b},{key:"cancel",type:"icon-button",label:i.get("Selection.Cancel"),enabled:()=>t.canCancel(n),action:()=>{o(),t.cancel()},keyboardAction:()=>{a(),o(),t.cancel()},getSvgIconShape:jb},{key:"confirm",type:"icon-button",label:i.get("Selection.Confirm"),enabled:()=>t.canConfirm(n),action:()=>{r(),t.confirm()},keyboardAction:()=>{a(),r(),t.confirm()},getSvgIconShape:bm}]}(c(c({},i),{},{layout:m})),{translator:y,keyboardNavigation:x}=b.useContext(Xs),[S,w]=b.useState(!1),E={vertical:12,horizontal:(null!==(t=null===(n=u.anchorEl)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)-7},k=b.useRef(),C=b.useRef(),R=Ol(),L=b.useMemo((()=>({margin:R.spacing(.5,0)}))),O=e=>{const t=k.current||p;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]},I=b.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 ug.ARROW_LEFT:case ug.ARROW_DOWN:case ug.ARROW_RIGHT:case ug.ARROW_UP:if(i.classList.contains("njs-cell-action")){const e=Kb(i);let t=[ug.ARROW_LEFT,ug.ARROW_DOWN].includes(s);t=a?!t:t,Zb(t?e-1:e+1)}e.stopPropagation(),e.preventDefault();break;case ug.SPACE:e.preventDefault();break;case ug.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 ug.ESCAPE:o&&(o.onCancel(),o.api.cancel(),e.preventDefault(),e.stopPropagation())}}}({keyboardNavigation:x,focusHandler:d,getEnabledButton:O,selections:i,isRtl:f})),[x,d,O,i,f]);if(b.useEffect((()=>()=>{w(!1)}),[u.show,r,i.show]),b.useEffect((()=>{if(!d)return;d.on("focus_toolbar_first",(()=>{const e=O(!1);null==e||e.focus()})),d.on("focus_toolbar_last",(()=>{const e=O(!0);null==e||e.focus()}))}),[]),h)return;let _=s.enabled,P=s.actions;const T=s.alignTo||C,M=o.filter((e=>!e.hidden));if(M.length>a){const e=M.splice(-(M.length-a)-1);_=!0,P=[...e,...s.actions]}if(!i.show&&0===M.length&&!_)return null;const N={key:"more",label:y.get("Menu.More"),getSvgIconShape:qb,hidden:!1,active:S,enabled:()=>_,action:()=>w(!S)},q=M.length>0,A=P.length>0,D=q&&i.show||A&&i.show,z=v.createElement(tf,{ref:k,onKeyDown:I,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:f?"row-reverse":"row"}},(null==l?void 0:l.length)&&v.createElement(ev,{className:"actions-toolbar-extra-actions",actions:l,isRtl:f}),q&&v.createElement(ev,{actions:M}),A&&v.createElement(ev,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:C,ariaExpanded:S,actions:[N],addAnchor:!0}),D&&v.createElement(tf,{item:!0,className:Jb.itemSpacing,style:L},v.createElement(zp,{orientation:"vertical"})),i.show&&v.createElement(ev,{className:"actions-toolbar-default-actions",actions:g,isRtl:f}),S&&v.createElement(Gb,{show:S,actions:P,alignTo:T,popoverProps:s.popoverProps,popoverPaperStyle:s.popoverPaperStyle,onCloseOrActionClick:()=>{w(!1)},disablePortal:s.disablePortal}));return u.show?v.createElement(Qb,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:u.show,anchorEl:u.anchorEl,anchorOrigin:E,transformOrigin:nv,hideBackdrop:!0,style:tv,onMouseDown:e=>{e.stopPropagation()},slotProps:{paper:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:Yb.className,style:{pointerEvents:"auto",padding:R.spacing(.5,.25)}}}},z):r&&z}var ov=e=>em((e=>c(c({},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 av="/qListObjectDef",iv=e=>null==e?void 0:e.substring(0,64e3),lv=Wl(bh,{shouldForwardProp:e=>!["styles","dense","isRtl"].includes(e)})((e=>{let{styles:t,dense:n,isRtl:r}=e,o={};return n&&(o={fontSize:12,"& input":{paddingTop:"5px",paddingBottom:"5px",color:t.search.color,textAlign:r?"right":"left"}}),c({display:"flex",border:"none",fontSize:14,borderRadius:0,backgroundColor:t.search.backgroundColor,backdropFilter:t.background.backgroundImage?t.search.backdropFilter:void 0,paddingLeft:0,paddingRight:0,flexDirection:r?"row-reverse":"row","& fieldset":{borderColor:"".concat(t.search.borderColor),borderWidth:"1px 0 1px 0",borderRadius:0},"&.Mui-focused fieldset":{borderColor:"".concat(t.search.highlightBorderColor," !important")},"& .MuiInputBase-root":c({},t.search),"& *":{color:t.search.color},"& input":{color:t.search.color,textAlign:r?"right":"left"}},o)})),sv=Wl(yc)((()=>({border:0,padding:"8px",cursor:"pointer",lineHeight:"12px","&:hover":{backgroundColor:"transparent"},":focus-visible":{borderRadius:"4px",boxShadow:"inset 0 0 0 2px rgb(2, 117, 217)"}})));var cv=b.forwardRef((function(e,t){let{popoverOpen:n,selections:r,selectionState:o,model:a,keyboard:i,dense:l=!1,visible:s=!0,autoFocus:c=!0,beginSelectionOnFocus:u=!0,wildCardSearch:d=!1,searchEnabled:p,direction:f,hide:h,styles:m}=e;const{translator:g}=b.useContext(Xs),[y,x]=b.useState(""),[S,w]=b.useState(!1),E=b.useRef(),k=b.useRef(),C=g.get("Listbox.Clear.Search"),{getStoreValue:R,setStoreValue:L}=rb(a),O="rtl"===f,I=async()=>{try{await a.abortListObjectSearch(av)}finally{x("")}};b.useEffect((()=>s?()=>I():()=>{}),[s]),b.useEffect((()=>(r.on("deactivated",I),()=>{r.removeListener&&r.removeListener("deactivated",I)})),[]),b.useEffect((()=>{if(S&&E.current){const e=y.length-1;E.current.setSelectionRange(e,e),w(!1)}}),[S,E.current]),b.useEffect((()=>{L("inputText",y)}),[y]);const _=async()=>{let e;const t=iv(y),n=await a.searchListObjectFor(av,t);return o.selectDisabled()?n:(n&&t.length&&R("listCount")>0&&(e=a.acceptListObjectSearch(av,!0),r.selectionsMade=!0,o.clearItemStates(!1),x("")),e)},P=()=>{var e;null===(e=E.current)||void 0===e||e.focus()},T=()=>{I(),P()};return b.useImperativeHandle(t,(()=>({focus(){P()}}))),s&&!1!==p?v.createElement(lv,{styles:m,dense:l,isRtl:O,startAdornment:v.createElement(bf,{position:"start",sx:{marginLeft:l?"8px":"".concat(wm,"px")}},v.createElement(ov,{size:l?"small":"normal"})),endAdornment:v.createElement(bf,{position:"end",sx:{marginLeft:0}},""!==y&&v.createElement(sv,{tabIndex:0,ref:k,title:C,"aria-label":C,onClick:T,onKeyDown:e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.key){case"Enter":T();break;case"Tab":e.shiftKey?P():gg(t);break;default:return}e.preventDefault(),e.stopPropagation()}},v.createElement(Fb,{size:l?"small":"normal"}))),className:"search",inputRef:E,size:"small",fullWidth:!0,placeholder:g.get("Listbox.Search"),value:y,onFocus:()=>{d&&(x("**"),w(!0)),u&&!o.selectDisabled()&&!r.isModal()&&r.begin("/qListObjectDef")},onChange:async e=>{const t=iv(e.target.value);return x(t),t.length?a.searchListObjectFor(av,t):I()},onKeyDown:async e=>{const{currentTarget:t}=e,o=t.closest(".listbox-container");switch(e.key){case"Enter":_();break;case"Escape":if(gg(o),r.cancel(),n)return;break;case"Tab":e.shiftKey?bg(o)||i.focusSelection():k.current?k.current.focus():gg(o);break;case"f":case"F":if(!e.ctrlKey&&!e.metaKey)return;h&&(h(),gg(o));break;default:return}e.preventDefault(),e.stopPropagation()},autoFocus:c,inputProps:{tabIndex:i.innerTabStops?0:-1,"data-testid":"search-input-field","aria-label":g.get("Listbox.Search.ScreenReaderInstructions")}}):null}));function uv(e){if(!e.session)return[];const{selectionStore:t}=b.useContext(Xs),[n]=t.useAppSelectionsStore(),r=e?e.id:null;let o=n.get(r);return b.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 dv(e){return Object.keys(R.prototype).forEach((t=>{e[t]=R.prototype[t]})),R.init(e),e}const pv=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 dv(l),l},fv=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 hv(e,t,n,r){const o=Array.isArray(n)?n:[n],[a]=uv(e),[i]=Xh(t),{appModalStore:l}=b.useContext(Xs).selectionStore,s=l.get(e.id),[c,u]=b.useState();return b.useEffect((()=>{a&&t&&!c&&u(pv({appSelections:a,appModal:s,model:t}))}),[a,t]),b.useEffect((()=>{if(!c)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=fv({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]),b.useEffect((()=>{c&&c.setLayout(i)}),[c,i]),[c]}function mv(){const e=c(c({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=um(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=>t.map((t=>{const n=t.qMatrix.map((t=>{const[n]=t,r=e.getState(n);return[c(c({},n),{},{qState:r}),...t.slice(1)]}));return c(c({},t),{},{qMatrix: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 gv=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 bv(e){const t=(null==e?void 0:e.qListObject.qDimensionInfo.qStateCounts)||{};return gv(t,"qSelected",0)+gv(t,"qSelectedExcluded",0)+gv(t,"qLocked",0)+gv(t,"qLockedExcluded",0)>0}function vv(e){return"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b&&"number"==typeof e.a}function yv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length&&vv(t[0]))return(t[0].r<<16)+(t[0].g<<8)+t[0].b;var r=0,o=0,a=0;if(1===t.length&&"string"==typeof t[0]){var i,l=t[0];(i=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(l))?(r=parseInt(i[1],10),o=parseInt(i[2],10),a=parseInt(i[3],10)):(i=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(l))?(r=parseInt(i[1],16),o=parseInt(i[2],16),a=parseInt(i[3],16)):(i=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(l))&&(r=parseInt(i[1]+i[1],16),o=parseInt(i[2]+i[2],16),a=parseInt(i[3]+i[3],16))}return(r<<16)+(o<<8)+a}function xv(e,t,n){return(t=function(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);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sv(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 wv(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sv(Object(n),!0).forEach((function(t){xv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ev={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:0,g:0,b:0,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}},kv="qcm-color";function Cv(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o,a,i,l,s,c,u,d,p,f={type:kv,r:0,g:0,b:0,a:1,l:void 0,invalid:!1,spaces:{}},h=0,m=0,g=0,b=1;if((null===(e=n[0])||void 0===e?void 0:e.type)===kv){var v=n[0];h=v.r,m=v.g,g=v.b,b=v.a,f.invalid=n[0].invalid,f.spaces=wv({},n[0].spaces)}else if(n.length<3)if("string"==typeof n[0]){var y,x=n[0];if(y=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(x))h=parseInt(y[1],10),m=parseInt(y[2],10),g=parseInt(y[3],10);else if(y=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(x))h=parseInt(y[1],10),m=parseInt(y[2],10),g=parseInt(y[3],10),b=parseFloat(y[4]);else if(y=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(x))b=parseInt(y[1],10)/255,h=parseInt(y[2],10),m=parseInt(y[3],10),g=parseInt(y[4],10);else if(y=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(x))h=parseInt(y[1],16),m=parseInt(y[2],16),g=parseInt(y[3],16),b=1;else if(y=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(x))h=parseInt(y[1]+y[1],16),m=parseInt(y[2]+y[2],16),g=parseInt(y[3]+y[3],16),b=1;else if(y=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),a=parseFloat(y[3]),l=parseFloat(y[5]),a=(a/=100)<0?0:a>1?1:a,u=(o=(o%=360)<0?0:o>360?360:o)/60,d=(c=(l=(l/=100)<0?0:l>1?1:l)<=.5?2*l*a:(2-2*l)*a)*(1-Math.abs(u%2-1));var S=[];switch(u=Math.floor(u)){case 0:S=[c,d,0];break;case 1:S=[d,c,0];break;case 2:S=[0,c,d];break;case 3:S=[0,d,c];break;case 4:S=[d,0,c];break;case 5:S=[c,0,d];break;default:S=[0,0,0]}p=l-.5*c,h=S[0]+p,m=S[1]+p,g=S[2]+p,h=Math.round(255*h),m=Math.round(255*m),g=Math.round(255*g),b=1}else if(y=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),a=parseFloat(y[3]),l=parseFloat(y[5]),b=parseFloat(y[7]),a=(a/=100)<0?0:a>1?1:a,u=(o=(o%=360)<0?0:o>360?360:o)/60,d=(c=(l=(l/=100)<0?0:l>1?1:l)<=.5?2*l*a:(2-2*l)*a)*(1-Math.abs(u%2-1));var w=[];switch(u=Math.floor(u)){case 0:w=[c,d,0];break;case 1:w=[d,c,0];break;case 2:w=[0,c,d];break;case 3:w=[0,d,c];break;case 4:w=[d,0,c];break;case 5:w=[c,0,d];break;default:w=[0,0,0]}p=l-.5*c,h=w[0]+p,m=w[1]+p,g=w[2]+p,h=Math.round(255*h),m=Math.round(255*m),g=Math.round(255*g)}else if(y=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(x)){o=parseFloat(y[1]),a=parseFloat(y[3]),s=parseFloat(y[5]),u=(o=(o%=360)<0?0:o>360?360:o)/60,d=(c=(s=(s/=100)<0?0:s>1?1:s)*(a=(a/=100)<0?0:a>1?1:a))*(1-Math.abs(u%2-1));var E=[];switch(u=Math.floor(u)){case 0:E=[c,d,0];break;case 1:E=[d,c,0];break;case 2:E=[0,c,d];break;case 3:E=[0,d,c];break;case 4:E=[d,0,c];break;case 5:E=[c,0,d];break;default:E=[0,0,0]}p=s-c,h=E[0]+p,m=E[1]+p,g=E[2]+p,h=Math.round(255*h),m=Math.round(255*m),g=Math.round(255*g),b=1}else if(Ev[x.toLowerCase()]){i=x.toLowerCase();var k=Ev[i];h=k.r,m=k.g,g=k.b,b="number"==typeof Ev[i].a?Ev[i].a:1}else f.invalid=!0}else"number"==typeof n[0]&&n[0]>=0&&"argb"===n[1]?(b=(4278190080&n[0])>>>24,b/=255,h=(16711680&n[0])>>16,m=(65280&n[0])>>8,g=255&n[0]):"number"==typeof n[0]&&n[0]>=0?(h=(16711680&n[0])>>16,m=(65280&n[0])>>8,g=255&n[0]):f.invalid=!0;else n.length>=3&&n.length<=4?(h=n[0],m=n[1],g=n[2],b=arguments.length>=4?n[3]:1):f.invalid=!0;return Number.isNaN(+h+m+g+b)&&(f.invalid=!0),f.r=Math.floor(h),f.g=Math.floor(m),f.b=Math.floor(g),f.a=b,f.l=l,f}function Rv(e){var t,n,r;if(vv(e))return 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(""));var o="string"==typeof e?yv(e):e;return t=((16711680&o)>>16).toString(16),n=((65280&o)>>8).toString(16),r=(255&o).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)}function Lv(e){var t,n,r=0,o="string"==typeof e?Cv(e):e,a=o.r/255,i=o.g/255,l=o.b/255,s=Math.max(a,i,l),c=Math.min(a,i,l),u=s;if(s===c)t=0,r=0;else{switch(t=0==(n=s-c)?0:n/u,s){case a:r=(i-l)/n+(i<l?6:0);break;case i:r=(l-a)/n+2;break;case l:r=(a-i)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*u}}function Ov(e){if(vv(e))return"rgb(".concat([e.r,e.g,e.b].join(", "),")");var t="string"==typeof e?yv(e):e,n=(65280&t)>>8,r=255&t;return"rgb(".concat((16711680&t)>>16,", ").concat(n,", ").concat(r,")")}function Iv(e,t){return vv(e)?"rgba(".concat([e.r,e.g,e.b,e.a].join(", "),")"):Iv(Cv(e))}function _v(e){return vv(e)?1===e.a?Ov(e):Iv(e):_v(Cv(e))}var Pv,Tv,Mv=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};function Nv(e){return.2126*Mv(e.r)+.7152*Mv(e.g)+.0722*Mv(e.b)}function qv(){var e=Cv.apply(void 0,arguments),t={type:e.type,r:e.r,g:e.g,b:e.b,a:e.a,invalid:e.invalid,spaces:e.spaces},n=function(){return t.spaces.hsla||(t.spaces.hsla=function(e){var t,n,r=0,o="string"==typeof e?Cv(e):e,a=o.r/255,i=o.g/255,l=o.b/255,s=o.a,c=Math.max(a,i,l),u=Math.min(a,i,l),d=(c+u)/2;if(c===u)t=0,r=0;else{switch(n=c-u,t=d>.5?n/(2-c-u):n/(c+u),c){case a:r=(i-l)/n+(i<l?6:0);break;case i:r=(l-a)/n+2;break;case l:r=(a-i)/n+4}r/=6}return"hsla(".concat(360*r,", ").concat(100*t,", ").concat(100*d,", ").concat(s,")")}(t)),t.spaces.hsla},r=function(e){var t=n(),r=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(t),o=parseFloat(r[1]),a=parseFloat(r[3]),i=parseFloat(r[7]),l=parseFloat(r[5]),s=Math.max(0,Math.min(l+e,100));return"hsla(".concat(o,", ").concat(a,", ").concat(s,", ").concat(i,")")};return{get type(){return t.type},isInvalid:function(){return t.invalid},get r(){return t.r},get g(){return t.g},get b(){return t.b},get a(){return t.a},getR:function(){return t.r},getG:function(){return t.g},getB:function(){return t.b},getAlpha:function(){return t.a},setAlpha:function(e){t.a=e,t.spaces={}},isEqualTo:function(e){var n=e.type===t.type?e:Cv(e);return n.r===t.r&&n.g===t.g&&n.b===t.b&&n.a===t.a},isDark:function(){return function(){var e=Cv.apply(void 0,arguments);return e.invalid||Nv(e)<.4}(t)},getRGB:function(){return t.spaces.rgb||(t.spaces.rgb=Ov(t)),t.spaces.rgb},getRGBA:function(){return t.spaces.rgba||(t.spaces.rgba=Iv(t)),t.spaces.rgba},getString:function(){return t.spaces.string||(t.spaces.string=_v(t)),t.spaces.string},getHex:function(){return t.spaces.hex||(t.spaces.hex=Rv(t)),t.spaces.hex},getHSL:function(){return t.spaces.hsl||(t.spaces.hsl=function(e){var t,n,r=0,o="string"==typeof e?Cv(e):e,a=o.r/255,i=o.g/255,l=o.b/255,s=Math.max(a,i,l),c=Math.min(a,i,l),u=(s+c)/2;if(s===c)t=0,r=0;else{switch(n=s-c,t=u>.5?n/(2-s-c):n/(s+c),s){case a:r=(i-l)/n+(i<l?6:0);break;case i:r=(l-a)/n+2;break;case l:r=(a-i)/n+4}r/=6}return"hsl(".concat(360*r,", ").concat(100*t,", ").concat(100*u,")")}(t)),t.spaces.hsl},getHSLA:n,getShiftedHSLA:r,getHSV:function(){return t.spaces.hsv||(t.spaces.hsv=function(e){var t=Lv(e),n=t.h,r=t.s,o=t.v;return"hsv(".concat(n,", ").concat(r,", ").concat(o,")")}(t)),t.spaces.hsv},getHSVObject:function(){return t.spaces.hsvObject||(t.spaces.hsvObject=Lv(t)),t.spaces.hsvObject},blend:function(e,n){var r=Math.floor(t.r+(e.r-t.r)*n),o=Math.floor(t.g+(e.g-t.g)*n),a=Math.floor(t.b+(e.b-t.b)*n),i=Math.floor(t.a+(e.getAlpha()-t.a)*n);return"rgba(".concat([r,o,a,i].join(", "),")")},getBrightenedColor:function(){return qv(r(18*(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)))},getDarkenedColor:function(){return qv(r(18*-(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)))}}}function Av(e,t){if(e&&t){var n=Nv(e),r=Nv(t);return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}}function Dv(e,t){var n=qv("#FFFFFF"),r=qv(e),o=qv(t);if(r.isInvalid()||o.isInvalid()||r.getAlpha()<1||o.getAlpha()<1)return t;var a=Av(n,r),i=Av(o,r),l=a>i||a>4.5;return!l&&i>3?t:l?"#FFFFFF":"#000000"}var zv=function(){if(Tv)return Pv;Tv=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},a=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),a=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!a)return!1;for(r in n);return void 0===r||e.call(n,r)},i=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return Pv=function e(){var t,n,r,s,c,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=l(d,n),d!==(s=l(t,n))&&(h&&s&&(a(s)||(c=o(s)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&a(r)?r:{},i(d,{name:n,newValue:e(h,u,s)})):void 0!==s&&i(d,{name:n,newValue:s}));return d},Pv}();function jv(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Fv(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function $v(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(zv);var Bv=1/.7,Wv="\\s*([+-]?\\d+)\\s*",Hv="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Uv="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Vv=/^#([0-9a-f]{3,8})$/,Gv=new RegExp(`^rgb\\(${Wv},${Wv},${Wv}\\)$`),Kv=new RegExp(`^rgb\\(${Uv},${Uv},${Uv}\\)$`),Zv=new RegExp(`^rgba\\(${Wv},${Wv},${Wv},${Hv}\\)$`),Xv=new RegExp(`^rgba\\(${Uv},${Uv},${Uv},${Hv}\\)$`),Jv=new RegExp(`^hsl\\(${Hv},${Uv},${Uv}\\)$`),Qv=new RegExp(`^hsla\\(${Hv},${Uv},${Uv},${Hv}\\)$`),Yv={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 ey(){return this.rgb().formatHex()}function ty(){return this.rgb().formatRgb()}function ny(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Vv.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?ry(t):3===n?new ly(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?oy(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?oy(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=Gv.exec(e))?new ly(t[1],t[2],t[3],1):(t=Kv.exec(e))?new ly(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Zv.exec(e))?oy(t[1],t[2],t[3],t[4]):(t=Xv.exec(e))?oy(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Jv.exec(e))?fy(t[1],t[2]/100,t[3]/100,1):(t=Qv.exec(e))?fy(t[1],t[2]/100,t[3]/100,t[4]):Yv.hasOwnProperty(e)?ry(Yv[e]):"transparent"===e?new ly(NaN,NaN,NaN,0):null}function ry(e){return new ly(e>>16&255,e>>8&255,255&e,1)}function oy(e,t,n,r){return r<=0&&(e=t=n=NaN),new ly(e,t,n,r)}function ay(e){return e instanceof $v||(e=ny(e)),e?new ly((e=e.rgb()).r,e.g,e.b,e.opacity):new ly}function iy(e,t,n,r){return 1===arguments.length?ay(e):new ly(e,t,n,null==r?1:r)}function ly(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function sy(){return`#${py(this.r)}${py(this.g)}${py(this.b)}`}function cy(){const e=uy(this.opacity);return`${1===e?"rgb(":"rgba("}${dy(this.r)}, ${dy(this.g)}, ${dy(this.b)}${1===e?")":`, ${e})`}`}function uy(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function dy(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function py(e){return((e=dy(e))<16?"0":"")+e.toString(16)}function fy(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new my(e,t,n,r)}function hy(e){if(e instanceof my)return new my(e.h,e.s,e.l,e.opacity);if(e instanceof $v||(e=ny(e)),!e)return new my;if(e instanceof my)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 my(i,l,s,e.opacity)}function my(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function gy(e){return(e=(e||0)%360)<0?e+360:e}function by(e){return Math.max(0,Math.min(1,e||0))}function vy(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}jv($v,ny,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ey,formatHex:ey,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return hy(this).formatHsl()},formatRgb:ty,toString:ty}),jv(ly,iy,Fv($v,{brighter(e){return e=null==e?Bv:Math.pow(Bv,e),new ly(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new ly(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ly(dy(this.r),dy(this.g),dy(this.b),uy(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:sy,formatHex:sy,formatHex8:function(){return`#${py(this.r)}${py(this.g)}${py(this.b)}${py(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:cy,toString:cy})),jv(my,(function(e,t,n,r){return 1===arguments.length?hy(e):new my(e,t,n,null==r?1:r)}),Fv($v,{brighter(e){return e=null==e?Bv:Math.pow(Bv,e),new my(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new my(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 ly(vy(e>=240?e-240:e+120,o,r),vy(e,o,r),vy(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new my(gy(this.h),by(this.s),by(this.l),uy(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=uy(this.opacity);return`${1===e?"hsl(":"hsla("}${gy(this.h)}, ${100*by(this.s)}%, ${100*by(this.l)}%${1===e?")":`, ${e})`}`}}));const yy=Math.PI/180,xy=180/Math.PI,Sy=4/29,wy=6/29,Ey=3*wy*wy;function ky(e){if(e instanceof Cy)return new Cy(e.l,e.a,e.b,e.opacity);if(e instanceof _y)return Py(e);e instanceof ly||(e=ay(e));var t,n,r=Iy(e.r),o=Iy(e.g),a=Iy(e.b),i=Ry((.2225045*r+.7168786*o+.0606169*a)/1);return r===o&&o===a?t=n=i:(t=Ry((.4360747*r+.3850649*o+.1430804*a)/.96422),n=Ry((.0139322*r+.0971045*o+.7141733*a)/.82521)),new Cy(116*i-16,500*(t-i),200*(i-n),e.opacity)}function Cy(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Ry(e){return e>.008856451679035631?Math.pow(e,1/3):e/Ey+Sy}function Ly(e){return e>wy?e*e*e:Ey*(e-Sy)}function Oy(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Iy(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function _y(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Py(e){if(isNaN(e.h))return new Cy(e.l,0,0,e.opacity);var t=e.h*yy;return new Cy(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}jv(Cy,(function(e,t,n,r){return 1===arguments.length?ky(e):new Cy(e,t,n,null==r?1:r)}),Fv($v,{brighter(e){return new Cy(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Cy(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new ly(Oy(3.1338561*(t=.96422*Ly(t))-1.6168667*(e=1*Ly(e))-.4906146*(n=.82521*Ly(n))),Oy(-.9787684*t+1.9161415*e+.033454*n),Oy(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),jv(_y,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof _y)return new _y(e.h,e.c,e.l,e.opacity);if(e instanceof Cy||(e=ky(e)),0===e.a&&0===e.b)return new _y(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*xy;return new _y(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new _y(e,t,n,null==r?1:r)}),Fv($v,{brighter(e){return new _y(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new _y(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Py(this).rgb()}}));var Ty=e=>()=>e;function My(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Ty(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?My:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Ty(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=iy(e)).r,(t=iy(t)).r),o=n(e.g,t.g),a=n(e.b,t.b),i=My(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=a(t),e.opacity=i(t),e+""}}return r.gamma=e,r}(1);var Ny,qy="center",Ay="bottom";function Dy(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function zy(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Fy)):void 0===t&&(t=jy);for(var n,r,o,a,i,l=new Wy(e),s=[l];n=s.pop();)if((o=t(n.data))&&(i=(o=Array.from(o)).length))for(n.children=o,a=i-1;a>=0;--a)s.push(r=o[a]=new Wy(o[a])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(By)}function jy(e){return e.children}function Fy(e){return Array.isArray(e)?e[1]:null}function $y(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function By(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Wy(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:qy,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:qy,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:qy,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:qy},{key:"DataRangeIncludingZero",alignment:Ay},{key:"LimitedData",alignment:Ay},{key:"NegativeOrZeroValues",alignment:Ay}].reduce((function(e,t){return e[t.key]=t,e}),{}),Wy.prototype=zy.prototype={constructor:Wy,count:function(){return this.eachAfter(Dy)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,a=this,i=[a],l=[],s=-1;a=i.pop();)if(l.push(a),n=a.children)for(r=0,o=n.length;r<o;++r)i.push(n[r]);for(;a=l.pop();)e.call(t,a,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,a=[o],i=-1;o=a.pop();)if(e.call(t,o,++i,this),n=o.children)for(r=n.length-1;r>=0;--r)a.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return zy(this).eachBefore($y)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,a=[o];do{for(e=a.reverse(),a=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)a.push(t[n])}while(a.length)}},Ny=function(e){
|
|
123
|
+
`),ap))),cp=b.forwardRef((function(e,t){const n=Bl({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=lt(n,Jd),p=it({},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 si({root:["root",n,`color${Yr(r)}`],svg:["svg"],circle:["circle",`circle${Yr(n)}`,o&&"circleDisableShrink"]},Xd,t)})(p),h={},m={},g={};if("determinate"===u){const e=2*Math.PI*((rp-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 Pr.jsx(ip,it({className:ua(f.root,r),style:it({width:i,height:i},m,l),ownerState:p,ref:t,role:"progressbar"},g,d,{children:Pr.jsx(lp,{className:f.svg,ownerState:p,viewBox:"22 22 44 44",children:Pr.jsx(sp,{className:f.circle,style:h,ownerState:p,cx:rp,cy:rp,r:(rp-s)/2,fill:"none",strokeWidth:s})})}))}));function up(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function dp(e){return parseInt(ja(e).getComputedStyle(e).paddingRight,10)||0}function pp(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&&up(e,o)}))}function fp(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function hp(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=za(e);return t.body===e?ja(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=ii(za(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${dp(r)+e}px`;const t=za(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${dp(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=za(r).body;else{const t=r.parentElement,n=ja(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 mp=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function gp(e){const t=[],n=[];return Array.from(e.querySelectorAll(mp)).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 bp(){return!0}function vp(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=gp,isEnabled:i=bp,open:l}=e,s=b.useRef(!1),c=b.useRef(null),u=b.useRef(null),d=b.useRef(null),p=b.useRef(null),f=b.useRef(!1),h=b.useRef(null),m=Va(bi(t),h),g=b.useRef(null);b.useEffect((()=>{l&&h.current&&(f.current=!n)}),[n,l]),b.useEffect((()=>{if(!l||!h.current)return;const e=za(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]),b.useEffect((()=>{if(!l||!h.current)return;const e=za(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 Pr.jsxs(b.Fragment,{children:[Pr.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),b.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)}}),Pr.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelEnd"})]})}const yp=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&&up(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);pp(t,e.mount,e.modalRef,r,!0);const o=fp(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=fp(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=hp(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=fp(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&&up(e.modalRef,t),pp(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&&up(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function xp(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=yp,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:l,children:s,onClose:c,open:u,rootRef:d}=e,p=b.useRef({}),f=b.useRef(null),h=b.useRef(null),m=Va(h,d),[g,v]=b.useState(!u),y=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let x=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(x=!1);const S=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),w=()=>{o.mount(S(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},E=Ua((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||za(f.current).body;o.add(S(),e),h.current&&w()})),k=b.useCallback((()=>o.isTopModal(S())),[o]),C=Ua((e=>{f.current=e,e&&(u&&k()?w():h.current&&up(h.current,x))})),R=b.useCallback((()=>{o.remove(S(),x)}),[x,o]);b.useEffect((()=>()=>{R()}),[R]),b.useEffect((()=>{u?E():y&&a||R()}),[u,R,y,a,E]);const L=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&k()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},O=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=fi(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=it({},n,t);return it({role:"presentation"},r,{onKeyDown:L(r),ref:m})},getBackdropProps:(e={})=>it({"aria-hidden":!0},e,{onClick:O(e),open:u}),getTransitionProps:()=>({onEnter:qa((()=>{v(!1),i&&i()}),null==s?void 0:s.props.onEnter),onExited:qa((()=>{v(!0),l&&l(),a&&R()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:C,isTopModal:k,exited:g,hasTransition:y}}function Sp(e){return fa("MuiModal",e)}ha("MuiModal",["root","hidden","backdrop"]);const wp=["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"],Ep=zl("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})=>it({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),kp=zl(kd,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),Cp=b.forwardRef((function(e,t){var n,r,o,a,i,l;const s=Bl({name:"MuiModal",props:e}),{BackdropComponent:c=kp,BackdropProps:u,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:v={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:w=!1,disableRestoreFocus:E=!1,disableScrollLock:k=!1,hideBackdrop:C=!1,keepMounted:R=!1,onBackdropClick:L,open:O,slotProps:I,slots:_}=s,P=lt(s,wp),T=it({},s,{closeAfterTransition:p,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:E,disableScrollLock:k,hideBackdrop:C,keepMounted:R}),{getRootProps:M,getBackdropProps:N,getTransitionProps:q,portalRef:D,isTopModal:A,exited:z,hasTransition:j}=xp(it({},T,{rootRef:t})),F=it({},T,{exited:z}),$=(e=>{const{open:t,exited:n,classes:r}=e;return si({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},Sp,r)})(F),B={};if(void 0===f.props.tabIndex&&(B.tabIndex="-1"),j){const{onEnter:e,onExited:t}=q();B.onEnter=e,B.onExited=t}const W=null!=(n=null!=(r=null==_?void 0:_.root)?r:g.Root)?n:Ep,H=null!=(o=null!=(a=null==_?void 0:_.backdrop)?a:g.Backdrop)?o:c,U=null!=(i=null==I?void 0:I.root)?i:v.root,V=null!=(l=null==I?void 0:I.backdrop)?l:v.backdrop,G=gi({elementType:W,externalSlotProps:U,externalForwardedProps:P,getSlotProps:M,additionalProps:{ref:t,as:m},ownerState:F,className:ua(d,null==U?void 0:U.className,null==$?void 0:$.root,!F.open&&F.exited&&(null==$?void 0:$.hidden))}),K=gi({elementType:H,externalSlotProps:V,additionalProps:u,getSlotProps:e=>N(it({},e,{onClick:t=>{L&&L(t),null!=e&&e.onClick&&e.onClick(t)}})),className:ua(null==V?void 0:V.className,null==u?void 0:u.className,null==$?void 0:$.backdrop),ownerState:F});return R||O||j&&!z?Pr.jsx(Fu,{ref:D,container:h,disablePortal:w,children:Pr.jsxs(W,it({},G,{children:[!C&&c?Pr.jsx(H,it({},K)):null,Pr.jsx(vp,{disableEnforceFocus:x,disableAutoFocus:y,disableRestoreFocus:E,isEnabled:A,open:O,children:b.cloneElement(f,B)})]}))}):null}));function Rp(e){return fa("MuiDivider",e)}const Lp=ha("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Op=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Ip=zl("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})=>it({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)`:Gi.alpha(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})=>it({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>it({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}})),(({theme:e,ownerState:t})=>it({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}})),(({ownerState:e})=>it({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),_p=zl("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>it({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)`}))),Pp=b.forwardRef((function(e,t){const n=Bl({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=lt(n,Op),h=it({},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 si({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"]},Rp,r)})(h);return Pr.jsx(Ip,it({as:i,className:ua(m.root,a),role:u,ref:t,ownerState:h},f,{children:o?Pr.jsx(_p,{className:m.wrapper,ownerState:h,children:o}):null}))}));Pp.muiSkipListHighlight=!0;const Tp=function(e={}){const{createStyledComponent:t=Mi,useThemeProps:n=Ni,componentName:r="MuiStack"}=e,o=t(Di),a=b.forwardRef((function(e,t){const a=aa(n(e)),{component:i="div",direction:l="column",spacing:s=0,divider:c,children:u,className:d,useFlexGap:p=!1}=a,f=lt(a,Pi),h={direction:l,spacing:s,useFlexGap:p},m=si({root:["root"]},(e=>fa(r,e)),{});return Pr.jsx(o,it({as:i,ownerState:h,ref:t,className:ua(m.root,d)},f,{children:c?qi(u,c):u}))}));return a}({createStyledComponent:zl("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Bl({props:e,name:"MuiStack"})});function Mp(e){return fa("MuiFormControlLabel",e)}const Np=ha("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),qp=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Dp=zl("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Np.label}`]:t.label},t.root,t[`labelPlacement${Yr(n.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>it({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Np.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},{[`& .${Np.label}`]:{[`&.${Np.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),Ap=zl("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${Np.error}`]:{color:(e.vars||e).palette.error.main}}))),zp=b.forwardRef((function(e,t){var n,r;const o=Bl({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=lt(o,qp),m=od(),g=null!=(n=null!=s?s:l.props.disabled)?n:null==m?void 0:m.disabled,v=null!=p?p:l.props.required,y={disabled:g,required:v};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===l.props[e]&&void 0!==o[e]&&(y[e]=o[e])}));const x=nd({props:o,muiFormControl:m,states:["error"]}),S=it({},o,{disabled:g,labelPlacement:d,required:v,error:x.error}),w=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:a}=e;return si({root:["root",n&&"disabled",`labelPlacement${Yr(r)}`,o&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]},Mp,t)})(S),E=null!=(r=f.typography)?r:i.typography;let k=u;return null==k||k.type===vc||c||(k=Pr.jsx(vc,it({component:"span"},E,{className:ua(w.label,null==E?void 0:E.className),children:k}))),Pr.jsxs(Dp,it({className:ua(w.root,a),ownerState:S,ref:t},h,{children:[b.cloneElement(l,y),v?Pr.jsxs(Tp,{display:"block",children:[k,Pr.jsxs(Ap,{ownerState:S,"aria-hidden":!0,className:w.asterisk,children:[" ","*"]})]}):k]}))})),jp=b.createContext();function Fp(e){return fa("MuiGrid",e)}const $p=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Bp=ha("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}`)),...$p.map((e=>`grid-xs-${e}`)),...$p.map((e=>`grid-sm-${e}`)),...$p.map((e=>`grid-md-${e}`)),...$p.map((e=>`grid-lg-${e}`)),...$p.map((e=>`grid-xl-${e}`))]),Wp=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Hp(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function Up({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 Vp=zl("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})=>it({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 Zr({theme:e},Qr({values:t.direction,breakpoints:e.breakpoints.values}),(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${Bp.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&0!==r){const t=Qr({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=Up({breakpoints:e.breakpoints.values,values:t})),o=Zr({theme:e},t,((t,r)=>{var o;const a=e.spacing(t);return"0px"!==a?{marginTop:`-${Hp(a)}`,[`& > .${Bp.item}`]:{paddingTop:Hp(a)}}:null!=(o=n)&&o.includes(r)?{}:{marginTop:0,[`& > .${Bp.item}`]:{paddingTop:0}}}))}return o}),(function({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&0!==r){const t=Qr({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=Up({breakpoints:e.breakpoints.values,values:t})),o=Zr({theme:e},t,((t,r)=>{var o;const a=e.spacing(t);return"0px"!==a?{width:`calc(100% + ${Hp(a)})`,marginLeft:`-${Hp(a)}`,[`& > .${Bp.item}`]:{paddingLeft:Hp(a)}}:null!=(o=n)&&o.includes(r)?{}:{width:"100%",marginLeft:0,[`& > .${Bp.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=Qr({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} + ${Hp(n)})`;c={flexBasis:e,maxWidth:e}}}a=it({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 Gp=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 si({root:["root",n&&"container",o&&"item",l&&"zeroMinWidth",...c,"row"!==r&&`direction-xs-${String(r)}`,"wrap"!==i&&`wrap-xs-${String(i)}`,...u]},Fp,t)},Kp=b.forwardRef((function(e,t){const n=Bl({props:e,name:"MuiGrid"}),{breakpoints:r}=El(),o=aa(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=lt(o,Wp),v=p||f,y=l||f,x=b.useContext(jp),S=c?i||12:x,w={},E=it({},g);r.keys.forEach((e=>{null!=g[e]&&(w[e]=g[e],delete E[e])}));const k=it({},o,{columns:S,container:c,direction:u,item:d,rowSpacing:v,columnSpacing:y,wrap:h,zeroMinWidth:m,spacing:f},w,{breakpoints:r.keys}),C=Gp(k);return Pr.jsx(jp.Provider,{value:S,children:Pr.jsx(Vp,it({ownerState:k,className:ua(C.root,a),as:s,ref:t},E))})})),Zp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Xp(e){return`scale(${e}, ${e**2})`}const Jp={entering:{opacity:1,transform:Xp(1)},entered:{opacity:1,transform:"none"}},Qp="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Yp=b.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=es}=e,g=lt(e,Zp),v=Xa(),y=b.useRef(),x=El(),S=b.useRef(null),w=Va(S,bi(o),t),E=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},k=E(c),C=E(((e,t)=>{nc(e);const{duration:n,delay:r,easing:o}=rc({style:f,timeout:h,easing:a},{mode:"enter"});let i;"auto"===h?(i=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=i):i=n,e.style.transition=[x.transitions.create("opacity",{duration:i,delay:r}),x.transitions.create("transform",{duration:Qp?i:.666*i,delay:r,easing:o})].join(","),l&&l(e,t)})),R=E(s),L=E(p),O=E((e=>{const{duration:t,delay:n,easing:r}=rc({style:f,timeout:h,easing:a},{mode:"exit"});let o;"auto"===h?(o=x.transitions.getAutoHeightDuration(e.clientHeight),y.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:n}),x.transitions.create("transform",{duration:Qp?o:.666*o,delay:Qp?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Xp(.75),u&&u(e)})),I=E(d);return Pr.jsx(m,it({appear:r,in:i,nodeRef:S,onEnter:C,onEntered:R,onEntering:k,onExit:O,onExited:I,onExiting:L,addEndListener:e=>{"auto"===h&&v.start(y.current||0,e),n&&n(S.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>b.cloneElement(o,it({style:it({opacity:0,transform:Xp(.75),visibility:"exited"!==e||i?void 0:"hidden"},Jp[e],f,o.props.style),ref:w},t))}))}));function ef(e){return fa("MuiIcon",e)}Yp.muiSupportAuto=!0,ha("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const tf=["baseClassName","className","color","component","fontSize"],nf=zl("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Yr(n.color)}`],t[`fontSize${Yr(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]}))),rf=b.forwardRef((function(e,t){const n=Bl({props:e,name:"MuiIcon"}),{baseClassName:r="material-icons",className:o,color:a="inherit",component:i="span",fontSize:l="medium"}=n,s=lt(n,tf),c=it({},n,{baseClassName:r,color:a,component:i,fontSize:l}),u=(e=>{const{color:t,fontSize:n,classes:r}=e;return si({root:["root","inherit"!==t&&`color${Yr(t)}`,`fontSize${Yr(n)}`]},ef,r)})(c);return Pr.jsx(nf,it({as:i,className:ua(r,"notranslate",u.root,o),ownerState:c,"aria-hidden":!0,ref:t},s))}));function of(e){return fa("MuiInputAdornment",e)}rf.muiName="Icon";const af=ha("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var lf;const sf=["children","className","component","disablePointerEvents","disableTypography","position","variant"],cf=zl("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Yr(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>it({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${af.positionStart}&:not(.${af.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),uf=b.forwardRef((function(e,t){const n=Bl({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:a="div",disablePointerEvents:i=!1,disableTypography:l=!1,position:s,variant:c}=n,u=lt(n,sf),d=od()||{};let p=c;c&&d.variant,d&&!p&&(p=d.variant);const f=it({},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 si({root:["root",n&&"disablePointerEvents",o&&`position${Yr(o)}`,i,r&&"hiddenLabel",a&&`size${Yr(a)}`]},of,t)})(f);return Pr.jsx(rd.Provider,{value:null,children:Pr.jsx(cf,it({as:a,ownerState:f,className:ua(h.root,o),ref:t},u,{children:"string"!=typeof r||l?Pr.jsxs(b.Fragment,{children:["start"===s?lf||(lf=Pr.jsx("span",{className:"notranslate",children:""})):null,r]}):Pr.jsx(vc,{color:"text.secondary",children:r})}))})})),df=b.createContext({});function pf(e){return fa("MuiList",e)}ha("MuiList",["root","padding","dense","subheader"]);const ff=["children","className","component","dense","disablePadding","subheader"],hf=zl("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})=>it({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),mf=b.forwardRef((function(e,t){const n=Bl({props:e,name:"MuiList"}),{children:r,className:o,component:a="ul",dense:i=!1,disablePadding:l=!1,subheader:s}=n,c=lt(n,ff),u=b.useMemo((()=>({dense:i})),[i]),d=it({},n,{component:a,dense:i,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return si({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},pf,t)})(d);return Pr.jsx(df.Provider,{value:u,children:Pr.jsxs(hf,it({as:a,className:ua(p.root,o),ref:t,ownerState:d},c,{children:[s,r]}))})}));function gf(e){return fa("MuiListItem",e)}const bf=ha("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),vf=ha("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function yf(e){return fa("MuiListItemSecondaryAction",e)}ha("MuiListItemSecondaryAction",["root","disableGutters"]);const xf=["className"],Sf=zl("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>it({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),wf=b.forwardRef((function(e,t){const n=Bl({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=lt(n,xf),a=it({},n,{disableGutters:b.useContext(df).disableGutters}),i=(e=>{const{disableGutters:t,classes:n}=e;return si({root:["root",t&&"disableGutters"]},yf,n)})(a);return Pr.jsx(Sf,it({className:ua(i.root,r),ownerState:a,ref:t},o))}));wf.muiName="ListItemSecondaryAction";const Ef=["className"],kf=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Cf=zl("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})=>it({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&it({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${vf.root}`]:{paddingRight:48}},{[`&.${bf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${bf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Gi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${bf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Gi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${bf.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"}},[`&.${bf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Gi.alpha(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})`:Gi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),Rf=zl("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Lf=b.forwardRef((function(e,t){const n=Bl({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:y,secondaryAction:x,selected:S=!1,slotProps:w={},slots:E={}}=n,k=lt(n.ContainerProps,Ef),C=lt(n,kf),R=b.useContext(df),L=b.useMemo((()=>({dense:f||R.dense||!1,alignItems:r,disableGutters:m})),[r,R.dense,f,m]),O=b.useRef(null);Ma((()=>{o&&O.current&&O.current.focus()}),[o]);const I=b.Children.toArray(i),_=I.length&&Aa(I[I.length-1],["ListItemSecondaryAction"]),P=it({},n,{alignItems:r,autoFocus:o,button:a,dense:L.dense,disabled:h,disableGutters:m,disablePadding:g,divider:v,hasSecondaryAction:_,selected:S}),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 si({root:["root",o&&"dense",!i&&"gutters",!l&&"padding",s&&"divider",a&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},gf,r)})(P),M=Va(O,t),N=E.root||c.Root||Cf,q=w.root||u.root||{},D=it({className:ua(T.root,q.className,l),disabled:h},C);let A=s||"li";return a&&(D.component=s||"div",D.focusVisibleClassName=ua(bf.focusVisible,y),A=Cs),_?(A=D.component||s?A:"div","li"===d&&("li"===A?A="div":"li"===D.component&&(D.component="div")),Pr.jsx(df.Provider,{value:L,children:Pr.jsxs(Rf,it({as:d,className:ua(T.container,p),ref:M,ownerState:P},k,{children:[Pr.jsx(N,it({},q,!ci(N)&&{as:A,ownerState:it({},P,q.ownerState)},D,{children:I})),I.pop()]}))})):Pr.jsx(df.Provider,{value:L,children:Pr.jsxs(N,it({},q,{as:A,ref:M},!ci(N)&&{ownerState:it({},P,q.ownerState)},D,{children:[I,x&&Pr.jsx(wf,{children:x})]}))})}));function Of(e){return fa("MuiListItemIcon",e)}const If=ha("MuiListItemIcon",["root","alignItemsFlexStart"]),_f=["className"],Pf=zl("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})=>it({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),Tf=b.forwardRef((function(e,t){const n=Bl({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=lt(n,_f),a=it({},n,{alignItems:b.useContext(df).alignItems}),i=(e=>{const{alignItems:t,classes:n}=e;return si({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Of,n)})(a);return Pr.jsx(Pf,it({className:ua(i.root,r),ownerState:a,ref:t},o))})),Mf=ha("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Nf=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function qf(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Df(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Af(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 zf(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")&&Af(l,a)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}const jf=b.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=lt(e,Nf),p=b.useRef(null),f=b.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ma((()=>{r&&p.current.focus()}),[r]),b.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${ii(za(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const h=Va(p,t);let m=-1;b.Children.forEach(a,((e,t)=>{b.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=b.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),b.cloneElement(e,t)}return e}));return Pr.jsx(mf,it({role:"menu",ref:h,className:i,onKeyDown:e=>{const t=p.current,n=e.key,r=za(t).activeElement;if("ArrowDown"===n)e.preventDefault(),zf(t,r,s,l,qf);else if("ArrowUp"===n)e.preventDefault(),zf(t,r,s,l,Df);else if("Home"===n)e.preventDefault(),zf(t,null,s,l,qf);else if("End"===n)e.preventDefault(),zf(t,null,s,l,Df);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&&Af(r,o);o.previousKeyMatched&&(s||zf(t,r,!1,l,qf,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1},d,{children:g}))}));function Ff(e){return fa("MuiPopover",e)}ha("MuiPopover",["root","paper"]);const $f=["onEntering"],Bf=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Wf=["slotProps"];function Hf(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Uf(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Vf(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Gf(e){return"function"==typeof e?e():e}const Kf=zl(Cp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Zf=zl(lc,{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}),Xf=b.forwardRef((function(e,t){var n,r,o;const a=Bl({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:y,slotProps:x,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:w=Yp,transitionDuration:E="auto",TransitionProps:{onEntering:k}={},disableScrollLock:C=!1}=a,R=lt(a.TransitionProps,$f),L=lt(a,Bf),O=null!=(n=null==x?void 0:x.paper)?n:v,I=b.useRef(),_=Va(I,O.ref),P=it({},a,{anchorOrigin:s,anchorReference:u,elevation:h,marginThreshold:m,externalPaperSlotProps:O,transformOrigin:S,TransitionComponent:w,transitionDuration:E,TransitionProps:R}),T=(e=>{const{classes:t}=e;return si({root:["root"],paper:["paper"]},Ff,t)})(P),M=b.useCallback((()=>{if("anchorPosition"===u)return c;const e=Gf(l),t=(e&&1===e.nodeType?e:za(I.current).body).getBoundingClientRect();return{top:t.top+Hf(t,s.vertical),left:t.left+Uf(t,s.horizontal)}}),[l,s.horizontal,s.vertical,c,u]),N=b.useCallback((e=>({vertical:Hf(e,S.vertical),horizontal:Uf(e,S.horizontal)})),[S.horizontal,S.vertical]),q=b.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=N(t);if("none"===u)return{top:null,left:null,transformOrigin:Vf(n)};const r=M();let o=r.top-n.vertical,a=r.left-n.horizontal;const i=o+t.height,s=a+t.width,c=ja(Gf(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:Vf(n)}}),[l,u,M,N,m]),[D,A]=b.useState(g),z=b.useCallback((()=>{const e=I.current;if(!e)return;const t=q(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,A(!0)}),[q]);b.useEffect((()=>(C&&window.addEventListener("scroll",z),()=>window.removeEventListener("scroll",z))),[l,C,z]);b.useEffect((()=>{g&&z()})),b.useImperativeHandle(i,(()=>g?{updatePosition:()=>{z()}}:null),[g,z]),b.useEffect((()=>{if(!g)return;const e=Da((()=>{z()})),t=ja(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,z]);let j=E;"auto"!==E||w.muiSupportAuto||(j=void 0);const F=f||(l?za(Gf(l)).body:void 0),$=null!=(r=null==y?void 0:y.root)?r:Kf,B=null!=(o=null==y?void 0:y.paper)?o:Zf,W=gi({elementType:B,externalSlotProps:it({},O,{style:D?O.style:it({},O.style,{opacity:0})}),additionalProps:{elevation:h,ref:_},ownerState:P,className:ua(T.paper,null==O?void 0:O.className)}),H=gi({elementType:$,externalSlotProps:(null==x?void 0:x.root)||{},externalForwardedProps:L,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:P,className:ua(T.root,p)}),{slotProps:U}=H,V=lt(H,Wf);return Pr.jsx($,it({},V,!ci($)&&{slotProps:U,disableScrollLock:C},{children:Pr.jsx(w,it({appear:!0,in:g,onEntering:(e,t)=>{k&&k(e,t),z()},onExited:()=>{A(!1)},timeout:j},R,{children:Pr.jsx(B,it({},W,{children:d}))}))}))}));function Jf(e){return fa("MuiMenuItem",e)}const Qf=ha("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Yf=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],eh=zl(Cs,{shouldForwardProp:e=>Al(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})=>it({},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"}},[`&.${Qf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Gi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Qf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Gi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Qf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Gi.alpha(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})`:Gi.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Qf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Qf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Lp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Lp.inset}`]:{marginLeft:52},[`& .${Mf.root}`]:{marginTop:0,marginBottom:0},[`& .${Mf.inset}`]:{paddingLeft:36},[`& .${If.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&it({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${If.root} svg`]:{fontSize:"1.25rem"}})))),th=b.forwardRef((function(e,t){const n=Bl({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=lt(n,Yf),f=b.useContext(df),h=b.useMemo((()=>({dense:a||f.dense||!1,disableGutters:l})),[f.dense,a,l]),m=b.useRef(null);Ma((()=>{r&&m.current&&m.current.focus()}),[r]);const g=it({},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 it({},i,si({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},Jf,i))})(n),y=Va(m,t);let x;return n.disabled||(x=void 0!==u?u:-1),Pr.jsx(df.Provider,{value:h,children:Pr.jsx(eh,it({ref:y,role:c,tabIndex:x,component:o,focusVisibleClassName:ua(v.focusVisible,s),className:ua(v.root,d)},p,{ownerState:g,classes:v}))})}));var nh;const rh=["children","classes","className","label","notched"],oh=zl("fieldset",{shouldForwardProp:Al})({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%"}),ah=zl("legend",{shouldForwardProp:Al})((({ownerState:e,theme:t})=>it({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&&it({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 ih=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],lh=zl(pd,{shouldForwardProp:e=>Al(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:ud})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return it({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${bd.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${bd.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${bd.focused} .${bd.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${bd.error} .${bd.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${bd.disabled} .${bd.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&it({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),sh=zl((function(e){const{className:t,label:n,notched:r}=e,o=lt(e,rh),a=null!=n&&""!==n,i=it({},e,{notched:r,withLabel:a});return Pr.jsx(oh,it({"aria-hidden":!0,className:t,ownerState:i},o,{children:Pr.jsx(ah,{ownerState:i,children:a?Pr.jsx("span",{children:n}):nh||(nh=Pr.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}})),ch=zl(fd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:dd})((({theme:e,ownerState:t})=>it({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}))),uh=b.forwardRef((function(e,t){var n,r,o,a,i;const l=Bl({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=lt(l,ih),v=(e=>{const{classes:t}=e;return it({},t,si({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},gd,t))})(l),y=od(),x=nd({props:l,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=it({},l,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:y,fullWidth:c,hiddenLabel:x.hiddenLabel,multiline:p,size:x.size,type:m}),w=null!=(n=null!=(r=h.root)?r:s.Root)?n:lh,E=null!=(o=null!=(a=h.input)?a:s.Input)?o:ch;return Pr.jsx(md,it({slots:{root:w,input:E},renderSuffix:e=>Pr.jsx(sh,{ownerState:S,className:v.notchedOutline,label:null!=d&&""!==d&&x.required?i||(i=Pr.jsxs(b.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:it({},v,{notchedOutline:null})}))}));uh.muiName="Input";var dh=Ys(Pr.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"),ph=Ys(Pr.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 fh=zl("span",{shouldForwardProp:Al})({position:"relative",display:"flex"}),hh=zl(dh)({transform:"scale(1)"}),mh=zl(ph)((({theme:e,ownerState:t})=>it({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 gh(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=it({},e,{checked:t});return Pr.jsxs(fh,{className:n.root,ownerState:o,children:[Pr.jsx(hh,{fontSize:r,className:n.background,ownerState:o}),Pr.jsx(mh,{fontSize:r,className:n.dot,ownerState:o})]})}const bh=b.createContext(void 0);function vh(e){return fa("MuiRadio",e)}const yh=ha("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),xh=["checked","checkedIcon","color","icon","name","onChange","size","className"],Sh=zl(zd,{shouldForwardProp:e=>Al(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"medium"!==n.size&&t[`size${Yr(n.size)}`],t[`color${Yr(n.color)}`]]}})((({theme:e,ownerState:t})=>it({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})`:Gi.alpha("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${yh.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${yh.disabled}`]:{color:(e.vars||e).palette.action.disabled}})));const wh=Pr.jsx(gh,{checked:!0}),Eh=Pr.jsx(gh,{}),kh=b.forwardRef((function(e,t){var n,r;const o=Bl({props:e,name:"MuiRadio"}),{checked:a,checkedIcon:i=wh,color:l="primary",icon:s=Eh,name:c,onChange:u,size:d="medium",className:p}=o,f=lt(o,xh),h=it({},o,{color:l,size:d}),m=(e=>{const{classes:t,color:n,size:r}=e;return it({},t,si({root:["root",`color${Yr(n)}`,"medium"!==r&&`size${Yr(r)}`]},vh,t))})(h),g=b.useContext(bh);let v=a;const y=qa(u,g&&g.onChange);let x=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===x&&(x=g.name)),Pr.jsx(Sh,it({type:"radio",icon:b.cloneElement(s,{fontSize:null!=(n=Eh.props.fontSize)?n:d}),checkedIcon:b.cloneElement(i,{fontSize:null!=(r=wh.props.fontSize)?r:d}),ownerState:h,classes:m,name:x,checked:v,onChange:y,ref:t,className:ua(m.root,p)},f))}));function Ch(e){return fa("MuiTooltip",e)}const Rh=ha("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Lh=["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 Oh=zl(Xu,{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})=>it({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Rh.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Rh.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Rh.arrow}`]:it({},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"] .${Rh.arrow}`]:it({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),Ih=zl("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${Yr(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return it({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Gi.alpha(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},{[`.${Rh.popper}[data-popper-placement*="left"] &`]:it({transformOrigin:"right center"},t.isRtl?it({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):it({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Rh.popper}[data-popper-placement*="right"] &`]:it({transformOrigin:"left center"},t.isRtl?it({marginRight:"14px"},t.touch&&{marginRight:"24px"}):it({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Rh.popper}[data-popper-placement*="top"] &`]:it({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Rh.popper}[data-popper-placement*="bottom"] &`]:it({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n})),_h=zl("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:Gi.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Ph=!1;const Th=new Za;let Mh={x:0,y:0};function Nh(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const qh=b.forwardRef((function(e,t){var n,r,o,a,i,l,s,c,u,d,p,f,h,m,g,v,y,x,S;const w=Bl({props:e,name:"MuiTooltip"}),{arrow:E=!1,children:k,components:C={},componentsProps:R={},describeChild:L=!1,disableFocusListener:O=!1,disableHoverListener:I=!1,disableInteractive:_=!1,disableTouchListener:P=!1,enterDelay:T=100,enterNextDelay:M=0,enterTouchDelay:N=700,followCursor:q=!1,id:D,leaveDelay:A=0,leaveTouchDelay:z=1500,onClose:j,onOpen:F,open:$,placement:B="bottom",PopperComponent:W,PopperProps:H={},slotProps:U={},slots:V={},title:G,TransitionComponent:K=Yp,TransitionProps:Z}=w,X=lt(w,Lh),J=b.isValidElement(k)?k:Pr.jsx("span",{children:k}),Q=El(),Y=(()=>{const e=b.useContext(Ei);return null!=e&&e})(),[ee,te]=b.useState(),[ne,re]=b.useState(null),oe=b.useRef(!1),ae=_||q,ie=Xa(),le=Xa(),se=Xa(),ce=Xa(),[ue,de]=Ha({controlled:$,default:!1,name:"Tooltip",state:"open"});let pe=ue;const fe=Wa(D),he=b.useRef(),me=Ua((()=>{void 0!==he.current&&(document.body.style.WebkitUserSelect=he.current,he.current=void 0),ce.clear()}));b.useEffect((()=>me),[me]);const ge=e=>{Th.clear(),Ph=!0,de(!0),F&&!pe&&F(e)},be=Ua((e=>{Th.start(800+A,(()=>{Ph=!1})),de(!1),j&&pe&&j(e),ie.start(Q.transitions.duration.shortest,(()=>{oe.current=!1}))})),ve=e=>{oe.current&&"touchstart"!==e.type||(ee&&ee.removeAttribute("title"),le.clear(),se.clear(),T||Ph&&M?le.start(Ph?M:T,(()=>{ge(e)})):ge(e))},ye=e=>{le.clear(),se.start(A,(()=>{be(e)}))},{isFocusVisibleRef:xe,onBlur:Se,onFocus:we,ref:Ee}=ai(),[,ke]=b.useState(!1),Ce=e=>{Se(e),!1===xe.current&&(ke(!1),ye(e))},Re=e=>{ee||te(e.currentTarget),we(e),!0===xe.current&&(ke(!0),ve(e))},Le=e=>{oe.current=!0;const t=J.props;t.onTouchStart&&t.onTouchStart(e)},Oe=e=>{Le(e),se.clear(),ie.clear(),me(),he.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ce.start(N,(()=>{document.body.style.WebkitUserSelect=he.current,ve(e)}))},Ie=e=>{J.props.onTouchEnd&&J.props.onTouchEnd(e),me(),se.start(z,(()=>{be(e)}))};b.useEffect((()=>{if(pe)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||be(e)}}),[be,pe]);const _e=Va(bi(J),Ee,te,t);G||0===G||(pe=!1);const Pe=b.useRef(),Te={},Me="string"==typeof G;L?(Te.title=pe||!Me||I?null:G,Te["aria-describedby"]=pe?fe:null):(Te["aria-label"]=Me?G:null,Te["aria-labelledby"]=pe&&!Me?fe:null);const Ne=it({},Te,X,J.props,{className:ua(X.className,J.props.className),onTouchStart:Le,ref:_e},q?{onMouseMove:e=>{const t=J.props;t.onMouseMove&&t.onMouseMove(e),Mh={x:e.clientX,y:e.clientY},Pe.current&&Pe.current.update()}}:{}),qe={};P||(Ne.onTouchStart=Oe,Ne.onTouchEnd=Ie),I||(Ne.onMouseOver=Nh(ve,Ne.onMouseOver),Ne.onMouseLeave=Nh(ye,Ne.onMouseLeave),ae||(qe.onMouseOver=ve,qe.onMouseLeave=ye)),O||(Ne.onFocus=Nh(Re,Ne.onFocus),Ne.onBlur=Nh(Ce,Ne.onBlur),ae||(qe.onFocus=Re,qe.onBlur=Ce));const De=b.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(ne),options:{element:ne,padding:4}}];return null!=(e=H.popperOptions)&&e.modifiers&&(t=t.concat(H.popperOptions.modifiers)),it({},H.popperOptions,{modifiers:t})}),[ne,H]),Ae=it({},w,{isRtl:Y,arrow:E,disableInteractive:ae,placement:B,PopperComponentProp:W,touch:oe.current}),ze=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e;return si({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Yr(a.split("-")[0])}`],arrow:["arrow"]},Ch,t)})(Ae),je=null!=(n=null!=(r=V.popper)?r:C.Popper)?n:Oh,Fe=null!=(o=null!=(a=null!=(i=V.transition)?i:C.Transition)?a:K)?o:Yp,$e=null!=(l=null!=(s=V.tooltip)?s:C.Tooltip)?l:Ih,Be=null!=(c=null!=(u=V.arrow)?u:C.Arrow)?c:_h,We=ui(je,it({},H,null!=(d=U.popper)?d:R.popper,{className:ua(ze.popper,null==H?void 0:H.className,null==(p=null!=(f=U.popper)?f:R.popper)?void 0:p.className)}),Ae),He=ui(Fe,it({},Z,null!=(h=U.transition)?h:R.transition),Ae),Ue=ui($e,it({},null!=(m=U.tooltip)?m:R.tooltip,{className:ua(ze.tooltip,null==(g=null!=(v=U.tooltip)?v:R.tooltip)?void 0:g.className)}),Ae),Ve=ui(Be,it({},null!=(y=U.arrow)?y:R.arrow,{className:ua(ze.arrow,null==(x=null!=(S=U.arrow)?S:R.arrow)?void 0:x.className)}),Ae);return Pr.jsxs(b.Fragment,{children:[b.cloneElement(J,Ne),Pr.jsx(je,it({as:null!=W?W:Xu,placement:B,anchorEl:q?{getBoundingClientRect:()=>({top:Mh.y,left:Mh.x,right:Mh.x,bottom:Mh.y,width:0,height:0})}:ee,popperRef:Pe,open:!!ee&&pe,id:fe,transition:!0},qe,We,{popperOptions:De,children:({TransitionProps:e})=>Pr.jsx(Fe,it({timeout:Q.transitions.duration.shorter},e,He,{children:Pr.jsxs($e,it({},Ue,{children:[G,E?Pr.jsx(Be,it({},Ve,{ref:re})):null]}))}))}))]})}));function Dh(){const{useModelStore:e}=b.useContext(Ws).modelStore;return e()}function Ah(e,t){const n=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[r]=Dh(),[o]=function(){const{useRpcRequestSessionModelStore:e}=b.useContext(Ws).modelStore;return e()}(),[a,i]=b.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 b.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 zh={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function jh(e){return Ah(zh,e)}const Fh=e=>new Promise((t=>{setTimeout(t,e)})),$h=(e,t)=>{const{rpcResultStore:n,key:r,method:o}=t;let a;switch(t.type){case"INVALID":a=c(c({},e),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":a={result:c({},t.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":a=c(c({},e),{},{invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1});break;default:throw new Error("Undefined action")}let i=n.get(r);return i||(i={}),i[o]=a,n.set(r,i),a};function Bh(e,t){const n=e?"".concat(e.id):null,[r]=function(){const{useRpcResultStore:e}=b.useContext(Ws).modelStore;return e()}(),[o,a]=b.useReducer($h,n?r.get(n):null),[i]=function(){const{useModelChangedStore:e}=b.useContext(Ws).modelStore;return e()}(),[l]=function(){const{useRpcRequestStore:e}=b.useContext(Ws).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 Fh(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 b.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 Wh(e){const[t,{validating:n,canCancel:r,canRetry:o},a]=Bh(e,"getLayout");return null!=e&&e.pureLayout?[e.pureLayout,{validating:n,canCancel:r,canRetry:o},a]:[t,{validating:n,canCancel:r,canRetry:o},a]}function Hh(e){return Bh(e,"getAppLayout")}function Uh(){const[e,t]=b.useState(),[n,r]=b.useState(),o=b.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 b.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 Vh(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function Gh(e){let{size:t,style:n={},viewBox:r="0 0 16 16",shapes:o=[]}=e;const a=c({fontSize:Vh(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:a},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,l({key:t},r))}))))}var Kh=e=>Gh((e=>c(c({},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 Zh=e=>Gh((e=>c(c({},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 Xh=e=>c(c({},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 Jh=e=>Gh(Xh(e));var Qh=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}}(),Yh=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},em=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=Yh(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},Yh(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),Qh(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}(b.PureComponent);const tm=["S","XS"],nm=e=>e.reduce(((e,t)=>e.concat(t)));function rm(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[t]=e;return n=t.qState,!!tm.includes(n)&&t.qElemNumber;var n}));return t.filter((e=>!1!==e))}));return nm(t)}async function om(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 am="RowColumn",im={row:"".concat(am,"-row"),rowBorderBottom:"".concat(am,"-rowBorderBottom"),column:"".concat(am,"-column"),fieldRoot:"".concat(am,"-fieldRoot"),cell:"".concat(am,"-cell"),labelText:"".concat(am,"-labelText"),labelDense:"".concat(am,"-labelDense"),highlighted:"".concat(am,"-highlighted"),checkboxLabel:"".concat(am,"-checkboxLabel"),icon:"".concat(am,"-icon"),S:"".concat(am,"-S"),XS:"".concat(am,"-XS"),A:"".concat(am,"-A"),X:"".concat(am,"-X"),frequencyCount:"".concat(am,"-frequencyCount"),barContainer:"".concat(am,"-barContainer"),bar:"".concat(am,"-bar"),barSelected:"".concat(am,"-barSelected"),barWithCheckbox:"".concat(am,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(am,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(am,"-excludedTextWithCheckbox")},lm=".".concat(im.fieldRoot),sm=e=>!(null!=e&&e.metaKey||null!=e&&e.ctrlKey);function cm(e){var t;let{selectionState:n,selections:r,checkboxes:o=!1,doc:a=document,loaderRef:i}=e;const l=b.useRef({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});b.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(),om({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 nm(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=b.useCallback((e=>{if(n.selectDisabled())return;const t=+e.target.getAttribute("data-n"),r=!n.isSingleSelect&&sm(e.nativeEvent);l.current.elemNumbers=[t],l.current.toggle=r,r||n.clearItemStates(!0),n.updateItem(t),l.current.active=!1,s()}),[]),p=b.useCallback((e=>{if(0!==e.button||n.selectDisabled())return;const t=+e.currentTarget.getAttribute("data-n"),r=!n.isSingleSelect&&sm(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=b.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=b.useCallback((e=>{0===e.button&&l.current.active&&(l.current.active=!1,s())}),[]),m=b.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=b.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(lm))||void 0===t?void 0:t.getAttribute("data-n")),a=Number(null===(r=e.touches[1].target)||void 0===r||null===(r=r.closest(lm))||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=b.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()}),[]);b.useEffect((()=>(a.addEventListener("mouseup",h),()=>{a.removeEventListener("mouseup",h)})),[h]),b.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 y={};return o?Object.assign(y,{onChange:d}):Object.assign(y,{onMouseUp:f,onMouseDown:p,onMouseEnter:m,onTouchStart:g,onTouchEnd:v}),{interactionEvents:y,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&&sm(null==a?void 0:a.nativeEvent);i||n.clearItemStates(!0);const l=[];return n.updateItems(t,o,l),n.setSelectableValuesUpdating(),om({selections:r,elemNumbers:o?l:t,isSingleSelect:n.isSingleSelect,toggle:i})}}}const um=e=>c(c({},e),{},{shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]});var dm=e=>Gh(um(e));const pm=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,fm=e=>{let{cell:t,checkboxes:n}=e;return((e=>e?"A"===e.qState:null)(t)||pm(t))&&n};const hm=e=>{let{column:t,histogram:n,cell:r,showGray:o}=e;if(!r)return[];const a=[t?im.column:im.row];n||a.push(im.rowBorderBottom);const i=function(e){let t,{cell:n,showGray:r}=e;switch(n.qState){case"XS":t=r?im.XS:im.S;break;case"S":case"L":t=im.S;break;case"A":t=!!r&&im.A;break;case"X":case"XL":t=!!r&&im.X;break;default:t=!1}return t}({cell:r,showGray:o});return i&&a.push(i),a},mm=9,gm=4,bm=7,vm=12+2*(bm+1),ym=80,xm=10,Sm=150,wm=56,Em=20,km="-",Cm=32,Rm=29,Lm=20,Om=4,Im=e=>e.filter((e=>!!e)).join(" ").trim(),_m=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,"%")},Pm=e=>e||km,Tm=["backgroundColor"],Mm=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%"},Nm=e=>{let{sizes:t,frequencyMode:n,isGridMode:r}=e;return r?"max-content":"P"===n?t.freqMinWidth:t.freqMaxWidth},qm=e=>{let{theme:t,checkboxes:n,styles:r,selectionState:o}=e;if(n)return"selected"===o?{["& .".concat(im.labelText)]:{color:r.selections.selected}}:{};const a=r.selections,i=a[o],l=a["".concat(o,"Contrast")];return{background:i,color:l,"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder),outline:"none"},"& $cell":{paddingRight:0},["& .".concat(im.labelText)]:{color:l},["& .".concat(im.icon)]:{color:l}}},Dm={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},Am=zl("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:a,direction:i,sizes:l,frequencyMode:s,freqHitsValue:d,styles:p}=e;const f=p.content,{backgroundColor:h}=f,m=u(f,Tm),g=qm({theme:t,styles:p,checkboxes:n,selectionState:"selected"}),b=qm({theme:t,styles:p,checkboxes:n,selectionState:"excluded"}),v={height:"100%",transition:"width 0.2s",border:"".concat(1,"px solid"),borderColor:"#D9D9D9",backgroundColor:"#FAFAFA"},y={opacity:"30%"};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(im.row)]:c({flexWrap:"nowrap"},p.content),["& .".concat(im.rowBorderBottom)]:{borderBottom:o?"none":"1px solid ".concat(t.palette.divider),borderLeft:o?"1px solid ".concat(t.palette.divider):"none"},["& .".concat(im.column)]:c({flexWrap:"nowrap",borderRight:"1px solid ".concat(t.palette.divider)},p.content),["& .".concat(im.cell)]:{zIndex:2,display:"flex",alignItems:"center",flexGrow:1,minWidth:n?"52px":"26px",flexBasis:n?"auto":"max-content",paddingLeft:"".concat(mm,"px"),paddingRight:0},["& .".concat(im.labelText)]:c(c({lineHeight:"24px",userSelect:"none",paddingRight:"1px"},Dm),m),["& .".concat(im.labelDense)]:{lineHeight:"18px"},["& .".concat(im.highlighted)]:{backgroundColor:"#FFC72A"},["& .".concat(im.checkboxLabel)]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":c(c({},Dm),{},{display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"})},["& .".concat(im.icon)]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24,color:m.color},["& .".concat(im.S)]:c(c({},g),{},{border:r?"none":void 0}),["& .".concat(im.XS)]:c(c({},qm({theme:t,styles:p,checkboxes:n,selectionState:"selectedExcluded"})),{},{border:r?"none":void 0}),["& .".concat(im.A)]:c(c({},qm({theme:t,styles:p,checkboxes:n,selectionState:"alternative"})),{},{border:r?"none":void 0}),["& .".concat(im.X)]:c(c({},b),{},{border:r?"none":void 0}),["& .".concat(im.X,", & .").concat(im.XS)]:{border:r?"none":void 0,["& .".concat(im.barSelected," .bar-filled")]:c({},v)},["& .".concat(im.frequencyCount)]:c(c({zIndex:3,justifyContent:"flex-end"},Dm),{},{flex:"0 0 ".concat(Mm({sizes:l,frequencyMode:s,isGridMode:r,freqHitsValue:d})),minWidth:!r&&"P"!==s&&d?l.freqMinWidth:"max-content",maxWidth:Nm({sizes:l,frequencyMode:s,isGridMode:r}),textAlign:"rtl"===i?"left":"right",paddingLeft:"rtl"!==i?"8px":0}),["&.".concat(im.barContainer)]:{height:"100%",display:"flex",alignItems:"center"},["& .".concat(im.bar)]:{height:a?"16px":"20px",position:"absolute",zIndex:1,alignSelf:"center",left:4,width:"calc(100% - ".concat(8,"px)"),display:"flex",alignItems:"center","& .bar-filled":c({},v)},["& .".concat(im.barSelected)]:{"& .bar-filled":c({},y)},["& .".concat(im.barWithCheckbox)]:{left:"rtl"===i?4:29,width:"calc(100% - ".concat(33,"px)")},["& .".concat(im.barSelectedWithCheckbox)]:{"& .bar-filled":c(c({},y),{},{backgroundColor:p.selections.selected||"#BFE5D0",borderColor:p.selections.selected})},["& .".concat(im.excludedTextWithCheckbox)]:{color:p.content.color,fontStyle:"italic"}}}));var zm=v.memo(Am);const jm="ListBoxCheckbox",Fm={cbIcon:"".concat(jm,"-cbIcon"),cbIconChecked:"".concat(jm,"-cbIconChecked"),cbIconExcluded:"".concat(jm,"-cbIconExcluded"),cbIconAlternative:"".concat(jm,"-cbIconAlternative"),checkbox:"".concat(jm,"-checkbox"),dense:"".concat(jm,"-dense")},$m=zl(Zd,{shouldForwardProp:e=>"styles"!==e})((e=>{let{styles:t}=e;return{["& .".concat(Fm.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(Fm.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(Fm.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:t.selections.excluded},["& .".concat(Fm.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:t.selections.alternative},["&.".concat(Fm.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(Fm.dense)]:{padding:"4px 8px"}}})),Bm=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 Wm(e){let{onChange:t,checked:n,label:r,dense:o,excluded:a,styles:i,showGray:l=!0,dataN:s}=e;return v.createElement($m,{edge:"start",onChange:t,checked:n,disableRipple:!0,className:[Fm.checkbox,o&&Fm.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":r,"data-n":s},name:r,icon:Bm(Fm,l,a),checkedIcon:v.createElement("span",{className:Fm.cbIconChecked}),styles:i})}const Hm={radioButton:"".concat("ListBoxRadioButton","-radioButton")},Um=zl(kh,{shouldForwardProp:e=>!["dense","styles"].includes(e)})((e=>{let{checked:t,styles:n,dense:r}=e;return{["&.".concat(Hm.radioButton)]:{right:"5px",color:t?n.selections.selected:n.content.color,padding:r?"0px 0px 0px 12px":void 0,backgroundColor:"transparent"}}}));function Vm(e){let{onChange:t,checked:n,label:r,dense:o,dataN:a,styles:i}=e;return v.createElement(Um,{checked:n,onChange:t,value:r,name:r,className:Hm.radioButton,inputProps:{"data-n":a},disableRipple:!0,size:o?"small":"medium",dense:o,styles:i})}function Gm(e){let{label:t,dense:n,showGray:r=!0,checkboxes:o,cell:a,valueTextAlign:i}=e;return v.createElement(vc,{component:"span",variant:"body2",className:Im([im.labelText,n&&im.labelDense,r&&fm({cell:a,checkboxes:o})&&im.excludedTextWithCheckbox]),align:i,dir:"auto"},v.createElement("span",null,t))}function Km(e){let{label:t,color:n,dense:r,showGray:o,checkboxes:a,cell:i,valueTextAlign:l}=e;return"string"==typeof t?v.createElement(Gm,{label:t,color:n,dense:r,showGray:o,checkboxes:a,cell:i,valueTextAlign:l}):t}function Zm(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(Wm,{onChange:t,label:n,checked:o,dense:a,excluded:pm(i),isGridCol:l,showGray:s,dataN:r,styles:p}),h=v.createElement(Vm,{onChange:t,label:n,checked:o,dense:a,dataN:r,styles:p});return v.createElement(zp,{control:c?h:f,className:im.checkboxLabel,label:v.createElement(Km,{label:n,dense:a,showGray:s,checkboxes:u,cell:i,valueTextAlign:d}),key:r})}function Xm(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?im.highlighted:""},n)}));return v.createElement(Gm,{label:a,dense:n,showGray:r,checkboxes:o})}function Jm(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(Xm,{labels:n,dense:o,showGray:a,checkboxes:r});return r?v.createElement(Zm,{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 Qm=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(Zm,{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(Gm,{label:n,dense:a,showGray:!0,checkboxes:u,cell:i,valueTextAlign:d})}));function Ym(e){let{qFrequency:t,histogram:n,checkboxes:r,isSelected:o,frequencyMax:a}=e;if(!(t&&n&&Pm(t)!==km))return;const i=_m({qFrequency:t,frequencyMax:a});return v.createElement(Md,{className:Im([im.bar,r&&im.barWithCheckbox,o&&(r?im.barSelectedWithCheckbox:im.barSelected)])},v.createElement(Md,{className:"bar-filled",width:i}))}function eg(e){let{cell:t,checkboxes:n,dense:r,showGray:o}=e;const a=Pm(null==t?void 0:t.qFrequency);return v.createElement(Kp,{item:!0,style:{display:"flex",alignItems:"center"},className:im.frequencyCount,"aria-label":a,title:a},v.createElement(vc,{noWrap:!0,color:"inherit",variant:"body2",className:Im([r&&im.labelDense,im.labelText,o&&fm({cell:t,checkboxes:n})&&im.excludedTextWithCheckbox])},a))}function tg(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 ng=zl(Kp,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction","fillHeight"].includes(e)})((e=>{let{dataLayout:t,layoutOrder:n,itemPadding:r,cellPaddingRight:o,direction:a,fillHeight:i}=e;const l="padding".concat("rtl"===a?"Left":"Right");return{["&.".concat(im.fieldRoot)]:c(c({},tg({dataLayout:t,layoutOrder:n,itemPadding:r,fillHeight:i})),{},{[l]:o?"8px":void 0})}}));const rg=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===rg.ARROW_UP||e===rg.ARROW_DOWN||e===rg.ARROW_LEFT||e===rg.ARROW_RIGHT});function og(e){null==e||e.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")}))}function ag(e){return(null==e?void 0:e.closest(".njs-cell"))||(null==e?void 0:e.closest(".qv-gridcell"))||(null==e?void 0:e.closest(".qv-gs-listbox"))}function ig(e){let{containerRef:t,enabled:n}=e;const[r,o]=b.useState(!1),a={enabled:n,active:r,innerTabStops:!n||r,blur(e){var r;if(!n)return;o(!1);const a=ag(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)})),og(t.current),e&&a&&(a.setAttribute("tabIndex",0),t.current.setAttribute("tabIndex",-1),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=(null==e?void 0:e.querySelector(".listbox-cyclic-button"))||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:not(:disabled)"),n=e||t;return null==n||n.setAttribute("tabIndex",0),null==n||n.focus(),n}};return a}const lg=e=>+e.getAttribute("data-n"),sg=e=>{const t=null==e?void 0:e.querySelector(".search input");return null==t||t.focus(),t},cg=e=>{const t=null==e?void 0:e.querySelector(".value.last-focused"),n=null==e?void 0:e.querySelector(".value.selector"),r=null==e?void 0:e.querySelector(".value"),o=t||n||r;return null==o||o.setAttribute("tabIndex",0),null==o||o.focus(),og(e),o},ug=e=>{const t=null==e?void 0:e.querySelector(".listbox-cyclic-button:not(:disabled)");return null==t||t.setAttribute("tabIndex",0),null==t||t.focus(),t},dg=(e,t)=>{if(!t.enabled)return;const{currentTarget:n,target:r}=e,o=r.classList.contains("listbox-container"),a=n.closest(".listbox-container"),i=ag(a),l=1===(null==i?void 0:i.querySelectorAll(".listbox-container").length);if(o||l)t.blur(!0);else{og(a),n.classList.add("last-focused"),t.blur();const e=n.closest(".listbox-container");e.setAttribute("tabIndex",-1),null==e||e.focus()}},pg=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===rg.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};const fg={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 hg(e){var t,n;let{index:r,rowIndex:o,columnIndex:a,style:i,data:l}=e;const{onChange:s,onClick:u,onMouseDown:d,onMouseUp:p,onMouseEnter:f,onTouchStart:h,onTouchEnd:m,pages:g,isLocked:y,column:x=!1,checkboxes:S=!1,textAlign:w,direction:E,layoutOptions:k={},freqIsAllowed:C,isSingleSelect:R,actions:L,frequencyMax:O="",histogram:I=!1,keyboard:_,showGray:P=!0,showTick:T=!0,columnCount:M=1,rowCount:N=1,dataOffset:q,deducedFrequencyMode:D,focusListItems:A,listCount:z,sizes:j,translator:F,showSearch:$,isModal:B,contentFontStyle:W,styles:H,fillHeight:U}=l,{dense:V=!1,dataLayout:G="singleColumn",layoutOrder:K}=k,{itemPadding:Z}=j;let X,J;const Q={max:null,currentIndex:null};if("number"==typeof o&&"number"==typeof a){"row"===K?(X=o*M+a,Q.max=N,Q.currentIndex=o):(X=a*N+o,Q.max=M,Q.currentIndex=a);const e=0;J=c(c({},i),{},{height:U?"100%":i.height,left:e+(0===a?i.left:Number(i.left)+a*e),top:0===o?i.top:Number(i.top)+o*e})}else X=r,Q.max=z,Q.currentIndex=r,J=c({},i);X+=q;const[Y,ee]=b.useState(null);b.useEffect((()=>{null!==Y&&(0===Q.currentIndex&&A.first&&(Y.focus(),A.setFirst(!1)),Q.currentIndex===Q.max-1&&A.last&&(Y.focus(),A.setLast(!1)))}),[Y,A.first,A.last]);const te=b.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===rg.ARROW_LEFT||e===rg.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=pg({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 b=e=>{g=e};return e=>{let u;const{currentTarget:d,nativeEvent:p}=e,{keyCode:f,shiftKey:h=!1,ctrlKey:v=!1,metaKey:y=!1}=p;switch(f){case rg.TAB:{const t=d.closest(".listbox-container"),n=void 0!==c?c():void 0;if(d.classList.add("last-focused"),null==s||!s.enabled){if(!n)return;return s.focusSelection(),e.preventDefault(),void e.stopPropagation()}if(h){sg(t)||ug(t)||(n?s.focusSelection():dg(e,s));break}s.focusSelection()||ug(t)||sg(t)||(d.blur(),dg(e,s));break}case rg.SHIFT:b(!0);break;case rg.SPACE:t([lg(d)],!1,e);break;case rg.ARROW_DOWN:case rg.ARROW_RIGHT:u=m(f,d,!0),h&&u&&(g&&(t([lg(d)],!0),b(!1)),t([lg(u)],!0));break;case rg.ARROW_UP:case rg.ARROW_LEFT:u=m(f,d,!1),h&&u&&(g&&(t([lg(d)],!0),b(!1)),t([lg(u)],!0));break;case rg.ENTER:if(o(),void 0===c)return;break;case rg.ESCAPE:if(void 0===c)return void a();if(!c())return;a();break;case rg.HOME:if(l.setFirst(!0),v){null==i||i("overflowStart");break}null==i||i("start");break;case rg.END:if(l.setLast(!0),v){null==i||i("overflowEnd");break}null==i||i("end");break;case rg.A:if(v||y){n();break}return;case rg.F:if(v||y){r();break}return;default:return}u&&u.focus(),e.preventDefault(),e.stopPropagation()}}(c(c({},L),{},{focusListItems:A,keyboard:_,isModal:B,rowCount:N,columnCount:M,rowIndex:o,columnIndex:a,layoutOrder:K})),[L,null==_?void 0:_.innerTabStops,N,M,o,a,K]),ne=b.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=b.useMemo((()=>hm({column:x,histogram:I,cell:ne,showGray:P})),[null==ne?void 0:ne.qState,I,V]),ae=b.useCallback((e=>{e.preventDefault()}),[S]),ie=b.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:E,cell:ne,textAlign:w})),[E,ne,w]);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"===E,pe={display:"flex",alignItems:"center",flexGrow:1,paddingLeft:de?8:S?0:void 0,paddingRight:S?0:de?8:0,justifyContent:ie,textAlign:ie},fe=0===r,he=re&&y,me=!S&&re&&!y,ge=!S&&T,be=S||!T,ve=function(e){let{translator:t,label:n,qState:r,isSelected:o,currentIndex:a,maxIndex:i,showSearch:l}=e;const s=fg[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:F,label:se,qState:ne.qState,currentIndex:Q.currentIndex,maxIndex:Q.max,showSearch:$}),ye=!de&&"right"===ie||de&&"left"===ie;return v.createElement(zm,{className:im.barContainer,checkboxes:S,style:J,styles:H,isGridCol:le,isGridMode:"grid"===G,dense:V,direction:E,sizes:j,frequencyMode:D,freqHitsValue:ye,contentFontStyle:W,"data-testid":"listbox.item"},v.createElement(ng,{role:"row","aria-label":ve,"aria-selected":re,"aria-setsize":Q.max,"aria-rowindex":Q.currentIndex,ref:ee,container:!0,dataLayout:G,cellPaddingRight:be,layoutOrder:K,itemPadding:Z,gap:0,className:Im(["value",...oe]),classes:{root:im.fieldRoot},onClick:u,onMouseDown:d,onMouseUp:p,onMouseEnter:f,onKeyDown:te,onTouchStart:h,onTouchEnd:m,onContextMenu:ae,tabIndex:fe&&_.innerTabStops?0:-1,"data-n":null==ne?void 0:ne.qElemNumber,direction:E,fillHeight:U},(null==ne?void 0:ne.qFrequency)&&v.createElement(Ym,{qFrequency:null==ne?void 0:ne.qFrequency,histogram:I,checkboxes:S,isSelected:re,frequencyMax:O}),v.createElement(Kp,{item:!0,style:pe,className:Im([im.cell,im.selectedCell]),title:"".concat(se)},ce?v.createElement(Jm,{onChange:s,labels:ce,checkboxes:S,dense:V,showGray:P,qElemNumber:ne.qElemNumber,isSelected:re,cell:ne,isGridCol:le,isSingleSelect:R,valueTextAlign:ie,styles:H}):v.createElement(Qm,{onChange:s,label:se,qElemNumber:ne.qElemNumber,isSelected:re,dense:V,cell:ne,isGridCol:le,showGray:P,isSingleSelect:R,checkboxes:S,valueTextAlign:ie,styles:H})),C&&v.createElement(eg,{cell:ne,checkboxes:S,dense:V,showGray:P}),ge&&v.createElement(Kp,{item:!0,className:im.icon},he&&v.createElement(Zh,{style:ue,size:"small"}),me&&v.createElement(dm,{style:ue,size:"small"}))))}var mg=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function gg(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||mg(r)&&mg(o)))return!1;var r,o;return!0}function bg(e,t){var n;void 0===t&&(t=gg);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 vg="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function yg(e){cancelAnimationFrame(e.id)}function xg(e,t){var n=vg();var r={id:requestAnimationFrame((function o(){vg()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var Sg=-1;function wg(e){if(void 0===e&&(e=!1),-1===Sg||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),Sg=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Sg}var Eg=null;function kg(e){if(void 0===e&&(e=!1),null===Eg||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?Eg="positive-descending":(t.scrollLeft=1,Eg=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),Eg}return Eg}var Cg=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function Rg(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,ns(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:ns(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=bg((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=bg((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=bg((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(kg()){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&&yg(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=xg(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}Hl(t,e),t.getDerivedStateFromProps=function(e,t){return Lg(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,b=wg();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 v=i(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?b:0,x=v>d?b: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(kg()){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&&yg(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?Cg:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,v=e.style,y=e.useIsScrolling,x=e.width,S=this.state.isScrolling,w=this._getHorizontalRangeToRender(),E=w[0],k=w[1],C=this._getVerticalRangeToRender(),R=C[0],L=C[1],O=[];if(r>0&&g)for(var I=R;I<=L;I++)for(var _=E;_<=k;_++)O.push(b.createElement(t,{columnIndex:_,data:d,isScrolling:y?S:void 0,key:f({columnIndex:_,data:d,rowIndex:I}),rowIndex:I,style:this._getItemStyle(I,_)}));var P=i(this.props,this._instanceProps),T=l(this.props,this._instanceProps);return b.createElement(h||m||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:it({position:"relative",height:a,width:x,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},b.createElement(c||u||"div",{children:O,ref:s,style:{height:P,pointerEvents:S?"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,b=m.scrollLeft,v=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(b,v,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}(b.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var Lg=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},Og=function(e,t){return e};function Ig(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,ns(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:ns(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=bg((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=bg((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=bg((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(kg()){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&&yg(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=xg(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}Hl(t,e),t.getDerivedStateFromProps=function(e,t){return _g(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?wg():0:s.scrollHeight>s.clientHeight?wg():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(kg()){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&&yg(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?Og:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S="horizontal"===o||"horizontal"===f,w=S?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),k=E[0],C=E[1],R=[];if(c>0)for(var L=k;L<=C;L++)R.push(b.createElement(t,{data:u,key:p(L,u),index:L,isScrolling:v?x:void 0,style:this._getItemStyle(L)}));var O=r(this.props,this._instanceProps);return b.createElement(h||m||"div",{className:n,onScroll:w,ref:this._outerRefSetter,style:it({position:"relative",height:a,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},b.createElement(l||s||"div",{children:R,ref:i,style:{height:S?"100%":O,pointerEvents:x?"none":void 0,width:S?O:"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}(b.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var _g=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},Pg=Rg({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}}),Tg=Ig({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 Mg="#BBB",Ng="#f1f1f1",qg={styledScrollbars:"".concat("ListBox","-styledScrollbars")};const Dg=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStopIndex)||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex,Ag=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStartIndex)||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex,zg=(e,t,n,r)=>e===t*n+r+n;function jg(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=Dg(t,c),d=c?r.column:r.row,p=(c?o:a)>=d,f=zg(l,u,c?a:o,s),h=!!s&&Ag(t,c),m=p&&!f&&u>=d-1||h||i.state.show;i.set(m)}const{StyledFixedSizeList:Fg,StyledFixedSizeGrid:$g}=function(){const e=e=>({scrollbarColor:"".concat(Mg," ").concat(Ng),overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:Ng},"&::-webkit-scrollbar-thumb":{backgroundColor:Mg,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:gr(Tg,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(qg.styledScrollbars)]:e(n)}})),StyledFixedSizeGrid:gr(Pg,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(qg.styledScrollbars)]:e(n)}}))}}();const Bg=(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)},Wg=e=>{const t=b.useMemo((()=>"text"in e?e:{}),[e]);return b.useMemo((()=>Bg(t.text,t.font||"12px Source Sans Pro")),[t.text,t.font])};function Hg(e){if(!e)return"";const t="number"==typeof e?e:e.qListObject.qDimensionInfo.qApprMaxGlyphCount;return Array(t).fill("M").join("")}function Ug(e){let{isGridMode:t,dense:n}=e;let r=n?Lm:t?Cm:Rm;return t&&(r+=Om),r}function Vg(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)||{},b="".concat(m," ").concat(g),v=Wg({text:Hg(t),font:b}),y=Wg({text:Hg(5),font:b}),x=Wg({text:Hg(8),font:b}),S=i?y:0,w=l?Em:0;let E=wm+S+w;!l&&E>=ym&&(E+=Em);let k,C,R,L,O=v+18+S+w;!l&&O>=ym&&(O+=Em),O=Math.min(Sm,Math.max(O,E));const I=Ug({isGridMode:"grid"===h,dense:f}),_=null!=r?r:8*I;if(u){let e=n;"row"===u?(k={overflowX:"hidden"},e+=2*Om,({rowCount:L,columnWidth:R,columnCount:C}=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-xm;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}))):(k={overflowY:"hidden"},({rowCount:L,columnWidth:R,columnCount:C}=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})))}C=("singleColumn"===h?1:C)||1,L=("singleColumn"===h?a:L)||o;const P=c.dense?838e3:577e3;L=Math.min(L,P);const T=Math.floor(3355e4/R);C=Math.min(C,T)||1;const M=L*C,N=Math.min(o,M);return{columnCount:C,columnWidth:R,rowCount:L,overflowStyling:k,itemHeight:I,listHeight:_,listWidth:n,scrollBarWidth:xm,count:a,listCount:N,maxCount:{row:P,column:T},itemPadding:Om,textWidth:v,freqMinWidth:y,freqMaxWidth:x}}const Gg=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[Kg,Zg]=Vs({});function Xg(e){const t="".concat(e.id),[n]=Kg();return{setStoreValue:(e,r)=>n.set("".concat(t,"/").concat(e),r),getStoreValue:e=>n.get("".concat(t,"/").concat(e))}}const Jg=zl(vc,{shouldForwardProp:e=>!["width","dense"].includes(e)})((e=>{let{width:t,dense:n}=e;return c({minWidth:"".concat(t,"px"),textAlign:"center",fontSize:"".concat(n?"12px":"14px"),whiteSpace:"normal"},n&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:t})}));function Qg(e){let{width:t,text:n,dense:r,tooltip:o}=e;const{translator:a}=b.useContext(Ws);return v.createElement(qh,{title:o?a.get(n):""},v.createElement(Jg,{width:t,dense:r,component:"div",variant:"body1",py:"12px"},a.get(n)))}var Yg,eb,tb={},nb={},rb=r(tc);function ob(){return Yg||(Yg=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=rb}(nb)),nb}function ab(){if(eb)return tb;eb=1;var e=Bi();Object.defineProperty(tb,"__esModule",{value:!0}),tb.default=void 0;var t=e(ob()),n=_r();return tb.default=(0,t.default)((0,n.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"),tb}var ib=n(ab());const lb=zl(lc)((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}})),sb=zl("div")((()=>({paddingLeft:"6px",flexGrow:1}))),cb=zl("div")((e=>{let{dense:t}=e;return{display:"flex",alignItems:"".concat(t?"center":"flex-start")}})),ub=zl(ib)((()=>({fontSize:"14px"})));function db(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(lb,{left:l,style:{maxWidth:i}},v.createElement(sb,null,v.createElement(Qg,{text:t,dense:r,width:s,tooltip:c})),v.createElement(cb,{dense:r},a&&v.createElement(pc,{"aria-label":"close",onClick:()=>n()},v.createElement(ub,null))))}const pb=(e,t)=>e.qListObject.qDimensionInfo.qCardinal-t;const fb=80;function hb(e){let{itemWidth:t,layout:n,frequencyMode:r}=e;const o=t>fb,{frequencyEnabled:a=!1}=(null==n?void 0:n.qListObject)||{},i=!["N",void 0].includes(r);return!(!o||!i&&!a)}const mb=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,"))")},gb=(e,t)=>{const n=(e=>"fetch"===(null==e?void 0:e.frequencyMax))(t),[r,o]=b.useState(),[a,i]=b.useState(n);return b.useEffect((()=>{if(!n)return;(async()=>{const n=await(async(e,t)=>{const n=e.qListObject.qDimensionInfo,r=n.qGroupFieldDefs[n.qGroupPos],o=mb(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 bb=["isLoadingData"],vb=100,yb=zl("div")((()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}})));function xb(e){var t,n;let{model:r,app:o,constraints:a,layout:i,selections:s,selectionState:d,direction:p,checkboxes:f,height:h,width:m,frequencyMode:g,update:y,fetchStart:x,postProcessPages:S,calculatePagesHeight:w=!1,keyboard:E={},showGray:k=!0,scrollState:C,keyScroll:R={state:{},reset:()=>{}},currentScrollIndex:L={set:()=>{}},renderedCallback:O,onCtrlF:I,showSearch:_,isModal:P,styles:T}=e;const{translator:M}=b.useContext(Ws),[N,q]=b.useState(!1),D=!(!i||!i.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:A=f,histogram:z}=null!=i?i:{},j=b.useRef(null),F=b.useRef({queue:[],validPages:!1,dataOffset:0}),$=b.useRef({pages:[]}),{frequencyMax:B,awaitingFrequencyMax:W}=gb(o,i),H=function(e){let{local:t,loaderRef:n,model:r,fetchStart:o,scrollTimeout:a,postProcessPages:i,listData:l}=e;const[s,c]=b.useState(!1),[u,d]=b.useState([]);let[p]=b.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:x,scrollTimeout:0,postProcessPages:S,listData:$}),{isLoadingData:U}=H,V=u(H,bb),{getStoreValue:G,setStoreValue:K}=Xg(r),Z=b.useCallback(V.loadMoreItems,[i]),[X,J]=b.useState({show:!1,dismissed:!1}),[Q,Y]=b.useState([]);null!=V&&V.pages&&d.update({setPages:Y,pages:V.pages,isSingleSelect:D,layout:i});const ee=null==i?void 0:i.qListObject.qDimensionInfo.qCardinal;(null!=V&&V.pages.length&&!W||0===ee)&&(null==O||O());const te=b.useCallback((e=>{if(null==Q||!Q.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=Q.filter((e=>t(e)))[0];return n&&t(n)}),[i,Q]),{interactionEvents:ne,select:re}=cm({selectionState:d,selections:s,checkboxes:A,doc:document,loaderRef:j}),{layoutOptions:oe={}}=i||{};let ae=!0;oe.dataLayout&&(ae="singleColumn"===oe.dataLayout||"row"===(null==oe?void 0:oe.layoutOrder));const ie="grid"===(null==oe?void 0:oe.dataLayout),le=e=>{const t=c({},ae?{rowIndex:e}:{columnIndex:e}),n=ie?t:e;j.current._listRef.scrollToItem(n)},se=()=>{if(F.current.queue=[],F.current.validPages=!1,j.current){j.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===R.state.scrollPosition;if(i&&i.qSelectionInfo.qInSelections||e)return void(e&&R.reset());F.current.dataOffset=0,le(0)}};y&&y.call(null,se),b.useEffect((()=>{C&&!N&&j.current&&(j.current._listRef.scrollToItem(C.initScrollPos),q(!0))}),[j.current]),b.useEffect((()=>{se()}),[i,F.current.dataOffset]);let ce=vb;const ue="grid"!==oe.dataLayout,de=null==i||null===(t=i.qListObject.qSize)||void 0===t?void 0:t.qcy,pe=function(e){let{pages:t,minimumBatchSize:n,count:r,calculatePagesHeight:o=!1}=e;return(null!=t&&t.length&&o?Gg({pages:t,minimumBatchSize:n,count:r}):r)||0}({pages:Q,minimumBatchSize:ce,count:de,calculatePagesHeight:w});let fe=hb({itemWidth:m,layout:i,frequencyMode:g});const he=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":"-"}(Q),me=Vg({layout:i,width:m,height:h,listCount:pe,count:de,freqIsAllowed:fe,checkboxes:A,styles:T});me.columnWidth&&(fe=hb({itemWidth:me.columnWidth,layout:i,frequencyMode:g}));const{listCount:ge}=me;K("listCount",ge);const be=G("inputText"),ve=function(e){let{layout:t,searchInputText:n,listCount:r}=e;const{translator:o}=b.useContext(Ws),a=[];if(null!=n&&n.length){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}(r),t=o.get(e,[r]);a.push(t)}const i=function(e){var t;let{layout:n,translatorDynamic:r}=e;const{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"}return r.get(i,[a])}({layout:t,translatorDynamic:o});a.push(i);const l=a.filter((e=>!(null==e||!e.length))).join(". ");return l}({layout:i,searchInputText:be,listCount:ge}),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=pb(a,o.listCount),t=a.qListObject.qDimensionInfo.qCardinal,l=!0}return{scrollIndex:t,offset:s,triggerRerender:l}}({position:e,isRow:ae,sizes:me,layout:i,offset:F.current.dataOffset});F.current.dataOffset=n,r&&d.triggerStateChanged(),le(t)};b.useEffect((()=>{const e=R.state;e.up?le(L.state.start-e.up):e.down?le(L.state.stop+e.down):e.scrollPosition&&ye(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&R.reset()}),[R.state.up,R.state.down,R.state.scrollPosition]);const{textAlign:xe}=(null==i?void 0:i.qListObject.qDimensionInfo)||{},[Se,we]=b.useState({first:!1,last:!1}),{List:Ee,Grid:ke}=function(e){let{layout:t,width:n,checkboxes:r,local:o,isVertical:a,pages:i,selectionState:s,interactionEvents:u,deducedFrequencyMode:d,histogram:p,isSingleSelect:f,select:h,selectAll:m,onCtrlF:g,textAlign:b,selections:y,keyboard:x,showGray:S,scrollState:w,direction:E,sizes:k,listCount:C,overflowDisclaimer:R,setScrollPosition:L,focusListItems:O,setCurrentScrollIndex:I,constraints:_,frequencyMax:P,freqIsAllowed:T,translator:M,showSearch:N,isModal:q,styles:D}=e;const{layoutOptions:A={}}=t||{},{columnWidth:z,listHeight:j,itemHeight:F,rowCount:$,columnCount:B}=k||{},W=("grid"===A.dataLayout?z:n)>ym,H={direction:"rtl"===E?"rtl":"ltr",useIsScrolling:!0,className:qg.styledScrollbars},U=null==t?void 0:t.qListObject.qDimensionInfo.qLocked,V=j<=F,G=c(c({isLocked:U,column:!a,pages:i},U||s.selectDisabled()?{}:u),{},{checkboxes:r,layoutOptions:A,deducedFrequencyMode:d,freqIsAllowed:T,isSingleSelect:f,textAlign:b,sizes:k,actions:{select:h,confirm:()=>null==y?void 0:y.confirm.call(y),cancel:()=>null==y?void 0:y.cancel.call(y),setScrollPosition:L,selectAll:m,onCtrlF:g},frequencyMax:P,histogram:p,keyboard:x,showGray:S,showTick:W,dataOffset:o.current.dataOffset,focusListItems:O,direction:E,translator:M,showSearch:N,isModal:q,styles:D,fillHeight:V});return{List:e=>{let{onItemsRendered:r,ref:a}=e;return o.current.listRef=a,v.createElement(Fg,l({},H,{dataTestid:"fixed-size-list",scrollDisabled:null==_?void 0:_.active,height:j,width:n,itemCount:C,itemData:c(c({},G),{},{listCount:C}),itemSize:F,onItemsRendered:e=>{var n;I({start:e.visibleStartIndex,stop:e.visibleStopIndex}),w&&w.setScrollPos(e.visibleStopIndex),jg({renderProps:e,layoutOptions:A,maxCount:k.maxCount,columnCount:B,rowCount:$,overflowDisclaimer:R,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(c({},e))},ref:a}),hg)},Grid:e=>{let{onItemsRendered:r,ref:a}=e;const{overflowStyling:i,scrollBarWidth:s}=k,{layoutOrder:u}=A||{},d=Math.min(j,$*F+s);return o.current.listRef=a,v.createElement($g,l({},H,{dataTestid:"fixed-size-grid",scrollDisabled:null==_?void 0:_.active,height:d,width:n,columnCount:B,columnWidth:z,rowCount:$,rowHeight:F,style:c({},i),itemData:c(c({},G),{},{column:void 0,columnCount:B,rowCount:$}),onItemsRendered:e=>{var n;const a="row"===u;I({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:w,layoutOrder:u,rowCount:$,columnCount:B});jg({renderProps:e,layoutOptions:A,maxCount:k.maxCount,columnCount:B,rowCount:$,overflowDisclaimer:R,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:a}),hg)}}}({direction:p,layout:i,width:m,checkboxes:A,deducedFrequencyMode:he,histogram:z,keyboard:E,showGray:k,interactionEvents:ne,select:re,selectAll:()=>{d.clearItemStates(!1),r.selectListObjectAll("/qListObjectDef")},onCtrlF:I,textAlign:xe,isVertical:ue,pages:Q,selectionState:d,isSingleSelect:D,selections:s,scrollState:C,local:F,sizes:me,listCount:ge,overflowDisclaimer:{state:X,set:e=>J((t=>c(c({},t),{},{show:e})))},setScrollPosition:ye,focusListItems:{first:Se.first,setFirst:e=>we((t=>c(c({},t),{},{first:e}))),last:Se.last,setLast:e=>we((t=>c(c({},t),{},{last:e})))},setCurrentScrollIndex:L.set,constraints:a,frequencyMax:B,freqIsAllowed:fe,translator:M,showSearch:_,isModal:P,styles:T}),{columnWidth:Ce,listHeight:Re,itemHeight:Le}=me||{};return ue||(ce=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:Ce,listHeight:Re,itemHeight:Le})),v.createElement(yb,null,v.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},ve),!ge&&ee>0&&v.createElement(Qg,{width:m,text:"Listbox.NoMatchesForYourTerms"}),v.createElement(em,{isItemLoaded:te,itemCount:ge||1,loadMoreItems:Z.with({minimumBatchSize:ce}),threshold:0,minimumBatchSize:ce,ref:j,role:"grid"},ue?Ee:ke),X.show&&!X.dismissed&&v.createElement(db,{text:"Listbox.ItemsOverflow",dismiss:()=>J((e=>c(c({},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==oe?void 0:oe.dense}))}const Sb=e=>c(c({},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"}}]}),wb=e=>c(c({},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"}}]}),Eb=e=>c(c({},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"}}]}),kb=e=>c(c({},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 Cb=e=>{let{layout:t,model:n,translator:r,selectionState:o,isDirectQuery:a=!1,selections:i}=e;if(t.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];const l="/qListObjectDef",s=()=>{i.isActive()||i.begin(l)};return[{key:"selectAll",type:"menu-icon-button",label:r.get("Selection.SelectAll"),getSvgIconShape:Sb,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{s(),o.clearItemStates(!1),n.selectListObjectAll(l)}},{key:"selectPossible",type:"menu-icon-button",label:r.get("Selection.SelectPossible"),getSvgIconShape:Eb,enabled:()=>["qOption"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{s(),o.clearItemStates(!1),n.selectListObjectPossible(l)}},!a&&{key:"selectAlternative",type:"menu-icon-button",label:r.get("Selection.SelectAlternative"),getSvgIconShape:wb,enabled:()=>["qAlternative"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{s(),o.clearItemStates(!1),n.selectListObjectAlternative(l)}},!a&&{key:"selectExcluded",type:"menu-icon-button",label:r.get("Selection.SelectExcluded"),getSvgIconShape:kb,enabled:()=>["qAlternative","qExcluded"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{s(),o.clearItemStates(!1),n.selectListObjectExcluded(l)}}].filter(Boolean)};const Rb=e=>c(c({},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 Lb(e){const t=El(),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 Ob={className:"njs-cell-action"},Ib=v.forwardRef(((e,t)=>{let{ariaExpanded:n=!1,item:r,addAnchor:o=!1}=e;const a=El(),{hidden:i,disabled:l,style:s,hasSvgIconShape:c}=Lb(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(pc,{ref:o?null:t,title:r.label,onClick:r.action,onKeyDown:p,onKeyUp:f,disabled:l,style:s,className:[Ob.className,h].join(" "),size:"large",disableRipple:!0,"aria-expanded":n,"aria-controls":"moreMenuList","data-testid":h},c&&Gh(r.getSvgIconShape()),o&&v.createElement("div",{ref:t,style:{bottom:-u,right:0,position:"absolute",width:"100%",height:0}}))})),_b=e=>c(c({},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"}}]});var Pb=e=>Gh(_b(e));const Tb=e=>c(c({},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 Mb=e=>Gh(Tb(e));const Nb="njs-action-toolbar-more",qb={icon:"".concat("More","-icon")},Db=zl(Xf)((e=>{let{theme:t}=e;return{pointerEvents:"none",["& .".concat(qb.icon," *")]:{color:t.palette.text.primary}}}));function Ab(e){let{item:t,autoFocus:n,onActionClick:r=(()=>{})}=e;const{hidden:o,disabled:a,hasSvgIconShape:i}=Lb(t);return o?null:v.createElement(th,{autoFocus:n,title:t.label,onClick:()=>{t.action(),r()},disabled:a,tabindex:"0"},i&&v.createElement(Tf,{className:qb.icon},Gh(t.getSvgIconShape())),v.createElement(vc,{noWrap:!0},t.label))}const zb=v.forwardRef(((e,t)=>{let{actions:n=[],show:r=!0,alignTo:o,popoverProps:a={},popoverPaperStyle:i={},onCloseOrActionClick:s=(()=>{}),disablePortal:u=!0}=e;const d=n.length>0,p=n.findIndex((e=>!e.disabled));return d&&v.createElement(Db,l({},a,{onClose:s,ref:t,open:r,anchorEl:o.current,getContentAnchorEl:u?null:void 0,container:u?o.current:void 0,disablePortal:u,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:Nb},paper:{style:c({pointerEvents:"auto",maxWidth:"250px"},i)}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}),v.createElement(jf,{id:"moreMenuList"},n.map(((e,t)=>v.createElement(Ab,{key:t,item:e,autoFocus:t===p,onActionClick:s})))))})),jb=e=>{const t=e.closest("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");return Array.from(n).indexOf(e)},Fb=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 $b="ActionsToolbar",Bb={item:"".concat($b,"-item"),itemSpacing:"".concat($b,"-itemSpacing")},Wb=zl(Xf)((e=>{let{theme:t}=e;return{["& .".concat(Bb.itemSpacing)]:{padding:t.spacing(0,.25)}}})),Hb={className:"njs-action-toolbar-popover"},Ub=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(Kp,{item:!0,container:!0,gap:0,flexDirection:i?"row-reverse":"row",wrap:"nowrap",className:n},o.map(((e,n)=>v.createElement(Kp,{item:!0,key:e.key,className:"".concat(Bb.itemSpacing," ").concat(Bb.item)},v.createElement(Ib,{ariaExpanded:r,key:e.key,item:e,ref:0===n?t:null,addAnchor:a}))))):null})),Vb={pointerEvents:"none"},Gb={vertical:"bottom",horizontal:"right"};function Kb(e){var t,n;let{show:r=!0,actions:o=[],maxItems:a=3,selections:i={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},extraItems:l,more:s={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{},disablePortal:!0},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}=b.useContext(Ws);return[{key:"clear",type:"icon-button",label:i.get("Selection.Clear"),enabled:()=>t.canClear(n),action:()=>t.clear(),getSvgIconShape:Tb},{key:"cancel",type:"icon-button",label:i.get("Selection.Cancel"),enabled:()=>t.canCancel(n),action:()=>{o(),t.cancel()},keyboardAction:()=>{a(),o(),t.cancel()},getSvgIconShape:_b},{key:"confirm",type:"icon-button",label:i.get("Selection.Confirm"),enabled:()=>t.canConfirm(n),action:()=>{r(),t.confirm()},keyboardAction:()=>{a(),r(),t.confirm()},getSvgIconShape:um}]}(c(c({},i),{},{layout:m})),{translator:y,keyboardNavigation:x}=b.useContext(Ws),[S,w]=b.useState(!1),E={vertical:12,horizontal:(null!==(t=null===(n=u.anchorEl)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)-7},k=b.useRef(),C=b.useRef(),R=El(),L=b.useMemo((()=>({margin:R.spacing(.5,0)}))),O=e=>{const t=k.current||p;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]},I=b.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 rg.ARROW_LEFT:case rg.ARROW_DOWN:case rg.ARROW_RIGHT:case rg.ARROW_UP:if(i.classList.contains("njs-cell-action")){const e=jb(i);let t=[rg.ARROW_LEFT,rg.ARROW_DOWN].includes(s);t=a?!t:t,Fb(t?e-1:e+1)}e.stopPropagation(),e.preventDefault();break;case rg.SPACE:e.preventDefault();break;case rg.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 rg.ESCAPE:o&&(o.onCancel(),o.api.cancel(),e.preventDefault(),e.stopPropagation())}}}({keyboardNavigation:x,focusHandler:d,getEnabledButton:O,selections:i,isRtl:f})),[x,d,O,i,f]);if(b.useEffect((()=>()=>{w(!1)}),[u.show,r,i.show]),b.useEffect((()=>{if(!d)return;d.on("focus_toolbar_first",(()=>{const e=O(!1);null==e||e.focus()})),d.on("focus_toolbar_last",(()=>{const e=O(!0);null==e||e.focus()}))}),[]),h)return;let _=s.enabled,P=s.actions;const T=s.alignTo||C,M=o.filter((e=>!e.hidden));if(M.length>a){const e=M.splice(-(M.length-a)-1);_=!0,P=[...e,...s.actions]}if(!i.show&&0===M.length&&!_)return null;const N={key:"more",label:y.get("Menu.More"),getSvgIconShape:Rb,hidden:!1,active:S,enabled:()=>_,action:()=>w(!S)},q=M.length>0,D=P.length>0,A=q&&i.show||D&&i.show,z=v.createElement(Kp,{ref:k,onKeyDown:I,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:f?"row-reverse":"row"}},(null==l?void 0:l.length)&&v.createElement(Ub,{className:"actions-toolbar-extra-actions",actions:l,isRtl:f}),q&&v.createElement(Ub,{actions:M}),D&&v.createElement(Ub,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:C,ariaExpanded:S,actions:[N],addAnchor:!0}),A&&v.createElement(Kp,{item:!0,className:Bb.itemSpacing,style:L},v.createElement(Pp,{orientation:"vertical"})),i.show&&v.createElement(Ub,{className:"actions-toolbar-default-actions",actions:g,isRtl:f}),S&&v.createElement(zb,{show:S,actions:P,alignTo:T,popoverProps:s.popoverProps,popoverPaperStyle:s.popoverPaperStyle,onCloseOrActionClick:()=>{w(!1)},disablePortal:s.disablePortal}));return u.show?v.createElement(Wb,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:u.show,anchorEl:u.anchorEl,anchorOrigin:E,transformOrigin:Gb,hideBackdrop:!0,style:Vb,onMouseDown:e=>{e.stopPropagation()},slotProps:{paper:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:Hb.className,style:{pointerEvents:"auto",padding:R.spacing(.5,.25)}}}},z):r&&z}var Zb=e=>Gh((e=>c(c({},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 Xb="/qListObjectDef",Jb=e=>null==e?void 0:e.substring(0,64e3),Qb=zl(uh,{shouldForwardProp:e=>!["styles","dense","isRtl"].includes(e)})((e=>{let{styles:t,dense:n,isRtl:r}=e,o={};return n&&(o={fontSize:12,"& input":{paddingTop:"5px",paddingBottom:"5px",color:t.search.color,textAlign:r?"right":"left"}}),c({display:"flex",border:"none",fontSize:14,borderRadius:0,backgroundColor:t.search.backgroundColor,backdropFilter:t.background.backgroundImage?t.search.backdropFilter:void 0,paddingLeft:0,paddingRight:0,flexDirection:r?"row-reverse":"row","& fieldset":{borderColor:"".concat(t.search.borderColor),borderWidth:"1px 0 1px 0",borderRadius:0},"&.Mui-focused fieldset":{borderColor:"".concat(t.search.highlightBorderColor," !important")},"& .MuiInputBase-root":c({},t.search),"& *":{color:t.search.color},"& input":{color:t.search.color,textAlign:r?"right":"left"}},o)})),Yb=zl(pc)((()=>({border:0,padding:"8px",cursor:"pointer",lineHeight:"12px","&:hover":{backgroundColor:"transparent"},":focus-visible":{borderRadius:"4px",boxShadow:"inset 0 0 0 2px rgb(2, 117, 217)"}})));var ev=b.forwardRef((function(e,t){let{popoverOpen:n,selections:r,selectionState:o,model:a,keyboard:i,dense:l=!1,visible:s=!0,autoFocus:c=!0,beginSelectionOnFocus:u=!0,wildCardSearch:d=!1,searchEnabled:p,direction:f,hide:h,styles:m}=e;const{translator:g}=b.useContext(Ws),[y,x]=b.useState(""),[S,w]=b.useState(!1),E=b.useRef(),k=b.useRef(),C=g.get("Listbox.Clear.Search"),{getStoreValue:R,setStoreValue:L}=Xg(a),O="rtl"===f,I=async()=>{try{await a.abortListObjectSearch(Xb)}finally{x("")}};b.useEffect((()=>s?()=>I():()=>{}),[s]),b.useEffect((()=>(r.on("deactivated",I),()=>{r.removeListener&&r.removeListener("deactivated",I)})),[]),b.useEffect((()=>{if(S&&E.current){const e=y.length-1;E.current.setSelectionRange(e,e),w(!1)}}),[S,E.current]),b.useEffect((()=>{L("inputText",y)}),[y]);const _=async()=>{let e;const t=Jb(y),n=await a.searchListObjectFor(Xb,t);return o.selectDisabled()?n:(n&&t.length&&R("listCount")>0&&(e=a.acceptListObjectSearch(Xb,!0),r.selectionsMade=!0,o.clearItemStates(!1),x("")),e)},P=()=>{var e;null===(e=E.current)||void 0===e||e.focus()},T=()=>{I(),P()};return b.useImperativeHandle(t,(()=>({focus(){P()}}))),s&&!1!==p?v.createElement(Qb,{styles:m,dense:l,isRtl:O,startAdornment:v.createElement(uf,{position:"start",sx:{marginLeft:l?"8px":"".concat(mm,"px")}},v.createElement(Zb,{size:l?"small":"normal"})),endAdornment:v.createElement(uf,{position:"end",sx:{marginLeft:0}},""!==y&&v.createElement(Yb,{tabIndex:0,ref:k,title:C,"aria-label":C,onClick:T,onKeyDown:e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.key){case"Enter":T();break;case"Tab":e.shiftKey?P():cg(t);break;default:return}e.preventDefault(),e.stopPropagation()}},v.createElement(Pb,{size:l?"small":"normal"}))),className:"search",inputRef:E,size:"small",fullWidth:!0,placeholder:g.get("Listbox.Search"),value:y,onFocus:()=>{d&&(x("**"),w(!0)),u&&!o.selectDisabled()&&!r.isModal()&&r.begin("/qListObjectDef")},onChange:async e=>{const t=Jb(e.target.value);return x(t),t.length?a.searchListObjectFor(Xb,t):I()},onKeyDown:async e=>{const{currentTarget:t}=e,o=t.closest(".listbox-container");switch(e.key){case"Enter":_();break;case"Escape":if(cg(o),r.cancel(),n)return;break;case"Tab":e.shiftKey?ug(o)||i.focusSelection():k.current?k.current.focus():cg(o);break;case"f":case"F":if(!e.ctrlKey&&!e.metaKey)return;h&&(h(),cg(o));break;default:return}e.preventDefault(),e.stopPropagation()},autoFocus:c,inputProps:{tabIndex:i.innerTabStops?0:-1,"data-testid":"search-input-field","aria-label":g.get("Listbox.Search.ScreenReaderInstructions")}}):null}));function tv(e){if(!e.session)return[];const{selectionStore:t}=b.useContext(Ws),[n]=t.useAppSelectionsStore(),r=e?e.id:null;let o=n.get(r);return b.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 nv(e){return Object.keys(R.prototype).forEach((t=>{e[t]=R.prototype[t]})),R.init(e),e}const rv=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 nv(l),l},ov=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 av(e,t,n,r){const o=Array.isArray(n)?n:[n],[a]=tv(e),[i]=Wh(t),{appModalStore:l}=b.useContext(Ws).selectionStore,s=l.get(e.id),[c,u]=b.useState();return b.useEffect((()=>{a&&t&&!c&&u(rv({appSelections:a,appModal:s,model:t}))}),[a,t]),b.useEffect((()=>{if(!c)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=ov({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]),b.useEffect((()=>{c&&c.setLayout(i)}),[c,i]),[c]}function iv(){const e=c(c({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=rm(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[c(c({},n),{},{qState:r}),...t.slice(1)]}));return c(c({},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 lv=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 sv(e){const t=(null==e?void 0:e.qListObject.qDimensionInfo.qStateCounts)||{};return lv(t,"qSelected",0)+lv(t,"qSelectedExcluded",0)+lv(t,"qLocked",0)+lv(t,"qLockedExcluded",0)>0}function cv(e){return null!==e&&"object"==typeof e&&"r"in e&&"number"==typeof e.r&&"g"in e&&"number"==typeof e.g&&"b"in e&&"number"==typeof e.b&&("number"==typeof e.a||void 0===e.a)}function uv(e){if("object"==typeof e&&cv(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,n=0,r=0;if("string"==typeof e){let o;(o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(o[1],10),n=parseInt(o[2],10),r=parseInt(o[3],10)):(o=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(o[1],16),n=parseInt(o[2],16),r=parseInt(o[3],16)):(o=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(o[1]+o[1],16),n=parseInt(o[2]+o[2],16),r=parseInt(o[3]+o[3],16))}return(t<<16)+(n<<8)+r}const dv={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:0,g:0,b:0,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}};function pv(...e){const t={type:"qcm-color",r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let n=0,r=0,o=0,a=1;if(null!==(i=e[0])&&"object"==typeof i&&"type"in i&&"qcm-color"===i.type)({r:n,g:r,b:o,a:a}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(cv(e[0]))({r:n,g:r,b:o}=e[0]),"a"in e[0]&&({a:a}=e[0]);else if(e.length<3)if("string"==typeof e[0]){const i=e[0];let l;if(l=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(i))n=parseInt(l[1],10),r=parseInt(l[2],10),o=parseInt(l[3],10);else if(l=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(i))n=parseInt(l[1],10),r=parseInt(l[2],10),o=parseInt(l[3],10),a=parseFloat(l[4]);else if(l=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(i))a=parseInt(l[1],10)/255,n=parseInt(l[2],10),r=parseInt(l[3],10),o=parseInt(l[4],10);else if(l=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(i))n=parseInt(l[1],16),r=parseInt(l[2],16),o=parseInt(l[3],16),a=1;else if(l=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(i))n=parseInt(l[1]+l[1],16),r=parseInt(l[2]+l[2],16),o=parseInt(l[3]+l[3],16),a=1;else if(l=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(i)){let e=parseFloat(l[1]),t=parseFloat(l[3]),i=parseFloat(l[5]);e%=360,t/=100,i/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,i=i<0?0:i>1?1:i;const s=i<=.5?2*i*t:(2-2*i)*t;let c=e/60;const u=s*(1-Math.abs(c%2-1));let d=[];switch(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]}const p=i-.5*s;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o),a=1}else if(l=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(i)){let e=parseFloat(l[1]),t=parseFloat(l[3]),i=parseFloat(l[5]);a=parseFloat(l[7]),e%=360,t/=100,i/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,i=i<0?0:i>1?1:i;const s=i<=.5?2*i*t:(2-2*i)*t;let c=e/60;const u=s*(1-Math.abs(c%2-1));let d=[];switch(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]}const p=i-.5*s;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o)}else if(l=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(i)){let e=parseFloat(l[1]),t=parseFloat(l[3]),i=parseFloat(l[5]);e%=360,t/=100,i/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,i=i<0?0:i>1?1:i;const s=i*t;let c=e/60;const u=s*(1-Math.abs(c%2-1));let d=[];switch(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]}const p=i-s;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o),a=1}else{const e=i.toLowerCase();if(function(e){return e in dv}(e)){const t=dv[e];({r:n,g:r,b:o}=t),a="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(a=(4278190080&e[0])>>>24,a/=255,n=(16711680&e[0])>>16,r=(65280&e[0])>>8,o=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(n=(16711680&e[0])>>16,r=(65280&e[0])>>8,o=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(n=e[0],r=e[1],o=e[2],a=4===e.length?e[3]:1):t.invalid=!0;var i;return Number.isNaN(+n+r+o+a)&&(t.invalid=!0),t.r=Math.floor(n),t.g=Math.floor(r),t.b=Math.floor(o),t.a=a,t}function fv(e){let t,n,r;if(cv(e))return t=e.r.toString(16),n=e.g.toString(16),r=e.b.toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${[t,n,r].join("")}`;const o="string"==typeof e?uv(e):e;return t=((16711680&o)>>16).toString(16),n=((65280&o)>>8).toString(16),r=(255&o).toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${t}${n}${r}`}function hv(e){let t,n,r=0;const o="string"==typeof e?pv(e):e,a=o.r/255,i=o.g/255,l=o.b/255,{a:s}=o,c=Math.max(a,i,l),u=Math.min(a,i,l),d=(c+u)/2;if(c===u)t=0,r=0;else{switch(n=c-u,t=d>.5?n/(2-c-u):n/(c+u),c){case a:r=(i-l)/n+(i<l?6:0);break;case i:r=(l-a)/n+2;break;case l:r=(a-i)/n+4}r/=6}return{h:360*r,s:100*t,l:100*d,a:s}}function mv(e){let t,n,r=0;const o="string"==typeof e?pv(e):e,a=o.r/255,i=o.g/255,l=o.b/255,s=Math.max(a,i,l),c=Math.min(a,i,l),u=s;if(s===c)t=0,r=0;else{switch(n=s-c,t=0===n?0:n/u,s){case a:r=(i-l)/n+(i<l?6:0);break;case i:r=(l-a)/n+2;break;case l:r=(a-i)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*u}}function gv(e){if(cv(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?uv(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function bv(e,t){return cv(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:bv(pv(e))}function vv(e){return cv(e)?1===e.a?gv(e):bv(e):vv(pv(e))}const yv=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function xv(e){return.2126*yv(e.r)+.7152*yv(e.g)+.0722*yv(e.b)}function Sv(...e){const t=pv(...e);return t.invalid||xv(t)<.4}function wv(...e){const t=pv(...e),n={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},r=()=>(n.spaces.hslaObject||(n.spaces.hslaObject=hv(n)),n.spaces.hslaObject),o=e=>{const t=r(),{h:n,s:o,l:a,a:i}=t;return`hsla(${n}, ${o}, ${Math.max(0,Math.min(a+e,100))}, ${i})`};return{get type(){return n.type},isInvalid:()=>n.invalid,get r(){return n.r},get g(){return n.g},get b(){return n.b},get a(){return n.a},getR:()=>n.r,getG:()=>n.g,getB:()=>n.b,getAlpha:()=>n.a,setAlpha:e=>{n.a=e,n.spaces={}},isEqualTo:e=>{let t;if("string"==typeof e)t=pv(e);else{if(e.type!==n.type)return!1;t=e}return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a},isDark:()=>Sv(n),getRGB:()=>(n.spaces.rgb||(n.spaces.rgb=gv(n)),n.spaces.rgb),getRGBA:()=>(n.spaces.rgba||(n.spaces.rgba=bv(n)),n.spaces.rgba),getString:()=>(n.spaces.string||(n.spaces.string=vv(n)),n.spaces.string),getHex:()=>(n.spaces.hex||(n.spaces.hex=fv(n)),n.spaces.hex),getHSL:()=>(n.spaces.hsl||(n.spaces.hsl=function(e){let t,n,r=0;const o="string"==typeof e?pv(e):e,a=o.r/255,i=o.g/255,l=o.b/255,s=Math.max(a,i,l),c=Math.min(a,i,l),u=(s+c)/2;if(s===c)t=0,r=0;else{switch(n=s-c,t=u>.5?n/(2-s-c):n/(s+c),s){case a:r=(i-l)/n+(i<l?6:0);break;case i:r=(l-a)/n+2;break;case l:r=(a-i)/n+4}r/=6}return`hsl(${360*r}, ${100*t}, ${100*u})`}(n)),n.spaces.hsl),getHSLA:()=>(n.spaces.hsla||(n.spaces.hsla=function(e){const{h:t,s:n,l:r,a:o}=hv(e);return`hsla(${t}, ${n}, ${r}, ${o})`}(n)),n.spaces.hsla),getHSLAObject:r,getShiftedHSLA:o,getHSV:()=>(n.spaces.hsv||(n.spaces.hsv=function(e){const{h:t,s:n,v:r}=mv(e);return`hsv(${t}, ${n}, ${r})`}(n)),n.spaces.hsv),getHSVObject:()=>(n.spaces.hsvObject||(n.spaces.hsvObject=mv(n)),n.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(n.r+(e.r-n.r)*t)}, ${Math.floor(n.g+(e.g-n.g)*t)}, ${Math.floor(n.b+(e.b-n.b)*t)}, ${Math.floor(n.a+(e.getAlpha()-n.a)*t)})`,getBrightenedColor:(e=1)=>wv(o(18*e)),getDarkenedColor:(e=1)=>wv(o(18*-e))}}function Ev(e,t){if(!e||!t)return;const n=xv(e),r=xv(t);return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}function kv(e,t){const n=wv("#FFFFFF"),r=wv(e),o=wv(t);if(r.isInvalid()||o.isInvalid()||r.getAlpha()<1||o.getAlpha()<1)return t;const a=Ev(n,r),i=Ev(o,r),l=a>i||a>4.5;return!l&&i>3?o.getHex():l?"#FFFFFF":"#000000"}var Cv,Rv;var Lv=function(){if(Rv)return Cv;Rv=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},a=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),a=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!a)return!1;for(r in n);return void 0===r||e.call(n,r)},i=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return Cv=function e(){var t,n,r,s,c,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=l(d,n),d!==(s=l(t,n))&&(h&&s&&(a(s)||(c=o(s)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&a(r)?r:{},i(d,{name:n,newValue:e(h,u,s)})):void 0!==s&&i(d,{name:n,newValue:s}));return d},Cv}();function Ov(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Iv(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function _v(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(Lv);var Pv=1/.7,Tv="\\s*([+-]?\\d+)\\s*",Mv="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Nv="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",qv=/^#([0-9a-f]{3,8})$/,Dv=new RegExp(`^rgb\\(${Tv},${Tv},${Tv}\\)$`),Av=new RegExp(`^rgb\\(${Nv},${Nv},${Nv}\\)$`),zv=new RegExp(`^rgba\\(${Tv},${Tv},${Tv},${Mv}\\)$`),jv=new RegExp(`^rgba\\(${Nv},${Nv},${Nv},${Mv}\\)$`),Fv=new RegExp(`^hsl\\(${Mv},${Nv},${Nv}\\)$`),$v=new RegExp(`^hsla\\(${Mv},${Nv},${Nv},${Mv}\\)$`),Bv={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 Wv(){return this.rgb().formatHex()}function Hv(){return this.rgb().formatRgb()}function Uv(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=qv.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Vv(t):3===n?new Xv(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Gv(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Gv(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=Dv.exec(e))?new Xv(t[1],t[2],t[3],1):(t=Av.exec(e))?new Xv(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=zv.exec(e))?Gv(t[1],t[2],t[3],t[4]):(t=jv.exec(e))?Gv(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Fv.exec(e))?ny(t[1],t[2]/100,t[3]/100,1):(t=$v.exec(e))?ny(t[1],t[2]/100,t[3]/100,t[4]):Bv.hasOwnProperty(e)?Vv(Bv[e]):"transparent"===e?new Xv(NaN,NaN,NaN,0):null}function Vv(e){return new Xv(e>>16&255,e>>8&255,255&e,1)}function Gv(e,t,n,r){return r<=0&&(e=t=n=NaN),new Xv(e,t,n,r)}function Kv(e){return e instanceof _v||(e=Uv(e)),e?new Xv((e=e.rgb()).r,e.g,e.b,e.opacity):new Xv}function Zv(e,t,n,r){return 1===arguments.length?Kv(e):new Xv(e,t,n,null==r?1:r)}function Xv(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Jv(){return`#${ty(this.r)}${ty(this.g)}${ty(this.b)}`}function Qv(){const e=Yv(this.opacity);return`${1===e?"rgb(":"rgba("}${ey(this.r)}, ${ey(this.g)}, ${ey(this.b)}${1===e?")":`, ${e})`}`}function Yv(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ey(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ty(e){return((e=ey(e))<16?"0":"")+e.toString(16)}function ny(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new oy(e,t,n,r)}function ry(e){if(e instanceof oy)return new oy(e.h,e.s,e.l,e.opacity);if(e instanceof _v||(e=Uv(e)),!e)return new oy;if(e instanceof oy)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 oy(i,l,s,e.opacity)}function oy(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ay(e){return(e=(e||0)%360)<0?e+360:e}function iy(e){return Math.max(0,Math.min(1,e||0))}function ly(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Ov(_v,Uv,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Wv,formatHex:Wv,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ry(this).formatHsl()},formatRgb:Hv,toString:Hv}),Ov(Xv,Zv,Iv(_v,{brighter(e){return e=null==e?Pv:Math.pow(Pv,e),new Xv(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Xv(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Xv(ey(this.r),ey(this.g),ey(this.b),Yv(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:Jv,formatHex:Jv,formatHex8:function(){return`#${ty(this.r)}${ty(this.g)}${ty(this.b)}${ty(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Qv,toString:Qv})),Ov(oy,(function(e,t,n,r){return 1===arguments.length?ry(e):new oy(e,t,n,null==r?1:r)}),Iv(_v,{brighter(e){return e=null==e?Pv:Math.pow(Pv,e),new oy(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new oy(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 Xv(ly(e>=240?e-240:e+120,o,r),ly(e,o,r),ly(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new oy(ay(this.h),iy(this.s),iy(this.l),Yv(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=Yv(this.opacity);return`${1===e?"hsl(":"hsla("}${ay(this.h)}, ${100*iy(this.s)}%, ${100*iy(this.l)}%${1===e?")":`, ${e})`}`}}));const sy=Math.PI/180,cy=180/Math.PI,uy=4/29,dy=6/29,py=3*dy*dy;function fy(e){if(e instanceof hy)return new hy(e.l,e.a,e.b,e.opacity);if(e instanceof yy)return xy(e);e instanceof Xv||(e=Kv(e));var t,n,r=vy(e.r),o=vy(e.g),a=vy(e.b),i=my((.2225045*r+.7168786*o+.0606169*a)/1);return r===o&&o===a?t=n=i:(t=my((.4360747*r+.3850649*o+.1430804*a)/.96422),n=my((.0139322*r+.0971045*o+.7141733*a)/.82521)),new hy(116*i-16,500*(t-i),200*(i-n),e.opacity)}function hy(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function my(e){return e>.008856451679035631?Math.pow(e,1/3):e/py+uy}function gy(e){return e>dy?e*e*e:py*(e-uy)}function by(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function vy(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function yy(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function xy(e){if(isNaN(e.h))return new hy(e.l,0,0,e.opacity);var t=e.h*sy;return new hy(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Ov(hy,(function(e,t,n,r){return 1===arguments.length?fy(e):new hy(e,t,n,null==r?1:r)}),Iv(_v,{brighter(e){return new hy(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new hy(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Xv(by(3.1338561*(t=.96422*gy(t))-1.6168667*(e=1*gy(e))-.4906146*(n=.82521*gy(n))),by(-.9787684*t+1.9161415*e+.033454*n),by(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Ov(yy,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof yy)return new yy(e.h,e.c,e.l,e.opacity);if(e instanceof hy||(e=fy(e)),0===e.a&&0===e.b)return new yy(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*cy;return new yy(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new yy(e,t,n,null==r?1:r)}),Iv(_v,{brighter(e){return new yy(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new yy(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return xy(this).rgb()}}));var Sy=e=>()=>e;function wy(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Sy(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?wy:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Sy(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Zv(e)).r,(t=Zv(t)).r),o=n(e.g,t.g),a=n(e.b,t.b),i=wy(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=a(t),e.opacity=i(t),e+""}}return r.gamma=e,r}(1);var Ey,ky="center",Cy="bottom";function Ry(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Ly(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Iy)):void 0===t&&(t=Oy);for(var n,r,o,a,i,l=new Ty(e),s=[l];n=s.pop();)if((o=t(n.data))&&(i=(o=Array.from(o)).length))for(n.children=o,a=i-1;a>=0;--a)s.push(r=o[a]=new Ty(o[a])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(Py)}function Oy(e){return e.children}function Iy(e){return Array.isArray(e)?e[1]:null}function _y(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Py(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Ty(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:ky,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:ky,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:ky,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:ky},{key:"DataRangeIncludingZero",alignment:Cy},{key:"LimitedData",alignment:Cy},{key:"NegativeOrZeroValues",alignment:Cy}].reduce((function(e,t){return e[t.key]=t,e}),{}),Ty.prototype=Ly.prototype={constructor:Ty,count:function(){return this.eachAfter(Ry)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,o,a=this,i=[a],l=[],s=-1;a=i.pop();)if(l.push(a),n=a.children)for(r=0,o=n.length;r<o;++r)i.push(n[r]);for(;a=l.pop();)e.call(t,a,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,a=[o],i=-1;o=a.pop();)if(e.call(t,o,++i,this),n=o.children)for(r=n.length-1;r>=0;--r)a.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,o=r&&r.length;--o>=0;)n+=r[o].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return Ly(this).eachBefore(_y)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,a=[o];do{for(e=a.reverse(),a=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)a.push(t[n])}while(a.length)}},Ey=function(e){
|
|
124
124
|
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
125
|
-
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,a,i,l,s,c,u,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",a=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=l)&&(t=(+t).toFixed(l+1)),u=e[0].split(a),e[0]=u.join(""),(i=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-i;)c[0]="0"+c[0];else 0==+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],s=u[1]&&u[u.length-1].length){for(m="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(m+=a);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x}},Ny({exports:{}});const Hy=/,(?![^(]*\))/,Uy=/\s(?![^(]*\))/,Vy=/^[0-9]+[a-zA-Z%]+?$/,Gy=["none","inset","initial","inherit"],Ky=e=>{if(!e)return;const t=e.split(Uy).filter((e=>!Gy.includes(e.toLowerCase()))).at(-1),n=!t||(e=>"0"===e||Vy.test(e))(t)||Gy.includes(t.toLowerCase())?void 0:t;return n},Zy=e=>e?e.split(Hy).map((e=>e.trim())):[];function Xy(e,t,n,r){return n&&r?n.getStyle("object.".concat(r),e,t):n?n.getStyle("",e,t):void 0}function Jy(e,t,n,r,o){return e&&r?"none"!==e.color?r.getColorPickerColor(e):void 0:Xy(t,n,r,o)}const Qy={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},Yy={"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 ex(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 tx(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=ex(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=Yy[e.bgImage.position]),n}(e),a=function(e){var t;let n=Qy.originalSize;const r=null==e||null===(t=e.bgImage)||void 0===t?void 0:t.sizing;return r&&(n=Qy[r]),n}(e);return r?{url:r,pos:o,size:a}:void 0}}function nx(e,t,n){const r=null==e?void 0:e.bgColor;return r&&t&&(r.useExpression||r.useColorExpression)?t.validateColor(r.colorExpression):Jy(null==r?void 0:r.color,"","backgroundColor",t,n)}function rx(e,t,n){var r,o;const a=Xy("shadow","boxShadow",t,n);return((e,t,n)=>{if(e&&Gy.includes(e.toLowerCase()))return e.toLowerCase();const r=Zy(e);if(1!==r.length)return e;let o=n;if(!o){const n=Zy(t);if(1!==n.length)return e;o=Ky(n[0])}if(!o)return e;const a=Ky(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,Jy(null==e||null===(o=e.shadow)||void 0===o?void 0:o.boxShadowColor,"shadow","boxShadowColor",t,n))}function ox(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):n.getStyle("object.".concat(r),"title.".concat(t),"color"),backgroundColor:a.backgroundColor||n.getStyle("object.".concat(r),"title.".concat(t),"backgroundColor"),fontWeight:i.includes("bold")?"bold":"normal",fontStyle:i.includes("italic")?"italic":"normal",textDecoration:i.includes("underline")?"underline":"initial"}}const ax={selected:"#00873D",alternative:"#E4E4E4",excluded:"#A9A9A9",selectedExcluded:"#A9A9A9",possible:"#FFFFFF"},ix=["theme","selections"];function lx(e){var t,n,r,o,a,i,l,s;let{app:u,themeApi:d,theme:p,components:f=[],checkboxes:h=!1}=e;const m=function(){const e={};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((t=>{const n=null==t?void 0:t.key;ix.includes(n)&&(e[n]=t)})),e}(f),g=(e,t)=>d.getStyle("object.listBox",e,t),b=e=>(null==e?void 0:e.index)>0||null!=e&&e.color?d.getColorPickerColor(e):void 0,v=function(e){var t,n,r,o,a;let{getColorPickerColor:i,theme:l,getListboxStyle:s,overrides:u,checkboxes:d}=e;const p=null===(t=u.theme)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.fontColor,f=i(p)||s("content","color")||(null===(n=l.palette)||void 0===n?void 0:n.text.primary),h=!d&&(null===(r=null===(o=u.theme)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.useContrastColor)||void 0===r||r),m=(null===(a=u.selections)||void 0===a?void 0:a.colors)||{},g=e=>{var t,n;const r="selected"===e?"main":e,o="".concat(e,"Contrast"),a=i(m[e])||s("","dataColors.".concat(e))||"possible"===e&&s("","backgroundColor")||(null===(t=l.palette)||void 0===t||null===(t=t.selected)||void 0===t?void 0:t[r])||ax[e];return{[e]:a,[o]:h?Dv(a,f):f||(null===(n=l.palette)||void 0===n?void 0:n.selected["".concat(o,"Text}")])}};return c(c(c(c(c({},g("selected")),g("alternative")),g("excluded")),g("selectedExcluded")),g("possible"))}({getColorPickerColor:b,theme:p,getListboxStyle:g,overrides:m,checkboxes:h}),y=m.theme||{},x=b(null===(t=y.header)||void 0===t?void 0:t.fontColor)||g("title.main","color"),S=function(e){let t,{themeApi:n,themeOverrides:r}=e;const o=null==r?void 0:r.background;return o?(t=null!=o&&o.useExpression?nx({bgColor:o},n,"listBox"):n.getColorPickerColor(null==o?void 0:o.color),t):t}({themeApi:d,themeOverrides:y}),w=null!==(n=y.background)&&void 0!==n&&n.image?tx({bgImage:y.background.image},u):void 0,E=S||g("","backgroundColor")||p.palette.background.default,k=function(e,t){const n=qv(t("","backgroundColor"));return n.setAlpha(.7),n.isInvalid()?e:n.getRGBA()}(E,g),C=function(e){return Dv("#fff",e("content","color"))}(g),R=(null===(r=y.header)||void 0===r?void 0:r.fontStyle)||{},L=(null===(o=y.content)||void 0===o?void 0:o.fontStyle)||{},O=(e,t,n)=>!0===e&&t||!1===e&&n||void 0;return{background:{backgroundColor:E,backgroundImage:null==w||!w.url||null!=w&&w.url.startsWith("url(")?void 0:"url('".concat(w.url,"')"),backgroundRepeat:"no-repeat",backgroundSize:null==w?void 0:w.size,backgroundPosition:null==w?void 0:w.pos},header:{color:x,fontSize:(null===(a=y.header)||void 0===a?void 0:a.fontSize)||g("title.main","fontSize"),fontFamily:(null===(i=y.header)||void 0===i?void 0:i.fontFamily)||g("title.main","fontFamily"),fontWeight:O(R.bold,"bold","normal")||g("title.main","fontWeight")||"bold",textDecoration:R.underline?"underline":"initial",fontStyle:O(R.italic,"italic","normal")||g("title.main","fontStyle")||"initial"},content:{backgroundColor:h?void 0:v.possible,color:v.possibleContrast||g("content","color"),fontSize:(null===(l=y.content)||void 0===l?void 0:l.fontSize)||g("content","fontSize"),fontFamily:(null===(s=y.content)||void 0===s?void 0:s.fontFamily)||g("content","fontFamily"),fontWeight:O(L.bold,"bold","normal")||g("content","fontWeight")||"normal",textDecoration:L.underline?"underline":"initial",fontStyle:O(L.italic,"italic","normal")||g("content","fontStyle")||"initial"},search:{color:C,borderColor:p.palette.divider,highlightBorderColor:p.palette.custom.focusBorder,backgroundColor:k,backdropFilter:"blur(8px)"},selections:v}}function sx(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),sortCriteria:f=[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],direction:h="ltr"}=e;const m=Boolean(null==l?void 0:l.qLibraryId),g=o&&Boolean(t.current),[y,x]=b.useState(0),S=Ol(),w=b.useRef(),[E]=Hh({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:s,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:f,qFieldDefs:m?void 0:[l]},qLibraryId:m?l.qLibraryId:void 0}},i,l,s),k=b.useCallback((()=>{E.lock("/qListObjectDef")}),[E]),C=b.useCallback((()=>{E.unlock("/qListObjectDef")}),[E]),{translator:R,themeApi:L,keyboardNavigation:O}=b.useContext(Xs),I=b.useRef(),_=b.useRef(),[P]=hv(i,E,_),[T]=Xh(E),[M]=b.useState((()=>mv({selectDisabled:p}))),N=fg({containerRef:_,enabled:O}),{checkboxes:q=d}=T||{},A=lx({themeApi:L,theme:S,components:u,checkboxes:q});if(b.useEffect((()=>{P&&g&&(P.isModal(E)||P.goModal("/qListObjectDef"))}),[P,g]),!E||!T||!R)return null;const D=!0===T.qListObject.qDimensionInfo.qLocked,z=(e,t)=>{const n="escapeKeyDown"!==t;P.noModal(n),a()},j=Nb({layout:T,model:E,translator:R,selectionState:M,selections:P}),F=bv(T);return v.createElement(rh,{className:"listbox-container",open:g,onClose:z,anchorEl:t.current,anchorOrigin:n,transformOrigin:r,slotProps:{paper:{style:{minWidth:"250px"}}},onKeyDown:e=>"Enter"===e.key?z():void 0,direction:h},v.createElement(tf,{container:!0,direction:"column",gap:0,ref:_},v.createElement(tf,{item:!0,container:!0,style:{direction:h,padding:S.spacing(1)}},v.createElement(tf,{item:!0},D?v.createElement(yc,{onClick:C,disabled:!D,size:"large"},v.createElement(nm,{title:R.get("Listbox.Unlock")})):v.createElement(yc,{onClick:k,disabled:!F,size:"large"},v.createElement(om,{title:R.get("Listbox.Lock")}))),v.createElement(tf,{item:!0,xs:!0}),v.createElement(tf,{item:!0},v.createElement(rv,{layout:T,more:{enabled:!D,actions:j,alignTo:I,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:P,onConfirm:z,onCancel:()=>z(0,"escapeKeyDown")}}))),v.createElement(tf,{item:!0,xs:!0},v.createElement("div",{ref:I}),v.createElement(tf,{item:!0},v.createElement(cv,{ref:w,popoverOpen:g,styles:A,visible:!0,model:E,listCount:y,selections:P,selectionState:M,keyboard:{enabled:!1,innerTabStops:!0,focusSelection:N.focusSelection},autoFocus:null==c||c,direction:h})),v.createElement(Ib,{model:E,app:i,layout:T,selections:P,selectionState:M,direction:h,onSetListCount:e=>x(e),onCtrlF:()=>{w.current.focus()},styles:A,keyboard:N}))))}function cx(e){let{field:t,api:n,stateIx:r=0,skipHandleShowListBoxPopover:o=!1,moreAlignTo:a=null,onClose:i=(()=>{})}=e;const{translator:l}=b.useContext(Xs),s=a||b.useRef(),c=Ol(),[u,d]=b.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,y=m.qAlternative/h.qTotal,x=(m.qExcluded+m.qLockedExcluded+m.qSelectedExcluded)/h.qTotal,S=m.qSelected+m.qSelectedExcluded+m.qLocked+m.qLockedExcluded,w=0===S&&0===h.qTotal;let E="";h.qTotal===S&&h.qTotal>1?E=l.get("CurrentSelections.All"):S>1&&h.qTotal?E=l.get("CurrentSelections.Of",[S,h.qTotal]):h.qSelectedFieldSelectionInfo&&(E=h.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==t.states[r]&&(E="".concat(t.states[r],": ").concat(E));const k=[{color:c.palette.selected.main,ratio:g},{color:c.palette.selected.alternative,ratio:y},{color:c.palette.selected.excluded,ratio:x}];k.forEach(((e,t)=>{e.offset=t?k[t-1].offset+k[t-1].ratio:0}));let C=null,R=null,L=null,O=null;return a||(C=v.createElement(tf,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:h.qLocked?"0.3":""}},v.createElement(Cc,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},t.label),v.createElement(Cc,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},E)),h.qLocked?R=v.createElement(tf,{item:!0},v.createElement(yc,{size:"large"},v.createElement(nm,null))):h.qOneAndOnlyOne||(R=v.createElement(tf,{item:!0},v.createElement(yc,{title:l.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),n.clearField(h.qField,t.states[r])},size:"large"},v.createElement(tm,null)))),L=v.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===w&&k.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,"%")}})))),O=v.createElement(tf,{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},C,R,L,u&&v.createElement(sx,{alignTo:s,show:u,close:f,app:n.model,fieldName:h.qField,stateName:t.states[r]}))),a?v.createElement(sx,{alignTo:s,show:!0,close:f,app:n.model,fieldName:h.qField,stateName:t.states[r]}):O}var ux=e=>em((e=>c(c({},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 dx={item:"".concat("MultiState","-item")},px=Wl(tf)((e=>{let{theme:t}=e;return{["&.".concat(dx.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"}}}));function fx(e){let{field:t,api:n,moreAlignTo:r=null,onClose:o=(()=>{})}=e;const[a,i]=b.useState(!!r),[l,s]=b.useState(-1),[c,u]=b.useState(r?r.current:null),d=r||b.useRef(),{translator:p}=b.useContext(Xs),f=p.get("Selection.ClearAllStates"),h=()=>{s(-1),o()};let m=null;r||(m=v.createElement(v.Fragment,null,v.createElement(tf,{item:!0,xs:!0,zeroMinWidth:!0},v.createElement(Dd,{style:{padding:"0px 8px"},color:"secondary",badgeContent:t.states.length},v.createElement(Cc,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},t.label))),v.createElement(tf,{item:!0},v.createElement("div",{style:{width:"12px"}})),v.createElement(tf,{item:!0},v.createElement(yc,{size:"large"},v.createElement(ux,null)))));const g=v.createElement(wf,{dense:!0},v.createElement(Nf,{title:f,onClick:()=>{t.states.forEach((e=>n.clearField(t.name,e)))}},v.createElement(Bs,{variant:"contained",fullWidth:!0},f)),t.states.map(((e,r)=>v.createElement(Nf,{key:r,title:t.label,onClick:e=>((e,t)=>{e.stopPropagation(),i(!1),s(t)})(e,r)},v.createElement(Fd,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},v.createElement(cx,{field:t,api:n,stateIx:r,skipHandleShowListBoxPopover:!0})))))),y=v.createElement(rh,{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),x=r?y:v.createElement(px,{container:!0,gap:0,className:dx.item,onClick:e=>{e.currentTarget.contains(e.target)&&(u(e.currentTarget),d.current=e.currentTarget,i(!a))}},m,a&&y,l>-1&&v.createElement(sx,{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(sx,{alignTo:d,show:l>-1,close:h,app:n.model,fieldName:t.selections[l].qField,stateName:t.states[l]}):x}const hx="More",mx={item:"".concat(hx,"-item"),badge:"".concat(hx,"-badge")},gx=Wl(tf)((e=>{let{theme:t}=e;return{["&.".concat(mx.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(mx.badge)]:{padding:t.spacing(0,1)}}}));function bx(e){let{items:t=[],api:n}=e;const r=Ol(),[o,a]=b.useState(!1),[i,l]=b.useState(-1),[s,c]=b.useState(null),u=b.useRef(),d=()=>{l(-1)};let p=null;return i>-1&&(p=t[i].states.length>1?v.createElement(fx,{field:t[i],api:n,moreAlignTo:u,onClose:d}):v.createElement(cx,{field:t[i],api:n,skipHandleShowListBoxPopover:!0,moreAlignTo:u,onClose:d})),v.createElement(gx,{container:!0,gap:0,className:mx.item,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),u.current=e.currentTarget,a(!o))}},v.createElement(tf,{item:!0},v.createElement(Fd,{borderRadius:r.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:r.palette.selected.main,color:r.palette.selected.mainContrastText}},v.createElement(Cc,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",t.length))),v.createElement(tf,{item:!0},v.createElement(yc,{size:"large"},v.createElement(ux,null))),o&&v.createElement(rh,{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(wf,{dense:!0},t.map(((e,t)=>v.createElement(Nf,{key:t,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),a(!1),l(t)})(e,t)},v.createElement(Fd,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?v.createElement(fx,{field:e,api:n}):v.createElement(cx,{field:e,api:n}))))))),p)}const vx=120,yx=72;function xx(e){let{api:t,app:n}=e;const r=Ol(),[o]=Vh(n),[a]=Xh(o),[i,l]=b.useState({items:[],more:[]}),{modalObjectStore:s}=b.useContext(Xs).selectionStore,[c,u]=Qh(),[d,p]=b.useState(0);return b.useEffect((()=>{if(!u)return;const{width:e}=u,t=Math.floor(e)-yx,n=Math.floor(t/vx);p(n)}),[u]),b.useEffect((()=>{if(!(n&&o&&a&&d))return;const e=function(e){if(!e)return[];const t={};function n(e,n){e.qSelections.forEach((e=>{const r=e.qField;let o=t[r];var a;void 0===o&&(o={name:r,label:(null===(a=e.qDimensionReferences)||void 0===a||null===(a=a.find((e=>e.qLabel)))||void 0===a?void 0:a.qLabel)||e.qReadableName||r,states:[],selections:[]},t[r]=o),o.states.push(n),o.selections.push(e)}))}return e.qSelectionObject&&n(e.qSelectionObject,"$"),e.alternateStates&&e.alternateStates.forEach((e=>n(e.qSelectionObject,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(tf,{ref:c,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},i.items.map((e=>v.createElement(tf,{item:!0,key:"".concat(e.states.join("::"),"::").concat(e.name),style:{position:"relative",maxWidth:"240px",minWidth:"".concat(vx,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},e.states.length>1?v.createElement(fx,{field:e,api:t}):v.createElement(cx,{field:e,api:t})))),i.more.length>0&&v.createElement(tf,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(yx,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},v.createElement(bx,{items:i.more,api:t})))}var Sx=e=>em((e=>c(c({},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 wx=e=>em((e=>c(c({},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 Ex=(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 kx(e){let{api:t,app:n}=e;const{translator:r}=b.useContext(Xs),[o]=function(e){const[t]=Vh(e),[n]=Xh(t),[r]=Jh(e),[o,a]=b.useState(null);return b.useEffect((()=>{r&&t&&n&&Ex(t,n,r)}),[r,t,n]),b.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(tf,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},v.createElement(tf,{item:!0},v.createElement(yc,{style:{marginRight:"8px"},disabled:!o||!o.canGoBack,title:r.get("Navigate.Back"),onClick:()=>t.back(),size:"large"},v.createElement(Sx,null))),v.createElement(tf,{item:!0},v.createElement(yc,{style:{marginRight:"8px"},disabled:!o||!o.canGoForward,title:r.get("Navigate.Forward"),onClick:()=>t.forward(),size:"large"},v.createElement(wx,null))),v.createElement(tf,{item:!0},v.createElement(yc,{disabled:!o||!o.canClear,title:r.get("Selection.ClearAll"),onClick:()=>t.clear(),size:"large"},v.createElement(Bb,null))))}const Cx=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function Rx(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function Lx(){return Cx.map(Rx).join("")}function Ox(e){let{app:t}=e;const n=Ol(),[r]=uv(t);return r?v.createElement(tf,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:n.palette.background.paper,minHeight:"40px"}},v.createElement(tf,{item:!0,style:{borderRight:"1px solid ".concat(n.palette.divider)}},v.createElement(kx,{api:r,app:t})),v.createElement(tf,{item:!0,xs:!0,style:{backgroundColor:n.palette.background.darker,overflow:"hidden"}},v.createElement(xx,{api:r,app:t}))):null}let Ix;Ix="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;let _x=null,Px=null;const Tx=Ix.clearTimeout,Mx=Ix.setTimeout,Nx=Ix.cancelAnimationFrame||Ix.mozCancelAnimationFrame||Ix.webkitCancelAnimationFrame,qx=Ix.requestAnimationFrame||Ix.mozRequestAnimationFrame||Ix.webkitRequestAnimationFrame;function Ax(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__&&_x(this.__resizeRAF__),this.__resizeRAF__=Px((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=Ix.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==Nx||null==qx?(_x=Tx,Px=function(e){return Mx(e,20)}):(_x=function([e,t]){Nx(e),Tx(t)},Px=function(e){const t=qx((function(){Tx(n),e()})),n=Mx((function(){Nx(t),e()}),20);return[t,n]});class Dx extends b.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._didLogDeprecationWarning=!1,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;if(!e&&this.state.height!==c||!t&&this.state.width!==u){this.setState({height:c,width:u});const e=()=>{this._didLogDeprecationWarning||(this._didLogDeprecationWarning=!0,console.warn("scaledWidth and scaledHeight parameters have been deprecated; use width and height instead"))};"function"==typeof n&&n({height:c,width:u,get scaledHeight(){return e(),c},get scaledWidth(){return e(),u}})}}},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=Ax(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,doNotBailOutOnEmptyChildren:a=!1,nonce:i,onResize:l,style:s={},tagName:c="div",...u}=this.props,{height:d,width:p}=this.state,f={overflow:"visible"},h={};let m=!1;return r||(0===d&&(m=!0),f.height=0,h.height=d,h.scaledHeight=d),o||(0===p&&(m=!0),f.width=0,h.width=p,h.scaledWidth=p),a&&(m=!1),b.createElement(c,{ref:this._setRef,style:{...f,...s},...u},!m&&e(h))}}function zx(e){let{keyboard:t,hovering:n,updateKeyScroll:r,currentScrollIndex:o,isModal:a,constraints:i,selections:l}=e;return{handleKeyDown:e=>{const{keyCode:n,shiftKey:r=!1}=e.nativeEvent,o=()=>{e.stopPropagation(),e.preventDefault()};if(!t.enabled)return;const i=e.currentTarget.closest(".listbox-container"),s=a();switch(n){case ug.TAB:if(document.activeElement===i||!s&&!i.contains(document.activeElement))return;if(r){gg(i)||mg(i)||vg(e,t)}else{if(!(bg(i)||mg(i)||gg(i)))break}o();break;case ug.ENTER:case ug.SPACE:if(!e.target.classList.contains("listbox-container"))break;t.focus(),o();break;case ug.ESCAPE:vg(e,t),l.isActive()&&l.cancel()}},handleOnMouseEnter:()=>{n.current=!0},handleOnMouseLeave:()=>{n.current&&(n.current=!1)},globalKeyDown:e=>{if(!n.current||(()=>{const e=(null==i?void 0:i.select)||(null==i?void 0:i.active),t=a();return e||t})())return;const{keyCode:t,ctrlKey:l=!1,shiftKey:s=!1}=e;switch(t){case ug.ARROW_UP:r({up:1});break;case ug.ARROW_DOWN:r({down:1});break;case ug.PAGE_UP:r({up:o.stop-o.start});break;case ug.PAGE_DOWN:r({down:o.stop-o.start});break;case ug.HOME:r({scrollPosition:l&&s?"overflowStart":"start"});break;case ug.END:r({scrollPosition:l&&s?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const jx=Wl("div")((()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"})));function Fx(e){let{text:t}=e;const{translator:n}=b.useContext(Xs);return v.createElement(jx,null,n.get(t))}const $x={fontSize:"12px"},Bx=Wl(Ts)((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(km,"px")}}})),Wx=Wl(tf,{shouldForwardProp:e=>!["styles","isRtl"].includes(e)})((e=>{let{styles:t,isRtl:n}=e;return c(c({flexDirection:n?"row-reverse":"row",wrap:"nowrap",minHeight:32,alignContent:"center"},t.header),{},{"& *":{color:t.header.color}})})),Hx=Wl(Cc)((e=>{let{styles:t}=e;return c(c({},t.header),{},{display:"block",alignItems:"center",paddingRight:"1px"})}));function Ux(e){let{translator:t,toggleLock:n,keyboard:r,isLoading:o}=e;const a=t.get("SelectionToolbar.ClickToUnlock");return v.createElement(Bx,{title:a,tabIndex:r.enabled?0:-1,onClick:n,"data-testid":"listbox-unlock-button",id:"listbox-unlock-button",isLoading:o},o?v.createElement(gp,{size:16,variant:"indeterminate",color:"primary"}):v.createElement(nm,{disableRipple:!0,style:$x}),!o&&v.createElement(Cc,{fontSize:"14px"},a))}var Vx=e=>em((e=>c(c({},e),{},{shapes:[{type:"path",attrs:{d:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"}}]}))(e));var Gx=e=>em((e=>c(c({},e),{},{shapes:[{type:"path",attrs:{d:"M7 4h9v1H7zm2 4h7v1H9zm2 4h5v1h-5zM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4z"}}]}))(e));var Kx=e=>em((e=>c(c({},e),{},{shapes:[{type:"path",attrs:{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"}}]}))(e));const Zx="H",Xx="C";var Jx={createDimensionIconData:e=>{let{dimInfo:t,app:n,selections:r,isPopover:o,active:a,keyboard:i}=e;switch(t.qGrouping){case Zx:return{icon:Gx,tooltip:"Listbox.DrillDown",onClick:void 0};case Xx:{const e=n&&a,l=()=>{o||r.confirm(),n.getDimension(t.qLibraryId).then((e=>{e.stepCycle?e.stepCycle(1):console.log("engine api spec version doesn't have support for function stepCycle")})).catch((()=>null))};return{icon:e?Kx:Vx,tooltip:"Listbox.Cyclic",onClick:e?l:void 0,onKeyDown:e?e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.keyCode){case ug.SPACE:case ug.ENTER:l();break;case ug.TAB:{if(!i.enabled)return;let n;n=e.shiftKey?i.focusSelection():mg(t)||gg(t),n||vg(e,i)}break;default:return}e.preventDefault(),e.stopPropagation()}:void 0}}default:return}}};const Qx=Wl(Bs)((()=>({borderRadius:4,width:24,height:24,minWidth:22,padding:0})));function Yx(e){let{iconData:t,translator:n,iconStyle:r,disabled:o,keyboard:a}=e;if(!t)return;const{icon:i,tooltip:l,onClick:s,onKeyDown:u}=t,d=i,p=n.get(l);return s?v.createElement(Qx,{variant:"outlined",onClick:s,tabIndex:a.innerTabStops?0:-1,title:p,size:"large",disableRipple:!0,disabled:o,onKeyDown:u,className:"listbox-cyclic-button","data-testid":"listbox-cyclic-button"},v.createElement(d,{style:r})):v.createElement(d,{title:p,size:"large",style:c(c({},r),{},{padding:"".concat(km,"px")})})}const eS=500;let tS=0;function nS(e){var t,n,r;let{layout:o,translator:a,styles:i,isRtl:s,showLock:u,showSearchIcon:d,constraints:p,onShowSearch:f,classes:h,containerRect:m,isPopover:g,showToolbar:y,showDetachedToolbarOnly:x,containerRef:S,model:w,selectionState:E,isDirectQuery:k,selections:C,keyboard:R,autoConfirm:L,app:O,disablePortal:I}=e;const[_,P]=b.useState(x),[T,M]=b.useState(null==o||null===(t=o.qListObject)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.qLocked),[N,q]=b.useState(!1);b.useEffect((()=>{var e;M(null==o||null===(e=o.qListObject)||void 0===e||null===(e=e.qDimensionInfo)||void 0===e?void 0:e.qLocked)}),[null==o||null===(n=o.qListObject)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.qLocked]);const A=b.useRef(null),D=Jx.createDimensionIconData({dimInfo:null==o||null===(r=o.qListObject)||void 0===r?void 0:r.qDimensionInfo,app:O,selections:C,isPopover:g,active:!(null!=p&&p.active),keyboard:R}),z=u&&T,j=!u&&T,F=d||j||D,$=wm-(F?km:0),B=s?wm-(F?km:0):Em,W=(d?Cm:0)+(j?Cm:0)+(D?Cm:0),H=function(e){let{isLocked:t,setLocked:n,settingLockedState:r,model:o,setSettingLockedState:a}=e;return()=>{const e=new Date;if(e-tS<eS)return Promise.resolve();if(r)return()=>{};a(!0),tS=e;const i=t?o.unlock:o.lock;return n(!t),i.call(o,"/qListObjectDef").catch((()=>{n(t)})).finally((()=>{setTimeout((()=>{a(!1)}),0)}))}}({isLocked:T,setLocked:M,settingLockedState:N,setSettingLockedState:q,model:w}),U=Nb({layout:o,model:w,translator:a,selectionState:E,isDirectQuery:k,selections:C}),V=T||!u?void 0:[{key:"lock",type:void 0,label:a.get("SelectionToolbar.ClickToLock"),getSvgIconShape:rm,enabled:()=>!N&&!E.selectDisabled()&&bv(o),action:H}],G=null!=p&&p.active?v.createElement(ov,{title:a.get("Listbox.Search"),size:"large",style:c(c({},$x),{},{padding:"".concat(km,"px")})}):v.createElement(yc,{onClick:f,tabIndex:-1,title:a.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},v.createElement(ov,{style:$x}));b.useEffect((()=>{if(!A.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:A,iconsWidth:W,paddingLeft:$,paddingRight:B});P(x||e)}),[W,$,B,A.current,x,Object.entries(m||{}).sort().join(",")]);const K=function(e){let{isDetached:t,showToolbar:n,containerRef:r,isLocked:o,listboxSelectionToolbarItems:a,extraItems:i,selections:l,keyboard:s,autoConfirm:c,disablePortal:u}=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"},disablePortal:u},selections:{show:n,api:l,onConfirm:()=>{null==s||s.focus()},onCancel:()=>{null==s||s.focus()}}}}({isDetached:!g&&_,showToolbar:y,containerRef:S,isLocked:T,extraItems:V,listboxSelectionToolbarItems:U,selections:C,keyboard:R,autoConfirm:L,disablePortal:I}),Z=v.createElement(rv,l({isRtl:s,layout:o},K));if(x)return Z;const X=j?v.createElement(nm,{size:"large",style:c(c({},$x),{},{padding:"".concat(km,"px")})}):void 0;return v.createElement(Wx,{item:!0,container:!0,styles:i,isRtl:s,marginY:1,paddingLeft:"".concat($,"px"),paddingRight:"".concat(B,"px"),className:"header-container"},z&&v.createElement(Ux,{isLoading:N,translator:a,toggleLock:H,keyboard:R}),F&&v.createElement(tf,{item:!0,container:!0,alignItems:"center",width:W,className:"header-action-container"},X||d&&G,v.createElement(Yx,{iconData:D,iconStyle:$x,disabled:C.isActive()&&g,translator:a,keyboard:R})),v.createElement(tf,{item:!0,xs:!0,minWidth:0,justifyContent:s?"flex-end":"flex-start",className:h.listBoxHeader},v.createElement(Hx,{variant:"h6",noWrap:!0,ref:A,title:o.title,styles:i},o.title)),v.createElement(tf,{item:!0,display:"flex"},Z))}const rS="ListBoxInline",oS={listBoxHeader:"".concat(rS,"-listBoxHeader"),screenReaderOnly:"".concat(rS,"-screenReaderOnly"),listboxWrapper:"".concat(rS,"-listboxWrapper")},aS=Wl(tf,{shouldForwardProp:e=>!["containerPadding","isGridMode","styles"].includes(e)})((e=>{let{theme:t,containerPadding:n,isGridMode:r,styles:o}=e;return c(c({},o.background),{},{["& .".concat(oS.listBoxHeader)]:{alignSelf:"center",display:"flex"},["& .".concat(oS.screenReaderOnly)]:{position:"absolute",height:0,width:0,overflow:"hidden"},["& .".concat(oS.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 iS=v.memo((function(e){var t,n,r,o;let{options:a,layout:i}=e;const{app:l,direction:s,frequencyMode:u,checkboxes:d,search:p=!0,focusSearch:f=!1,rangeSelect:h=!0,model:m,selections:g,update:y,fetchStart:x,postProcessPages:S,calculatePagesHeight:w,showGray:E=!0,scrollState:k,renderedCallback:C,toolbar:R=!0,isPopover:L=!1,showLock:O=!1,components:I,selectDisabled:_=(()=>!1),disablePortal:P=!0}=a,T=Ol(),{translator:M,keyboardNavigation:N,themeApi:q,constraints:A}=b.useContext(Xs),{checkboxes:D=d}=i||{},z=lx({app:l,themeApi:q,theme:T,components:I,checkboxes:D}),j=function(e){let{appLayout:t}=e;return!(null==t||!t.qIsDirectQueryMode)}({appLayout:null==l?void 0:l.layout}),F=b.useRef(),$=b.useRef(),[B,W]=Qh(),[H,U]=b.useState(!1),[V,G]=b.useState(!1),K=b.useRef(!1),[Z,X]=b.useState({down:0,up:0,scrollPosition:""}),J=e=>X((t=>c(c({},t),e))),[Q,Y]=b.useState({start:0,stop:0}),[ee]=uv(l),[te]=b.useState((()=>mv({selectDisabled:_}))),ne=fg({containerRef:F,enabled:N}),re=b.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:l,appSelections:ee})),[l,ee]),oe=null==i?void 0:i.qListObject.qDimensionInfo.qError,ae=oe&&A.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",{handleKeyDown:ie,handleOnMouseEnter:le,handleOnMouseLeave:se,globalKeyDown:ce}=b.useMemo((()=>zx({keyboard:ne,hovering:K,updateKeyScroll:J,currentScrollIndex:Q,constraints:A,isModal:re,selections:g})),[ne,K,J,F,Q,l,ee,A,re]);b.useEffect((()=>(document.addEventListener("keydown",ce),()=>{document.removeEventListener("keydown",ce)})),[ce]),b.useEffect((()=>{!0===p&&G(!0);const e=()=>{U(!0)},t=()=>{U(!1),"toggle"===p&&G(!1)};return L&&(g.isActive()||(g.on("activated",e),g.on("deactivated",t)),U(L)),R&&g&&(g.isModal()||(g.on("activated",e),g.on("deactivated",t)),U(L||g.isActive())),()=>{g&&g.removeListener&&(g.removeListener("activated",e),g.removeListener("deactivated",t))}}),[R,g,L]);const{wildCardSearch:ue,searchEnabled:de,autoConfirm:pe=!1,layoutOptions:fe={}}=null!=i?i:{},he=null==i||null===(t=i.qListObject)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.qLocked,me=!1!==de&&"toggle"===p&&!he,ge=(null==i||null===(n=i.title)||void 0===n?void 0:n.length)&&!1!==(null==i?void 0:i.showTitle),be=R&&!ge&&!L,ve=R&&ge||L,ye="rtl"===s;if(!m||!i||!M)return null;const xe=!0===p||"toggle"===p&&V&&!1!==de,Se=null!==(r=fe.dense)&&void 0!==r&&r,we=()=>{G(!V)},Ee=()=>{"toggle"===p?we():$.current.focus()},ke=xe&&("toggle"===p||f),Ce="grid"===(null==fe?void 0:fe.dataLayout),Re=function(e){let t,{isGridMode:n,dense:r,height:o,layoutOrder:a}=e;if(n){let e;e=Qg({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:Ce,dense:Se,height:null===(o=F.current)||void 0===o?void 0:o.clientHeight,layoutOrder:fe.layoutOrder});oe&&(null==C||C());const Le=ve?Nm+Lm:0,Oe=v.createElement(nS,{app:l,showSearchIcon:me,onShowSearch:we,isPopover:L,showToolbar:H,isDirectQuery:j,autoConfirm:pe,showDetachedToolbarOnly:be,layout:i,translator:M,styles:z,isRtl:ye,showLock:O,constraints:A,classes:oS,containerRect:W,containerRef:F,model:m,selectionState:te,selections:g,keyboard:ne,disablePortal:P});return v.createElement(v.Fragment,null,be&&Oe,v.createElement(aS,{className:"listbox-container",container:!0,tabIndex:ne.enabled?-1:void 0,direction:"column",gap:0,containerPadding:Re,styles:z,style:{height:"100%",flexFlow:"column nowrap"},onKeyDown:ie,onMouseEnter:le,onMouseLeave:se,ref:e=>{F.current=e,B(e)},isGridMode:Ce,"aria-label":ne.active?M.get("Listbox.ScreenReaderInstructions"):""},ve&&Oe,v.createElement(tf,{item:!0,container:!0,direction:"column",height:"100%",minHeight:Le,role:"region","aria-label":M.get("Listbox.ResultFilterLabel")},v.createElement(tf,{item:!0},v.createElement(cv,{ref:$,selections:g,selectionState:te,model:m,dense:Se,keyboard:ne,visible:xe,search:p,autoFocus:ke,beginSelectionOnFocus:!L,wildCardSearch:ue,searchEnabled:de,direction:s,hide:me&&we,styles:z})),v.createElement(tf,{item:!0,xs:!0,className:oS.listboxWrapper},oe?v.createElement(Fx,{text:ae}):v.createElement(Dx,null,(e=>{let{height:t,width:n}=e;return v.createElement(Ib,{model:m,app:l,constraints:A,layout:i,selections:g,selectionState:te,direction:s,frequencyMode:u,rangeSelect:h,checkboxes:D,height:t,width:n,update:y,fetchStart:x,postProcessPages:S,calculatePagesHeight:w,keyboard:ne,showGray:E,scrollState:k,keyScroll:{state:Z,reset:()=>X({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:Q,set:Y},renderedCallback:C,onCtrlF:Ee,isModal:re,styles:z})}))))))}));function lS(e){let{options:t={}}=e;const{model:n}=t,[r]=Xh(n);return v.createElement(iS,{options:t,layout:r})}function sS(e){let{app:t,qId:n,options:r={}}=e;const[o,a]=b.useState(),[i]=Wh(),{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 b.useEffect((()=>{let e=!1,r=()=>{};return async function(){const o=await Promise.resolve(l||async function(e){return i.get(e)||await t.getObject(e)}(n));if(!e){if(!i.get(o.id)){i.set(o.id,o);const e=()=>{i.clear(o.id)};o.once("closed",e),r=()=>{o.removeListener("closed",e)}}a(o)}}(),()=>{e=!0,r()}}),[]),o}const cS={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 uS(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 dS=["__DO_NOT_USE__"],pS=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 c(c(c({},u(e,dS)),n),t)},fS=b.forwardRef(((e,t)=>{let{app:n,fieldIdentifier:r,qId:o,stateName:a,element:i,initialOptions:l,renderedCallback:s}=e;const[u,d]=b.useState(l),{isExistingObject:p,hasExternalSelectionsApi:f}=function(e){let{qId:t,options:n}=e;return{isExistingObject:!(!t&&!n.sessionModel),hasExternalSelectionsApi:!!n.selectionsApi}}({qId:o,options:u});p||Object.assign(u,{frequencyMode:uS(u.frequencyMode)});const[h,m]=b.useState(0);b.useEffect((()=>{if(h)throw new Error("Source or selection Api can not change after a listbox has been mounted");m(h+1)}),[p,f]);const g=p?sS({app:n,qId:o,options:u}):function(e){var t;let{app:n,fieldIdentifier:r,stateName:o,options:a={}}=e;const[i,l]=b.useState(""),[s,c]=b.useState(!0),[u,d]=b.useState(),[p,f]=b.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"),b.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:y,listLayout:x,properties:S={}}=a,w={dense:v};"horizontal"===x&&(w.dataLayout="grid",w.layoutOrder="column",w.maxVisibleColumns={auto:!0},w.maxVisibleRows={auto:!1,maxRows:1});const E=b.useRef();E.current||(E.current=Lx());const k=ue(!0,{},cS,{qInfo:{qId:E.current},qListObjectDef:{qStateName:o,qFrequencyMode:m&&"N"===g?"V":g},histogram:m,checkboxes:y,layoutOptions:w,title:h});let C;if(ue(!0,k,S),r.qLibraryId?(k.qListObjectDef.qLibraryId=r.qLibraryId,C=r.qLibraryId):(k.qListObjectDef.qDef.qFieldDefs=[r],C=r),"P"!==g&&m)if(null!=i&&i.multiFieldDim)k.frequencyMax="fetch";else{const e=r.qLibraryId?i:C;k.frequencyMax={qValueExpression:kb(e)}}const[R]=Hh(k,s?null:n,C,o);return b.useEffect((()=>{R&&d(R)}),[R]),u}({app:n,fieldIdentifier:r,stateName:a,options:u}),y=b.useRef(i),x=f?u.selectionsApi:hv(n,g,[y,".njs-action-toolbar-more",".njs-action-toolbar-popover"],u)[0],S=b.useMemo((()=>c(c({},u),{},{selections:x,model:g,app:n,renderedCallback:s})),[u,x,g,n]);return b.useImperativeHandle(t,(()=>({setOptions:e=>d(e)})),[]),x&&g?v.createElement(lS,{options:S}):null}));const hS={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function mS(e){let{app:t,fieldIdentifier:n,stateName:r,element:o,options:a={}}=e;const[i,l]=b.useState(!!a.show);return v.createElement(sx,{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,sortCriteria:a.sortCriteria,direction:a.direction})}function gS(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function bS(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 vS=e=>({qDef:{qFieldDefs:[e]}}),yS=e=>({qDef:{qDef:e}});function xS(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,a={dimensions:()=>t.qDimensions,measures:()=>t.qMeasures,addDimension(e){const r="string"==typeof e?vS(e):c(c({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||Lx(),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<a.maxDimensions()?(t.qDimensions.push(r),gS(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 bS(t.qInterColumnSortOrder,e),n.dimensions.removed(r,o,e),r},addMeasure(e){const r="string"==typeof e?yS(e):c(c({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||Lx(),r.qSortBy=r.qSortBy||{qSortByLoadOrder:1,qSortByNumeric:-1},r.qAttributeDimensions=r.qAttributeDimensions||[],r.qAttributeExpressions=r.qAttributeExpressions||[],t.qMeasures.length<a.maxMeasures()?(t.qMeasures.push(r),gS(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];bS(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<a.maxDimensions(),canAddMeasure:()=>t.qMeasures.length<a.maxMeasures()};return a}const SS=e=>({qDef:{qFieldDefs:[e]}});function wS(e){let{dc:t,def:n,properties:r}=e;t.qInitialDataFetch=t.qInitialDataFetch||[];const o=r,a={dimensions:()=>t.qLibraryId||t.qDef&&t.qDef.qFieldDefs&&0!==t.qDef.qFieldDefs.length?[t]:[],measures:()=>[],addDimension(e){const r="string"==typeof e?SS(e):c(c({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||Lx(),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===a.dimensions().length,canAddMeasure:()=>!1};return a}const ES=e=>{let t;var n;return t="string"==typeof e?ue(!0,{},cS,{qListObjectDef:(n=e,{qDef:{qFieldDefs:[n]}})}):e.qListObjectDef?ue(!0,{},cS,e):ue(!0,{},cS,{qListObjectDef:e}),t};function kS(e){let{children:t,halo:n}=e;return{async addDimension(e){const r=ES(e),o=r.qListObjectDef;if(o.qDef.cId=o.qDef.cId||Lx(),!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(){}}}function CS(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 RS(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")?wS:e.match("/qChildListDef")?kS:xS}(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"===CS(t)?await d.addMeasure(t):await d.addDimension(t)}}var LS={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 OS={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 IS=2**53-1;function _S(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function PS(e,t){const n=ue(!0,{},t,e);return LS.getValue(n,"qOtherTotalSpec.qOtherCounted")||LS.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),LS.getValue(n,"qOtherTotalSpec.qOtherLimit")||LS.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function TS(e,t){return ue(!0,{},t,e)}function MS(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var NS={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===LS.getValue(e,t)&&LS.setValue(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:_S,importCommonProperties:function(e,t,n){const r="masterobject"===LS.getValue(t,"properties.qInfo.qType")?"masterobject":LS.getValue(n,"qInfo.qType");LS.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:PS,createDefaultMeasure:TS,resolveValue:MS,getHypercubePath:function(e){const t=LS.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?(OS.indexAdded(n.qInterColumnSortOrder,a),++a):(--a,OS.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=ue(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?LS.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||_S(e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),o=ue(!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=MS(a.max,r.dimensions.length,IS),l=MS(a.min,r.dimensions.length,0);return{maxDimensions:MS(o.max,i,IS),minDimensions:MS(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(PS(i.dimensions[l],a)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(PS(i.dimensions[l],a));else if(i.dimensions.length)for(l=0;l<i.dimensions.length;++l)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(PS(i.dimensions[l],a));if(i.excludedDimensions.length)for(l=0;l<i.excludedDimensions.length;++l)o.qDimensions.length<r?o.qDimensions.push(PS(i.excludedDimensions[l],a)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(PS(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(TS(i.measures[l],a)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(TS(i.measures[l],a));else if(i.measures.length)for(l=0;l<i.measures.length;++l)o.qLayoutExclude.qHyperCubeDef.qMeasures.push(TS(i.measures[l],a));if(i.excludedMeasures.length)for(l=0;l<i.excludedMeasures.length;++l)o.qMeasures.length<r?o.qMeasures.push(TS(i.excludedMeasures[l],a)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(TS(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=LS.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=LS.getValue(t,r||"").qHyperCubeDef,o=[...e.qMeasures];e.qMeasures=[],o.forEach((r=>{e.qMeasures.push(r),n.measures.added(r,t)}))}}};var qS={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=LS.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();OS.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&&(NS.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!LS.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=NS.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:a}),s=LS.getValue(n,a||"").qHyperCubeDef,c=LS.getValue(l,a||"").qHyperCubeDef,{maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f}=NS.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:h=NS.getDefaultDimension(),defaultMeasure:m=NS.getDefaultMeasure()}=o;return c.qDimensions.length=0,c.qMeasures.length=0,NS.shouldInitLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f})&&NS.initLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f,newHyperCubeDef:c}),NS.addDefaultDimensions({exportFormat:t,maxDimensions:u,minDimensions:d,newHyperCubeDef:c,defaultDimension:h}),NS.addDefaultMeasures({exportFormat:t,maxMeasures:p,minMeasures:f,newHyperCubeDef:c,defaultMeasure:m}),NS.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:c}),NS.copyPropertyIfExist("qMaxStackedCells",s,c),NS.copyPropertyIfExist("qNoOfLeftDims",s,c),NS.copyPropertyOrSetDefault("qInitialDataFetch",s,c,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),NS.copyPropertyOrSetDefault("qMode",s,c,"S"),NS.copyPropertyOrSetDefault("qReductionMode",s,c,"N"),NS.copyPropertyOrSetDefault("qSortbyYValue",s,c),NS.copyPropertyOrSetDefault("qIndentMode",s,c),NS.copyPropertyOrSetDefault("qShowTotalsAbove",s,c),NS.importCommonProperties(l,t,n),NS.updateDimensionsOnAdded({newProperties:l,dataDefinition:r,hypercubePath:a}),NS.updateMeasuresOnAdded({newProperties:l,dataDefinition:r,hypercubePath:a}),i.qProperty=l,i}(e)};const AS=e=>LS.getValue(e,"data.targets.0.propertyPath"),DS=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return qS.exportProperties})(AS(e))},zS=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return qS.importProperties})(AS(e))},jS=async e=>{let{halo:t,model:n,cellRef:r,newType:o,properties:a,viewDataMode:i=!1}=e;const l=a?{qProperty:a}:await n.getFullPropertyTree(),s=r.current.getQae(),u=DS(s);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=zS(p);if(!f)throw new Error("Target chart does not support conversion");return f({exportFormat:u({propertyTree:l,hypercubePath:NS.getHypercubePath(s),viewDataMode:i}),initialProperties:c({qInfo:{qType:o},visualization:o},LS.getValue(p,"properties.initial",{})),dataDefinition:LS.getValue(p,"data.targets.0.",{}),hypercubePath:NS.getHypercubePath(p),viewDataMode:i})},FS={hypercube:qS};var $S=e=>em((e=>c(c({},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 BS(e){let{d:t}=e;const n=Ol();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(Cc,{style:{lineHeight:"30px",paddingRight:n.spacing(1)}},v.createElement(df,null,t.missing||t.error?v.createElement($S,{style:a}):v.createElement(vm,{style:a})));return v.createElement(tf,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},v.createElement(tf,{item:!0},i),v.createElement(tf,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},v.createElement(Cc,{noWrap:!0,component:"p"},v.createElement(Cc,{component:"span",variant:"subtitle2",color:r},t.description),v.createElement(Cc,{component:"span"}," "),v.createElement(Cc,{component:"span",variant:"subtitle2",color:t.error?"error":"inherit",style:{fontWeight:400}},t.label))))}function WS(e){let{data:t}=e;const n=Ol();return v.createElement(tf,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},t.map(((e,t)=>{const r=e.descriptions.map(((e,t)=>v.createElement(BS,{d:e,key:t})));return r.length>0&&v.createElement(tf,{container:!0,item:!0,key:t,direction:"column",style:{paddingBottom:n.spacing(2)}},v.createElement(Cc,{noWrap:!0,key:t,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),r)})))}function HS(e){let{title:t="Error",message:n="",data:r=[]}=e;return v.createElement(tf,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},v.createElement(tf,{item:!0},v.createElement($S,{style:{fontSize:"38px"}})),v.createElement(tf,{item:!0},v.createElement(Cc,{variant:"h6",align:"center","data-tid":"error-title"},t)),v.createElement(tf,{item:!0},v.createElement(Cc,{variant:"subtitle1",align:"center","data-tid":"error-message"},n)),v.createElement(WS,{data:r}))}const US=["size"],VS="Progress",GS={root:"".concat(VS,"-root"),front:"".concat(VS,"-front"),back:"".concat(VS,"-back")},KS=Wl("div")((e=>{let{theme:t}=e;return{["&.".concat(GS.root)]:{position:"relative",display:"inline-block"},["& .".concat(GS.front)]:{color:t.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(GS.back)]:{color:t.palette.divider}}})),ZS={small:16,medium:32,large:64,xlarge:128};function XS(e){let{size:t="medium"}=e,n=u(e,US);const r=ZS[t];return v.createElement(KS,{className:GS.root},v.createElement(gp,l({variant:"determinate",value:100,className:GS.back,size:r,thickness:3},n)),v.createElement(gp,l({variant:"indeterminate",disableShrink:!0,className:GS.front,size:r,thickness:3},n)))}const JS=["cancel","translator"],QS=["retry","translator"],YS={stripes:"".concat("LongRunningQuery","-stripes")},ew=Wl(tf)((()=>({["& .".concat(YS.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 tw(e){let{cancel:t,translator:n}=e,r=u(e,JS);return v.createElement(v.Fragment,null,v.createElement(ew,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},v.createElement(tf,{item:!0},v.createElement(XS,null)),v.createElement(tf,{item:!0},v.createElement(Cc,{variant:"h6",align:"center","data-tid":"update-active"},n.get("Object.Update.Active")))),v.createElement(tf,l({item:!0},r),v.createElement(Bs,{variant:"contained",onClick:t},n.get("Cancel"))))}function nw(e){let{retry:t,translator:n}=e,r=u(e,QS);return v.createElement(v.Fragment,null,v.createElement(tf,{item:!0},v.createElement($S,{style:{fontSize:"38px"}})),v.createElement(tf,{item:!0},v.createElement(Cc,{variant:"h6",align:"center","data-tid":"update-cancelled"},n.get("Object.Update.Cancelled"))),v.createElement(tf,{item:!0},v.createElement(Bs,l({variant:"contained",onClick:t},r),n.get("Retry"))))}function rw(e){let{canCancel:t,canRetry:n,api:r}=e;const{translator:o}=b.useContext(Xs);return v.createElement(tf,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:YS.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t&&v.createElement(tw,{cancel:r.cancel,translator:o,className:YS.cancel}),n&&v.createElement(nw,{retry:r.retry,translator:o,className:YS.retry}))}function ow(){return v.createElement(tf,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},v.createElement(XS,{size:"large"}))}const aw="Header",iw={containerStyle:"".concat(aw,"-containerStyle"),containerTitleStyle:"".concat(aw,"-containerTitleStyle")},lw=Wl(tf)((e=>{let{theme:t}=e;return{["&.".concat(iw.containerStyle)]:{flexGrow:0},["&.".concat(iw.containerTitleStyle)]:{paddingBottom:t.spacing(1)}}})),sw="njs-cell-title",cw="njs-cell-sub-title";function uw(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]=b.useState([]);b.useEffect((()=>{n&&n.component&&n.component.isHooked&&n.component.observeActions((e=>{d([...e,...n&&n.selectionToolbar&&n.selectionToolbar.items||[]])}))}),[n]);const p=[iw.containerStyle,...l||s?[iw.containerTitleStyle]:[]],f=o||c,h=v.createElement(rv,{show:!1,selections:{show:c,api:n.component.selections,onKeyDeactivate:a.refocusContent},actions:u,popover:{show:f,anchorEl:r},focusHandler:a,layout:t});return v.createElement(lw,{item:!0,container:!0,wrap:"nowrap",className:p.join(" ")},v.createElement(tf,{item:!0,zeroMinWidth:!0,xs:!0},v.createElement(tf,{container:!0,wrap:"nowrap",direction:"column"},l&&v.createElement(Bh,{title:t.title},v.createElement(Cc,{variant:"h6",noWrap:!0,className:sw,style:i.main},t.title)),s&&v.createElement(Bh,{title:t.subtitle},v.createElement(Cc,{variant:"body2",noWrap:!0,className:cw,style:i.subTitle},t.subtitle)))),v.createElement(tf,{item:!0},h))}const dw={itemStyle:"".concat("Footer","-itemStyle")},pw=Wl(tf)((e=>{let{theme:t}=e;return{["& .".concat(dw.itemStyle)]:{minWidth:0,paddingTop:t.spacing(1),width:"100%"}}})),fw="njs-cell-footer";function hw(e){let{layout:t,titleStyles:n={}}=e;return t&&t.showTitles&&t.footnote?v.createElement(pw,{container:!0},v.createElement(tf,{item:!0,className:dw.itemStyle},v.createElement(Bh,{title:t.footnote},v.createElement(Cc,{noWrap:!0,variant:"body2",className:fw,style:n.footer},t.footnote)))):null}class mw{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 gw="njs-viz";function bw(e){let{sn:t,snOptions:n,snPlugins:r,layout:o,appLayout:a,halo:i}=e;const{component:l}=t,{theme:s,language:u,constraints:d,interactions:p,keyboardNavigation:f}=b.useContext(Xs),[h]=b.useState((()=>new mw)),[m,g]=b.useState(!1),[y,x]=b.useState(0),[S,w,E]=Qh(),[k,C]=b.useState(null),R=b.useCallback((e=>{e&&C(e)}),[]);return b.useEffect((()=>{if(k)return l.created({options:n}),l.mounted(k),g(!0),()=>{h.stop(),l.willUnmount()}}),[k,l]),b.useEffect((()=>{m&&k&&w&&(!l.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"),i.app&&i.app.session&&e.push("fetch"),Promise.resolve(l.render({layout:o,options:n,plugins:r,embed:i.public.nebbie,context:c({constraints:d,interactions:p,theme:i.public.theme,appLayout:a,keyboardNavigation:f},l.isHooked?{}:{logicalSize:t.logicalSize({layout:o}),localeInfo:(a||{}).qLocaleInfo,permissions:e})})).then((e=>{!1!==e&&(0===y&&"function"==typeof n.onInitialRender&&n.onInitialRender.call(null),x(y+1))}))})))}),[w,n,r,k,E,o,a,s,u,d,p,m,f]),v.createElement("div",{ref:S,"data-render-count":y,style:{position:"relative",height:"100%"},className:gw},v.createElement("div",{ref:R,style:{position:"absolute",width:"100%",height:"100%"}}))}const vw={linechart:"lineChart",barchart:"barChart",combochart:"comboChart",scatterplot:"scatterPlot",piechart:"pieChart",straightable:"straightTable",pivottable:"pivotTable",table:"straightTable","pivot-table":"pivotTable",listbox:"listBox",referenceline:"referenceLine",datacolors:"dataColors","text-image":"textImage",boxplot:"boxPlot",map:"mapChart",mapchart:"mapChart",bulletchart:"bulletChart"},yw=(e,t,n,r)=>{const o=b.useMemo((()=>{if(e&&t){const o=e.components?e.components.find((e=>"general"===e.key)):null,a=(r=e.visualization,vw[r.toLowerCase()]?vw[r.toLowerCase()]:r),i={main:ox(o,"main",t,a),footer:ox(o,"footer",t,a),subTitle:ox(o,"subTitle",t,a)},l=nx(o,t,a),s=tx(o,n),c=function(e,t,n){const r=Jy(null==e?void 0:e.borderColor,"","borderColor",t,n),o=(null==e?void 0:e.borderWidth)||Xy("","borderWidth",t,n);return o&&r?"".concat(o," solid ").concat(r):void 0}(o,t,a),u=function(e,t,n){return(null==e?void 0:e.borderRadius)||Xy("","borderRadius",t,n)}(o,t,a);return{titleStyles:i,bgColor:l,bgImage:s,border:c,borderRadius:u,boxShadow:rx(o,t,a)}}var r;return{}}),[e,t,n,r]);return o};class xw extends Error{constructor(e,t){super(e),this.originalError=t,this.name="RenderError"}}const Sw=["action-button","sn-nav-menu"],ww=["pivot-table","table","sn-table","sn-pivot-table","kpi","map","filterpane","sn-calendar","sn-filter-pane","sn-layout-container","sn-listbox","sn-shape","sn-tabbed-container"],Ew=e=>{let{layout:t,isError:n,senseTheme:r,titleStyles:o}=e;const a=null==r?void 0:r.getStyle("","","_cards"),i=(e=>{let{isCardTheme:t,layout:n,isError:r}=e;const o=null==n?void 0:n.visualization;return!!t&&(!!r||-1===ww.indexOf(o)&&!(!(null==n?void 0:n.showTitles)&&-1!==Sw.indexOf(o)))})({isCardTheme:a,layout:t,isError:n});if(a){const e=(null==t?void 0:t.showTitles)&&!(null==t||!t.title),n=(null==t?void 0:t.showTitles)&&!(null==t||!t.subtitle),r=(null==t?void 0:t.showTitles)&&!(null==t||!t.footnote);let a;return e&&i&&(o.main.padding="10px 10px 0"),n&&i&&(o.subTitle.padding=e?"0 10px":"10px 10px 0"),r&&(o.footer.borderTop="1px solid #d9d9d9",o.footer.padding="6px 10px"),i&&(a="".concat(e||n?"0":"10px"," 10px ").concat(r?"0":"5px")),a}},kw="njs-cell",Cw="njs-cell-body",Rw=(e,t)=>{switch(t.type){case"LOADING":return c(c({},e),{},{loading:!0});case"LOADED":return c(c({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization});case"RENDER":return c(c({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null});case"LONG_RUNNING_QUERY":return c(c({},e),{},{longRunningQuery:!0});case"ERROR":return c(c({},e),{},{loading:!1,longRunningQuery:!1,error:t.error});default:throw new Error("Unhandled type: ".concat(t.type))}};function Lw(e){let{delay:t=750}=e;const[n,r]=b.useState(!1);return b.useEffect((()=>{const e=setTimeout((()=>r(!0)),t);return()=>clearTimeout(e)}),[]),n?v.createElement(ow,null):null}const Ow=e=>!e.qError||7005===e.qError.qErrorCode,Iw=(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}})),_w=e=>e&&(Array.isArray(e)?e:[e])||[],Pw=(e,t,n,r)=>{const o=r.dimensions.min(),a=r.measures.min(),i=r.resolveLayout(t);return{reqDimErrors:Iw(o,_w(i.qDimensionInfo||i.qItems),(e=>r.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:Iw(a,_w(i.qMeasureInfo),(e=>r.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},Tw=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=_w(f.qDimensionInfo||f.qItems).filter(Ow),m=_w(f.qMeasureInfo).filter(Ow);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=Pw(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]),b=[{title:h,descriptions:[...u]},{title:g,descriptions:[...d]}],v=s?c:b;return[s||a,{title:s?c[0].title:e.get("Visualization.Incomplete"),data:v}]},Mw=b.forwardRef(((e,t)=>{var n;let{halo:r,model:o,initialSnOptions:a,initialSnPlugins:i,initialError:l,onMount:s,currentId:u,emitter:d,navigation:p,onError:f}=e;const{app:h,types:m}=r,{nebbie:g}=r.public,{theme:y,translator:x,language:S,keyboardNavigation:w,disableCellPadding:E=!1}=b.useContext(Xs),k=Ol(),[C,R,L]=Qh(),[O,I]=b.useReducer(Rw,{loading:!1,loaded:!1,longRunningQuery:!1,error:(_=l)?{title:_.message}:null,sn:null,visualization:null});var _;const[P,T]=b.useState(o),[M,{validating:N,canCancel:q,canRetry:A},D]=Xh(P),[z]=Jh(h),[j,F,$]=Qh(),[B,W]=b.useState(a),[H,U]=b.useState(i),V="njs-cell-".concat(u),[G]=hv(h,P,["#".concat(V),".njs-action-toolbar-popover"]),[K,Z]=b.useState(!1),X=b.useRef({enter:null,leave:null}),{titleStyles:J,bgColor:Q,bgImage:Y,border:ee,borderRadius:te,boxShadow:ne}=yw(M,r.public.theme,r.app,y),re=b.useRef({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});b.useEffect((()=>{dv(re.current)}),[]),re.current.blurCallback=e=>{r.root.toggleFocusOfCells(),e&&$&&$.focus()},re.current.refocusContent=()=>{O.sn.component&&"function"==typeof O.sn.component.focus&&O.sn.component.focus()};b.useEffect((()=>{if(l)return void s();if(!z||!M)return;if(O.visualization===M.visualization&&O.sn)return void(async e=>{const[t,n]=await Tw(x,M,e.generator.qae.data,P);I(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:O.sn,layout:M,model:P})})(O.sn);const e=m.getSupportedVersion(M.visualization,M.version);return(async(e,t)=>{I({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,navigation:p}=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}),f=e.create({model:a,app:i,selections:l,nebbie:s,focusHandler:c,emitter:u,navigation:p});f&&(t({type:"LOADED",sn:f,visualization:r}),d())}catch(e){t(o?{type:"ERROR",error:{title:e.message,errorObject:e}}:{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:I,types:m,visualization:e,version:t,model:P,app:h,selections:G,nebbie:g,focusHandler:re.current,emitter:d,onMount:s,navigation:p})})(M.visualization,e),()=>{}}),[m,O.sn,P,G,M,z,S]),b.useEffect((()=>{if(!N)return;const e=setTimeout((()=>I({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[N]),b.useImperativeHandle(t,(()=>({getQae:()=>O.sn.generator.qae,toggleFocus(e){"function"==typeof O.sn.component.focus&&(e?O.sn.component.focus():O.sn.component.blur())},setSnOptions:W,setSnPlugins:U,setModel:T,getImperativeHandle(){var e;return null!==(e=O.sn)&&void 0!==e&&e.component&&"function"==typeof O.sn.component.getImperativeHandle?O.sn.component.getImperativeHandle():{}},async takeSnapshot(){const{width:e,height:t}=R;let n=JSON.parse(JSON.stringify(M));return"function"==typeof O.sn.component.setSnapshotData&&(n=await O.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:x.language(),theme:k.name,appLayout:z,size:{width:Math.round(e),height:Math.round(t)}},layout:n}},async exportImage(){if("function"!=typeof r.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const e=await this.takeSnapshot();return r.config.snapshot.capture(e)}})),[O.sn,F,R,M,k.name,z]);let oe=null;if(O.loading&&!O.longRunningQuery)oe=v.createElement(Lw,null);else if(O.error){if(f){f(O.error.errorObject?O.error.errorObject:new xw(O.error.title))}oe=v.createElement(HS,O.error)}else O.loaded&&(oe=v.createElement(bw,{key:M.visualization,sn:O.sn,halo:r,snOptions:B,snPlugins:H,layout:M,appLayout:z}));const ae=null===(n=r.public.galaxy)||void 0===n?void 0:n.flags;let ie,le;if(E)ie=!1,le=void 0;else if(null!=ae&&ae.isEnabled("VNA-13_CELLPADDING_FROM_THEME")){const e=r.public.theme;ie=!1,le=Ew({layout:M,isError:O.error,senseTheme:e,titleStyles:J})}else ie=!0,le=void 0;return v.createElement(hc,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:Q||"unset",backgroundImage:Y&&Y.url?"url(".concat(Y.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:Y&&Y.size,backgroundPosition:Y&&Y.pos,border:ee,borderRadius:te,boxShadow:ne,boxSizing:"border-box"},elevation:0,square:!0,className:kw,ref:C,id:V,onMouseEnter:()=>{X.current.leave&&clearTimeout(X.current.leave),X.enter||(X.current.enter=setTimeout((()=>{Z(!0),X.current.enter=null}),250))},onMouseLeave:()=>{X.current.enter&&clearTimeout(X.current.enter),X.current.leave||(X.current.leave=setTimeout((()=>{Z(!1),X.current.leave=null}),750))}},v.createElement(tf,{container:!0,direction:"column",gap:0,style:c(c({position:"relative",width:"100%",height:"100%"},ie?{padding:k.spacing(1)}:{}),O.longRunningQuery?{opacity:"0.3"}:{})},L&&M&&O.sn&&v.createElement(uw,{layout:M,sn:O.sn,anchorEl:L,hovering:K,focusHandler:re.current,titleStyles:J}," "),v.createElement(tf,{tabIndex:w?0:-1,onKeyDown:w?e=>{["Enter"," ","Spacebar"].includes(e.key)&&r.root.toggleFocusOfCells(u)}:null,item:!0,xs:!0,className:Cw,style:c({height:"100%"},le?{padding:le}:{}),ref:j},oe),L&&M&&O.sn&&v.createElement(hw,{layout:M,titleStyles:J})),O.longRunningQuery&&v.createElement(rw,{canCancel:q,canRetry:A,api:D}))}));function Nw(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function qw(){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 Nw(e)&&Nw(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(...qw("".concat(e).concat(o,"/"),t[o],n[o]))})),r}function Aw(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 Dw=e=>{var t;return!(!e||e.qHasSoftPatches||e.qExtendsId||!(((null===(t=e.qMeta)||void 0===t?void 0:t.privileges)||[]).indexOf("update")>-1))},zw=(e,t)=>e.__snInterceptor?e.__snInterceptor.setProperties.call(e,t):e.setProperties(t),jw=ue.bind(null,!0),Fw={},{isArray:$w}=Array;function Bw(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Ww(e){return void 0===e}function Hw(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function Uw(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]=Ww(e[r||t])?a:e[t],e=e[r||t]})),e}function Vw(e,t){let n=!0;if(Bw(e)&&Bw(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{Vw(e[r],t[r])||(n=!1)})),n);if($w(e)&&$w(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!Vw(e[n],t[n]))return!1;return!0}return e===t}Fw.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const a=function(e){return e?jw({},{val:e}).val:e}(t[o]),i=e[o],l="".concat(n,"/").concat(o);Vw(a,i)||Hw(t,o)||(Ww(i)?r.push({op:"add",path:l,value:a}):Bw(a)&&Bw(i)?r=r.concat(Fw.generate(i,a,l)):$w(a)&&$w(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]&&Ww(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(Vw(t,o))return r;if(!Ww(t[0])&&Ww(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(Fw.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=>{Ww(t[o])&&!Hw(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},Fw.apply=function(e,t){t.forEach((t=>{let n=Uw(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($w(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if($w(o)&&$w(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(Bw(o)&&Bw(t.value))i=o,Object.keys(i).forEach((e=>{Object.getOwnPropertyDescriptor(i,e).configurable&&!Hw(i,e)&&delete i[e]})),jw(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=Uw(e,t.from);$w(n)?n.splice(+r,0,o.splice(+a,1)[0]):(n[r]=o[a],delete o[a])}else"remove"===t.op&&($w(n)?n.splice(+r,1):delete n[r]);var i}))},Fw.clone=function(e){return jw({},e)},Fw.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},Fw.updateObject=function(e,t){Object.keys(e).length?Fw.apply(e,Fw.generate(e,t)):jw(e,t)};const Gw=e=>t=>{const n=(r=c(c({},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(R.prototype).forEach((e=>{r[e]=R.prototype[e]})),R.init(r),r);var r;return n};let Kw,Zw;function Xw(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 Jw(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 Qw(e){eE(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 Yw(e){if(e.__hooks.obsolete)return Promise.resolve();Zw=-1,Kw=e,Kw.__hooks.initiated&&Kw.__hooks.list.length;try{Kw.fn.call(null)}catch(e){console.error(e)}Kw.__hooks.initiated=!0;const t=Kw.__hooks;return oE(Kw),Zw=void 0,Kw=void 0,t.chain.promise||(t.chain.promise=new Promise((e=>{t.chain.resolve=e}))),function(e){eE(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame((()=>{!function(e){eE(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 eE(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 tE(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 nE(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 rE(e){return e.__hooks.imperativeHandle}function oE(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function aE(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,oE(e))}function iE(e){if(void 0===Kw)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=Kw.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function lE(e){iE(++Zw);return Kw.context[e]}function sE(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function cE(e){return{__hooked:!0,fn:e,initiate:Jw,run:Yw,teardown:Qw,runSnaps:tE,runMenu:nE,focus:mE,blur:gE,observeActions:aE,getImperativeHandle:rE,updateRectOnNextRun:sE}}function uE(e){const t=iE(++Zw);if(!t.value){t.component=Kw;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,Yw(r)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function dE(e,t){const n=iE(++Zw);Xw(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===Kw.__hooks.pendingEffects.indexOf(n)&&Kw.__hooks.pendingEffects.push(n))}function pE(e,t){const n=iE(++Zw);Xw(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],Kw.__hooks.pendingLayoutEffects.push(n))}function fE(e,t){const n=iE(++Zw);return Xw(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function hE(){return lE("element")}function mE(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 gE(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 bE={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},vE=Object.keys(bE),yE=e=>(Object.keys(R.prototype).forEach((t=>{e[t]=R.prototype[t]})),R.init(e),e);function xE(e,t){const n=c({},bE);yE(n);const r={emit(){n.emit(...arguments)}};Object.keys(e.component||{}).forEach((t=>{-1!==vE.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=Gw(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}),a=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(r,{model:t.model,app:t.app,global:a,selections:t.selections,actions:o.actions}),Object.assign(n,{actions:o.actions,model:t.model,app:t.app,selections:t.selections}),[n,o]}function SE(e,t,n){"function"==typeof e.component&&(e.component=cE(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 a={},i=["appLayout","constraints","interactions"],l={},s={};t.model&&t.model.session||(l.select=!0,l.edit=!0,s.select=!1,s.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,navigation:t.navigation,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,focusHandler:t.focusHandler,constraints:l,interactions:s,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)}i.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(c(c({},r[e]),l))),"interactions"===e&&(t=JSON.stringify(c(c({},r[e]),s))),t!==a[e]&&(n=!0,a[e]=t,this.context[e]=JSON.parse(t))}}))}else n=!0;return this.context.theme&&this.context.theme.name()!==a.themeName&&(n=!0,a.themeName=this.context.theme.name()),this.context.translator.language()!==a.language&&(n=!0,a.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 i.forEach((e=>{a[e]=JSON.stringify(u.context[e])})),a.themeName=u.context.theme?u.context.theme.name():void 0,a.language=u.context.translator?u.context.translator.language():void 0,Object.assign(u,{selections:t.selections}),[u,null]}(e,t,n):xE(e,t),a=[];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];try{e.qae.properties.onChange.call({model:t.model},...r)}catch(e){}return 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=Fw.clone(o),i=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));Fw.apply(o,i);try{e.qae.properties.onChange.call({model:t.model},o)}catch(e){}const l=Fw.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.__snInterceptor&&(t.model.setProperties=t.model.__snInterceptor.setProperties,delete t.model.__snInterceptor)},a.push(t.model.__snInterceptor.teardown)),{generator:e,component:r,selectionToolbar:{items:o?o.selectionToolbarItems:[]},destroy(){a.forEach((e=>e()))},logicalSize:e.definition.logicalSize||(()=>!1)}}const wE=()=>{};function EE(e,t){return void 0===e?()=>t:()=>e}function kE(e){const t=e||{};return{min:"function"==typeof t.min?t.min:EE(t.min,0),max:"function"==typeof t.max?t.max:EE(t.max,1e3),added:t.added||t.add||wE,description:t.description||wE,moved:t.moved||t.move||wE,removed:t.removed||t.remove||wE,replaced:t.replaced||t.replace||wE,isDefined:()=>!!e}}const CE=(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 RE(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=>CE(e,n,{}),dimensions:kE(e.dimensions),measures:kE(e.measures)}}function LE(){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(RE)},exportProperties:t.exportProperties,importProperties:t.importProperties}}function OE(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:LE(n.qae),component:n.component||{},create:e=>SE(r,e,t),definition:{}};return Object.keys(n).forEach((e=>{r[e]||(r.definition[e]=n[e])})),r}const IE=(e,t,n)=>{if(!e)return Promise.resolve();let r=Fw.generate(t,n);return ue(!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()},_E=()=>{};function PE(){let e,{model:t,halo:n,navigation:r,initialError:o,onDestroy:a=(async()=>{}),onRender:i=(()=>{}),onError:l=(()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=_E,u=null,d=null,p=null,f=null;const h=new Promise((e=>{p=e})),m=new Promise((e=>{f=e})),g=e=>()=>{null==e||e(),f(),i()};let b={},y=[];const x=new R,S={id:t.id,model:t,async destroy(){await a(),s(),s=_E},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(Dw(o)&&!r){const r=await jS({halo:n,model:t,cellRef:u,newType:e});return await zw(t,r.qProperty),r}const a=await t.getEffectiveProperties(),i=await jS({halo:n,model:t,cellRef:u,newType:e,properties:a}),l=i.qProperty;return await IE(t,a,l),i}return await jS({halo:n,model:t,cellRef:u,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 jS({halo:n,model:t,cellRef:u,newType:r,properties:a,viewDataMode:!0});o=await n.app.createSessionObject(i.qProperty),e=o.id}o&&u.current.setModel(o)},addListener(e,t){x.addListener(e,t)},removeListener(e,t){x.removeListener(e,t)},getImperativeHandle:async()=>(await m,u.current.getImperativeHandle()),takeSnapshot:async()=>(await m,u.current.takeSnapshot()),__DO_NOT_USE__:{mount(e){if(d)throw new Error("Already mounted");if(!(e instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return d=e,[s,u]=function(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:a,onMount:i,emitter:l,initialError:s,navigation:c,onError:u}=e;const{root:d}=t,p=v.createRef(),f=Lx(),h=Yl.createPortal(v.createElement(Mw,{ref:p,halo:t,model:r,currentId:f,initialSnOptions:o,initialSnPlugins:a,initialError:s,onMount:i,emitter:l,navigation:c,onError:u}),n,f),m=()=>{d.remove(h),r.removeListener("closed",m)};return r.on("closed",m),d.add(h,m),d.addCell(f,p),[m,p]}({halo:n,element:e,model:t,initialSnOptions:b,initialSnPlugins:y,initialError:o,onMount:p,emitter:x,navigation:r,onError:l}),h},async applyProperties(e){const n=qw("/",e,await t.getEffectiveProperties());if(n.length)return t.applyPatches(n,!0)},options(e){(async e=>{const t=e.onInitialRender;d?(async()=>{await h,u.current.setSnOptions(c(c(c({},b),e),{onInitialRender:g(t)}))})():b=c(c(c({},b),e),{onInitialRender:g(t)})})(e)},plugins(e){(async e=>{Aw(e),d?(async()=>{await h,u.current.setSnPlugins(e)})():y=e})(e)},exportImage:()=>u.current.exportImage(),takeSnapshot:()=>u.current.takeSnapshot(),getModel:()=>t,convert:{async toType(e){const r=await t.getEffectiveProperties(),o=await jS({halo:n,model:t,cellRef:u,newType:e,properties:r}),a=o.qProperty;return await IE(t,r,a),o},async revert(){await t.clearSoftPatches()}}}};return S}async function TE(e,t,n,r,o){let a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:async()=>{};const{onRender:i,onError:l}=t,s=PE({model:e,halo:n,navigation:r,initialError:o,onDestroy:a,onRender:i,onError:l});return t.options&&s.__DO_NOT_USE__.options(t.options),t.plugins&&s.__DO_NOT_USE__.plugins(t.plugins),t.element&&await s.__DO_NOT_USE__.mount(t.element),s}async function ME(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 RS({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 NE="njs-sheet";function qE(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}}const AE=b.forwardRef(((e,t)=>{var n;let{model:r,halo:o,initialSnOptions:a,initialSnPlugins:i,initialError:l,onMount:s,unmount:u,navigation:d,onError:p}=e;const{root:f}=o,[h,m]=b.useState(r),[g]=Xh(h),{theme:y,modelStore:x}=b.useContext(Xs),[S,w]=b.useState([]),[E,k]=b.useState(void 0),[C,L]=b.useState(void 0),[O,I]=b.useState(""),_=b.useRef({cellCount:0,cellsRendered:0,initialRender:!1});null==d||null===(n=d.setCurrentSheetId)||void 0===n||n.call(d,h.id),b.useEffect((()=>{if(g){const e=JSON.stringify(g.cells);if(e===O)return;I(e);const t=async()=>{S.forEach((e=>{f.removeCell(e.currentId)}));const e=g.cells;_.cellCount=e.length,_.cellsRendered=0;const t=()=>{_.cellsRendered++,_.cellsRendered!==_.cellCount||_.initialRender||(_.initialRender=!0,a.onInitialRender())},{columns:n,rows:r}=g,i=await Promise.all(e.map((async e=>{let i;const l=new Promise((e=>{i=e})),s=S.find((t=>t.id===e.name));if(s)return s.bounds=qE(e,n,r),delete s.mountedPromise,s;const u=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),TE(d,{options:o,plugins:a,element:i},t)}({id:e.name},o,x);return{model:u.model,id:e.name,bounds:qE(e,n,r),cellRef:v.createRef(),currentId:Lx(),mounted:i,mountedPromise:l,options:c(c({},a),{onInitialRender:t})}})));i.forEach((e=>f.addCell(e.currentId,e.cellRef))),w(i)};t()}}),[g]),b.useEffect((()=>{const e=()=>{h.removeListener("closed",e),u()};return h.on("closed",e),()=>h.removeListener("closed",e)}),[h]);const P=b.useMemo((()=>S?S.map((e=>function(e,t,n,r,o,a,i,l){var s;const{x:c,y:u,width:d,height:p}=e.bounds,f={left:"".concat(c,"%"),top:"".concat(u,"%"),width:"".concat(d,"%"),height:"".concat(p,"%"),position:"absolute"},h=null===(s=t.public.galaxy)||void 0===s?void 0:s.flags;null!=h&&h.isEnabled("VNA-13_CELLPADDING_FROM_THEME")&&(f.boxSizing="border-box",f.padding="4px");const m=new R;return v.createElement("div",{style:f,key:e.model.id},v.createElement(Mw,{ref:e.cellRef,halo:t,model:e.model,currentId:e.currentId,initialSnOptions:n,initialSnPlugins:r,initialError:o,onMount:a,emitter:m,navigation:i,onError:l}))}(e,o,e.options,i,l,e.mounted,d,p))):[]),[S]);b.useEffect((()=>{const e=null!=g&&g.components?g.components.find((e=>"general"===e.key)):null;k(nx(e,o.public.theme)),L(tx(e,o.app))}),[g,o.public.theme,o.app,y]),b.useImperativeHandle(t,(()=>({setModel:m})),[]);const T=!g||Number.isNaN(g.height)?"100%":"".concat(Number(g.height),"%"),M=S.map((e=>e.mountedPromise));return M.filter((e=>!!e)).length&&Promise.all(M).then((()=>{s()})),v.createElement("div",{className:NE,style:{width:"100%",height:T,position:"relative",backgroundColor:E,backgroundImage:C&&C.url?"url(".concat(C.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:C&&C.size,backgroundPosition:C&&C.pos}},P)}));const DE=()=>{};function zE(){let{model:e,halo:t,navigation:n,initialError:r,onDestroy:o=(async()=>{}),onRender:a=(()=>{}),onError:i=(()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=DE,s=null,u=null,d=null,p=null;const f=new Promise((e=>{d=e})),h=new Promise((e=>{p=e})),m=e=>()=>{null==e||e(),p(),a()};let g={},b=[];const y={id:e.id,model:e,navigation:n,getImperativeHandle:async()=>(await h,s.current.getImperativeHandle()),async destroy(){await o(),l(),l=DE},__DO_NOT_USE__:{mount(o){if(u)throw new Error("Already mounted");if(!(o instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return u=o,[l,s]=function(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:a,onMount:i,initialError:l,navigation:s,onError:c}=e;const{root:u}=t,d=v.createRef();let p;const f=()=>{u.remove(p)};return p=Yl.createPortal(v.createElement(AE,{ref:d,halo:t,model:r,initialSnOptions:o,initialSnPlugins:a,initialError:l,onMount:i,unmount:f,navigation:s,onError:c}),n,r.id),s.setSheetRef(d),u.add(p,f),[f,d]}({halo:t,element:o,model:e,initialSnOptions:g,initialSnPlugins:b,initialError:r,onMount:d,navigation:n,onError:i}),f},async applyProperties(t){const n=qw("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{const t=e.onInitialRender;u?(async()=>{await f,s.current.setSnOptions(c(c(c({},g),e),{onInitialRender:m(t)}))})():g=c(c(c({},g),e),{onInitialRender:m(t)})})(e)},plugins(e){(async e=>{Aw(e),u?(async()=>{await f,s.current.setSnPlugins(e)})():b=e})(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return y}async function jE(e,t,n){let{id:r,options:o,plugins:a,element:i,onRender:l,onError:s,navigation:c}=e;const{modelStore:u,rpcRequestModelStore:d}=n,p="".concat(r);let f=d.get(p);f||(f=t.app.getObject(r),d.set(p,f));const h=await f;u.set(p,h);const m=c||("sheet"===h.genericType?function(e,t,n){var r;const{galaxy:o}=e.public;var a;if(null!==(r=o.anything)&&void 0!==r&&null!==(r=r.sense)&&void 0!==r&&r.navigation)return null===(a=o.anything)||void 0===a||null===(a=a.sense)||void 0===a?void 0:a.navigation;const i={model:n},l={goToSheet:async n=>{var r,o;if(!i.sheetRef)return;const{modelStore:a,rpcRequestModelStore:s}=t,c="".concat(n);let u,d=s.get(c);d||(d=e.app.getObject(n),s.set(c,d));try{if(u=await d,"sheet"!==u.genericType)return}catch(e){return}a.set(c,u),null===(r=i.sheetRef)||void 0===r||null===(r=r.current)||void 0===r||null===(o=r.setModel)||void 0===o||o.call(r,u),i.model=u,l.emit("sheetChanged")},setSheetRef:e=>{i.sheetRef=e},getCurrentSheetId:()=>!!i.model&&i.model.id};return dv(l),l}(t,n,h):void 0);return"sheet"===h.genericType?async function(e,t,n,r,o){let a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:async()=>{};const{onRender:i,onError:l}=t,s=zE({model:e,halo:n,navigation:r,initialError:o,onDestroy:a,onRender:i,onError:l});return t.options&&s.__DO_NOT_USE__.options(t.options),t.plugins&&s.__DO_NOT_USE__.plugins(t.plugins),t.element&&await s.__DO_NOT_USE__.mount(t.element),s}(h,{options:o,plugins:a,element:i,onRender:l,onError:s},t,m):TE(h,{options:o,plugins:a,element:i,onRender:l,onError:s},t,m)}function FE(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}var $E,BE,WE,HE;function UE(){if(HE)return WE;HE=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return WE=n=>n?"object"!=typeof n?e:n:t}var VE,GE,KE,ZE,XE,JE,QE,YE,ek,tk,nk,rk,ok,ak,ik,lk,sk,ck,uk,dk,pk,fk,hk,mk,gk,bk,vk,yk,xk,Sk,wk,Ek={exports:{}};function kk(){if(GE)return VE;GE=1;const e=Number.MAX_SAFE_INTEGER||9007199254740991;return VE={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:e,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}function Ck(){if(ZE)return KE;ZE=1;const e="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)}:()=>{};return KE=e}function Rk(){return XE||(XE=1,function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=kk(),a=Ck(),i=(t=e.exports={}).re=[],l=t.safeRe=[],s=t.src=[],c=t.safeSrc=[],u=t.t={};let d=0;const p="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",o],[p,r]],h=(e,t,n)=>{const r=(e=>{for(const[t,n]of f)e=e.split("".concat(t,"*")).join("".concat(t,"{0,").concat(n,"}")).split("".concat(t,"+")).join("".concat(t,"{1,").concat(n,"}"));return e})(t),o=d++;a(e,o,t),u[e]=o,s[o]=t,c[o]=r,i[o]=new RegExp(t,n?"g":void 0),l[o]=new RegExp(r,n?"g":void 0)};h("NUMERICIDENTIFIER","0|[1-9]\\d*"),h("NUMERICIDENTIFIERLOOSE","\\d+"),h("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-]".concat(p,"*")),h("MAINVERSION","(".concat(s[u.NUMERICIDENTIFIER],")\\.")+"(".concat(s[u.NUMERICIDENTIFIER],")\\.")+"(".concat(s[u.NUMERICIDENTIFIER],")")),h("MAINVERSIONLOOSE","(".concat(s[u.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(s[u.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(s[u.NUMERICIDENTIFIERLOOSE],")")),h("PRERELEASEIDENTIFIER","(?:".concat(s[u.NUMERICIDENTIFIER],"|").concat(s[u.NONNUMERICIDENTIFIER],")")),h("PRERELEASEIDENTIFIERLOOSE","(?:".concat(s[u.NUMERICIDENTIFIERLOOSE],"|").concat(s[u.NONNUMERICIDENTIFIER],")")),h("PRERELEASE","(?:-(".concat(s[u.PRERELEASEIDENTIFIER],"(?:\\.").concat(s[u.PRERELEASEIDENTIFIER],")*))")),h("PRERELEASELOOSE","(?:-?(".concat(s[u.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(s[u.PRERELEASEIDENTIFIERLOOSE],")*))")),h("BUILDIDENTIFIER","".concat(p,"+")),h("BUILD","(?:\\+(".concat(s[u.BUILDIDENTIFIER],"(?:\\.").concat(s[u.BUILDIDENTIFIER],")*))")),h("FULLPLAIN","v?".concat(s[u.MAINVERSION]).concat(s[u.PRERELEASE],"?").concat(s[u.BUILD],"?")),h("FULL","^".concat(s[u.FULLPLAIN],"$")),h("LOOSEPLAIN","[v=\\s]*".concat(s[u.MAINVERSIONLOOSE]).concat(s[u.PRERELEASELOOSE],"?").concat(s[u.BUILD],"?")),h("LOOSE","^".concat(s[u.LOOSEPLAIN],"$")),h("GTLT","((?:<|>)?=?)"),h("XRANGEIDENTIFIERLOOSE","".concat(s[u.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),h("XRANGEIDENTIFIER","".concat(s[u.NUMERICIDENTIFIER],"|x|X|\\*")),h("XRANGEPLAIN","[v=\\s]*(".concat(s[u.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(s[u.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(s[u.XRANGEIDENTIFIER],")")+"(?:".concat(s[u.PRERELEASE],")?").concat(s[u.BUILD],"?")+")?)?"),h("XRANGEPLAINLOOSE","[v=\\s]*(".concat(s[u.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(s[u.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(s[u.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(s[u.PRERELEASELOOSE],")?").concat(s[u.BUILD],"?")+")?)?"),h("XRANGE","^".concat(s[u.GTLT],"\\s*").concat(s[u.XRANGEPLAIN],"$")),h("XRANGELOOSE","^".concat(s[u.GTLT],"\\s*").concat(s[u.XRANGEPLAINLOOSE],"$")),h("COERCEPLAIN","".concat("(^|[^\\d])(\\d{1,").concat(n,"})")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:\\.(\\d{1,".concat(n,"}))?")),h("COERCE","".concat(s[u.COERCEPLAIN],"(?:$|[^\\d])")),h("COERCEFULL",s[u.COERCEPLAIN]+"(?:".concat(s[u.PRERELEASE],")?")+"(?:".concat(s[u.BUILD],")?")+"(?:$|[^\\d])"),h("COERCERTL",s[u.COERCE],!0),h("COERCERTLFULL",s[u.COERCEFULL],!0),h("LONETILDE","(?:~>?)"),h("TILDETRIM","(\\s*)".concat(s[u.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",h("TILDE","^".concat(s[u.LONETILDE]).concat(s[u.XRANGEPLAIN],"$")),h("TILDELOOSE","^".concat(s[u.LONETILDE]).concat(s[u.XRANGEPLAINLOOSE],"$")),h("LONECARET","(?:\\^)"),h("CARETTRIM","(\\s*)".concat(s[u.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",h("CARET","^".concat(s[u.LONECARET]).concat(s[u.XRANGEPLAIN],"$")),h("CARETLOOSE","^".concat(s[u.LONECARET]).concat(s[u.XRANGEPLAINLOOSE],"$")),h("COMPARATORLOOSE","^".concat(s[u.GTLT],"\\s*(").concat(s[u.LOOSEPLAIN],")$|^$")),h("COMPARATOR","^".concat(s[u.GTLT],"\\s*(").concat(s[u.FULLPLAIN],")$|^$")),h("COMPARATORTRIM","(\\s*)".concat(s[u.GTLT],"\\s*(").concat(s[u.LOOSEPLAIN],"|").concat(s[u.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",h("HYPHENRANGE","^\\s*(".concat(s[u.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(s[u.XRANGEPLAIN],")")+"\\s*$"),h("HYPHENRANGELOOSE","^\\s*(".concat(s[u.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(s[u.XRANGEPLAINLOOSE],")")+"\\s*$"),h("STAR","(<|>)?=?\\s*\\*"),h("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),h("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(Ek,Ek.exports)),Ek.exports}function Lk(){if(ek)return YE;ek=1;const e=Ck(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:n}=kk(),{safeRe:r,safeSrc:o,t:a}=Rk(),i=UE(),{compareIdentifiers:l}=function(){if(QE)return JE;QE=1;const e=/^[0-9]+$/,t=(t,n)=>{const r=e.test(t),o=e.test(n);return r&&o&&(t=+t,n=+n),t===n?0:r&&!o?-1:o&&!r?1:t<n?-1:1};return JE={compareIdentifiers:t,rcompareIdentifiers:(e,n)=>t(n,e)},JE}();class s{constructor(o,l){if(l=i(l),o instanceof s){if(o.loose===!!l.loose&&o.includePrerelease===!!l.includePrerelease)return o;o=o.version}else if("string"!=typeof o)throw new TypeError('Invalid version. Must be a string. Got type "'.concat(typeof o,'".'));if(o.length>t)throw new TypeError("version is longer than ".concat(t," characters"));e("SemVer",o,l),this.options=l,this.loose=!!l.loose,this.includePrerelease=!!l.includePrerelease;const c=o.trim().match(l.loose?r[a.LOOSE]:r[a.FULL]);if(!c)throw new TypeError("Invalid Version: ".concat(o));if(this.raw=o,this.major=+c[1],this.minor=+c[2],this.patch=+c[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");c[4]?this.prerelease=c[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<n)return t}return e})):this.prerelease=[],this.build=c[5]?c[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(e("SemVer.compare",this.version,this.options,t),!(t instanceof s)){if("string"==typeof t&&t===this.version)return 0;t=new s(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(e){return e instanceof s||(e=new s(e,this.options)),l(this.major,e.major)||l(this.minor,e.minor)||l(this.patch,e.patch)}comparePre(t){if(t instanceof s||(t=new s(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 r=this.prerelease[n],o=t.prerelease[n];if(e("prerelease compare",n,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return l(r,o)}while(++n)}compareBuild(t){t instanceof s||(t=new s(t,this.options));let n=0;do{const r=this.build[n],o=t.build[n];if(e("build compare",n,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return l(r,o)}while(++n)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(t){const e=new RegExp("^".concat(this.options.loose?o[a.PRERELEASELOOSE]:o[a.PRERELEASE],"$")),n="-".concat(t).match(e);if(!n||n[1]!==t)throw new Error("invalid identifier: ".concat(t))}}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"release":if(0===this.prerelease.length)throw new Error("version ".concat(this.raw," is not a prerelease"));this.prerelease.length=0;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(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===l(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}}return YE=s}function Ok(){if(nk)return tk;nk=1;const e=Lk();return tk=(t,n,r)=>new e(t,r).compare(new e(n,r)),tk}function Ik(){if(gk)return mk;gk=1;const e=function(){if(ok)return rk;ok=1;const e=Ok();return rk=(t,n,r)=>0===e(t,n,r),rk}(),t=function(){if(ik)return ak;ik=1;const e=Ok();return ak=(t,n,r)=>0!==e(t,n,r),ak}(),n=function(){if(sk)return lk;sk=1;const e=Ok();return lk=(t,n,r)=>e(t,n,r)>0,lk}(),r=function(){if(uk)return ck;uk=1;const e=Ok();return ck=(t,n,r)=>e(t,n,r)>=0,ck}(),o=function(){if(pk)return dk;pk=1;const e=Ok();return dk=(t,n,r)=>e(t,n,r)<0,dk}(),a=function(){if(hk)return fk;hk=1;const e=Ok();return fk=(t,n,r)=>e(t,n,r)<=0,fk}();return mk=(i,l,s,c)=>{switch(l){case"===":return"object"==typeof i&&(i=i.version),"object"==typeof s&&(s=s.version),i===s;case"!==":return"object"==typeof i&&(i=i.version),"object"==typeof s&&(s=s.version),i!==s;case"":case"=":case"==":return e(i,s,c);case"!=":return t(i,s,c);case">":return n(i,s,c);case">=":return r(i,s,c);case"<":return o(i,s,c);case"<=":return a(i,s,c);default:throw new TypeError("Invalid operator: ".concat(l))}},mk}function _k(){if(xk)return yk;xk=1;const e=/\s+/g;class t{constructor(n,a){if(a=r(a),n instanceof t)return n.loose===!!a.loose&&n.includePrerelease===!!a.includePrerelease?n:new t(n.raw,a);if(n instanceof o)return this.raw=n.value,this.set=[[n]],this.formatted=void 0,this;if(this.options=a,this.loose=!!a.loose,this.includePrerelease=!!a.includePrerelease,this.raw=n.trim().replace(e," "),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=>!h(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&&m(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&p)|(this.options.loose&&f))+":"+e,r=n.get(t);if(r)return r;const i=this.options.loose,m=i?l[s.HYPHENRANGELOOSE]:l[s.HYPHENRANGE];e=e.replace(m,L(this.options.includePrerelease)),a("hyphen replace",e),e=e.replace(l[s.COMPARATORTRIM],c),a("comparator trim",e),e=e.replace(l[s.TILDETRIM],u),a("tilde trim",e),e=e.replace(l[s.CARETTRIM],d),a("caret trim",e);let g=e.split(" ").map((e=>b(e,this.options))).join(" ").split(/\s+/).map((e=>R(e,this.options)));i&&(g=g.filter((e=>(a("loose invalid filter",e,this.options),!!e.match(l[s.COMPARATORLOOSE]))))),a("range list",g);const v=new Map,y=g.map((e=>new o(e,this.options)));for(const e of y){if(h(e))return[e];v.set(e.value,e)}v.size>1&&v.has("")&&v.delete("");const x=[...v.values()];return n.set(t,x),x}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some((t=>g(t,n)&&e.set.some((e=>g(e,n)&&t.every((t=>e.every((e=>t.intersects(e,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new i(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(O(this.set[t],e,this.options))return!0;return!1}}yk=t;const n=new(BE?$E:(BE=1,$E=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}})),r=UE(),o=function(){if(vk)return bk;vk=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(">")))}}bk=t;const n=UE(),{safeRe:r,t:o}=Rk(),a=Ik(),i=Ck(),l=Lk(),s=_k();return bk}(),a=Ck(),i=Lk(),{safeRe:l,t:s,comparatorTrimReplace:c,tildeTrimReplace:u,caretTrimReplace:d}=Rk(),{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:f}=kk(),h=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,g=(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},b=(e,t)=>(a("comp",e,t),e=S(e,t),a("caret",e),e=y(e,t),a("tildes",e),e=E(e,t),a("xrange",e),e=C(e,t),a("stars",e),e),v=e=>!e||"x"===e.toLowerCase()||"*"===e,y=(e,t)=>e.trim().split(/\s+/).map((e=>x(e,t))).join(" "),x=(e,t)=>{const n=t.loose?l[s.TILDELOOSE]:l[s.TILDE];return e.replace(n,((t,n,r,o,i)=>{let l;return a("tilde",e,t,n,r,o,i),v(n)?l="":v(r)?l=">=".concat(n,".0.0 <").concat(+n+1,".0.0-0"):v(o)?l=">=".concat(n,".").concat(r,".0 <").concat(n,".").concat(+r+1,".0-0"):i?(a("replaceTilde pr",i),l=">=".concat(n,".").concat(r,".").concat(o,"-").concat(i," <").concat(n,".").concat(+r+1,".0-0")):l=">=".concat(n,".").concat(r,".").concat(o," <").concat(n,".").concat(+r+1,".0-0"),a("tilde return",l),l}))},S=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>{a("caret",e,t);const n=t.loose?l[s.CARETLOOSE]:l[s.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,o,i,l)=>{let s;return a("caret",e,t,n,o,i,l),v(n)?s="":v(o)?s=">=".concat(n,".0.0").concat(r," <").concat(+n+1,".0.0-0"):v(i)?s="0"===n?">=".concat(n,".").concat(o,".0").concat(r," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".0").concat(r," <").concat(+n+1,".0.0-0"):l?(a("replaceCaret pr",l),s="0"===n?"0"===o?">=".concat(n,".").concat(o,".").concat(i,"-").concat(l," <").concat(n,".").concat(o,".").concat(+i+1,"-0"):">=".concat(n,".").concat(o,".").concat(i,"-").concat(l," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".").concat(i,"-").concat(l," <").concat(+n+1,".0.0-0")):(a("no pr"),s="0"===n?"0"===o?">=".concat(n,".").concat(o,".").concat(i).concat(r," <").concat(n,".").concat(o,".").concat(+i+1,"-0"):">=".concat(n,".").concat(o,".").concat(i).concat(r," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".").concat(i," <").concat(+n+1,".0.0-0")),a("caret return",s),s}))},E=(e,t)=>(a("replaceXRanges",e,t),e.split(/\s+/).map((e=>k(e,t))).join(" ")),k=(e,t)=>{e=e.trim();const n=t.loose?l[s.XRANGELOOSE]:l[s.XRANGE];return e.replace(n,((n,r,o,i,l,s)=>{a("xRange",e,n,r,o,i,l,s);const c=v(o),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?(o=+o+1,i=0,l=0):(i=+i+1,l=0)):"<="===r&&(r="<",u?o=+o+1:i=+i+1),"<"===r&&(s="-0"),n="".concat(r+o,".").concat(i,".").concat(l).concat(s)):u?n=">=".concat(o,".0.0").concat(s," <").concat(+o+1,".0.0-0"):d&&(n=">=".concat(o,".").concat(i,".0").concat(s," <").concat(o,".").concat(+i+1,".0-0")),a("xRange return",n),n}))},C=(e,t)=>(a("replaceStars",e,t),e.trim().replace(l[s.STAR],"")),R=(e,t)=>(a("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?s.GTE0PRE:s.GTE0],"")),L=e=>(t,n,r,o,a,i,l,s,c,u,d,p)=>(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()),O=(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(a(e[n].semver),e[n].semver!==o.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 yk}var Pk=function(){if(wk)return Sk;wk=1;const e=_k();return Sk=(t,n,r)=>{try{n=new e(n,r)}catch(e){return!1}return n.test(t)},Sk}(),Tk=n(Pk);const Mk={};function Nk(e,t){let n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{meta:a}=o,i={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&a&&a.deps&&a.deps.properties)||Tk(e,a.deps.properties),supernova:()=>async function(e,t,n,r){let{config:o}=n;const a="".concat(e,"__").concat(t);if(!Mk[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);Mk[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 xw("Failed to load visualization: '".concat(n,"'"),e)}))}return Mk[a]}(i.name,i.version,t,o.load).then((e=>(n=n||OE(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=c({qInfo:{qType:i.name},visualization:i.name,version:i.version,showTitles:!0},JSON.parse(r));return t?(ue(!0,n,e),n):c(c({},n),e)}))}};return i}function qk(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]=Nk({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 Ak(e){let{halo:t,parent:n}=e;const r={},o=n||{get:()=>{}};return{register:(e,n)=>{r[e.name]||(r[e.name]=qk(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(Mk).forEach((t=>{t.split("__")[0]===e&&(Mk[t]=void 0)}))}(e)}}}const Dk={context:{},load:()=>{},types:[],themes:[],anything:{},flags:{KPI_REACTCOLORPICKER:!0,CLIENT_IM_3365:!0},snapshot:{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()))}};Dk.context={theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1,dataViewType:"sn-table"};const zk=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c(c({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),e)},jk=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 Fk=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=k(t.context.language);function r(e,o){if(o)return r.createConfiguration(o)(e);let a=c(c({},t.context),{},{translator:n.translator});const[i,l]=tc({app:e,context:a}),s=function(){let{themes:e=[],loadTheme:t,root:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=ze();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),je(Fe,{__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:i});a.themeApi=s.externalAPI;const u={galaxy:{translator:n.translator,flags:FE(t.flags),deviceType:$e(t.context.deviceType),hostConfig:t.hostConfig,anything:t.anything},theme:s.externalAPI,translator:n.translator,nebbie:null},d={app:e,root:i,config:t,public:u,context:a,types:null},p=Ak({halo:d});t.types.forEach((e=>p.register({name:e.name,version:e.version},{meta:e.meta,load:e.load})));let f=s.setTheme(t.context.theme),h=null,m=null;const g={render:async e=>(await f,e.id?jE(e,d,l):async function(e,t,n){let{type:r,version:o,fields:a,properties:i,options:l,plugins:s,element:c,extendProperties:u,navigation:d,onRender:p,onError:f}=e,h={};const m=[],{modelStore:g,subscribe:b}=n;let v;try{const e=t.types.get({name:r,version:o});h=await e.initialProperties(i,u);const n=await e.supernova();a&&await RS({sn:n,properties:h,fields:a,children:m},t),i&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},h)}catch(e){v=e,h={qInfo:{qType:r},visualization:r}}const y=await t.app.createSessionObject(h);m.length>0&&await y.setFullPropertyTree({qProperty:h,qChildren:m}),g.set(y.id,y);const x=b(y);return TE(y,{options:l,plugins:s,element:c,onRender:p,onError:f},t,d,v,(async()=>{await t.app.destroySessionObject(y.id),x()}))}(e,d,l)),destroy:async()=>{i.destroy()},create:async e=>ME(e,d,!1,l),generateProperties:async e=>ME(e,d,!0,l),context:async e=>{let t;["theme","language","constraints","interactions","keyboardNavigation"].forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==a[n]&&(t||(t={}),t[n]=e[n])})),t&&(a=c(c(c({},a),t),{},{translator:n.translator}),t.theme&&(f=s.setTheme(t.theme),await f),t.language&&d.public.translator.language(t.language),i.context(a))},selections:async()=>(h||(h={mount(t){m||(m=function(e){let{element:t,app:n}=e;return Yl.createPortal(v.createElement(Ox,{app:n}),t,Lx())}({element:t,app:e}),i.add(m))},unmount(){m&&(i.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(a){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!a)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 s=()=>o.emit("selectionActivated"),u=()=>o.emit("selectionDeactivated");return new Promise((r=>{[this._instance,this._ref]=function(e){let{element:t,app:n,fieldIdentifier:r,qId:o,stateName:a="$",options:i={},renderedCallback:l}=e;const s=v.createRef();return[Yl.createPortal(v.createElement(fS,{ref:s,app:n,element:t,fieldIdentifier:r,qId:o,stateName:a,initialOptions:i,renderedCallback:l}),t,Lx()),s]}({element:a,app:e,fieldIdentifier:t,qId:n,options:pS(c({onSelectionActivated:s,onSelectionDeactivated:u},l)),stateName:l.stateName||"$",renderedCallback:r}),i.add(this._instance)}))},unmount(){this._instance&&(i.remove(this._instance),this._instance=null,this._ref=null)},__DO_NOT_USE__:{options(e){var t;const n=()=>o.emit("selectionActivated"),r=()=>o.emit("selectionDeactivated");if(null!==(t=o._ref)&&void 0!==t&&t.current){const t=pS(c({onSelectionActivated:n,onSelectionDeactivated:r},e));o._ref.current.setOptions(t)}}}};return dv(o),o},getRegisteredTypes:p.getList,__DO_NOT_USE__:{types:p,popover(t,n,r){g._popoverInstance&&(i.remove(g._popoverInstance),g._popoverInstance=null);const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=c({},hS);return ue(!0,t,e),t}(c({onPopoverClose:()=>g.emit("fieldPopoverClose")},r));g._popoverInstance=v.createElement(mS,{element:t,key:Lx(),app:e,fieldIdentifier:n,options:o,stateName:r.stateName||"$"}),i.add(g._popoverInstance)}}};return d.public.nebbie=g,d.types=p,dv(g),g}return r.createConfiguration=n=>e(((e,t)=>({context:zk(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:c({},t.snapshot||e.snapshot),types:jk(e.types,t.types),themes:jk(e.themes,t.themes),flags:zk(e.flags,t.flags),hostConfig:t.hostConfig||e.hostConfig,anything:zk(e.anything,t.anything)}))(t,n)),r.config=t,r}(Dk);function $k(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}const Bk=globalThis.crypto||{getRandomValues:()=>123456};function Wk(e){return t=>{const n=ue({},t);n.qInfo=n.qInfo||{},n.qInfo.qId=n.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^Bk.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))));const r=n._mock;let o=n;return r&&(delete n._mock,o=ue({},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 Hk=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},Uk=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=Hk(e,{defaultValue:t,args:a});return n?new Promise((e=>{setTimeout((()=>e(l)),r)})):l}},Vk=["id","session"],Gk=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function Kk(e){return!Gk.includes(e)}function Zk(e){const t=Hk(e.getLayout);return t.qInfo&&t.qInfo.qId}function Xk(e,t){return e.reduce(((e,n)=>c(c({},e),function(e,t){let n=Zk(e);const{delay:r}=t,{id:o,session:a}=e,i=u(e,Vk);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]:c(c({id:n,session:Hk(a,{defaultValue:!0}),on:()=>{},once:()=>{},removeListener:()=>{}},Object.entries(i).reduce(((e,t)=>{let[n,o]=t;return c(c({},e),{},{[n]:Uk(o,{async:Kk(n),delay:r})})}),{})),{},{genericType:e.type})}}(n,t))),{})}function Jk(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!Zk(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function Qk(){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(Jk);const n=Xk(e,t);return async e=>Promise.resolve(n[e])}function Yk(){return()=>Promise.resolve({id:"app-layout"})}const eC={fromGenericObjects(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new $k,r=new Wk(n),o=new Qk(e,t),a=new Yk,i={id:"app - ".concat(+Date.now()),session:n,createSessionObject:r,destroySessionObject:async()=>{},getObject:o,getAppLayout:a,getListObject:async()=>{}};return Promise.resolve(i)}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}},tC={generator:OE,hook:cE,theme:ze,locale:x};e.EnigmaMocker=eC,e.__DO_NOT_USE__=tC,e.conversion=FS,e.embed=Fk,e.onContextMenu=function(e){const t=iE(++Zw);t.value||(t.value=1,Kw.__hooks.menus.push(t)),t.fn=e},e.onTakeSnapshot=function(e){const t=iE(++Zw);t.value||(t.value=1,Kw.__hooks.snaps.push(t)),t.fn=e},e.useAction=function(e,t){const[n]=uE({action(){n._config.action.call(null)}});return n.component||(n.component=Kw,Kw.__hooks.actions.list.push(n)),fE((()=>{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=lE("app");return e&&e.session?e:void 0},e.useAppLayout=function(){return lE("appLayout")},e.useConstraints=function(){return lE("constraints")},e.useDeviceType=function(){return lE("deviceType")},e.useEffect=dE,e.useElement=hE,e.useEmbed=function(){return lE("nebbie")},e.useEmitter=function(){return lE("emitter")},e.useGlobal=function(){const e=lE("global");return e&&e.session?e:void 0},e.useImperativeHandle=function(e,t){const n=iE(++Zw);if(n.imperative||(n.imperative=!0),Xw(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],Kw.__hooks.imperativeHandle=r}},e.useInteractionState=function(){return lE("interactions")},e.useKeyboard=function(){const e=lE("keyboardNavigation"),t=lE("focusHandler");if(!Kw.__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&&(gE(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(Kw);Kw.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),mE(this))}.bind(Kw);Kw.__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(Kw);Kw.__hooks.accessibility.focusSelectionFunction=r}const n=Kw.__hooks.accessibility.focusFunction,r=Kw.__hooks.accessibility.exitFunction,o=Kw.__hooks.accessibility.focusSelectionFunction,[a,i]=uE({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return Kw.__hooks.accessibility.setter=i,Kw.__hooks.accessibility.enabled=e,dE((()=>i({active:!1,enabled:e,blur:r,focus:n,focusSelection:o})),[e]),a},e.useLayout=function(){return lE("layout")},e.useMemo=fE,e.useModel=function(){const e=lE("model");return e&&e.session?e:void 0},e.useNavigation=function(){return lE("navigation")},e.useOptions=function(){return lE("options")},e.usePlugins=function(){return lE("plugins")},e.usePromise=function(e,t){const[n,r]=uE((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=iE(++Zw);return o.component||(o.component=Kw),pE((()=>{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=hE(),t=Kw.__hooks.resizer,[n,r]=uE((()=>{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()),pE((()=>{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.useRef=function(e){return fE((()=>({current:e})),[])},e.useRenderState=function(){iE(++Zw);const e=Kw.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}},e.useSelections=function(){return lE("selections")},e.useStaleLayout=function(){const e=lE("layout"),[t]=uE({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current},e.useState=uE,e.useTheme=function(){return lE("theme")},e.useTranslator=function(){return lE("translator")}}));
|
|
125
|
+
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,a,i,l,s,c,u,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",a=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=l)&&(t=(+t).toFixed(l+1)),u=e[0].split(a),e[0]=u.join(""),(i=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-i;)c[0]="0"+c[0];else 0==+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],s=u[1]&&u[u.length-1].length){for(m="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)m+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(m+=a);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+x}},Ey({exports:{}});const My=/,(?![^(]*\))/,Ny=/\s(?![^(]*\))/,qy=/^[0-9]+[a-zA-Z%]+?$/,Dy=["none","inset","initial","inherit"],Ay=e=>{if(!e)return;const t=e.split(Ny).filter((e=>!Dy.includes(e.toLowerCase()))).at(-1),n=!t||(e=>"0"===e||qy.test(e))(t)||Dy.includes(t.toLowerCase())?void 0:t;return n},zy=e=>e?e.split(My).map((e=>e.trim())):[];function jy(e,t,n,r){return n&&r?n.getStyle("object.".concat(r),e,t):n?n.getStyle("",e,t):void 0}function Fy(e,t,n,r,o){return e&&r?"none"!==e.color?r.getColorPickerColor(e):void 0:jy(t,n,r,o)}const $y={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},By={"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 Wy(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 Hy(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=Wy(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=By[e.bgImage.position]),n}(e),a=function(e){var t;let n=$y.originalSize;const r=null==e||null===(t=e.bgImage)||void 0===t?void 0:t.sizing;return r&&(n=$y[r]),n}(e);return r?{url:r,pos:o,size:a}:void 0}}function Uy(e,t,n){const r=null==e?void 0:e.bgColor;return r&&t&&(r.useExpression||r.useColorExpression)?t.validateColor(r.colorExpression):Fy(null==r?void 0:r.color,"","backgroundColor",t,n)}function Vy(e,t,n){var r,o;const a=jy("shadow","boxShadow",t,n);return((e,t,n)=>{if(e&&Dy.includes(e.toLowerCase()))return e.toLowerCase();const r=zy(e);if(1!==r.length)return e;let o=n;if(!o){const n=zy(t);if(1!==n.length)return e;o=Ay(n[0])}if(!o)return e;const a=Ay(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,Fy(null==e||null===(o=e.shadow)||void 0===o?void 0:o.boxShadowColor,"shadow","boxShadowColor",t,n))}function Gy(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):n.getStyle("object.".concat(r),"title.".concat(t),"color"),backgroundColor:a.backgroundColor||n.getStyle("object.".concat(r),"title.".concat(t),"backgroundColor"),fontWeight:i.includes("bold")?"bold":"normal",fontStyle:i.includes("italic")?"italic":"normal",textDecoration:i.includes("underline")?"underline":"initial"}}const Ky={selected:"#00873D",alternative:"#E4E4E4",excluded:"#A9A9A9",selectedExcluded:"#A9A9A9",possible:"#FFFFFF"},Zy=["theme","selections"];function Xy(e){var t,n,r,o,a,i,l,s;let{app:u,themeApi:d,theme:p,components:f=[],checkboxes:h=!1}=e;const m=function(){const e={};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((t=>{const n=null==t?void 0:t.key;Zy.includes(n)&&(e[n]=t)})),e}(f),g=(e,t)=>d.getStyle("object.listBox",e,t),b=e=>(null==e?void 0:e.index)>0||null!=e&&e.color?d.getColorPickerColor(e):void 0,v=function(e){var t,n,r,o,a;let{getColorPickerColor:i,theme:l,getListboxStyle:s,overrides:u,checkboxes:d}=e;const p=null===(t=u.theme)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.fontColor,f=i(p)||s("content","color")||(null===(n=l.palette)||void 0===n?void 0:n.text.primary),h=!d&&(null===(r=null===(o=u.theme)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.useContrastColor)||void 0===r||r),m=(null===(a=u.selections)||void 0===a?void 0:a.colors)||{},g=e=>{var t,n;const r="selected"===e?"main":e,o="".concat(e,"Contrast"),a=i(m[e])||s("","dataColors.".concat(e))||"possible"===e&&s("","backgroundColor")||(null===(t=l.palette)||void 0===t||null===(t=t.selected)||void 0===t?void 0:t[r])||Ky[e];return{[e]:a,[o]:h?kv(a,f):f||(null===(n=l.palette)||void 0===n?void 0:n.selected["".concat(o,"Text}")])}};return c(c(c(c(c({},g("selected")),g("alternative")),g("excluded")),g("selectedExcluded")),g("possible"))}({getColorPickerColor:b,theme:p,getListboxStyle:g,overrides:m,checkboxes:h}),y=m.theme||{},x=b(null===(t=y.header)||void 0===t?void 0:t.fontColor)||g("title.main","color"),S=function(e){let t,{themeApi:n,themeOverrides:r}=e;const o=null==r?void 0:r.background;return o?(t=null!=o&&o.useExpression?Uy({bgColor:o},n,"listBox"):n.getColorPickerColor(null==o?void 0:o.color),t):t}({themeApi:d,themeOverrides:y}),w=null!==(n=y.background)&&void 0!==n&&n.image?Hy({bgImage:y.background.image},u):void 0,E=S||g("","backgroundColor")||p.palette.background.default,k=function(e,t){const n=wv(t("","backgroundColor"));return n.setAlpha(.7),n.isInvalid()?e:n.getRGBA()}(E,g),C=function(e){return kv("#fff",e("content","color"))}(g),R=(null===(r=y.header)||void 0===r?void 0:r.fontStyle)||{},L=(null===(o=y.content)||void 0===o?void 0:o.fontStyle)||{},O=(e,t,n)=>!0===e&&t||!1===e&&n||void 0;return{background:{backgroundColor:E,backgroundImage:null==w||!w.url||null!=w&&w.url.startsWith("url(")?void 0:"url('".concat(w.url,"')"),backgroundRepeat:"no-repeat",backgroundSize:null==w?void 0:w.size,backgroundPosition:null==w?void 0:w.pos},header:{color:x,fontSize:(null===(a=y.header)||void 0===a?void 0:a.fontSize)||g("title.main","fontSize"),fontFamily:(null===(i=y.header)||void 0===i?void 0:i.fontFamily)||g("title.main","fontFamily"),fontWeight:O(R.bold,"bold","normal")||g("title.main","fontWeight")||"bold",textDecoration:R.underline?"underline":"initial",fontStyle:O(R.italic,"italic","normal")||g("title.main","fontStyle")||"initial"},content:{backgroundColor:h?void 0:v.possible,color:v.possibleContrast||g("content","color"),fontSize:(null===(l=y.content)||void 0===l?void 0:l.fontSize)||g("content","fontSize"),fontFamily:(null===(s=y.content)||void 0===s?void 0:s.fontFamily)||g("content","fontFamily"),fontWeight:O(L.bold,"bold","normal")||g("content","fontWeight")||"normal",textDecoration:L.underline?"underline":"initial",fontStyle:O(L.italic,"italic","normal")||g("content","fontStyle")||"initial"},search:{color:C,borderColor:p.palette.divider,highlightBorderColor:p.palette.custom.focusBorder,backgroundColor:k,backdropFilter:"blur(8px)"},selections:v}}function Jy(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),sortCriteria:f=[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],direction:h="ltr"}=e;const m=Boolean(null==l?void 0:l.qLibraryId),g=o&&Boolean(t.current),[y,x]=b.useState(0),S=El(),w=b.useRef(),[E]=Ah({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:s,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:f,qFieldDefs:m?void 0:[l]},qLibraryId:m?l.qLibraryId:void 0}},i,l,s),k=b.useCallback((()=>{E.lock("/qListObjectDef")}),[E]),C=b.useCallback((()=>{E.unlock("/qListObjectDef")}),[E]),{translator:R,themeApi:L,keyboardNavigation:O}=b.useContext(Ws),I=b.useRef(),_=b.useRef(),[P]=av(i,E,_),[T]=Wh(E),[M]=b.useState((()=>iv({selectDisabled:p}))),N=ig({containerRef:_,enabled:O}),{checkboxes:q=d}=T||{},D=Xy({themeApi:L,theme:S,components:u,checkboxes:q});if(b.useEffect((()=>{P&&g&&(P.isModal(E)||P.goModal("/qListObjectDef"))}),[P,g]),!E||!T||!R)return null;const A=!0===T.qListObject.qDimensionInfo.qLocked,z=(e,t)=>{const n="escapeKeyDown"!==t;P.noModal(n),a()},j=Cb({layout:T,model:E,translator:R,selectionState:M,selections:P}),F=sv(T);return v.createElement(Xf,{className:"listbox-container",open:g,onClose:z,anchorEl:t.current,anchorOrigin:n,transformOrigin:r,slotProps:{paper:{style:{minWidth:"250px"}}},onKeyDown:e=>"Enter"===e.key?z():void 0,direction:h},v.createElement(Kp,{container:!0,direction:"column",gap:0,ref:_},v.createElement(Kp,{item:!0,container:!0,style:{direction:h,padding:S.spacing(1)}},v.createElement(Kp,{item:!0},A?v.createElement(pc,{onClick:C,disabled:!A,size:"large"},v.createElement(Zh,{title:R.get("Listbox.Unlock")})):v.createElement(pc,{onClick:k,disabled:!F,size:"large"},v.createElement(Jh,{title:R.get("Listbox.Lock")}))),v.createElement(Kp,{item:!0,xs:!0}),v.createElement(Kp,{item:!0},v.createElement(Kb,{layout:T,more:{enabled:!A,actions:j,alignTo:I,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:P,onConfirm:z,onCancel:()=>z(0,"escapeKeyDown")}}))),v.createElement(Kp,{item:!0,xs:!0},v.createElement("div",{ref:I}),v.createElement(Kp,{item:!0},v.createElement(ev,{ref:w,popoverOpen:g,styles:D,visible:!0,model:E,listCount:y,selections:P,selectionState:M,keyboard:{enabled:!1,innerTabStops:!0,focusSelection:N.focusSelection},autoFocus:null==c||c,direction:h})),v.createElement(xb,{model:E,app:i,layout:T,selections:P,selectionState:M,direction:h,onSetListCount:e=>x(e),onCtrlF:()=>{w.current.focus()},styles:D,keyboard:N}))))}function Qy(e){let{field:t,api:n,stateIx:r=0,skipHandleShowListBoxPopover:o=!1,moreAlignTo:a=null,onClose:i=(()=>{})}=e;const{translator:l}=b.useContext(Ws),s=a||b.useRef(),c=El(),[u,d]=b.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,y=m.qAlternative/h.qTotal,x=(m.qExcluded+m.qLockedExcluded+m.qSelectedExcluded)/h.qTotal,S=m.qSelected+m.qSelectedExcluded+m.qLocked+m.qLockedExcluded,w=0===S&&0===h.qTotal;let E="";h.qTotal===S&&h.qTotal>1?E=l.get("CurrentSelections.All"):S>1&&h.qTotal?E=l.get("CurrentSelections.Of",[S,h.qTotal]):h.qSelectedFieldSelectionInfo&&(E=h.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==t.states[r]&&(E="".concat(t.states[r],": ").concat(E));const k=[{color:c.palette.selected.main,ratio:g},{color:c.palette.selected.alternative,ratio:y},{color:c.palette.selected.excluded,ratio:x}];k.forEach(((e,t)=>{e.offset=t?k[t-1].offset+k[t-1].ratio:0}));let C=null,R=null,L=null,O=null;return a||(C=v.createElement(Kp,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:h.qLocked?"0.3":""}},v.createElement(vc,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},t.label),v.createElement(vc,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},E)),h.qLocked?R=v.createElement(Kp,{item:!0},v.createElement(pc,{size:"large"},v.createElement(Zh,null))):h.qOneAndOnlyOne||(R=v.createElement(Kp,{item:!0},v.createElement(pc,{title:l.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),n.clearField(h.qField,t.states[r])},size:"large"},v.createElement(Kh,null)))),L=v.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===w&&k.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,"%")}})))),O=v.createElement(Kp,{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},C,R,L,u&&v.createElement(Jy,{alignTo:s,show:u,close:f,app:n.model,fieldName:h.qField,stateName:t.states[r]}))),a?v.createElement(Jy,{alignTo:s,show:!0,close:f,app:n.model,fieldName:h.qField,stateName:t.states[r]}):O}var Yy=e=>Gh((e=>c(c({},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 ex={item:"".concat("MultiState","-item")},tx=zl(Kp)((e=>{let{theme:t}=e;return{["&.".concat(ex.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"}}}));function nx(e){let{field:t,api:n,moreAlignTo:r=null,onClose:o=(()=>{})}=e;const[a,i]=b.useState(!!r),[l,s]=b.useState(-1),[c,u]=b.useState(r?r.current:null),d=r||b.useRef(),{translator:p}=b.useContext(Ws),f=p.get("Selection.ClearAllStates"),h=()=>{s(-1),o()};let m=null;r||(m=v.createElement(v.Fragment,null,v.createElement(Kp,{item:!0,xs:!0,zeroMinWidth:!0},v.createElement(_d,{style:{padding:"0px 8px"},color:"secondary",badgeContent:t.states.length},v.createElement(vc,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},t.label))),v.createElement(Kp,{item:!0},v.createElement("div",{style:{width:"12px"}})),v.createElement(Kp,{item:!0},v.createElement(pc,{size:"large"},v.createElement(Yy,null)))));const g=v.createElement(mf,{dense:!0},v.createElement(Lf,{title:f,onClick:()=>{t.states.forEach((e=>n.clearField(t.name,e)))}},v.createElement(qs,{variant:"contained",fullWidth:!0},f)),t.states.map(((e,r)=>v.createElement(Lf,{key:r,title:t.label,onClick:e=>((e,t)=>{e.stopPropagation(),i(!1),s(t)})(e,r)},v.createElement(Md,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},v.createElement(Qy,{field:t,api:n,stateIx:r,skipHandleShowListBoxPopover:!0})))))),y=v.createElement(Xf,{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),x=r?y:v.createElement(tx,{container:!0,gap:0,className:ex.item,onClick:e=>{e.currentTarget.contains(e.target)&&(u(e.currentTarget),d.current=e.currentTarget,i(!a))}},m,a&&y,l>-1&&v.createElement(Jy,{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(Jy,{alignTo:d,show:l>-1,close:h,app:n.model,fieldName:t.selections[l].qField,stateName:t.states[l]}):x}const rx="More",ox={item:"".concat(rx,"-item"),badge:"".concat(rx,"-badge")},ax=zl(Kp)((e=>{let{theme:t}=e;return{["&.".concat(ox.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(ox.badge)]:{padding:t.spacing(0,1)}}}));function ix(e){let{items:t=[],api:n}=e;const r=El(),[o,a]=b.useState(!1),[i,l]=b.useState(-1),[s,c]=b.useState(null),u=b.useRef(),d=()=>{l(-1)};let p=null;return i>-1&&(p=t[i].states.length>1?v.createElement(nx,{field:t[i],api:n,moreAlignTo:u,onClose:d}):v.createElement(Qy,{field:t[i],api:n,skipHandleShowListBoxPopover:!0,moreAlignTo:u,onClose:d})),v.createElement(ax,{container:!0,gap:0,className:ox.item,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),u.current=e.currentTarget,a(!o))}},v.createElement(Kp,{item:!0},v.createElement(Md,{borderRadius:r.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:r.palette.selected.main,color:r.palette.selected.mainContrastText}},v.createElement(vc,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",t.length))),v.createElement(Kp,{item:!0},v.createElement(pc,{size:"large"},v.createElement(Yy,null))),o&&v.createElement(Xf,{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(mf,{dense:!0},t.map(((e,t)=>v.createElement(Lf,{key:t,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),a(!1),l(t)})(e,t)},v.createElement(Md,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?v.createElement(nx,{field:e,api:n}):v.createElement(Qy,{field:e,api:n}))))))),p)}const lx=120,sx=72;function cx(e){let{api:t,app:n}=e;const r=El(),[o]=jh(n),[a]=Wh(o),[i,l]=b.useState({items:[],more:[]}),{modalObjectStore:s}=b.useContext(Ws).selectionStore,[c,u]=Uh(),[d,p]=b.useState(0);return b.useEffect((()=>{if(!u)return;const{width:e}=u,t=Math.floor(e)-sx,n=Math.floor(t/lx);p(n)}),[u]),b.useEffect((()=>{if(!(n&&o&&a&&d))return;const e=function(e){if(!e)return[];const t={};function n(e,n){e.qSelections.forEach((e=>{const r=e.qField;let o=t[r];var a;void 0===o&&(o={name:r,label:(null===(a=e.qDimensionReferences)||void 0===a||null===(a=a.find((e=>e.qLabel)))||void 0===a?void 0:a.qLabel)||e.qReadableName||r,states:[],selections:[]},t[r]=o),o.states.push(n),o.selections.push(e)}))}return e.qSelectionObject&&n(e.qSelectionObject,"$"),e.alternateStates&&e.alternateStates.forEach((e=>n(e.qSelectionObject,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(Kp,{ref:c,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},i.items.map((e=>v.createElement(Kp,{item:!0,key:"".concat(e.states.join("::"),"::").concat(e.name),style:{position:"relative",maxWidth:"240px",minWidth:"".concat(lx,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},e.states.length>1?v.createElement(nx,{field:e,api:t}):v.createElement(Qy,{field:e,api:t})))),i.more.length>0&&v.createElement(Kp,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(sx,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},v.createElement(ix,{items:i.more,api:t})))}var ux=e=>Gh((e=>c(c({},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 dx=e=>Gh((e=>c(c({},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 px=(e,t,n)=>{const r=[...n.qStateNames||[]].map((e=>({stateName:e,qSelectionObjectDef:{qStateName:e}}))),o=(t&&t.alternateStates?t.alternateStates.map((e=>e.stateName)):[]).join("::"),a=(n.qStateNames||[]).map((e=>e)).join("::");o!==a&&e.applyPatches([{qOp:"replace",qPath:"/alternateStates",qValue:JSON.stringify(r)}],!0)};function fx(e){let{api:t,app:n}=e;const{translator:r}=b.useContext(Ws),[o]=function(e){const[t]=jh(e),[n]=Wh(t),[r]=Hh(e),[o,a]=b.useState(null);return b.useEffect((()=>{r&&t&&n&&px(t,n,r)}),[r,t,n]),b.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(Kp,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},v.createElement(Kp,{item:!0},v.createElement(pc,{style:{marginRight:"8px"},disabled:!o||!o.canGoBack,title:r.get("Navigate.Back"),onClick:()=>t.back(),size:"large"},v.createElement(ux,null))),v.createElement(Kp,{item:!0},v.createElement(pc,{style:{marginRight:"8px"},disabled:!o||!o.canGoForward,title:r.get("Navigate.Forward"),onClick:()=>t.forward(),size:"large"},v.createElement(dx,null))),v.createElement(Kp,{item:!0},v.createElement(pc,{disabled:!o||!o.canClear,title:r.get("Selection.ClearAll"),onClick:()=>t.clear(),size:"large"},v.createElement(Mb,null))))}const hx=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function mx(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function gx(){return hx.map(mx).join("")}function bx(e){let{app:t}=e;const n=El(),[r]=tv(t);return r?v.createElement(Kp,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:n.palette.background.paper,minHeight:"40px"}},v.createElement(Kp,{item:!0,style:{borderRight:"1px solid ".concat(n.palette.divider)}},v.createElement(fx,{api:r,app:t})),v.createElement(Kp,{item:!0,xs:!0,style:{backgroundColor:n.palette.background.darker,overflow:"hidden"}},v.createElement(cx,{api:r,app:t}))):null}let vx;vx="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;let yx=null,xx=null;const Sx=vx.clearTimeout,wx=vx.setTimeout,Ex=vx.cancelAnimationFrame||vx.mozCancelAnimationFrame||vx.webkitCancelAnimationFrame,kx=vx.requestAnimationFrame||vx.mozRequestAnimationFrame||vx.webkitRequestAnimationFrame;function Cx(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__&&yx(this.__resizeRAF__),this.__resizeRAF__=xx((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=vx.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==Ex||null==kx?(yx=Sx,xx=function(e){return wx(e,20)}):(yx=function([e,t]){Ex(e),Sx(t)},xx=function(e){const t=kx((function(){Sx(n),e()})),n=wx((function(){Ex(t),e()}),20);return[t,n]});class Rx extends b.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=Cx(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,doNotBailOutOnEmptyChildren:a=!1,nonce:i,onResize:l,style:s={},tagName:c="div",...u}=this.props,{height:d,scaledHeight:p,scaledWidth:f,width:h}=this.state,m={overflow:"visible"},g={};let v=!1;return r||(0===d&&(v=!0),m.height=0,g.height=d,g.scaledHeight=p),o||(0===h&&(v=!0),m.width=0,g.width=h,g.scaledWidth=f),a&&(v=!1),b.createElement(c,{ref:this._setRef,style:{...m,...s},...u},!v&&e(g))}}function Lx(e){let{keyboard:t,hovering:n,updateKeyScroll:r,currentScrollIndex:o,isModal:a,constraints:i,selections:l}=e;return{handleKeyDown:e=>{const{keyCode:n,shiftKey:r=!1}=e.nativeEvent,o=()=>{e.stopPropagation(),e.preventDefault()};if(!t.enabled)return;const i=e.currentTarget.closest(".listbox-container"),s=a();switch(n){case rg.TAB:if(document.activeElement===i||!s&&!i.contains(document.activeElement))return;if(r){cg(i)||sg(i)||dg(e,t)}else{if(!(ug(i)||sg(i)||cg(i)))break}o();break;case rg.ENTER:case rg.SPACE:if(!e.target.classList.contains("listbox-container"))break;t.focus(),o();break;case rg.ESCAPE:dg(e,t),l.isActive()&&l.cancel()}},handleOnMouseEnter:()=>{n.current=!0},handleOnMouseLeave:()=>{n.current&&(n.current=!1)},globalKeyDown:e=>{if(!n.current||(()=>{const e=(null==i?void 0:i.select)||(null==i?void 0:i.active),t=a();return e||t})())return;const{keyCode:t,ctrlKey:l=!1,shiftKey:s=!1}=e;switch(t){case rg.ARROW_UP:r({up:1});break;case rg.ARROW_DOWN:r({down:1});break;case rg.PAGE_UP:r({up:o.stop-o.start});break;case rg.PAGE_DOWN:r({down:o.stop-o.start});break;case rg.HOME:r({scrollPosition:l&&s?"overflowStart":"start"});break;case rg.END:r({scrollPosition:l&&s?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const Ox=zl("div")((()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"})));function Ix(e){let{text:t}=e;const{translator:n}=b.useContext(Ws);return v.createElement(Ox,null,n.get(t))}const _x={fontSize:"12px"},Px=zl(Cs)((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(bm,"px")}}})),Tx=zl(Kp,{shouldForwardProp:e=>!["styles","isRtl"].includes(e)})((e=>{let{styles:t,isRtl:n}=e;return c(c({flexDirection:n?"row-reverse":"row",wrap:"nowrap",minHeight:32,alignContent:"center"},t.header),{},{"& *":{color:t.header.color}})})),Mx=zl(vc)((e=>{let{styles:t}=e;return c(c({},t.header),{},{display:"block",alignItems:"center",paddingRight:"1px"})}));function Nx(e){let{translator:t,toggleLock:n,keyboard:r,isLoading:o}=e;const a=t.get("SelectionToolbar.ClickToUnlock");return v.createElement(Px,{title:a,tabIndex:r.enabled?0:-1,onClick:n,"data-testid":"listbox-unlock-button",id:"listbox-unlock-button",isLoading:o},o?v.createElement(cp,{size:16,variant:"indeterminate",color:"primary"}):v.createElement(Zh,{disableRipple:!0,style:_x}),!o&&v.createElement(vc,{fontSize:"14px"},a))}var qx=e=>Gh((e=>c(c({},e),{},{shapes:[{type:"path",attrs:{d:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"}}]}))(e));var Dx=e=>Gh((e=>c(c({},e),{},{shapes:[{type:"path",attrs:{d:"M7 4h9v1H7zm2 4h7v1H9zm2 4h5v1h-5zM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4z"}}]}))(e));var Ax=e=>Gh((e=>c(c({},e),{},{shapes:[{type:"path",attrs:{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"}}]}))(e));const zx="H",jx="C";var Fx={createDimensionIconData:e=>{let{dimInfo:t,app:n,selections:r,isPopover:o,active:a,keyboard:i}=e;switch(t.qGrouping){case zx:return{icon:Dx,tooltip:"Listbox.DrillDown",onClick:void 0};case jx:{const e=n&&a,l=()=>{o||r.confirm(),n.getDimension(t.qLibraryId).then((e=>{e.stepCycle?e.stepCycle(1):console.log("engine api spec version doesn't have support for function stepCycle")})).catch((()=>null))};return{icon:e?Ax:qx,tooltip:"Listbox.Cyclic",onClick:e?l:void 0,onKeyDown:e?e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.keyCode){case rg.SPACE:case rg.ENTER:l();break;case rg.TAB:{if(!i.enabled)return;let n;n=e.shiftKey?i.focusSelection():sg(t)||cg(t),n||dg(e,i)}break;default:return}e.preventDefault(),e.stopPropagation()}:void 0}}default:return}}};const $x=zl(qs)((()=>({borderRadius:4,width:24,height:24,minWidth:22,padding:0})));function Bx(e){let{iconData:t,translator:n,iconStyle:r,disabled:o,keyboard:a}=e;if(!t)return;const{icon:i,tooltip:l,onClick:s,onKeyDown:u}=t,d=i,p=n.get(l);return s?v.createElement($x,{variant:"outlined",onClick:s,tabIndex:a.innerTabStops?0:-1,title:p,size:"large",disableRipple:!0,disabled:o,onKeyDown:u,className:"listbox-cyclic-button","data-testid":"listbox-cyclic-button"},v.createElement(d,{style:r})):v.createElement(d,{title:p,size:"large",style:c(c({},r),{},{padding:"".concat(bm,"px")})})}const Wx=500;let Hx=0;function Ux(e){var t,n,r;let{layout:o,translator:a,styles:i,isRtl:s,showLock:u,showSearchIcon:d,constraints:p,onShowSearch:f,classes:h,containerRect:m,isPopover:g,showToolbar:y,showDetachedToolbarOnly:x,containerRef:S,model:w,selectionState:E,isDirectQuery:k,selections:C,keyboard:R,autoConfirm:L,app:O,disablePortal:I}=e;const[_,P]=b.useState(x),[T,M]=b.useState(null==o||null===(t=o.qListObject)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.qLocked),[N,q]=b.useState(!1);b.useEffect((()=>{var e;M(null==o||null===(e=o.qListObject)||void 0===e||null===(e=e.qDimensionInfo)||void 0===e?void 0:e.qLocked)}),[null==o||null===(n=o.qListObject)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.qLocked]);const D=b.useRef(null),A=Fx.createDimensionIconData({dimInfo:null==o||null===(r=o.qListObject)||void 0===r?void 0:r.qDimensionInfo,app:O,selections:C,isPopover:g,active:!(null!=p&&p.active),keyboard:R}),z=u&&T,j=!u&&T,F=d||j||A,$=mm-(F?bm:0),B=s?mm-(F?bm:0):gm,W=(d?vm:0)+(j?vm:0)+(A?vm:0),H=function(e){let{isLocked:t,setLocked:n,settingLockedState:r,model:o,setSettingLockedState:a}=e;return()=>{const e=new Date;if(e-Hx<Wx)return Promise.resolve();if(r)return()=>{};a(!0),Hx=e;const i=t?o.unlock:o.lock;return n(!t),i.call(o,"/qListObjectDef").catch((()=>{n(t)})).finally((()=>{setTimeout((()=>{a(!1)}),0)}))}}({isLocked:T,setLocked:M,settingLockedState:N,setSettingLockedState:q,model:w}),U=Cb({layout:o,model:w,translator:a,selectionState:E,isDirectQuery:k,selections:C}),V=T||!u?void 0:[{key:"lock",type:void 0,label:a.get("SelectionToolbar.ClickToLock"),getSvgIconShape:Xh,enabled:()=>!N&&!E.selectDisabled()&&sv(o),action:H}],G=null!=p&&p.active?v.createElement(Zb,{title:a.get("Listbox.Search"),size:"large",style:c(c({},_x),{},{padding:"".concat(bm,"px")})}):v.createElement(pc,{onClick:f,tabIndex:-1,title:a.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},v.createElement(Zb,{style:_x}));b.useEffect((()=>{if(!D.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:D,iconsWidth:W,paddingLeft:$,paddingRight:B});P(x||e)}),[W,$,B,D.current,x,Object.entries(m||{}).sort().join(",")]);const K=function(e){let{isDetached:t,showToolbar:n,containerRef:r,isLocked:o,listboxSelectionToolbarItems:a,extraItems:i,selections:l,keyboard:s,autoConfirm:c,disablePortal:u}=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"},disablePortal:u},selections:{show:n,api:l,onConfirm:()=>{null==s||s.focus()},onCancel:()=>{null==s||s.focus()}}}}({isDetached:!g&&_,showToolbar:y,containerRef:S,isLocked:T,extraItems:V,listboxSelectionToolbarItems:U,selections:C,keyboard:R,autoConfirm:L,disablePortal:I}),Z=v.createElement(Kb,l({isRtl:s,layout:o},K));if(x)return Z;const X=j?v.createElement(Zh,{size:"large",style:c(c({},_x),{},{padding:"".concat(bm,"px")})}):void 0;return v.createElement(Tx,{item:!0,container:!0,styles:i,isRtl:s,marginY:1,paddingLeft:"".concat($,"px"),paddingRight:"".concat(B,"px"),className:"header-container"},z&&v.createElement(Nx,{isLoading:N,translator:a,toggleLock:H,keyboard:R}),F&&v.createElement(Kp,{item:!0,container:!0,alignItems:"center",width:W,className:"header-action-container"},X||d&&G,v.createElement(Bx,{iconData:A,iconStyle:_x,disabled:C.isActive()&&g,translator:a,keyboard:R})),v.createElement(Kp,{item:!0,xs:!0,minWidth:0,justifyContent:s?"flex-end":"flex-start",className:h.listBoxHeader},v.createElement(Mx,{variant:"h6",noWrap:!0,ref:D,title:o.title,styles:i},o.title)),v.createElement(Kp,{item:!0,display:"flex"},Z))}const Vx="ListBoxInline",Gx={listBoxHeader:"".concat(Vx,"-listBoxHeader"),screenReaderOnly:"".concat(Vx,"-screenReaderOnly"),listboxWrapper:"".concat(Vx,"-listboxWrapper")},Kx=zl(Kp,{shouldForwardProp:e=>!["containerPadding","isGridMode","styles"].includes(e)})((e=>{let{theme:t,containerPadding:n,isGridMode:r,styles:o}=e;return c(c({},o.background),{},{["& .".concat(Gx.listBoxHeader)]:{alignSelf:"center",display:"flex"},["& .".concat(Gx.screenReaderOnly)]:{position:"absolute",height:0,width:0,overflow:"hidden"},["& .".concat(Gx.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 Zx=v.memo((function(e){var t,n,r,o;let{options:a,layout:i}=e;const{app:l,direction:s,frequencyMode:u,checkboxes:d,search:p=!0,focusSearch:f=!1,rangeSelect:h=!0,model:m,selections:g,update:y,fetchStart:x,postProcessPages:S,calculatePagesHeight:w,showGray:E=!0,scrollState:k,renderedCallback:C,toolbar:R=!0,isPopover:L=!1,showLock:O=!1,components:I,selectDisabled:_=(()=>!1),disablePortal:P=!0}=a,T=El(),{translator:M,keyboardNavigation:N,themeApi:q,constraints:D}=b.useContext(Ws),{checkboxes:A=d}=i||{},z=Xy({app:l,themeApi:q,theme:T,components:I,checkboxes:A}),j=function(e){let{appLayout:t}=e;return!(null==t||!t.qIsDirectQueryMode)}({appLayout:null==l?void 0:l.layout}),F=b.useRef(),$=b.useRef(),[B,W]=Uh(),[H,U]=b.useState(!1),[V,G]=b.useState(!1),K=b.useRef(!1),[Z,X]=b.useState({down:0,up:0,scrollPosition:""}),J=e=>X((t=>c(c({},t),e))),[Q,Y]=b.useState({start:0,stop:0}),[ee]=tv(l),[te]=b.useState((()=>iv({selectDisabled:_}))),ne=ig({containerRef:F,enabled:N}),re=b.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:l,appSelections:ee})),[l,ee]),oe=null==i?void 0:i.qListObject.qDimensionInfo.qError,ae=oe&&D.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",{handleKeyDown:ie,handleOnMouseEnter:le,handleOnMouseLeave:se,globalKeyDown:ce}=b.useMemo((()=>Lx({keyboard:ne,hovering:K,updateKeyScroll:J,currentScrollIndex:Q,constraints:D,isModal:re,selections:g})),[ne,K,J,F,Q,l,ee,D,re]);b.useEffect((()=>(document.addEventListener("keydown",ce),()=>{document.removeEventListener("keydown",ce)})),[ce]),b.useEffect((()=>{!0===p&&G(!0);const e=()=>{U(!0)},t=()=>{U(!1),"toggle"===p&&G(!1)};return L&&(g.isActive()||(g.on("activated",e),g.on("deactivated",t)),U(L)),R&&g&&(g.isModal()||(g.on("activated",e),g.on("deactivated",t)),U(L||g.isActive())),()=>{g&&g.removeListener&&(g.removeListener("activated",e),g.removeListener("deactivated",t))}}),[R,g,L]);const{wildCardSearch:ue,searchEnabled:de,autoConfirm:pe=!1,layoutOptions:fe={}}=null!=i?i:{},he=null==i||null===(t=i.qListObject)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.qLocked,me=!1!==de&&"toggle"===p&&!he,ge=(null==i||null===(n=i.title)||void 0===n?void 0:n.length)&&!1!==(null==i?void 0:i.showTitle),be=R&&!ge&&!L,ve=R&&ge||L,ye="rtl"===s;if(!m||!i||!M)return null;const xe=!0===p||"toggle"===p&&V&&!1!==de,Se=null!==(r=fe.dense)&&void 0!==r&&r,we=()=>{G(!V)},Ee=()=>{"toggle"===p?we():$.current.focus()},ke=xe&&("toggle"===p||f),Ce="grid"===(null==fe?void 0:fe.dataLayout),Re=function(e){let t,{isGridMode:n,dense:r,height:o,layoutOrder:a}=e;if(n){let e;e=Ug({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:Ce,dense:Se,height:null===(o=F.current)||void 0===o?void 0:o.clientHeight,layoutOrder:fe.layoutOrder});oe&&(null==C||C());const Le=ve?Lm+xm:0,Oe=v.createElement(Ux,{app:l,showSearchIcon:me,onShowSearch:we,isPopover:L,showToolbar:H,isDirectQuery:j,autoConfirm:pe,showDetachedToolbarOnly:be,layout:i,translator:M,styles:z,isRtl:ye,showLock:O,constraints:D,classes:Gx,containerRect:W,containerRef:F,model:m,selectionState:te,selections:g,keyboard:ne,disablePortal:P});return v.createElement(v.Fragment,null,be&&Oe,v.createElement(Kx,{className:"listbox-container",container:!0,tabIndex:ne.enabled?-1:void 0,direction:"column",gap:0,containerPadding:Re,styles:z,style:{height:"100%",flexFlow:"column nowrap"},onKeyDown:ie,onMouseEnter:le,onMouseLeave:se,ref:e=>{F.current=e,B(e)},isGridMode:Ce,"aria-label":ne.active?M.get("Listbox.ScreenReaderInstructions"):""},ve&&Oe,v.createElement(Kp,{item:!0,container:!0,direction:"column",height:"100%",minHeight:Le,role:"region","aria-label":M.get("Listbox.ResultFilterLabel")},v.createElement(Kp,{item:!0},v.createElement(ev,{ref:$,selections:g,selectionState:te,model:m,dense:Se,keyboard:ne,visible:xe,search:p,autoFocus:ke,beginSelectionOnFocus:!L,wildCardSearch:ue,searchEnabled:de,direction:s,hide:me&&we,styles:z})),v.createElement(Kp,{item:!0,xs:!0,className:Gx.listboxWrapper},oe?v.createElement(Ix,{text:ae}):v.createElement(Rx,null,(e=>{let{height:t,width:n}=e;return v.createElement(xb,{model:m,app:l,constraints:D,layout:i,selections:g,selectionState:te,direction:s,frequencyMode:u,rangeSelect:h,checkboxes:A,height:t,width:n,update:y,fetchStart:x,postProcessPages:S,calculatePagesHeight:w,keyboard:ne,showGray:E,scrollState:k,keyScroll:{state:Z,reset:()=>X({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:Q,set:Y},renderedCallback:C,onCtrlF:Ee,isModal:re,styles:z})}))))))}));function Xx(e){let{options:t={}}=e;const{model:n}=t,[r]=Wh(n);return v.createElement(Zx,{options:t,layout:r})}function Jx(e){let{app:t,qId:n,options:r={}}=e;const[o,a]=b.useState(),[i]=Dh(),{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 b.useEffect((()=>{let e=!1,r=()=>{};return async function(){const o=await Promise.resolve(l||async function(e){return i.get(e)||await t.getObject(e)}(n));if(!e){if(!i.get(o.id)){i.set(o.id,o);const e=()=>{i.clear(o.id)};o.once("closed",e),r=()=>{o.removeListener("closed",e)}}a(o)}}(),()=>{e=!0,r()}}),[]),o}const Qx={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 Yx(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 eS=["__DO_NOT_USE__"],tS=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 c(c(c({},u(e,eS)),n),t)},nS=b.forwardRef(((e,t)=>{let{app:n,fieldIdentifier:r,qId:o,stateName:a,element:i,initialOptions:l,renderedCallback:s}=e;const[u,d]=b.useState(l),{isExistingObject:p,hasExternalSelectionsApi:f}=function(e){let{qId:t,options:n}=e;return{isExistingObject:!(!t&&!n.sessionModel),hasExternalSelectionsApi:!!n.selectionsApi}}({qId:o,options:u});p||Object.assign(u,{frequencyMode:Yx(u.frequencyMode)});const[h,m]=b.useState(0);b.useEffect((()=>{if(h)throw new Error("Source or selection Api can not change after a listbox has been mounted");m(h+1)}),[p,f]);const g=p?Jx({app:n,qId:o,options:u}):function(e){var t;let{app:n,fieldIdentifier:r,stateName:o,options:a={}}=e;const[i,l]=b.useState(""),[s,c]=b.useState(!0),[u,d]=b.useState(),[p,f]=b.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"),b.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:y,listLayout:x,properties:S={}}=a,w={dense:v};"horizontal"===x&&(w.dataLayout="grid",w.layoutOrder="column",w.maxVisibleColumns={auto:!0},w.maxVisibleRows={auto:!1,maxRows:1});const E=b.useRef();E.current||(E.current=gx());const k=ue(!0,{},Qx,{qInfo:{qId:E.current},qListObjectDef:{qStateName:o,qFrequencyMode:m&&"N"===g?"V":g},histogram:m,checkboxes:y,layoutOptions:w,title:h});let C;if(ue(!0,k,S),r.qLibraryId?(k.qListObjectDef.qLibraryId=r.qLibraryId,C=r.qLibraryId):(k.qListObjectDef.qDef.qFieldDefs=[r],C=r),"P"!==g&&m)if(null!=i&&i.multiFieldDim)k.frequencyMax="fetch";else{const e=r.qLibraryId?i:C;k.frequencyMax={qValueExpression:mb(e)}}const[R]=Ah(k,s?null:n,C,o);return b.useEffect((()=>{R&&d(R)}),[R]),u}({app:n,fieldIdentifier:r,stateName:a,options:u}),y=b.useRef(i),x=f?u.selectionsApi:av(n,g,[y,".njs-action-toolbar-more",".njs-action-toolbar-popover"],u)[0],S=b.useMemo((()=>c(c({},u),{},{selections:x,model:g,app:n,renderedCallback:s})),[u,x,g,n]);return b.useImperativeHandle(t,(()=>({setOptions:e=>d(e)})),[]),x&&g?v.createElement(Xx,{options:S}):null}));const rS={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function oS(e){let{app:t,fieldIdentifier:n,stateName:r,element:o,options:a={}}=e;const[i,l]=b.useState(!!a.show);return v.createElement(Jy,{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,sortCriteria:a.sortCriteria,direction:a.direction})}function aS(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function iS(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 lS=e=>({qDef:{qFieldDefs:[e]}}),sS=e=>({qDef:{qDef:e}});function cS(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,a={dimensions:()=>t.qDimensions,measures:()=>t.qMeasures,addDimension(e){const r="string"==typeof e?lS(e):c(c({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||gx(),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<a.maxDimensions()?(t.qDimensions.push(r),aS(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 iS(t.qInterColumnSortOrder,e),n.dimensions.removed(r,o,e),r},addMeasure(e){const r="string"==typeof e?sS(e):c(c({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||gx(),r.qSortBy=r.qSortBy||{qSortByLoadOrder:1,qSortByNumeric:-1},r.qAttributeDimensions=r.qAttributeDimensions||[],r.qAttributeExpressions=r.qAttributeExpressions||[],t.qMeasures.length<a.maxMeasures()?(t.qMeasures.push(r),aS(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];iS(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<a.maxDimensions(),canAddMeasure:()=>t.qMeasures.length<a.maxMeasures()};return a}const uS=e=>({qDef:{qFieldDefs:[e]}});function dS(e){let{dc:t,def:n,properties:r}=e;t.qInitialDataFetch=t.qInitialDataFetch||[];const o=r,a={dimensions:()=>t.qLibraryId||t.qDef&&t.qDef.qFieldDefs&&0!==t.qDef.qFieldDefs.length?[t]:[],measures:()=>[],addDimension(e){const r="string"==typeof e?uS(e):c(c({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||gx(),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===a.dimensions().length,canAddMeasure:()=>!1};return a}const pS=e=>({qDef:{qFieldDefs:[e]}}),fS=e=>{let t;return t="string"==typeof e?ue(!0,{},Qx,{qListObjectDef:pS(e)}):e.qListObjectDef?ue(!0,{},Qx,e):ue(!0,{},Qx,{qListObjectDef:e}),t};function hS(e){let{children:t,halo:n}=e;const r={async addDimension(e){const r=fS(e),o=r.qListObjectDef;if(o.qDef.cId=o.qDef.cId||gx(),!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 mS(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 gS(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")?dS:e.match("/qChildListDef")?hS:cS}(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"===mS(t)?await d.addMeasure(t):await d.addDimension(t)}}var bS={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 vS={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 yS=2**53-1;function xS(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function SS(e,t){const n=ue(!0,{},t,e);return bS.getValue(n,"qOtherTotalSpec.qOtherCounted")||bS.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),bS.getValue(n,"qOtherTotalSpec.qOtherLimit")||bS.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function wS(e,t){return ue(!0,{},t,e)}function ES(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var kS={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===bS.getValue(e,t)&&bS.setValue(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:xS,importCommonProperties:function(e,t,n){const r="masterobject"===bS.getValue(t,"properties.qInfo.qType")?"masterobject":bS.getValue(n,"qInfo.qType");bS.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:SS,createDefaultMeasure:wS,resolveValue:ES,getHypercubePath:function(e){const t=bS.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?(vS.indexAdded(n.qInterColumnSortOrder,a),++a):(--a,vS.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=ue(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?bS.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||xS(e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),o=ue(!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=ES(a.max,r.dimensions.length,yS),l=ES(a.min,r.dimensions.length,0);return{maxDimensions:ES(o.max,i,yS),minDimensions:ES(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(SS(i.dimensions[l],a)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(SS(i.dimensions[l],a));else if(i.dimensions.length)for(l=0;l<i.dimensions.length;++l)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(SS(i.dimensions[l],a));if(i.excludedDimensions.length)for(l=0;l<i.excludedDimensions.length;++l)o.qDimensions.length<r?o.qDimensions.push(SS(i.excludedDimensions[l],a)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(SS(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(wS(i.measures[l],a)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(wS(i.measures[l],a));else if(i.measures.length)for(l=0;l<i.measures.length;++l)o.qLayoutExclude.qHyperCubeDef.qMeasures.push(wS(i.measures[l],a));if(i.excludedMeasures.length)for(l=0;l<i.excludedMeasures.length;++l)o.qMeasures.length<r?o.qMeasures.push(wS(i.excludedMeasures[l],a)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(wS(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=bS.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=bS.getValue(t,r||"").qHyperCubeDef,o=[...e.qMeasures];e.qMeasures=[],o.forEach((r=>{e.qMeasures.push(r),n.measures.added(r,t)}))}}};var CS={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=bS.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();vS.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&&(kS.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!bS.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=kS.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:a}),s=bS.getValue(n,a||"").qHyperCubeDef,c=bS.getValue(l,a||"").qHyperCubeDef,{maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f}=kS.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:h=kS.getDefaultDimension(),defaultMeasure:m=kS.getDefaultMeasure()}=o;return c.qDimensions.length=0,c.qMeasures.length=0,kS.shouldInitLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f})&&kS.initLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f,newHyperCubeDef:c}),kS.addDefaultDimensions({exportFormat:t,maxDimensions:u,minDimensions:d,newHyperCubeDef:c,defaultDimension:h}),kS.addDefaultMeasures({exportFormat:t,maxMeasures:p,minMeasures:f,newHyperCubeDef:c,defaultMeasure:m}),kS.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:c}),kS.copyPropertyIfExist("qMaxStackedCells",s,c),kS.copyPropertyIfExist("qNoOfLeftDims",s,c),kS.copyPropertyOrSetDefault("qInitialDataFetch",s,c,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),kS.copyPropertyOrSetDefault("qMode",s,c,"S"),kS.copyPropertyOrSetDefault("qReductionMode",s,c,"N"),kS.copyPropertyOrSetDefault("qSortbyYValue",s,c),kS.copyPropertyOrSetDefault("qIndentMode",s,c),kS.copyPropertyOrSetDefault("qShowTotalsAbove",s,c),kS.importCommonProperties(l,t,n),kS.updateDimensionsOnAdded({newProperties:l,dataDefinition:r,hypercubePath:a}),kS.updateMeasuresOnAdded({newProperties:l,dataDefinition:r,hypercubePath:a}),i.qProperty=l,i}(e)};const RS=e=>bS.getValue(e,"data.targets.0.propertyPath"),LS=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return CS.exportProperties})(RS(e))},OS=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return CS.importProperties})(RS(e))},IS=async e=>{let{halo:t,model:n,cellRef:r,newType:o,properties:a,viewDataMode:i=!1}=e;const l=a?{qProperty:a}:await n.getFullPropertyTree(),s=r.current.getQae(),u=LS(s);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=OS(p);if(!f)throw new Error("Target chart does not support conversion");return f({exportFormat:u({propertyTree:l,hypercubePath:kS.getHypercubePath(s),viewDataMode:i}),initialProperties:c({qInfo:{qType:o},visualization:o},bS.getValue(p,"properties.initial",{})),dataDefinition:bS.getValue(p,"data.targets.0.",{}),hypercubePath:kS.getHypercubePath(p),viewDataMode:i})},_S={hypercube:CS};var PS=e=>Gh((e=>c(c({},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 TS(e){let{d:t}=e;const n=El();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(vc,{style:{lineHeight:"30px",paddingRight:n.spacing(1)}},v.createElement(rf,null,t.missing||t.error?v.createElement(PS,{style:a}):v.createElement(dm,{style:a})));return v.createElement(Kp,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},v.createElement(Kp,{item:!0},i),v.createElement(Kp,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},v.createElement(vc,{noWrap:!0,component:"p"},v.createElement(vc,{component:"span",variant:"subtitle2",color:r},t.description),v.createElement(vc,{component:"span"}," "),v.createElement(vc,{component:"span",variant:"subtitle2",color:t.error?"error":"inherit",style:{fontWeight:400}},t.label))))}function MS(e){let{data:t}=e;const n=El();return v.createElement(Kp,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},t.map(((e,t)=>{const r=e.descriptions.map(((e,t)=>v.createElement(TS,{d:e,key:t})));return r.length>0&&v.createElement(Kp,{container:!0,item:!0,key:t,direction:"column",style:{paddingBottom:n.spacing(2)}},v.createElement(vc,{noWrap:!0,key:t,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),r)})))}function NS(e){let{title:t="Error",message:n="",data:r=[]}=e;return v.createElement(Kp,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},v.createElement(Kp,{item:!0},v.createElement(PS,{style:{fontSize:"38px"}})),v.createElement(Kp,{item:!0},v.createElement(vc,{variant:"h6",align:"center","data-tid":"error-title"},t)),v.createElement(Kp,{item:!0},v.createElement(vc,{variant:"subtitle1",align:"center","data-tid":"error-message"},n)),v.createElement(MS,{data:r}))}const qS=["size"],DS="Progress",AS={root:"".concat(DS,"-root"),front:"".concat(DS,"-front"),back:"".concat(DS,"-back")},zS=zl("div")((e=>{let{theme:t}=e;return{["&.".concat(AS.root)]:{position:"relative",display:"inline-block"},["& .".concat(AS.front)]:{color:t.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(AS.back)]:{color:t.palette.divider}}})),jS={small:16,medium:32,large:64,xlarge:128};function FS(e){let{size:t="medium"}=e,n=u(e,qS);const r=jS[t];return v.createElement(zS,{className:AS.root},v.createElement(cp,l({variant:"determinate",value:100,className:AS.back,size:r,thickness:3},n)),v.createElement(cp,l({variant:"indeterminate",disableShrink:!0,className:AS.front,size:r,thickness:3},n)))}const $S=["cancel","translator"],BS=["retry","translator"],WS={stripes:"".concat("LongRunningQuery","-stripes")},HS=zl(Kp)((()=>({["& .".concat(WS.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 US(e){let{cancel:t,translator:n}=e,r=u(e,$S);return v.createElement(v.Fragment,null,v.createElement(HS,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},v.createElement(Kp,{item:!0},v.createElement(FS,null)),v.createElement(Kp,{item:!0},v.createElement(vc,{variant:"h6",align:"center","data-tid":"update-active"},n.get("Object.Update.Active")))),v.createElement(Kp,l({item:!0},r),v.createElement(qs,{variant:"contained",onClick:t},n.get("Cancel"))))}function VS(e){let{retry:t,translator:n}=e,r=u(e,BS);return v.createElement(v.Fragment,null,v.createElement(Kp,{item:!0},v.createElement(PS,{style:{fontSize:"38px"}})),v.createElement(Kp,{item:!0},v.createElement(vc,{variant:"h6",align:"center","data-tid":"update-cancelled"},n.get("Object.Update.Cancelled"))),v.createElement(Kp,{item:!0},v.createElement(qs,l({variant:"contained",onClick:t},r),n.get("Retry"))))}function GS(e){let{canCancel:t,canRetry:n,api:r}=e;const{translator:o}=b.useContext(Ws);return v.createElement(Kp,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:WS.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t&&v.createElement(US,{cancel:r.cancel,translator:o,className:WS.cancel}),n&&v.createElement(VS,{retry:r.retry,translator:o,className:WS.retry}))}function KS(){return v.createElement(Kp,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},v.createElement(FS,{size:"large"}))}const ZS="Header",XS={containerStyle:"".concat(ZS,"-containerStyle"),containerTitleStyle:"".concat(ZS,"-containerTitleStyle")},JS=zl(Kp)((e=>{let{theme:t}=e;return{["&.".concat(XS.containerStyle)]:{flexGrow:0},["&.".concat(XS.containerTitleStyle)]:{paddingBottom:t.spacing(1)}}})),QS="njs-cell-title",YS="njs-cell-sub-title";function ew(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]=b.useState([]);b.useEffect((()=>{n&&n.component&&n.component.isHooked&&n.component.observeActions((e=>{d([...e,...n&&n.selectionToolbar&&n.selectionToolbar.items||[]])}))}),[n]);const p=[XS.containerStyle,...l||s?[XS.containerTitleStyle]:[]],f=o||c,h=v.createElement(Kb,{show:!1,selections:{show:c,api:n.component.selections,onKeyDeactivate:a.refocusContent},actions:u,popover:{show:f,anchorEl:r},focusHandler:a,layout:t});return v.createElement(JS,{item:!0,container:!0,wrap:"nowrap",className:p.join(" ")},v.createElement(Kp,{item:!0,zeroMinWidth:!0,xs:!0},v.createElement(Kp,{container:!0,wrap:"nowrap",direction:"column"},l&&v.createElement(qh,{title:t.title},v.createElement(vc,{variant:"h6",noWrap:!0,className:QS,style:i.main},t.title)),s&&v.createElement(qh,{title:t.subtitle},v.createElement(vc,{variant:"body2",noWrap:!0,className:YS,style:i.subTitle},t.subtitle)))),v.createElement(Kp,{item:!0},h))}const tw={itemStyle:"".concat("Footer","-itemStyle")},nw=zl(Kp)((e=>{let{theme:t}=e;return{["& .".concat(tw.itemStyle)]:{minWidth:0,paddingTop:t.spacing(1),width:"100%"}}})),rw="njs-cell-footer";function ow(e){let{layout:t,titleStyles:n={}}=e;return t&&t.showTitles&&t.footnote?v.createElement(nw,{container:!0},v.createElement(Kp,{item:!0,className:tw.itemStyle},v.createElement(qh,{title:t.footnote},v.createElement(vc,{noWrap:!0,variant:"body2",className:rw,style:n.footer},t.footnote)))):null}class aw{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 iw="njs-viz";function lw(e){let{sn:t,snOptions:n,snPlugins:r,layout:o,appLayout:a,halo:i}=e;const{component:l}=t,{theme:s,language:u,constraints:d,interactions:p,keyboardNavigation:f}=b.useContext(Ws),[h]=b.useState((()=>new aw)),[m,g]=b.useState(!1),[y,x]=b.useState(0),[S,w,E]=Uh(),[k,C]=b.useState(null),R=b.useCallback((e=>{e&&C(e)}),[]);return b.useEffect((()=>{if(k)return l.created({options:n}),l.mounted(k),g(!0),()=>{h.stop(),l.willUnmount()}}),[k,l]),b.useEffect((()=>{m&&k&&w&&(!l.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"),i.app&&i.app.session&&e.push("fetch"),Promise.resolve(l.render({layout:o,options:n,plugins:r,embed:i.public.nebbie,context:c({constraints:d,interactions:p,theme:i.public.theme,appLayout:a,keyboardNavigation:f},l.isHooked?{}:{logicalSize:t.logicalSize({layout:o}),localeInfo:(a||{}).qLocaleInfo,permissions:e})})).then((e=>{!1!==e&&(0===y&&"function"==typeof n.onInitialRender&&n.onInitialRender.call(null),x(y+1))}))})))}),[w,n,r,k,E,o,a,s,u,d,p,m,f]),v.createElement("div",{ref:S,"data-render-count":y,style:{position:"relative",height:"100%"},className:iw},v.createElement("div",{ref:R,style:{position:"absolute",width:"100%",height:"100%"}}))}const sw={linechart:"lineChart",barchart:"barChart",combochart:"comboChart",scatterplot:"scatterPlot",piechart:"pieChart",straightable:"straightTable",pivottable:"pivotTable",table:"straightTable","pivot-table":"pivotTable",listbox:"listBox",referenceline:"referenceLine",datacolors:"dataColors","text-image":"textImage",boxplot:"boxPlot",map:"mapChart",mapchart:"mapChart",bulletchart:"bulletChart"},cw=(e,t,n,r)=>{const o=b.useMemo((()=>{if(e&&t){const o=e.components?e.components.find((e=>"general"===e.key)):null,a=(r=e.visualization,sw[r.toLowerCase()]?sw[r.toLowerCase()]:r),i={main:Gy(o,"main",t,a),footer:Gy(o,"footer",t,a),subTitle:Gy(o,"subTitle",t,a)},l=Uy(o,t,a),s=Hy(o,n),c=function(e,t,n){const r=Fy(null==e?void 0:e.borderColor,"","borderColor",t,n),o=(null==e?void 0:e.borderWidth)||jy("","borderWidth",t,n);return o&&r?"".concat(o," solid ").concat(r):void 0}(o,t,a),u=function(e,t,n){return(null==e?void 0:e.borderRadius)||jy("","borderRadius",t,n)}(o,t,a);return{titleStyles:i,bgColor:l,bgImage:s,border:c,borderRadius:u,boxShadow:Vy(o,t,a)}}var r;return{}}),[e,t,n,r]);return o};class uw extends Error{constructor(e,t){super(e),this.originalError=t,this.name="RenderError"}}const dw=["action-button","sn-nav-menu"],pw=["pivot-table","table","sn-table","sn-pivot-table","kpi","map","filterpane","sn-calendar","sn-filter-pane","sn-layout-container","sn-listbox","sn-shape","sn-tabbed-container"],fw=e=>{let{layout:t,isError:n,senseTheme:r,titleStyles:o}=e;const a=null==r?void 0:r.getStyle("","","_cards"),i=(e=>{let{isCardTheme:t,layout:n,isError:r}=e;const o=null==n?void 0:n.visualization;return!!t&&(!!r||-1===pw.indexOf(o)&&!(!(null==n?void 0:n.showTitles)&&-1!==dw.indexOf(o)))})({isCardTheme:a,layout:t,isError:n});if(a){const e=(null==t?void 0:t.showTitles)&&!(null==t||!t.title),n=(null==t?void 0:t.showTitles)&&!(null==t||!t.subtitle),r=(null==t?void 0:t.showTitles)&&!(null==t||!t.footnote);let a;return e&&i&&(o.main.padding="10px 10px 0"),n&&i&&(o.subTitle.padding=e?"0 10px":"10px 10px 0"),r&&(o.footer.borderTop="1px solid #d9d9d9",o.footer.padding="6px 10px"),i&&(a="".concat(e||n?"0":"10px"," 10px ").concat(r?"0":"5px")),a}},hw="njs-cell",mw="njs-cell-body";const gw=(e,t)=>{switch(t.type){case"LOADING":return c(c({},e),{},{loading:!0});case"LOADED":return c(c({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization});case"RENDER":return c(c({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null});case"LONG_RUNNING_QUERY":return c(c({},e),{},{longRunningQuery:!0});case"ERROR":return c(c({},e),{},{loading:!1,longRunningQuery:!1,error:t.error});default:throw new Error("Unhandled type: ".concat(t.type))}};function bw(e){let{delay:t=750}=e;const[n,r]=b.useState(!1);return b.useEffect((()=>{const e=setTimeout((()=>r(!0)),t);return()=>clearTimeout(e)}),[]),n?v.createElement(KS,null):null}const vw=e=>!e.qError||7005===e.qError.qErrorCode,yw=(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}})),xw=e=>e&&(Array.isArray(e)?e:[e])||[],Sw=(e,t,n,r)=>{const o=r.dimensions.min(),a=r.measures.min(),i=r.resolveLayout(t),l=yw(o,xw(i.qDimensionInfo||i.qItems),(e=>r.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),s=yw(a,xw(i.qMeasureInfo),(e=>r.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"));return{reqDimErrors:l,reqMeasErrors:s}},ww=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=xw(f.qDimensionInfo||f.qItems).filter(vw),m=xw(f.qMeasureInfo).filter(vw);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=Sw(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]),b=[{title:h,descriptions:[...u]},{title:g,descriptions:[...d]}],v=s?c:b;return[s||a,{title:s?c[0].title:e.get("Visualization.Incomplete"),data:v}]};function Ew(){return new R}const kw=b.forwardRef(((e,t)=>{var n;let{halo:r,model:o,initialSnOptions:a,initialSnPlugins:i,initialError:l,onMount:s,currentId:u,emitter:d,navigation:p,onError:f}=e;const{app:h,types:m}=r,{nebbie:g}=r.public,{theme:y,translator:x,language:S,keyboardNavigation:w,externalFocusManagement:E,disableCellPadding:k=!1}=b.useContext(Ws),[C]=b.useState(d||Ew),R=El(),[L,O,I]=Uh(),[_,P]=b.useReducer(gw,{loading:!1,loaded:!1,longRunningQuery:!1,error:(T=l)?{title:T.message}:null,sn:null,visualization:null});var T;const[M,N]=b.useState(o),[q,{validating:D,canCancel:A,canRetry:z},j]=Wh(M),[F]=Hh(h),[$,B,W]=Uh(),[H,U]=b.useState(a),[V,G]=b.useState(i),K="njs-cell-".concat(u),[Z]=av(h,M,["#".concat(K),".njs-action-toolbar-popover"]),[X,J]=b.useState(!1),Q=b.useRef({enter:null,leave:null}),{titleStyles:Y,bgColor:ee,bgImage:te,border:ne,borderRadius:re,boxShadow:oe}=cw(q,r.public.theme,r.app,y),ae=b.useRef({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});b.useEffect((()=>{nv(ae.current),ae.current.blurCallback=e=>{ae.current.onBlurHandler?ae.current.onBlurHandler(e):(r.root.toggleFocusOfCells(),e&&W&&W.focus())},ae.current.refocusContent=()=>{_.sn.component&&"function"==typeof _.sn.component.focus&&_.sn.component.focus()}}),[]);b.useEffect((()=>{if(l)return void s();if(!F||!q)return;if(_.visualization===q.visualization&&_.sn)return void(async e=>{const[t,n]=await ww(x,q,e.generator.qae.data,M);P(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:_.sn,layout:q,model:M})})(_.sn);const e=m.getSupportedVersion(q.visualization,q.version);return(async(e,t)=>{P({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,navigation:p}=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}),f=e.create({model:a,app:i,selections:l,nebbie:s,focusHandler:c,emitter:u,navigation:p});f&&(t({type:"LOADED",sn:f,visualization:r}),d())}catch(e){t(o?{type:"ERROR",error:{title:e.message,errorObject:e}}:{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:P,types:m,visualization:e,version:t,model:M,app:h,selections:Z,nebbie:g,focusHandler:ae.current,emitter:C,onMount:s,navigation:p})})(q.visualization,e),()=>{}}),[m,_.sn,M,Z,q,F,S]),b.useEffect((()=>{if(!D)return;const e=setTimeout((()=>P({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[D]),b.useImperativeHandle(t,(()=>({getQae:()=>_.sn.generator.qae,getExtensionDefinition:()=>_.sn.generator.definition.ext,support(e,t,n){if(q&&_.loaded&&!_.error){var r;const o=t||(null===(r=_.sn.generator.definition.ext)||void 0===r?void 0:r.support);if(o)return function(e,t,n){const r=t[e];return"function"==typeof r?r.call(null,n):"boolean"==typeof r&&r}(e,o,n||q)}return!1},toggleFocus(e){"function"==typeof _.sn.component.focus&&(e?_.sn.component.focus():_.sn.component.blur())},setOnBlurHandler(e){ae.current.onBlurHandler=e},setSnOptions:U,setSnPlugins:G,setModel:N,getImperativeHandle(){var e;return null!==(e=_.sn)&&void 0!==e&&e.component&&"function"==typeof _.sn.component.getImperativeHandle?_.sn.component.getImperativeHandle():{}},async takeSnapshot(){const{width:e,height:t}=O;let n=JSON.parse(JSON.stringify(q));return"function"==typeof _.sn.component.setSnapshotData&&(n=await _.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:x.language(),theme:R.name,appLayout:F,size:{width:Math.round(e),height:Math.round(t)}},layout:n}},async exportImage(){if("function"!=typeof r.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const e=await this.takeSnapshot();return r.config.snapshot.capture(e)}})),[_.sn,B,O,q,R.name,F]);let ie=null;if(_.loading&&!_.longRunningQuery)ie=v.createElement(bw,null);else if(_.error){if(f){f(_.error.errorObject?_.error.errorObject:new uw(_.error.title))}ie=v.createElement(NS,_.error)}else _.loaded&&(ie=v.createElement(lw,{key:q.visualization,sn:_.sn,halo:r,snOptions:H,snPlugins:V,layout:q,appLayout:F}));const le=null===(n=r.public.galaxy)||void 0===n?void 0:n.flags;let se,ce;if(k)se=!1,ce=void 0;else if(null!=le&&le.isEnabled("VNA-13_CELLPADDING_FROM_THEME")){const e=r.public.theme;se=!1,ce=fw({layout:q,isError:_.error,senseTheme:e,titleStyles:Y})}else se=!0,ce=void 0;return v.createElement(lc,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:ee||"unset",backgroundImage:te&&te.url?"url(".concat(te.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:te&&te.size,backgroundPosition:te&&te.pos,border:ne,borderRadius:re,boxShadow:oe,boxSizing:"border-box"},elevation:0,square:!0,className:hw,ref:L,id:K,onMouseEnter:()=>{Q.current.leave&&clearTimeout(Q.current.leave),Q.enter||(Q.current.enter=setTimeout((()=>{J(!0),Q.current.enter=null}),250))},onMouseLeave:()=>{Q.current.enter&&clearTimeout(Q.current.enter),Q.current.leave||(Q.current.leave=setTimeout((()=>{J(!1),Q.current.leave=null}),750))}},v.createElement(Kp,{container:!0,direction:"column",gap:0,style:c(c({position:"relative",width:"100%",height:"100%"},se?{padding:R.spacing(1)}:{}),_.longRunningQuery?{opacity:"0.3"}:{})},I&&q&&_.sn&&v.createElement(ew,{layout:q,sn:_.sn,anchorEl:I,hovering:X,focusHandler:ae.current,titleStyles:Y}," "),v.createElement(Kp,{tabIndex:w&&!E?0:-1,onKeyDown:w&&!E?e=>{["Enter"," ","Spacebar"].includes(e.key)&&r.root.toggleFocusOfCells(u)}:null,item:!0,xs:!0,className:mw,style:c({height:"100%"},ce?{padding:ce}:{}),ref:$},ie),I&&q&&_.sn&&v.createElement(ow,{layout:q,titleStyles:Y})),_.longRunningQuery&&v.createElement(GS,{canCancel:A,canRetry:z,api:j}))}));function Cw(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Rw(){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 Cw(e)&&Cw(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(...Rw("".concat(e).concat(o,"/"),t[o],n[o]))})),r}function Lw(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 Ow=e=>{var t;return!(!e||e.qHasSoftPatches||e.qExtendsId||!(((null===(t=e.qMeta)||void 0===t?void 0:t.privileges)||[]).indexOf("update")>-1))},Iw=(e,t)=>e.__snInterceptor?e.__snInterceptor.setProperties.call(e,t):e.setProperties(t),_w=(e,t)=>e.find((e=>{var n;return(null===(n=e.qDef)||void 0===n?void 0:n.cId)===t}))||null,Pw=e=>{if(!e)return[];return[...e].map((e=>{var t;return null!==(t=e.qDef)&&void 0!==t&&t.autoSort&&void 0!==e.autoSort?c(c({},e),{},{qDef:c(c({},e.qDef),{},{autoSort:e.autoSort}),autoSort:void 0}):e}))},Tw=(e,t)=>{if(e)return t&&bS(e,t)?bS(e,t).qHyperCube:e.qHyperCube};class Mw{constructor(e){var t,n;const r=e||{};this.dimensionDefinition=r.dimensionDefinition||{max:0},this.measureDefinition=r.measureDefinition||{max:0},this.dimensionProperties=null!==(t=r.dimensionProperties)&&void 0!==t?t:{},this.measureProperties=null!==(n=r.measureProperties)&&void 0!==n?n:{},this.globalChangeListeners=r.globalChangeListeners,this.app=r.app}setProperties(e){var t;this.properties=e,this.isAnalysisType=null===(t=this.properties)||void 0===t||null===(t=t.metaData)||void 0===t?void 0:t.isAnalysisType}setGlobalChangeListeners(e){this.globalChangeListeners=e}setLayout(e){this.layout=e}static type(){throw new Error("Must override this method")}static getDimensions(){return[]}getDimension(e){const t=this.getDimensions(),n=this.getAlternativeDimensions(),r=_w(t,e),o=_w(n,e);return null!=r?r:o}static getAlternativeDimensions(){throw new Error("Method not implemented.")}getMeasure(e){const t=this.getMeasures(),n=this.getAlternativeMeasures(),r=_w(t,e),o=_w(n,e);return null!=r?r:o}static getMeasures(){return[]}static getAlternativeMeasures(){throw new Error("Method not implemented.")}}class Nw extends Mw{constructor(e){super(e),this.path=e.path}setProperties(e){var t,n,r,o,a,i,l;e&&(super.setProperties(e),this.hcProperties=this.path?bS.getValue(e,"".concat(this.path,".qHyperCubeDef")):e.qHyperCubeDef,this.hcProperties&&(this.hcProperties.qDimensions=null!==(t=this.hcProperties.qDimensions)&&void 0!==t?t:[],this.hcProperties.qMeasures=null!==(n=this.hcProperties.qMeasures)&&void 0!==n?n:[],this.hcProperties.qInterColumnSortOrder=null!==(r=this.hcProperties.qInterColumnSortOrder)&&void 0!==r?r:[],this.hcProperties.qLayoutExclude=null!==(o=this.hcProperties.qLayoutExclude)&&void 0!==o?o:{qHyperCubeDef:{qDimensions:[],qMeasures:[]}},this.hcProperties.qLayoutExclude.qHyperCubeDef=null!==(a=this.hcProperties.qLayoutExclude.qHyperCubeDef)&&void 0!==a?a:{qDimensions:[],qMeasures:[]},this.hcProperties.qLayoutExclude.qHyperCubeDef.qDimensions=null!==(i=this.hcProperties.qLayoutExclude.qHyperCubeDef.qDimensions)&&void 0!==i?i:[],this.hcProperties.qLayoutExclude.qHyperCubeDef.qMeasures=null!==(l=this.hcProperties.qLayoutExclude.qHyperCubeDef.qMeasures)&&void 0!==l?l:[],this.hcProperties.isHCEnabled&&0===this.hcProperties.qDynamicScript.length&&"S"===this.hcProperties.qMode&&(this.hcProperties.qDynamicScript=[]),this.hcProperties.qDimensions=Pw(this.hcProperties.qDimensions),this.hcProperties.qMeasures=Pw(this.hcProperties.qMeasures)))}getDimensions(){return this.hcProperties?this.hcProperties.qDimensions:[]}getAlternativeDimensions(){var e,t;return null!==(e=null===(t=this.hcProperties)||void 0===t||null===(t=t.qLayoutExclude)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qDimensions)&&void 0!==e?e:[]}getDimensionLayout(e){return this.getDimensionLayouts().filter((t=>e===t.cId))[0]}getDimensionLayouts(){const e=Tw(this.layout,this.path);return e?e.qDimensionInfo:[]}getMeasures(){return this.hcProperties?this.hcProperties.qMeasures:[]}getAlternativeMeasures(){var e,t;return null!==(e=null===(t=this.hcProperties)||void 0===t||null===(t=t.qLayoutExclude)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)&&void 0!==e?e:[]}getMeasureLayouts(){const e=Tw(this.layout,this.path);return e?e.qMeasureInfo:[]}getMeasureLayout(e){return this.getMeasureLayouts().filter((t=>e===t.cId))[0]}}const qw=ue.bind(null,!0),Dw={},{isArray:Aw}=Array;function zw(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function jw(e){return void 0===e}function Fw(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function $w(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]=jw(e[r||t])?a:e[t],e=e[r||t]})),e}function Bw(e,t){let n=!0;if(zw(e)&&zw(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{Bw(e[r],t[r])||(n=!1)})),n);if(Aw(e)&&Aw(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!Bw(e[n],t[n]))return!1;return!0}return e===t}Dw.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const a=function(e){return e?qw({},{val:e}).val:e}(t[o]),i=e[o],l="".concat(n,"/").concat(o);Bw(a,i)||Fw(t,o)||(jw(i)?r.push({op:"add",path:l,value:a}):zw(a)&&zw(i)?r=r.concat(Dw.generate(i,a,l)):Aw(a)&&Aw(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]&&jw(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(Bw(t,o))return r;if(!jw(t[0])&&jw(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(Dw.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=>{jw(t[o])&&!Fw(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},Dw.apply=function(e,t){t.forEach((t=>{let n=$w(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(Aw(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(Aw(o)&&Aw(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(zw(o)&&zw(t.value))i=o,Object.keys(i).forEach((e=>{Object.getOwnPropertyDescriptor(i,e).configurable&&!Fw(i,e)&&delete i[e]})),qw(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=$w(e,t.from);Aw(n)?n.splice(+r,0,o.splice(+a,1)[0]):(n[r]=o[a],delete o[a])}else"remove"===t.op&&(Aw(n)?n.splice(+r,1):delete n[r]);var i}))},Dw.clone=function(e){return qw({},e)},Dw.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},Dw.updateObject=function(e,t){Object.keys(e).length?Dw.apply(e,Dw.generate(e,t)):qw(e,t)};const Ww=e=>t=>{const n=(r=c(c({},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(R.prototype).forEach((e=>{r[e]=R.prototype[e]})),R.init(r),r);var r;return n};let Hw,Uw;function Vw(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 Gw(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 Kw(e){Xw(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 Zw(e){if(e.__hooks.obsolete)return Promise.resolve();Uw=-1,Hw=e,Hw.__hooks.initiated&&Hw.__hooks.list.length;try{Hw.fn.call(null)}catch(e){console.error(e)}Hw.__hooks.initiated=!0;const t=Hw.__hooks;return eE(Hw),Uw=void 0,Hw=void 0,t.chain.promise||(t.chain.promise=new Promise((e=>{t.chain.resolve=e}))),function(e){Xw(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame((()=>{!function(e){Xw(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 Xw(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 Jw(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 Qw(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 Yw(e){return e.__hooks.imperativeHandle}function eE(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function tE(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,eE(e))}function nE(e){if(void 0===Hw)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=Hw.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function rE(e){nE(++Uw);return Hw.context[e]}function oE(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function aE(e){return{__hooked:!0,fn:e,initiate:Gw,run:Zw,teardown:Kw,runSnaps:Jw,runMenu:Qw,focus:dE,blur:pE,observeActions:tE,getImperativeHandle:Yw,updateRectOnNextRun:oE}}function iE(e){const t=nE(++Uw);if(!t.value){t.component=Hw;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,Zw(r)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function lE(e,t){const n=nE(++Uw);Vw(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===Hw.__hooks.pendingEffects.indexOf(n)&&Hw.__hooks.pendingEffects.push(n))}function sE(e,t){const n=nE(++Uw);Vw(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],Hw.__hooks.pendingLayoutEffects.push(n))}function cE(e,t){const n=nE(++Uw);return Vw(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function uE(){return rE("element")}function dE(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 pE(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 fE={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},hE=Object.keys(fE),mE=e=>(Object.keys(R.prototype).forEach((t=>{e[t]=R.prototype[t]})),R.init(e),e);function gE(e,t){const n=c({},fE);mE(n);const r={emit(){n.emit(...arguments)}};Object.keys(e.component||{}).forEach((t=>{-1!==hE.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=Ww(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}),a=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(r,{model:t.model,app:t.app,global:a,selections:t.selections,actions:o.actions}),Object.assign(n,{actions:o.actions,model:t.model,app:t.app,selections:t.selections}),[n,o]}function bE(e,t,n){"function"==typeof e.component&&(e.component=aE(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 a={},i=["appLayout","constraints","interactions"],l={},s={};t.model&&t.model.session||(l.select=!0,l.edit=!0,s.select=!1,s.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,navigation:t.navigation,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,externalFocusManagement:t.externalFocusManagement||!1,focusHandler:t.focusHandler,constraints:l,interactions:s,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)}i.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(c(c({},r[e]),l))),"interactions"===e&&(t=JSON.stringify(c(c({},r[e]),s))),t!==a[e]&&(n=!0,a[e]=t,this.context[e]=JSON.parse(t))}}))}else n=!0;return this.context.theme&&this.context.theme.name()!==a.themeName&&(n=!0,a.themeName=this.context.theme.name()),this.context.translator.language()!==a.language&&(n=!0,a.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(){const t=e.component.getImperativeHandle(this);t&&"function"==typeof t.focus?t.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 i.forEach((e=>{a[e]=JSON.stringify(u.context[e])})),a.themeName=u.context.theme?u.context.theme.name():void 0,a.language=u.context.translator?u.context.translator.language():void 0,Object.assign(u,{selections:t.selections}),[u,null]}(e,t,n):gE(e,t),a=[];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];try{e.qae.properties.onChange.call({model:t.model},...r)}catch(e){}return 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=Dw.clone(o),i=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));Dw.apply(o,i);try{e.qae.properties.onChange.call({model:t.model},o)}catch(e){}const l=Dw.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.__snInterceptor&&(t.model.setProperties=t.model.__snInterceptor.setProperties,delete t.model.__snInterceptor)},a.push(t.model.__snInterceptor.teardown)),{generator:e,component:r,selectionToolbar:{items:o?o.selectionToolbarItems:[]},destroy(){a.forEach((e=>e()))},logicalSize:e.definition.logicalSize||(()=>!1)}}const vE=()=>{};function yE(e,t){return void 0===e?()=>t:()=>e}function xE(e){const t=e||{};return{min:"function"==typeof t.min?t.min:yE(t.min,0),max:"function"==typeof t.max?t.max:yE(t.max,1e3),added:t.added||t.add||vE,description:t.description||vE,moved:t.moved||t.move||vE,removed:t.removed||t.remove||vE,replaced:t.replaced||t.replace||vE,isDefined:()=>!!e}}const SE=(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 wE(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=>SE(e,n,{}),dimensions:xE(e.dimensions),measures:xE(e.measures)}}function EE(){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(wE)},exportProperties:t.exportProperties,importProperties:t.importProperties}}function kE(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:EE(n.qae),component:n.component||{},create:e=>bE(r,e,t),definition:t.flags.isEnabled("NEBULA_DATA_HANDLERS")?{dataHandler:e=>new Nw(e)}:{}};return Object.keys(n).forEach((e=>{r[e]||(r.definition[e]=n[e])})),r}const CE=(e,t,n)=>{if(!e)return Promise.resolve();let r=Dw.generate(t,n);return ue(!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()},RE=()=>{};function LE(){var e;let t,n,r,{model:o,halo:a,navigation:i,initialError:l,onDestroy:s=(async()=>{}),onRender:u=(()=>{}),onError:d=(()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=RE,f=null,h=null,m=null,g=null,b=!1;const y=new Promise((e=>{m=e})),x=new Promise((e=>{g=e})),S=e=>()=>{null==e||e(),g(),u(),b=!0};let w={},E=[];const k=new R;let C={};null!==(e=a.context)&&void 0!==e&&e.enablePrivateExperimental&&(C={support(e){var t;return!(!h||!b)&&f.current.support(e,null===(t=n)||void 0===t?void 0:t.support,r)},toggleFocus(e){f.current.toggleFocus(e)},setOnBlurHandler(e){f.current.setOnBlurHandler(e)}});const L=c(c({id:o.id,model:o,async destroy(){await s(),p(),p=RE},async convertTo(e){let t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]){const n=await o.getLayout();if(Ow(n)&&!t){const t=await IS({halo:a,model:o,cellRef:f,newType:e});return await Iw(o,t.qProperty),t}const r=await o.getEffectiveProperties(),i=await IS({halo:a,model:o,cellRef:f,newType:e,properties:r}),l=i.qProperty;return await CE(o,r,l),i}return await IS({halo:a,model:o,cellRef:f,newType:e})},async toggleDataView(e){let i;if(t||!1===e)t&&!0!==e&&(i=o,await a.app.destroySessionObject(t),t=void 0,n=void 0,r=void 0);else{let e=a.config.context.dataViewType;const l=await o.getEffectiveProperties();if(!a.types.getSupportedVersion(e)){if(!a.types.getSupportedVersion("table"))throw new Error("No data view type registered");e="table"}const s=await IS({halo:a,model:o,cellRef:f,newType:e,properties:l,viewDataMode:!0});i=await a.app.createSessionObject(s.qProperty),t=i.id,n=f.current.getExtensionDefinition(),r=await o.getLayout()}i&&f.current.setModel(i)},get viewDataToggled(){return void 0!==t},addListener(e,t){k.addListener(e,t)},removeListener(e,t){k.removeListener(e,t)},getImperativeHandle:async()=>(await x,f.current.getImperativeHandle()),takeSnapshot:async()=>(await x,f.current.takeSnapshot())},C),{},{__DO_NOT_USE__:{mount(e){if(h)throw new Error("Already mounted");if(!(e instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return h=e,[p,f]=function(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:a,onMount:i,emitter:l,initialError:s,navigation:c,onError:u}=e;const{root:d}=t,p=v.createRef(),f=gx(),h=Vl.createPortal(v.createElement(kw,{ref:p,halo:t,model:r,currentId:f,initialSnOptions:o,initialSnPlugins:a,initialError:s,onMount:i,emitter:l,navigation:c,onError:u}),n,f),m=()=>{d.remove(h),r.removeListener("closed",m)};return r.on("closed",m),d.add(h,m),d.addCell(f,p),[m,p]}({halo:a,element:e,model:o,initialSnOptions:w,initialSnPlugins:E,initialError:l,onMount:m,emitter:k,navigation:i,onError:d}),y},async applyProperties(e){const t=Rw("/",e,await o.getEffectiveProperties());if(t.length)return o.applyPatches(t,!0)},options(e){(async e=>{const t=e.onInitialRender;h?(async()=>{await y,f.current.setSnOptions(c(c(c({},w),e),{onInitialRender:S(t)}))})():w=c(c(c({},w),e),{onInitialRender:S(t)})})(e)},plugins(e){(async e=>{Lw(e),h?(async()=>{await y,f.current.setSnPlugins(e)})():E=e})(e)},exportImage:()=>f.current.exportImage(),takeSnapshot:()=>f.current.takeSnapshot(),getModel:()=>o,convert:{async toType(e){const t=await o.getEffectiveProperties(),n=await IS({halo:a,model:o,cellRef:f,newType:e,properties:t}),r=n.qProperty;return await CE(o,t,r),n},async revert(){await o.clearSoftPatches()}}}});return L}async function OE(e,t,n,r,o){let a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:async()=>{};const{onRender:i,onError:l}=t,s=LE({model:e,halo:n,navigation:r,initialError:o,onDestroy:a,onRender:i,onError:l});return t.options&&s.__DO_NOT_USE__.options(t.options),t.plugins&&s.__DO_NOT_USE__.plugins(t.plugins),t.element&&await s.__DO_NOT_USE__.mount(t.element),s}async function IE(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 gS({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 _E="njs-sheet";function PE(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}}const TE=b.forwardRef(((e,t)=>{var n;let{model:r,halo:o,initialSnOptions:a,initialSnPlugins:i,initialError:l,onMount:s,unmount:u,navigation:d,onError:p}=e;const{root:f}=o,[h,m]=b.useState(r),[g]=Wh(h),{theme:y,modelStore:x}=b.useContext(Ws),[S,w]=b.useState([]),[E,k]=b.useState(void 0),[C,R]=b.useState(void 0),[L,O]=b.useState(""),I=b.useRef({cellCount:0,cellsRendered:0,initialRender:!1});null==d||null===(n=d.setCurrentSheetId)||void 0===n||n.call(d,h.id),b.useEffect((()=>{if(g){const e=JSON.stringify(g.cells);if(e===L)return;O(e);const t=async()=>{S.forEach((e=>{f.removeCell(e.currentId)}));const e=g.cells;I.cellCount=e.length,I.cellsRendered=0;const t=()=>{I.cellsRendered++,I.cellsRendered!==I.cellCount||I.initialRender||(I.initialRender=!0,a.onInitialRender())},{columns:n,rows:r}=g,i=await Promise.all(e.map((async e=>{let i;const l=new Promise((e=>{i=e})),s=S.find((t=>t.id===e.name));if(s)return s.bounds=PE(e,n,r),delete s.mountedPromise,s;const u=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),OE(d,{options:o,plugins:a,element:i},t)}({id:e.name},o,x);return{model:u.model,id:e.name,bounds:PE(e,n,r),cellRef:v.createRef(),currentId:gx(),mounted:i,mountedPromise:l,options:c(c({},a),{onInitialRender:t})}})));i.forEach((e=>f.addCell(e.currentId,e.cellRef))),w(i)};t()}}),[g]),b.useEffect((()=>{const e=()=>{h.removeListener("closed",e),u()};return h.on("closed",e),()=>h.removeListener("closed",e)}),[h]);const _=b.useMemo((()=>S?S.map((e=>function(e,t,n,r,o,a,i,l){var s;const{x:c,y:u,width:d,height:p}=e.bounds,f={left:"".concat(c,"%"),top:"".concat(u,"%"),width:"".concat(d,"%"),height:"".concat(p,"%"),position:"absolute"},h=null===(s=t.public.galaxy)||void 0===s?void 0:s.flags;return null!=h&&h.isEnabled("VNA-13_CELLPADDING_FROM_THEME")&&(f.boxSizing="border-box",f.padding="4px"),v.createElement("div",{style:f,key:e.model.id},v.createElement(kw,{ref:e.cellRef,halo:t,model:e.model,currentId:e.currentId,initialSnOptions:n,initialSnPlugins:r,initialError:o,onMount:a,navigation:i,onError:l}))}(e,o,e.options,i,l,e.mounted,d,p))):[]),[S]);b.useEffect((()=>{const e=null!=g&&g.components?g.components.find((e=>"general"===e.key)):null;k(Uy(e,o.public.theme)),R(Hy(e,o.app))}),[g,o.public.theme,o.app,y]),b.useImperativeHandle(t,(()=>({setModel:m})),[]);const P=!g||Number.isNaN(g.height)?"100%":"".concat(Number(g.height),"%"),T=S.map((e=>e.mountedPromise)),M=T.filter((e=>!!e));return M.length&&Promise.all(T).then((()=>{s()})),v.createElement("div",{className:_E,style:{width:"100%",height:P,position:"relative",backgroundColor:E,backgroundImage:C&&C.url?"url(".concat(C.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:C&&C.size,backgroundPosition:C&&C.pos}},_)}));const ME=()=>{};function NE(){let{model:e,halo:t,navigation:n,initialError:r,onDestroy:o=(async()=>{}),onRender:a=(()=>{}),onError:i=(()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=ME,s=null,u=null,d=null,p=null;const f=new Promise((e=>{d=e})),h=new Promise((e=>{p=e})),m=e=>()=>{null==e||e(),p(),a()};let g={},b=[];const y={id:e.id,model:e,navigation:n,getImperativeHandle:async()=>(await h,s.current.getImperativeHandle()),async destroy(){await o(),l(),l=ME},__DO_NOT_USE__:{mount(o){if(u)throw new Error("Already mounted");if(!(o instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return u=o,[l,s]=function(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:a,onMount:i,initialError:l,navigation:s,onError:c}=e;const{root:u}=t,d=v.createRef();let p;const f=()=>{u.remove(p)};return p=Vl.createPortal(v.createElement(TE,{ref:d,halo:t,model:r,initialSnOptions:o,initialSnPlugins:a,initialError:l,onMount:i,unmount:f,navigation:s,onError:c}),n,r.id),s.setSheetRef(d),u.add(p,f),[f,d]}({halo:t,element:o,model:e,initialSnOptions:g,initialSnPlugins:b,initialError:r,onMount:d,navigation:n,onError:i}),f},async applyProperties(t){const n=Rw("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{const t=e.onInitialRender;u?(async()=>{await f,s.current.setSnOptions(c(c(c({},g),e),{onInitialRender:m(t)}))})():g=c(c(c({},g),e),{onInitialRender:m(t)})})(e)},plugins(e){(async e=>{Lw(e),u?(async()=>{await f,s.current.setSnPlugins(e)})():b=e})(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return y}async function qE(e,t,n){let{id:r,options:o,plugins:a,element:i,onRender:l,onError:s,navigation:c}=e;const{modelStore:u,rpcRequestModelStore:d}=n,p="".concat(r);let f=d.get(p);f||(f=t.app.getObject(r),d.set(p,f));const h=await f;u.set(p,h);const m=c||("sheet"===h.genericType?function(e,t,n){var r;const{galaxy:o}=e.public;var a;if(null!==(r=o.anything)&&void 0!==r&&null!==(r=r.sense)&&void 0!==r&&r.navigation)return null===(a=o.anything)||void 0===a||null===(a=a.sense)||void 0===a?void 0:a.navigation;const i={model:n},l={goToSheet:async n=>{var r,o;if(!i.sheetRef)return;const{modelStore:a,rpcRequestModelStore:s}=t,c="".concat(n);let u,d=s.get(c);d||(d=e.app.getObject(n),s.set(c,d));try{if(u=await d,"sheet"!==u.genericType)return}catch(e){return}a.set(c,u),null===(r=i.sheetRef)||void 0===r||null===(r=r.current)||void 0===r||null===(o=r.setModel)||void 0===o||o.call(r,u),i.model=u,l.emit("sheetChanged")},setSheetRef:e=>{i.sheetRef=e},getCurrentSheetId:()=>!!i.model&&i.model.id};return nv(l),l}(t,n,h):void 0);return"sheet"===h.genericType?async function(e,t,n,r,o){let a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:async()=>{};const{onRender:i,onError:l}=t,s=NE({model:e,halo:n,navigation:r,initialError:o,onDestroy:a,onRender:i,onError:l});return t.options&&s.__DO_NOT_USE__.options(t.options),t.plugins&&s.__DO_NOT_USE__.plugins(t.plugins),t.element&&await s.__DO_NOT_USE__.mount(t.element),s}(h,{options:o,plugins:a,element:i,onRender:l,onError:s},t,m):OE(h,{options:o,plugins:a,element:i,onRender:l,onError:s},t,m)}function DE(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}var AE,zE,jE,FE;function $E(){if(FE)return jE;FE=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return jE=n=>n?"object"!=typeof n?e:n:t}var BE,WE,HE,UE,VE,GE,KE,ZE,XE,JE,QE,YE,ek,tk,nk,rk,ok,ak,ik,lk,sk,ck,uk,dk,pk,fk,hk,mk,gk,bk,vk,yk={exports:{}};function xk(){if(WE)return BE;WE=1;const e=Number.MAX_SAFE_INTEGER||9007199254740991;return BE={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:e,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}function Sk(){if(UE)return HE;UE=1;const e="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)}:()=>{};return HE=e}function wk(){return VE||(VE=1,function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=xk(),a=Sk(),i=(t=e.exports={}).re=[],l=t.safeRe=[],s=t.src=[],c=t.safeSrc=[],u=t.t={};let d=0;const p="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",o],[p,r]],h=(e,t,n)=>{const r=(e=>{for(const[t,n]of f)e=e.split("".concat(t,"*")).join("".concat(t,"{0,").concat(n,"}")).split("".concat(t,"+")).join("".concat(t,"{1,").concat(n,"}"));return e})(t),o=d++;a(e,o,t),u[e]=o,s[o]=t,c[o]=r,i[o]=new RegExp(t,n?"g":void 0),l[o]=new RegExp(r,n?"g":void 0)};h("NUMERICIDENTIFIER","0|[1-9]\\d*"),h("NUMERICIDENTIFIERLOOSE","\\d+"),h("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-]".concat(p,"*")),h("MAINVERSION","(".concat(s[u.NUMERICIDENTIFIER],")\\.")+"(".concat(s[u.NUMERICIDENTIFIER],")\\.")+"(".concat(s[u.NUMERICIDENTIFIER],")")),h("MAINVERSIONLOOSE","(".concat(s[u.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(s[u.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(s[u.NUMERICIDENTIFIERLOOSE],")")),h("PRERELEASEIDENTIFIER","(?:".concat(s[u.NUMERICIDENTIFIER],"|").concat(s[u.NONNUMERICIDENTIFIER],")")),h("PRERELEASEIDENTIFIERLOOSE","(?:".concat(s[u.NUMERICIDENTIFIERLOOSE],"|").concat(s[u.NONNUMERICIDENTIFIER],")")),h("PRERELEASE","(?:-(".concat(s[u.PRERELEASEIDENTIFIER],"(?:\\.").concat(s[u.PRERELEASEIDENTIFIER],")*))")),h("PRERELEASELOOSE","(?:-?(".concat(s[u.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(s[u.PRERELEASEIDENTIFIERLOOSE],")*))")),h("BUILDIDENTIFIER","".concat(p,"+")),h("BUILD","(?:\\+(".concat(s[u.BUILDIDENTIFIER],"(?:\\.").concat(s[u.BUILDIDENTIFIER],")*))")),h("FULLPLAIN","v?".concat(s[u.MAINVERSION]).concat(s[u.PRERELEASE],"?").concat(s[u.BUILD],"?")),h("FULL","^".concat(s[u.FULLPLAIN],"$")),h("LOOSEPLAIN","[v=\\s]*".concat(s[u.MAINVERSIONLOOSE]).concat(s[u.PRERELEASELOOSE],"?").concat(s[u.BUILD],"?")),h("LOOSE","^".concat(s[u.LOOSEPLAIN],"$")),h("GTLT","((?:<|>)?=?)"),h("XRANGEIDENTIFIERLOOSE","".concat(s[u.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),h("XRANGEIDENTIFIER","".concat(s[u.NUMERICIDENTIFIER],"|x|X|\\*")),h("XRANGEPLAIN","[v=\\s]*(".concat(s[u.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(s[u.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(s[u.XRANGEIDENTIFIER],")")+"(?:".concat(s[u.PRERELEASE],")?").concat(s[u.BUILD],"?")+")?)?"),h("XRANGEPLAINLOOSE","[v=\\s]*(".concat(s[u.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(s[u.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(s[u.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(s[u.PRERELEASELOOSE],")?").concat(s[u.BUILD],"?")+")?)?"),h("XRANGE","^".concat(s[u.GTLT],"\\s*").concat(s[u.XRANGEPLAIN],"$")),h("XRANGELOOSE","^".concat(s[u.GTLT],"\\s*").concat(s[u.XRANGEPLAINLOOSE],"$")),h("COERCEPLAIN","".concat("(^|[^\\d])(\\d{1,").concat(n,"})")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:\\.(\\d{1,".concat(n,"}))?")),h("COERCE","".concat(s[u.COERCEPLAIN],"(?:$|[^\\d])")),h("COERCEFULL",s[u.COERCEPLAIN]+"(?:".concat(s[u.PRERELEASE],")?")+"(?:".concat(s[u.BUILD],")?")+"(?:$|[^\\d])"),h("COERCERTL",s[u.COERCE],!0),h("COERCERTLFULL",s[u.COERCEFULL],!0),h("LONETILDE","(?:~>?)"),h("TILDETRIM","(\\s*)".concat(s[u.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",h("TILDE","^".concat(s[u.LONETILDE]).concat(s[u.XRANGEPLAIN],"$")),h("TILDELOOSE","^".concat(s[u.LONETILDE]).concat(s[u.XRANGEPLAINLOOSE],"$")),h("LONECARET","(?:\\^)"),h("CARETTRIM","(\\s*)".concat(s[u.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",h("CARET","^".concat(s[u.LONECARET]).concat(s[u.XRANGEPLAIN],"$")),h("CARETLOOSE","^".concat(s[u.LONECARET]).concat(s[u.XRANGEPLAINLOOSE],"$")),h("COMPARATORLOOSE","^".concat(s[u.GTLT],"\\s*(").concat(s[u.LOOSEPLAIN],")$|^$")),h("COMPARATOR","^".concat(s[u.GTLT],"\\s*(").concat(s[u.FULLPLAIN],")$|^$")),h("COMPARATORTRIM","(\\s*)".concat(s[u.GTLT],"\\s*(").concat(s[u.LOOSEPLAIN],"|").concat(s[u.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",h("HYPHENRANGE","^\\s*(".concat(s[u.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(s[u.XRANGEPLAIN],")")+"\\s*$"),h("HYPHENRANGELOOSE","^\\s*(".concat(s[u.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(s[u.XRANGEPLAINLOOSE],")")+"\\s*$"),h("STAR","(<|>)?=?\\s*\\*"),h("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),h("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(yk,yk.exports)),yk.exports}function Ek(){if(XE)return ZE;XE=1;const e=Sk(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:n}=xk(),{safeRe:r,safeSrc:o,t:a}=wk(),i=$E(),{compareIdentifiers:l}=function(){if(KE)return GE;KE=1;const e=/^[0-9]+$/,t=(t,n)=>{const r=e.test(t),o=e.test(n);return r&&o&&(t=+t,n=+n),t===n?0:r&&!o?-1:o&&!r?1:t<n?-1:1};return GE={compareIdentifiers:t,rcompareIdentifiers:(e,n)=>t(n,e)},GE}();class s{constructor(o,l){if(l=i(l),o instanceof s){if(o.loose===!!l.loose&&o.includePrerelease===!!l.includePrerelease)return o;o=o.version}else if("string"!=typeof o)throw new TypeError('Invalid version. Must be a string. Got type "'.concat(typeof o,'".'));if(o.length>t)throw new TypeError("version is longer than ".concat(t," characters"));e("SemVer",o,l),this.options=l,this.loose=!!l.loose,this.includePrerelease=!!l.includePrerelease;const c=o.trim().match(l.loose?r[a.LOOSE]:r[a.FULL]);if(!c)throw new TypeError("Invalid Version: ".concat(o));if(this.raw=o,this.major=+c[1],this.minor=+c[2],this.patch=+c[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");c[4]?this.prerelease=c[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<n)return t}return e})):this.prerelease=[],this.build=c[5]?c[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(e("SemVer.compare",this.version,this.options,t),!(t instanceof s)){if("string"==typeof t&&t===this.version)return 0;t=new s(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(e){return e instanceof s||(e=new s(e,this.options)),l(this.major,e.major)||l(this.minor,e.minor)||l(this.patch,e.patch)}comparePre(t){if(t instanceof s||(t=new s(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 r=this.prerelease[n],o=t.prerelease[n];if(e("prerelease compare",n,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return l(r,o)}while(++n)}compareBuild(t){t instanceof s||(t=new s(t,this.options));let n=0;do{const r=this.build[n],o=t.build[n];if(e("build compare",n,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return l(r,o)}while(++n)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(t){const e=new RegExp("^".concat(this.options.loose?o[a.PRERELEASELOOSE]:o[a.PRERELEASE],"$")),n="-".concat(t).match(e);if(!n||n[1]!==t)throw new Error("invalid identifier: ".concat(t))}}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"release":if(0===this.prerelease.length)throw new Error("version ".concat(this.raw," is not a prerelease"));this.prerelease.length=0;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(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===l(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}}return ZE=s}function kk(){if(QE)return JE;QE=1;const e=Ek();return JE=(t,n,r)=>new e(t,r).compare(new e(n,r)),JE}function Ck(){if(pk)return dk;pk=1;const e=function(){if(ek)return YE;ek=1;const e=kk();return YE=(t,n,r)=>0===e(t,n,r),YE}(),t=function(){if(nk)return tk;nk=1;const e=kk();return tk=(t,n,r)=>0!==e(t,n,r),tk}(),n=function(){if(ok)return rk;ok=1;const e=kk();return rk=(t,n,r)=>e(t,n,r)>0,rk}(),r=function(){if(ik)return ak;ik=1;const e=kk();return ak=(t,n,r)=>e(t,n,r)>=0,ak}(),o=function(){if(sk)return lk;sk=1;const e=kk();return lk=(t,n,r)=>e(t,n,r)<0,lk}(),a=function(){if(uk)return ck;uk=1;const e=kk();return ck=(t,n,r)=>e(t,n,r)<=0,ck}();return dk=(i,l,s,c)=>{switch(l){case"===":return"object"==typeof i&&(i=i.version),"object"==typeof s&&(s=s.version),i===s;case"!==":return"object"==typeof i&&(i=i.version),"object"==typeof s&&(s=s.version),i!==s;case"":case"=":case"==":return e(i,s,c);case"!=":return t(i,s,c);case">":return n(i,s,c);case">=":return r(i,s,c);case"<":return o(i,s,c);case"<=":return a(i,s,c);default:throw new TypeError("Invalid operator: ".concat(l))}},dk}function Rk(){if(gk)return mk;gk=1;const e=/\s+/g;class t{constructor(n,a){if(a=r(a),n instanceof t)return n.loose===!!a.loose&&n.includePrerelease===!!a.includePrerelease?n:new t(n.raw,a);if(n instanceof o)return this.raw=n.value,this.set=[[n]],this.formatted=void 0,this;if(this.options=a,this.loose=!!a.loose,this.includePrerelease=!!a.includePrerelease,this.raw=n.trim().replace(e," "),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=>!h(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&&m(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&p)|(this.options.loose&&f))+":"+e,r=n.get(t);if(r)return r;const i=this.options.loose,m=i?l[s.HYPHENRANGELOOSE]:l[s.HYPHENRANGE];e=e.replace(m,L(this.options.includePrerelease)),a("hyphen replace",e),e=e.replace(l[s.COMPARATORTRIM],c),a("comparator trim",e),e=e.replace(l[s.TILDETRIM],u),a("tilde trim",e),e=e.replace(l[s.CARETTRIM],d),a("caret trim",e);let g=e.split(" ").map((e=>b(e,this.options))).join(" ").split(/\s+/).map((e=>R(e,this.options)));i&&(g=g.filter((e=>(a("loose invalid filter",e,this.options),!!e.match(l[s.COMPARATORLOOSE]))))),a("range list",g);const v=new Map,y=g.map((e=>new o(e,this.options)));for(const e of y){if(h(e))return[e];v.set(e.value,e)}v.size>1&&v.has("")&&v.delete("");const x=[...v.values()];return n.set(t,x),x}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some((t=>g(t,n)&&e.set.some((e=>g(e,n)&&t.every((t=>e.every((e=>t.intersects(e,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new i(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(O(this.set[t],e,this.options))return!0;return!1}}mk=t;const n=new(zE?AE:(zE=1,AE=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}})),r=$E(),o=function(){if(hk)return fk;hk=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(">")))}}fk=t;const n=$E(),{safeRe:r,t:o}=wk(),a=Ck(),i=Sk(),l=Ek(),s=Rk();return fk}(),a=Sk(),i=Ek(),{safeRe:l,t:s,comparatorTrimReplace:c,tildeTrimReplace:u,caretTrimReplace:d}=wk(),{FLAG_INCLUDE_PRERELEASE:p,FLAG_LOOSE:f}=xk(),h=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,g=(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},b=(e,t)=>(a("comp",e,t),e=S(e,t),a("caret",e),e=y(e,t),a("tildes",e),e=E(e,t),a("xrange",e),e=C(e,t),a("stars",e),e),v=e=>!e||"x"===e.toLowerCase()||"*"===e,y=(e,t)=>e.trim().split(/\s+/).map((e=>x(e,t))).join(" "),x=(e,t)=>{const n=t.loose?l[s.TILDELOOSE]:l[s.TILDE];return e.replace(n,((t,n,r,o,i)=>{let l;return a("tilde",e,t,n,r,o,i),v(n)?l="":v(r)?l=">=".concat(n,".0.0 <").concat(+n+1,".0.0-0"):v(o)?l=">=".concat(n,".").concat(r,".0 <").concat(n,".").concat(+r+1,".0-0"):i?(a("replaceTilde pr",i),l=">=".concat(n,".").concat(r,".").concat(o,"-").concat(i," <").concat(n,".").concat(+r+1,".0-0")):l=">=".concat(n,".").concat(r,".").concat(o," <").concat(n,".").concat(+r+1,".0-0"),a("tilde return",l),l}))},S=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>{a("caret",e,t);const n=t.loose?l[s.CARETLOOSE]:l[s.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,o,i,l)=>{let s;return a("caret",e,t,n,o,i,l),v(n)?s="":v(o)?s=">=".concat(n,".0.0").concat(r," <").concat(+n+1,".0.0-0"):v(i)?s="0"===n?">=".concat(n,".").concat(o,".0").concat(r," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".0").concat(r," <").concat(+n+1,".0.0-0"):l?(a("replaceCaret pr",l),s="0"===n?"0"===o?">=".concat(n,".").concat(o,".").concat(i,"-").concat(l," <").concat(n,".").concat(o,".").concat(+i+1,"-0"):">=".concat(n,".").concat(o,".").concat(i,"-").concat(l," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".").concat(i,"-").concat(l," <").concat(+n+1,".0.0-0")):(a("no pr"),s="0"===n?"0"===o?">=".concat(n,".").concat(o,".").concat(i).concat(r," <").concat(n,".").concat(o,".").concat(+i+1,"-0"):">=".concat(n,".").concat(o,".").concat(i).concat(r," <").concat(n,".").concat(+o+1,".0-0"):">=".concat(n,".").concat(o,".").concat(i," <").concat(+n+1,".0.0-0")),a("caret return",s),s}))},E=(e,t)=>(a("replaceXRanges",e,t),e.split(/\s+/).map((e=>k(e,t))).join(" ")),k=(e,t)=>{e=e.trim();const n=t.loose?l[s.XRANGELOOSE]:l[s.XRANGE];return e.replace(n,((n,r,o,i,l,s)=>{a("xRange",e,n,r,o,i,l,s);const c=v(o),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?(o=+o+1,i=0,l=0):(i=+i+1,l=0)):"<="===r&&(r="<",u?o=+o+1:i=+i+1),"<"===r&&(s="-0"),n="".concat(r+o,".").concat(i,".").concat(l).concat(s)):u?n=">=".concat(o,".0.0").concat(s," <").concat(+o+1,".0.0-0"):d&&(n=">=".concat(o,".").concat(i,".0").concat(s," <").concat(o,".").concat(+i+1,".0-0")),a("xRange return",n),n}))},C=(e,t)=>(a("replaceStars",e,t),e.trim().replace(l[s.STAR],"")),R=(e,t)=>(a("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?s.GTE0PRE:s.GTE0],"")),L=e=>(t,n,r,o,a,i,l,s,c,u,d,p)=>(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()),O=(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(a(e[n].semver),e[n].semver!==o.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 mk}var Lk=function(){if(vk)return bk;vk=1;const e=Rk();return bk=(t,n,r)=>{try{n=new e(n,r)}catch(e){return!1}return n.test(t)},bk}(),Ok=n(Lk);const Ik={};function _k(e,t){let n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{meta:a}=o,i={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&a&&a.deps&&a.deps.properties)||Ok(e,a.deps.properties),supernova:()=>async function(e,t,n,r){let{config:o}=n;const a="".concat(e,"__").concat(t);if(!Ik[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);Ik[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 uw("Failed to load visualization: '".concat(n,"'"),e)}))}return Ik[a]}(i.name,i.version,t,o.load).then((e=>(n=n||kE(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=c({qInfo:{qType:i.name},visualization:i.name,version:i.version,showTitles:!0},JSON.parse(r));return t?(ue(!0,n,e),n):c(c({},n),e)}))}};return i}function Pk(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]=_k({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 Tk(e){let{halo:t,parent:n}=e;const r={},o=n||{get:()=>{}};return{register:(e,n)=>{r[e.name]||(r[e.name]=Pk(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(Ik).forEach((t=>{t.split("__")[0]===e&&(Ik[t]=void 0)}))}(e)}}}const Mk={context:{},load:()=>{},types:[],themes:[],anything:{},flags:{KPI_REACTCOLORPICKER:!0,CLIENT_IM_3365:!0},snapshot:{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()))}};Mk.context={theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1,dataViewType:"sn-table"};const Nk=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c(c({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),e)},qk=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 Dk=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=k(t.context.language);function r(e,o){if(o)return r.createConfiguration(o)(e);let a=c(c({},t.context),{},{translator:n.translator});const[i,l]=Ks({app:e,context:a}),s=function(){let{themes:e=[],loadTheme:t,root:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=ze();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),je(Fe,{__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:i});a.themeApi=s.externalAPI;const u={galaxy:{translator:n.translator,flags:DE(t.flags),deviceType:$e(t.context.deviceType),hostConfig:t.hostConfig,anything:t.anything},theme:s.externalAPI,translator:n.translator,nebbie:null},d={app:e,root:i,config:t,public:u,context:a,types:null},p=Tk({halo:d});t.types.forEach((e=>p.register({name:e.name,version:e.version},{meta:e.meta,load:e.load})));let f=s.setTheme(t.context.theme),h=null,m=null;const g={render:async e=>(await f,e.id?qE(e,d,l):async function(e,t,n){let{type:r,version:o,fields:a,properties:i,options:l,plugins:s,element:c,extendProperties:u,navigation:d,onRender:p,onError:f}=e,h={};const m=[],{modelStore:g,subscribe:b}=n;let v;try{const e=t.types.get({name:r,version:o});h=await e.initialProperties(i,u);const n=await e.supernova();a&&await gS({sn:n,properties:h,fields:a,children:m},t),i&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},h)}catch(e){v=e,h={qInfo:{qType:r},visualization:r}}const y=await t.app.createSessionObject(h);m.length>0&&await y.setFullPropertyTree({qProperty:h,qChildren:m}),g.set(y.id,y);const x=b(y);return OE(y,{options:l,plugins:s,element:c,onRender:p,onError:f},t,d,v,(async()=>{await t.app.destroySessionObject(y.id),x()}))}(e,d,l)),destroy:async()=>{i.destroy()},create:async e=>IE(e,d,!1,l),generateProperties:async e=>IE(e,d,!0,l),context:async e=>{let t;["theme","language","constraints","interactions","keyboardNavigation"].forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==a[n]&&(t||(t={}),t[n]=e[n])})),t&&(a=c(c(c({},a),t),{},{translator:n.translator}),t.theme&&(f=s.setTheme(t.theme),await f),t.language&&d.public.translator.language(t.language),i.context(a))},selections:async()=>(h||(h={mount(t){m||(m=function(e){let{element:t,app:n}=e;return Vl.createPortal(v.createElement(bx,{app:n}),t,gx())}({element:t,app:e}),i.add(m))},unmount(){m&&(i.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(a){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!a)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 s=()=>o.emit("selectionActivated"),u=()=>o.emit("selectionDeactivated");return new Promise((r=>{[this._instance,this._ref]=function(e){let{element:t,app:n,fieldIdentifier:r,qId:o,stateName:a="$",options:i={},renderedCallback:l}=e;const s=v.createRef();return[Vl.createPortal(v.createElement(nS,{ref:s,app:n,element:t,fieldIdentifier:r,qId:o,stateName:a,initialOptions:i,renderedCallback:l}),t,gx()),s]}({element:a,app:e,fieldIdentifier:t,qId:n,options:tS(c({onSelectionActivated:s,onSelectionDeactivated:u},l)),stateName:l.stateName||"$",renderedCallback:r}),i.add(this._instance)}))},unmount(){this._instance&&(i.remove(this._instance),this._instance=null,this._ref=null)},__DO_NOT_USE__:{options(e){var t;const n=()=>o.emit("selectionActivated"),r=()=>o.emit("selectionDeactivated");if(null!==(t=o._ref)&&void 0!==t&&t.current){const t=tS(c({onSelectionActivated:n,onSelectionDeactivated:r},e));o._ref.current.setOptions(t)}}}};return nv(o),o},getRegisteredTypes:p.getList,__DO_NOT_USE__:{types:p,popover(t,n,r){g._popoverInstance&&(i.remove(g._popoverInstance),g._popoverInstance=null);const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=c({},rS);return ue(!0,t,e),t}(c({onPopoverClose:()=>g.emit("fieldPopoverClose")},r));g._popoverInstance=v.createElement(oS,{element:t,key:gx(),app:e,fieldIdentifier:n,options:o,stateName:r.stateName||"$"}),i.add(g._popoverInstance)}}};return d.public.nebbie=g,d.types=p,nv(g),g}return r.createConfiguration=n=>e(((e,t)=>({context:Nk(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:c({},t.snapshot||e.snapshot),types:qk(e.types,t.types),themes:qk(e.themes,t.themes),flags:Nk(e.flags,t.flags),hostConfig:t.hostConfig||e.hostConfig,anything:Nk(e.anything,t.anything)}))(t,n)),r.config=t,r}(Mk);function Ak(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}const zk=globalThis.crypto||{getRandomValues:()=>123456};function jk(e){return t=>{const n=ue({},t);n.qInfo=n.qInfo||{},n.qInfo.qId=n.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^zk.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))));const r=n._mock;let o=n;return r&&(delete n._mock,o=ue({},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 Fk=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},$k=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=Fk(e,{defaultValue:t,args:a});return n?new Promise((e=>{setTimeout((()=>e(l)),r)})):l}},Bk=["id","session"],Wk=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function Hk(e){return!Wk.includes(e)}function Uk(e){const t=Fk(e.getLayout);return t.qInfo&&t.qInfo.qId}function Vk(e,t){return e.reduce(((e,n)=>c(c({},e),function(e,t){let n=Uk(e);const{delay:r}=t,{id:o,session:a}=e,i=u(e,Bk);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]:c(c({id:n,session:Fk(a,{defaultValue:!0}),on:()=>{},once:()=>{},removeListener:()=>{}},Object.entries(i).reduce(((e,t)=>{let[n,o]=t;return c(c({},e),{},{[n]:$k(o,{async:Hk(n),delay:r})})}),{})),{},{genericType:e.type})}}(n,t))),{})}function Gk(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!Uk(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function Kk(){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(Gk);const n=Vk(e,t);return async e=>Promise.resolve(n[e])}function Zk(){return()=>Promise.resolve({id:"app-layout"})}const Xk={fromGenericObjects(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new Ak,r=new jk(n),o=new Kk(e,t),a=new Zk,i={id:"app - ".concat(+Date.now()),session:n,createSessionObject:r,destroySessionObject:async()=>{},getObject:o,getAppLayout:a,getListObject:async()=>{}};return Promise.resolve(i)}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}},Jk={generator:kE,hook:aE,theme:ze,locale:x};e.EnigmaMocker=Xk,e.__DO_NOT_USE__=Jk,e.conversion=_S,e.embed=Dk,e.onContextMenu=function(e){const t=nE(++Uw);t.value||(t.value=1,Hw.__hooks.menus.push(t)),t.fn=e},e.onTakeSnapshot=function(e){const t=nE(++Uw);t.value||(t.value=1,Hw.__hooks.snaps.push(t)),t.fn=e},e.useAction=function(e,t){const[n]=iE({action(){n._config.action.call(null)}});return n.component||(n.component=Hw,Hw.__hooks.actions.list.push(n)),cE((()=>{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=rE("app");return e&&e.session?e:void 0},e.useAppLayout=function(){return rE("appLayout")},e.useConstraints=function(){return rE("constraints")},e.useDeviceType=function(){return rE("deviceType")},e.useEffect=lE,e.useElement=uE,e.useEmbed=function(){return rE("nebbie")},e.useEmitter=function(){return rE("emitter")},e.useGlobal=function(){const e=rE("global");return e&&e.session?e:void 0},e.useImperativeHandle=function(e,t){const n=nE(++Uw);if(n.imperative||(n.imperative=!0),Vw(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],Hw.__hooks.imperativeHandle=r}},e.useInteractionState=function(){return rE("interactions")},e.useKeyboard=function(){const e=rE("keyboardNavigation"),t=rE("focusHandler");if(!Hw.__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&&(pE(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(Hw);Hw.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),dE(this))}.bind(Hw);Hw.__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(Hw);Hw.__hooks.accessibility.focusSelectionFunction=r}const n=Hw.__hooks.accessibility.focusFunction,r=Hw.__hooks.accessibility.exitFunction,o=Hw.__hooks.accessibility.focusSelectionFunction,[a,i]=iE({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return Hw.__hooks.accessibility.setter=i,Hw.__hooks.accessibility.enabled=e,lE((()=>i({active:!1,enabled:e,blur:r,focus:n,focusSelection:o})),[e]),a},e.useLayout=function(){return rE("layout")},e.useMemo=cE,e.useModel=function(){const e=rE("model");return e&&e.session?e:void 0},e.useNavigation=function(){return rE("navigation")},e.useOptions=function(){return rE("options")},e.usePlugins=function(){return rE("plugins")},e.usePromise=function(e,t){const[n,r]=iE((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=nE(++Uw);return o.component||(o.component=Hw),sE((()=>{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=uE(),t=Hw.__hooks.resizer,[n,r]=iE((()=>{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()),sE((()=>{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.useRef=function(e){return cE((()=>({current:e})),[])},e.useRenderState=function(){nE(++Uw);const e=Hw.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}},e.useSelections=function(){return rE("selections")},e.useStaleLayout=function(){const e=rE("layout"),[t]=iE({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current},e.useState=iE,e.useTheme=function(){return rE("theme")},e.useTranslator=function(){return rE("translator")}}));
|
|
126
126
|
//# sourceMappingURL=stardust.js.map
|