@nebula.js/stardust 5.1.0 → 5.1.2
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 +44 -65
- package/core/esm/dev.js.map +1 -1
- package/core/esm/index.js +3 -3
- package/core/esm/index.js.map +1 -1
- package/dist/stardust.dev.js +44 -65
- package/dist/stardust.dev.js.map +1 -1
- package/dist/stardust.js +13 -13
- package/dist/stardust.js.map +1 -1
- package/package.json +10 -10
- package/types/index.d.ts +10 -10
package/dist/stardust.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/stardust v5.1.
|
|
2
|
+
* @nebula.js/stardust v5.1.2
|
|
3
3
|
* Copyright (c) 2024 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).stardust={})}(this,(function(e){"use strict";function t(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function l(e,t,n){return(t=i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)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],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}!function(e){var t=function(e){var t,n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var a=t&&t.prototype instanceof v?t:v,i=Object.create(a.prototype),l=new I(r||[]);return o(i,"_invoke",{value:R(e,n,l)}),i}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var p="suspendedStart",f="suspendedYield",h="executing",m="completed",g={};function v(){}function b(){}function y(){}var x={};c(x,i,(function(){return this}));var S=Object.getPrototypeOf,w=S&&S(S(T([])));w&&w!==n&&r.call(w,i)&&(x=w);var E=y.prototype=v.prototype=Object.create(x);function C(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(o,a,i,l){var s=d(e[o],e,a);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,i,l)}),(function(e){n("throw",e,i,l)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return n("throw",e,i,l)}))}l(s.arg)}var a;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function R(e,n,r){var o=p;return function(a,i){if(o===h)throw new Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var l=r.delegate;if(l){var s=L(l,r);if(s){if(s===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(e,n,r);if("normal"===c.type){if(o=r.done?m:f,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=d(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function T(e){if(null!=e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return b.prototype=y,o(E,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:b,configurable:!0}),b.displayName=c(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,s,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},C(k.prototype),c(k.prototype,l,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new k(u(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},C(E),c(E,s,"Generator"),c(E,i,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=T,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(_),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return l.type="throw",l.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}({exports:{}});var u={exports:{}},d={},p=Symbol.for("react.element"),f=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),m=Symbol.for("react.strict_mode"),g=Symbol.for("react.profiler"),v=Symbol.for("react.provider"),b=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),S=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),E=Symbol.iterator;var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,R={};function L(e,t,n){this.props=e,this.context=t,this.refs=R,this.updater=n||C}function O(){}function _(e,t,n){this.props=e,this.context=t,this.refs=R,this.updater=n||C}L.prototype.isReactComponent={},L.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")},L.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},O.prototype=L.prototype;var I=_.prototype=new O;I.constructor=_,k(I,L.prototype),I.isPureReactComponent=!0;var T=Array.isArray,P=Object.prototype.hasOwnProperty,M={current:null},N={key:!0,ref:!0,__self:!0,__source:!0};function q(e,t,n){var r,o={},a=null,i=null;if(null!=t)for(r in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(a=""+t.key),t)P.call(t,r)&&!N.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var s=Array(l),c=0;c<l;c++)s[c]=arguments[c+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:p,type:e,key:a,ref:i,props:o,_owner:M.current}}function z(e){return"object"==typeof e&&null!==e&&e.$$typeof===p}var D=/\/+/g;function A(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function j(e,t,n,r,o){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var i=!1;if(null===e)i=!0;else switch(a){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case p:case f:i=!0}}if(i)return o=o(i=e),e=""===r?"."+A(i,0):r,T(o)?(n="",null!=e&&(n=e.replace(D,"$&/")+"/"),j(o,t,n,"",(function(e){return e}))):null!=o&&(z(o)&&(o=function(e,t){return{$$typeof:p,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(D,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=""===r?".":r+":",T(e))for(var l=0;l<e.length;l++){var s=r+A(a=e[l],l);i+=j(a,t,n,s,o)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=E&&e[E]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),l=0;!(a=e.next()).done;)i+=j(a=a.value,t,n,s=r+A(a,l++),o);else if("object"===a)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function F(e,t,n){if(null==e)return e;var r=[],o=0;return j(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function B(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var $={current:null},W={transition:null},H={ReactCurrentDispatcher:$,ReactCurrentBatchConfig:W,ReactCurrentOwner:M};function U(){throw Error("act(...) is not supported in production builds of React.")}d.Children={map:F,forEach:function(e,t,n){F(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return F(e,(function(){t++})),t},toArray:function(e){return F(e,(function(e){return e}))||[]},only:function(e){if(!z(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},d.Component=L,d.Fragment=h,d.Profiler=g,d.PureComponent=_,d.StrictMode=m,d.Suspense=x,d.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=H,d.act=U,d.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=k({},e.props),o=e.key,a=e.ref,i=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,i=M.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)P.call(t,s)&&!N.hasOwnProperty(s)&&(r[s]=void 0===t[s]&&void 0!==l?l[s]:t[s])}var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){l=Array(s);for(var c=0;c<s;c++)l[c]=arguments[c+2];r.children=l}return{$$typeof:p,type:e.type,key:o,ref:a,props:r,_owner:i}},d.createContext=function(e){return(e={$$typeof:b,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:v,_context:e},e.Consumer=e},d.createElement=q,d.createFactory=function(e){var t=q.bind(null,e);return t.type=e,t},d.createRef=function(){return{current:null}},d.forwardRef=function(e){return{$$typeof:y,render:e}},d.isValidElement=z,d.lazy=function(e){return{$$typeof:w,_payload:{_status:-1,_result:e},_init:B}},d.memo=function(e,t){return{$$typeof:S,type:e,compare:void 0===t?null:t}},d.startTransition=function(e){var t=W.transition;W.transition={};try{e()}finally{W.transition=t}},d.unstable_act=U,d.useCallback=function(e,t){return $.current.useCallback(e,t)},d.useContext=function(e){return $.current.useContext(e)},d.useDebugValue=function(){},d.useDeferredValue=function(e){return $.current.useDeferredValue(e)},d.useEffect=function(e,t){return $.current.useEffect(e,t)},d.useId=function(){return $.current.useId()},d.useImperativeHandle=function(e,t,n){return $.current.useImperativeHandle(e,t,n)},d.useInsertionEffect=function(e,t){return $.current.useInsertionEffect(e,t)},d.useLayoutEffect=function(e,t){return $.current.useLayoutEffect(e,t)},d.useMemo=function(e,t){return $.current.useMemo(e,t)},d.useReducer=function(e,t,n){return $.current.useReducer(e,t,n)},d.useRef=function(e){return $.current.useRef(e)},d.useState=function(e){return $.current.useState(e)},d.useSyncExternalStore=function(e,t,n){return $.current.useSyncExternalStore(e,t,n)},d.useTransition=function(){return $.current.useTransition()},d.version="18.3.1",u.exports=d;var V=u.exports,G=n(V),K=t({__proto__:null,default:G},[V]);const Z=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 X={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_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 Q(e){const t=Z({initial:e});return Object.keys(X).forEach((e=>{t.translator.add(X[e])})),{translator:t.translator}}var J={};function Y(){Y.init.call(this)}J.isObject=function(e){return"object"==typeof e&&null!==e},J.isNumber=function(e){return"number"==typeof e},J.isUndefined=function(e){return void 0===e},J.isFunction=function(e){return"function"==typeof e};var ee=Y;Y.EventEmitter=Y,Y.prototype._events=void 0,Y.prototype._maxListeners=void 0,Y.defaultMaxListeners=10,Y.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},Y.prototype.setMaxListeners=function(e){if(!J.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},Y.prototype.emit=function(e){var t,n,r,o,a,i;if(this._events||(this._events={}),"error"===e&&!this._events.error)throw(t=arguments[1])instanceof Error?t:Error('Uncaught, unspecified "error" event.');if(n=this._events[e],J.isUndefined(n))return!1;if(J.isFunction(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,o=new Array(r-1),a=1;a<r;a++)o[a-1]=arguments[a];n.apply(this,o)}else if(J.isObject(n)){for(r=arguments.length,o=new Array(r-1),a=1;a<r;a++)o[a-1]=arguments[a];for(r=(i=n.slice()).length,a=0;a<r;a++)i[a].apply(this,o)}return!0},Y.prototype.addListener=function(e,t){var n;if(!J.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,J.isFunction(t.listener)?t.listener:t),this._events[e]?J.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,J.isObject(this._events[e])&&!this._events[e].warned)&&((n=J.isUndefined(this._maxListeners)?Y.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,J.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),J.isFunction(console.trace)&&console.trace()));return this},Y.prototype.on=Y.prototype.addListener,Y.prototype.once=function(e,t){if(!J.isFunction(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},Y.prototype.removeListener=function(e,t){var n,r,o,a;if(!J.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(o=(n=this._events[e]).length,r=-1,n===t||J.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(J.isObject(n)){for(a=o;a-- >0;)if(n[a]===t||n[a].listener&&n[a].listener===t){r=a;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},Y.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],J.isFunction(n))this.removeListener(e,n);else if(Array.isArray(n))for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},Y.prototype.listeners=function(e){return this._events&&this._events[e]?J.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},Y.listenerCount=function(e,t){return e._events&&e._events[t]?J.isFunction(e._events[t])?1:e._events[t].length:0};var te=n(ee);function ne(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function re(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function oe(){}var ae=.7,ie=1/ae,le="\\s*([+-]?\\d+)\\s*",se="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ce="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ue=/^#([0-9a-f]{3,8})$/,de=new RegExp(`^rgb\\(${le},${le},${le}\\)$`),pe=new RegExp(`^rgb\\(${ce},${ce},${ce}\\)$`),fe=new RegExp(`^rgba\\(${le},${le},${le},${se}\\)$`),he=new RegExp(`^rgba\\(${ce},${ce},${ce},${se}\\)$`),me=new RegExp(`^hsl\\(${se},${ce},${ce}\\)$`),ge=new RegExp(`^hsla\\(${se},${ce},${ce},${se}\\)$`),ve={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 be(){return this.rgb().formatHex()}function ye(){return this.rgb().formatRgb()}function xe(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ue.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Se(t):3===n?new Ce(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?we(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?we(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=de.exec(e))?new Ce(t[1],t[2],t[3],1):(t=pe.exec(e))?new Ce(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=fe.exec(e))?we(t[1],t[2],t[3],t[4]):(t=he.exec(e))?we(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=me.exec(e))?Ie(t[1],t[2]/100,t[3]/100,1):(t=ge.exec(e))?Ie(t[1],t[2]/100,t[3]/100,t[4]):ve.hasOwnProperty(e)?Se(ve[e]):"transparent"===e?new Ce(NaN,NaN,NaN,0):null}function Se(e){return new Ce(e>>16&255,e>>8&255,255&e,1)}function we(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ce(e,t,n,r)}function Ee(e,t,n,r){return 1===arguments.length?((o=e)instanceof oe||(o=xe(o)),o?new Ce((o=o.rgb()).r,o.g,o.b,o.opacity):new Ce):new Ce(e,t,n,null==r?1:r);var o}function Ce(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ke(){return`#${_e(this.r)}${_e(this.g)}${_e(this.b)}`}function Re(){const e=Le(this.opacity);return`${1===e?"rgb(":"rgba("}${Oe(this.r)}, ${Oe(this.g)}, ${Oe(this.b)}${1===e?")":`, ${e})`}`}function Le(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Oe(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function _e(e){return((e=Oe(e))<16?"0":"")+e.toString(16)}function Ie(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Pe(e,t,n,r)}function Te(e){if(e instanceof Pe)return new Pe(e.h,e.s,e.l,e.opacity);if(e instanceof oe||(e=xe(e)),!e)return new Pe;if(e instanceof Pe)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 Pe(i,l,s,e.opacity)}function Pe(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Me(e){return(e=(e||0)%360)<0?e+360:e}function Ne(e){return Math.max(0,Math.min(1,e||0))}function qe(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}ne(oe,xe,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:be,formatHex:be,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Te(this).formatHsl()},formatRgb:ye,toString:ye}),ne(Ce,Ee,re(oe,{brighter(e){return e=null==e?ie:Math.pow(ie,e),new Ce(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?ae:Math.pow(ae,e),new Ce(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ce(Oe(this.r),Oe(this.g),Oe(this.b),Le(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ke,formatHex:ke,formatHex8:function(){return`#${_e(this.r)}${_e(this.g)}${_e(this.b)}${_e(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Re,toString:Re})),ne(Pe,(function(e,t,n,r){return 1===arguments.length?Te(e):new Pe(e,t,n,null==r?1:r)}),re(oe,{brighter(e){return e=null==e?ie:Math.pow(ie,e),new Pe(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?ae:Math.pow(ae,e),new Pe(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 Ce(qe(e>=240?e-240:e+120,o,r),qe(e,o,r),qe(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Pe(Me(this.h),Ne(this.s),Ne(this.l),Le(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Le(this.opacity);return`${1===e?"hsl(":"hsla("}${Me(this.h)}, ${100*Ne(this.s)}%, ${100*Ne(this.l)}%${1===e?")":`, ${e})`}`}}));var ze=Object.prototype.hasOwnProperty,De=Object.prototype.toString,Ae=Object.defineProperty,je=Object.getOwnPropertyDescriptor,Fe=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===De.call(e)},Be=function(e){if(!e||"[object Object]"!==De.call(e))return!1;var t,n=ze.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&ze.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||ze.call(e,t)},$e=function(e,t){Ae&&"__proto__"===t.name?Ae(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},We=function(e,t){if("__proto__"===t){if(!ze.call(e,t))return;if(je)return je(e,t).value}return e[t]},He=function e(){var t,n,r,o,a,i,l=arguments[0],s=1,c=arguments.length,u=!1;for("boolean"==typeof l&&(u=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<c;++s)if(null!=(t=arguments[s]))for(n in t)r=We(l,n),l!==(o=We(t,n))&&(u&&o&&(Be(o)||(a=Fe(o)))?(a?(a=!1,i=r&&Fe(r)?r:[]):i=r&&Be(r)?r:{},$e(l,{name:n,newValue:e(u,i,o)})):void 0!==o&&$e(l,{name:n,newValue:o}));return l},Ue=n(He),Ve={fontSize:"12px",fontFamily:"'Source Sans Pro', 'Arial', 'sans-serif'",backgroundColor:"transparent",dataColors:{primaryColor:"#26a0a7",othersColor:"#a5a5a5",errorColor:"#ff4444",nullColor:"#d2d2d2"},object:{title:{main:{color:"@B50",fontSize:"15px"},subTitle:{color:"@B50",fontSize:"12px"},footer:{color:"@B50",fontSize:"12px",backgroundColor:"transparent"}}},scales:[{name:"Sequential Gradient",translation:"properties.colorScheme.sequential",type:"gradient",propertyValue:"sg",scale:["#26a0a7","#c7ea8b"]},{name:"Sequential Classes",translation:"properties.colorScheme.sequentialC",propertyValue:"sc",type:"class",scale:["#26a0a7","#c7ea8b"]},{name:"Diverging gradient",translation:"properties.colorScheme.diverging",propertyValue:"dg",type:"gradient",scale:["#26a0a7","#c3ea8c","#ec983d"]},{name:"Diverging Classes",translation:"properties.colorScheme.divergingC",propertyValue:"dc",type:"class",scale:["#26a0a7","#c3ea8c","#ec983d"]}],palettes:{data:[{name:"12 Colors",translation:"properties.colorNumberOfColors.12",propertyValue:"12",type:"pyramid",scale:[["#26A0A7"],["#26A0A7","#EC983D"],["#26A0A7","#CBE989","#EC983D"],["#26A0A7","#79D69F","#F9EC86","#EC983D"],["#26A0A7","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D","#D76C6C"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"],["#138185","#26A0A7","#65D3DA","#79D69F","#70BA6E","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"]]}],ui:[{name:"Palette",colors:["#b0afae","#7b7a78","#a54343","#d76c6c","#ec983d","#ecc43d","#f9ec86","#cbe989","#70ba6e","#578b60","#79d69f","#26a0a7","#138185","#65d3da","#ffffff","#000000"]}]}},Ge={_variables:{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},type:"light",color:"@B35"},Ke={_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"}}}},Ze={object:{listBox:{backgroundColor:"#ffffff",title:{main:{color:"#404040",fontSize:"14px",fontWeight:"bold"}},content:{color:"#404040",fontSize:"12px"}}}};class Xe{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=xe(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([xe(e),xe(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 Ee(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 Qe(e,t,n){const r=.25+(t+1)/n*.25,o=.5-r;return o+e/1*(.5+r-o)}function Je(e,t,n){const r=[],o=new Xe(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 Ye(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=Qe(1/t*o,t,n);a=e.getColor(r);break}}r.push(xe(a).formatHex())}return r}function et(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=Je(e,n,!0),o=Je(Ye(r,t-1,t),n,!1),a=[null];for(let e=0;e<t;e++)a.push(Ye(o,e,t));return a}(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}}))}function tt(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 nt(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 rt(e,t,n,r){let o;if(""===e)o=tt(null,n);else{o=tt(e.split("."),n)}return function(e,t,n){const r=t.split(".");for(let t=0;t<e.length;t++){const o=nt(n,[...e[t],...r]);if(void 0!==o)return o}}(o,t,r)}function ot(e,t){const n=e.split(".");return{getStyle:(e,r)=>rt(e,r,n.concat(),t)}}function at(e,t){Object.keys(e).forEach((n=>{"object"==typeof e[n]&&null!==e[n]?at(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])}))}function it(e){const t=xe(e).rgb(),{r:n,g:r,b:o}=t,[a,i,l]=[n,r,o].map((e=>e/255)),[s,c,u]=[a,i,l].map((e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4));return+(.2126*s+.7152*c+.0722*u).toFixed(5)}ot.resolveRawTheme=e=>{const t=Ue(!0,{},e);return at(t,t._variables),t.scales&&et(t.scales,t.dataColors&&t.dataColors.nullColor),t};const lt=1e3;function st(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["#333333","#ffffff"],t={},n=0;const r=e.map(it);return{getBestContrastColor(o){if(!t[o]){n>lt&&(t={},n=0);const a=it(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 ct(){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]=ot(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=xe(...arguments);return n?n.toString():void 0}},a={setTheme(a,i){e=function(e,t){const n="dark"===e.type?Ke:Ge;let r=Ze;!1!==e._inherit&&"false"!==e._inherit||(r={});const o=Ue(!0,{},Ve,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,ot.resolveRawTheme),r={},t=function(e){let t;return{dataScales(){const t=[];return e.scales.forEach((e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,scheme:!0,type:e.type,colors:e.scale})})),t},dataPalettes(){const t=[];return e.palettes.data.forEach((e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,type:e.type,colors:e.scale})})),t},uiPalettes(){const t=[];return e.palettes.ui.forEach((e=>{t.push({key:"ui",name:e.name,translation:e.translation,type:"row",colors:e.colors})})),t},dataColors:()=>({primary:e.dataColors.primaryColor,nil:e.dataColors.nullColor,others:e.dataColors.othersColor}),uiColor(e,n){const r="number"==typeof(null==e?void 0:e.index)&&!Number.isNaN(null==e?void 0:e.index),o="string"==typeof(null==e?void 0:e.color);if(r||o)return n=!!n,(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-n]?e.color:t.colors[e.index-n]:e.color)}}}(e);const l=o.getStyle("","","color"),s=it(l);n=st([l,s<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>i}};return Object.keys(te.prototype).forEach((e=>{o[e]=te.prototype[e]})),te.init(o),a.setTheme({},"light"),{externalAPI:o,internalAPI:a}}const ut=(e,t)=>new Promise((n=>{setTimeout((()=>n(t)),e)})),dt=5e3;function pt(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 ft={},ht={exports:{}},mt={},gt={exports:{}},vt={};
|
|
7
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).stardust={})}(this,(function(e){"use strict";function t(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}function o(e,t,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||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(){return a=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},a.apply(null,arguments)}function i(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 l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(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(t.indexOf(r)>=0)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],t.indexOf(n)>=0||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}!function(e){var t=function(e){var t,n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var a=t&&t.prototype instanceof v?t:v,i=Object.create(a.prototype),l=new I(r||[]);return o(i,"_invoke",{value:R(e,n,l)}),i}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var p="suspendedStart",f="suspendedYield",h="executing",m="completed",g={};function v(){}function b(){}function y(){}var x={};c(x,i,(function(){return this}));var S=Object.getPrototypeOf,w=S&&S(S(T([])));w&&w!==n&&r.call(w,i)&&(x=w);var E=y.prototype=v.prototype=Object.create(x);function C(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(o,a,i,l){var s=d(e[o],e,a);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,i,l)}),(function(e){n("throw",e,i,l)})):t.resolve(u).then((function(e){c.value=e,i(c)}),(function(e){return n("throw",e,i,l)}))}l(s.arg)}var a;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function R(e,n,r){var o=p;return function(a,i){if(o===h)throw new Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(r.method=a,r.arg=i;;){var l=r.delegate;if(l){var s=L(l,r);if(s){if(s===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(e,n,r);if("normal"===c.type){if(o=r.done?m:f,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function L(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var a=d(o,e.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,g;var i=a.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function T(e){if(null!=e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return b.prototype=y,o(E,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:b,configurable:!0}),b.displayName=c(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,s,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},C(k.prototype),c(k.prototype,l,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,o,a){void 0===a&&(a=Promise);var i=new k(u(t,n,r,o),a);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},C(E),c(E,s,"Generator"),c(E,i,(function(){return this})),c(E,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=T,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(_),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return l.type="throw",l.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],l=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}({exports:{}});var c={exports:{}},u={},d=Symbol.for("react.element"),p=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),v=Symbol.for("react.context"),b=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),w=Symbol.iterator;var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,k={};function R(e,t,n){this.props=e,this.context=t,this.refs=k,this.updater=n||E}function L(){}function O(e,t,n){this.props=e,this.context=t,this.refs=k,this.updater=n||E}R.prototype.isReactComponent={},R.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},R.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},L.prototype=R.prototype;var _=O.prototype=new L;_.constructor=O,C(_,R.prototype),_.isPureReactComponent=!0;var I=Array.isArray,T=Object.prototype.hasOwnProperty,P={current:null},M={key:!0,ref:!0,__self:!0,__source:!0};function N(e,t,n){var r,o={},a=null,i=null;if(null!=t)for(r in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(a=""+t.key),t)T.call(t,r)&&!M.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var s=Array(l),c=0;c<l;c++)s[c]=arguments[c+2];o.children=s}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:d,type:e,key:a,ref:i,props:o,_owner:P.current}}function q(e){return"object"==typeof e&&null!==e&&e.$$typeof===d}var z=/\/+/g;function D(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 A(e,t,n,r,o){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var i=!1;if(null===e)i=!0;else switch(a){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case d:case p:i=!0}}if(i)return o=o(i=e),e=""===r?"."+D(i,0):r,I(o)?(n="",null!=e&&(n=e.replace(z,"$&/")+"/"),A(o,t,n,"",(function(e){return e}))):null!=o&&(q(o)&&(o=function(e,t){return{$$typeof:d,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||i&&i.key===o.key?"":(""+o.key).replace(z,"$&/")+"/")+e)),t.push(o)),1;if(i=0,r=""===r?".":r+":",I(e))for(var l=0;l<e.length;l++){var s=r+D(a=e[l],l);i+=A(a,t,n,s,o)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=w&&e[w]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),l=0;!(a=e.next()).done;)i+=A(a=a.value,t,n,s=r+D(a,l++),o);else if("object"===a)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function j(e,t,n){if(null==e)return e;var r=[],o=0;return A(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function F(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var B={current:null},$={transition:null},W={ReactCurrentDispatcher:B,ReactCurrentBatchConfig:$,ReactCurrentOwner:P};function H(){throw Error("act(...) is not supported in production builds of React.")}u.Children={map:j,forEach:function(e,t,n){j(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return j(e,(function(){t++})),t},toArray:function(e){return j(e,(function(e){return e}))||[]},only:function(e){if(!q(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},u.Component=R,u.Fragment=f,u.Profiler=m,u.PureComponent=O,u.StrictMode=h,u.Suspense=y,u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W,u.act=H,u.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=C({},e.props),o=e.key,a=e.ref,i=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,i=P.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(s in t)T.call(t,s)&&!M.hasOwnProperty(s)&&(r[s]=void 0===t[s]&&void 0!==l?l[s]:t[s])}var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){l=Array(s);for(var c=0;c<s;c++)l[c]=arguments[c+2];r.children=l}return{$$typeof:d,type:e.type,key:o,ref:a,props:r,_owner:i}},u.createContext=function(e){return(e={$$typeof:v,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:g,_context:e},e.Consumer=e},u.createElement=N,u.createFactory=function(e){var t=N.bind(null,e);return t.type=e,t},u.createRef=function(){return{current:null}},u.forwardRef=function(e){return{$$typeof:b,render:e}},u.isValidElement=q,u.lazy=function(e){return{$$typeof:S,_payload:{_status:-1,_result:e},_init:F}},u.memo=function(e,t){return{$$typeof:x,type:e,compare:void 0===t?null:t}},u.startTransition=function(e){var t=$.transition;$.transition={};try{e()}finally{$.transition=t}},u.unstable_act=H,u.useCallback=function(e,t){return B.current.useCallback(e,t)},u.useContext=function(e){return B.current.useContext(e)},u.useDebugValue=function(){},u.useDeferredValue=function(e){return B.current.useDeferredValue(e)},u.useEffect=function(e,t){return B.current.useEffect(e,t)},u.useId=function(){return B.current.useId()},u.useImperativeHandle=function(e,t,n){return B.current.useImperativeHandle(e,t,n)},u.useInsertionEffect=function(e,t){return B.current.useInsertionEffect(e,t)},u.useLayoutEffect=function(e,t){return B.current.useLayoutEffect(e,t)},u.useMemo=function(e,t){return B.current.useMemo(e,t)},u.useReducer=function(e,t,n){return B.current.useReducer(e,t,n)},u.useRef=function(e){return B.current.useRef(e)},u.useState=function(e){return B.current.useState(e)},u.useSyncExternalStore=function(e,t,n){return B.current.useSyncExternalStore(e,t,n)},u.useTransition=function(){return B.current.useTransition()},u.version="18.3.1",c.exports=u;var U=c.exports,V=n(U),G=t({__proto__:null,default:V},[U]);const K=function(){let{initial:e="en-US",fallback:t="en-US"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=function(){let{initial:e="en-US",fallback:t="en-US"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n={};let r=e;const o={language:e=>(e&&(r=e),r),add:e=>{const{id:t,locale:r}=e;Object.keys(r).forEach((e=>{n[e]||(n[e]={}),n[e][t]=r[e]}))},get(e,o){let a;return a=n[r]&&void 0!==n[r][e]?n[r][e]:n[t]&&void 0!==n[t][e]?n[t][e]:e,void 0!==o?function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const t="string"==typeof e||"number"==typeof e?[e]:e;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/\{(\d+)\}/g,((e,n)=>void 0!==t[n]?t[n]:e))}(a,o):a}};return o}({initial:e,fallback:t});return{translator:n}};var Z={Cancel:{id:"Cancel",locale:{"de-DE":"Abbrechen","en-US":"Cancel","es-ES":"Cancelar","fr-FR":"Annuler","it-IT":"Annulla","ja-JP":"キャンセル","ko-KR":"취소","nl-NL":"Annuleren","pl-PL":"Anuluj","pt-BR":"Cancelar","ru-RU":"Отмена","sv-SE":"Avbryt","tr-TR":"İptal","zh-CN":"取消","zh-TW":"取消"}},CurrentSelections_All:{id:"CurrentSelections.All",locale:{"de-DE":"ALLES","en-US":"ALL","es-ES":"TODOS","fr-FR":"TOUS","it-IT":"TUTTI","ja-JP":"すべて","ko-KR":"모두","nl-NL":"ALLE","pl-PL":"WSZYSTKO","pt-BR":"TODOS","ru-RU":"ВСЕ","sv-SE":"ALLA","tr-TR":"TÜMÜ","zh-CN":"全部","zh-TW":"全部"}},CurrentSelections_Of:{id:"CurrentSelections.Of",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0}/ {1}","ko-KR":"{0} / {1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0}/ {1}","zh-TW":"{0}/ {1}"}},Listbox_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 X(e){const t=K({initial:e});return Object.keys(Z).forEach((e=>{t.translator.add(Z[e])})),{translator:t.translator}}var Q={};function J(){J.init.call(this)}Q.isObject=function(e){return"object"==typeof e&&null!==e},Q.isNumber=function(e){return"number"==typeof e},Q.isUndefined=function(e){return void 0===e},Q.isFunction=function(e){return"function"==typeof e};var Y=J;J.EventEmitter=J,J.prototype._events=void 0,J.prototype._maxListeners=void 0,J.defaultMaxListeners=10,J.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},J.prototype.setMaxListeners=function(e){if(!Q.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},J.prototype.emit=function(e){var t,n,r,o,a,i;if(this._events||(this._events={}),"error"===e&&!this._events.error)throw(t=arguments[1])instanceof Error?t:Error('Uncaught, unspecified "error" event.');if(n=this._events[e],Q.isUndefined(n))return!1;if(Q.isFunction(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,o=new Array(r-1),a=1;a<r;a++)o[a-1]=arguments[a];n.apply(this,o)}else if(Q.isObject(n)){for(r=arguments.length,o=new Array(r-1),a=1;a<r;a++)o[a-1]=arguments[a];for(r=(i=n.slice()).length,a=0;a<r;a++)i[a].apply(this,o)}return!0},J.prototype.addListener=function(e,t){var n;if(!Q.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,Q.isFunction(t.listener)?t.listener:t),this._events[e]?Q.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,Q.isObject(this._events[e])&&!this._events[e].warned)&&((n=Q.isUndefined(this._maxListeners)?J.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,Q.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),Q.isFunction(console.trace)&&console.trace()));return this},J.prototype.on=J.prototype.addListener,J.prototype.once=function(e,t){if(!Q.isFunction(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},J.prototype.removeListener=function(e,t){var n,r,o,a;if(!Q.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(o=(n=this._events[e]).length,r=-1,n===t||Q.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(Q.isObject(n)){for(a=o;a-- >0;)if(n[a]===t||n[a].listener&&n[a].listener===t){r=a;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},J.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],Q.isFunction(n))this.removeListener(e,n);else if(Array.isArray(n))for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},J.prototype.listeners=function(e){return this._events&&this._events[e]?Q.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},J.listenerCount=function(e,t){return e._events&&e._events[t]?Q.isFunction(e._events[t])?1:e._events[t].length:0};var ee=n(Y);function te(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ne(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function re(){}var oe=.7,ae=1/oe,ie="\\s*([+-]?\\d+)\\s*",le="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",se="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ce=/^#([0-9a-f]{3,8})$/,ue=new RegExp(`^rgb\\(${ie},${ie},${ie}\\)$`),de=new RegExp(`^rgb\\(${se},${se},${se}\\)$`),pe=new RegExp(`^rgba\\(${ie},${ie},${ie},${le}\\)$`),fe=new RegExp(`^rgba\\(${se},${se},${se},${le}\\)$`),he=new RegExp(`^hsl\\(${le},${se},${se}\\)$`),me=new RegExp(`^hsla\\(${le},${se},${se},${le}\\)$`),ge={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function ve(){return this.rgb().formatHex()}function be(){return this.rgb().formatRgb()}function ye(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ce.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?xe(t):3===n?new Ee(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Se(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Se(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=ue.exec(e))?new Ee(t[1],t[2],t[3],1):(t=de.exec(e))?new Ee(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=pe.exec(e))?Se(t[1],t[2],t[3],t[4]):(t=fe.exec(e))?Se(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=he.exec(e))?_e(t[1],t[2]/100,t[3]/100,1):(t=me.exec(e))?_e(t[1],t[2]/100,t[3]/100,t[4]):ge.hasOwnProperty(e)?xe(ge[e]):"transparent"===e?new Ee(NaN,NaN,NaN,0):null}function xe(e){return new Ee(e>>16&255,e>>8&255,255&e,1)}function Se(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ee(e,t,n,r)}function we(e,t,n,r){return 1===arguments.length?((o=e)instanceof re||(o=ye(o)),o?new Ee((o=o.rgb()).r,o.g,o.b,o.opacity):new Ee):new Ee(e,t,n,null==r?1:r);var o}function Ee(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Ce(){return`#${Oe(this.r)}${Oe(this.g)}${Oe(this.b)}`}function ke(){const e=Re(this.opacity);return`${1===e?"rgb(":"rgba("}${Le(this.r)}, ${Le(this.g)}, ${Le(this.b)}${1===e?")":`, ${e})`}`}function Re(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Le(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Oe(e){return((e=Le(e))<16?"0":"")+e.toString(16)}function _e(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Te(e,t,n,r)}function Ie(e){if(e instanceof Te)return new Te(e.h,e.s,e.l,e.opacity);if(e instanceof re||(e=ye(e)),!e)return new Te;if(e instanceof Te)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),a=Math.max(t,n,r),i=NaN,l=a-o,s=(a+o)/2;return l?(i=t===a?(n-r)/l+6*(n<r):n===a?(r-t)/l+2:(t-n)/l+4,l/=s<.5?a+o:2-a-o,i*=60):l=s>0&&s<1?0:i,new Te(i,l,s,e.opacity)}function Te(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Pe(e){return(e=(e||0)%360)<0?e+360:e}function Me(e){return Math.max(0,Math.min(1,e||0))}function Ne(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}te(re,ye,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ve,formatHex:ve,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ie(this).formatHsl()},formatRgb:be,toString:be}),te(Ee,we,ne(re,{brighter(e){return e=null==e?ae:Math.pow(ae,e),new Ee(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?oe:Math.pow(oe,e),new Ee(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ee(Le(this.r),Le(this.g),Le(this.b),Re(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ce,formatHex:Ce,formatHex8:function(){return`#${Oe(this.r)}${Oe(this.g)}${Oe(this.b)}${Oe(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ke,toString:ke})),te(Te,(function(e,t,n,r){return 1===arguments.length?Ie(e):new Te(e,t,n,null==r?1:r)}),ne(re,{brighter(e){return e=null==e?ae:Math.pow(ae,e),new Te(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?oe:Math.pow(oe,e),new Te(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Ee(Ne(e>=240?e-240:e+120,o,r),Ne(e,o,r),Ne(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Te(Pe(this.h),Me(this.s),Me(this.l),Re(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=Re(this.opacity);return`${1===e?"hsl(":"hsla("}${Pe(this.h)}, ${100*Me(this.s)}%, ${100*Me(this.l)}%${1===e?")":`, ${e})`}`}}));var qe=Object.prototype.hasOwnProperty,ze=Object.prototype.toString,De=Object.defineProperty,Ae=Object.getOwnPropertyDescriptor,je=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===ze.call(e)},Fe=function(e){if(!e||"[object Object]"!==ze.call(e))return!1;var t,n=qe.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&qe.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||qe.call(e,t)},Be=function(e,t){De&&"__proto__"===t.name?De(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},$e=function(e,t){if("__proto__"===t){if(!qe.call(e,t))return;if(Ae)return Ae(e,t).value}return e[t]},We=function e(){var t,n,r,o,a,i,l=arguments[0],s=1,c=arguments.length,u=!1;for("boolean"==typeof l&&(u=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<c;++s)if(null!=(t=arguments[s]))for(n in t)r=$e(l,n),l!==(o=$e(t,n))&&(u&&o&&(Fe(o)||(a=je(o)))?(a?(a=!1,i=r&&je(r)?r:[]):i=r&&Fe(r)?r:{},Be(l,{name:n,newValue:e(u,i,o)})):void 0!==o&&Be(l,{name:n,newValue:o}));return l},He=n(We),Ue={fontSize:"12px",fontFamily:"'Source Sans Pro', 'Arial', 'sans-serif'",backgroundColor:"transparent",dataColors:{primaryColor:"#26a0a7",othersColor:"#a5a5a5",errorColor:"#ff4444",nullColor:"#d2d2d2"},object:{title:{main:{color:"@B50",fontSize:"15px"},subTitle:{color:"@B50",fontSize:"12px"},footer:{color:"@B50",fontSize:"12px",backgroundColor:"transparent"}}},scales:[{name:"Sequential Gradient",translation:"properties.colorScheme.sequential",type:"gradient",propertyValue:"sg",scale:["#26a0a7","#c7ea8b"]},{name:"Sequential Classes",translation:"properties.colorScheme.sequentialC",propertyValue:"sc",type:"class",scale:["#26a0a7","#c7ea8b"]},{name:"Diverging gradient",translation:"properties.colorScheme.diverging",propertyValue:"dg",type:"gradient",scale:["#26a0a7","#c3ea8c","#ec983d"]},{name:"Diverging Classes",translation:"properties.colorScheme.divergingC",propertyValue:"dc",type:"class",scale:["#26a0a7","#c3ea8c","#ec983d"]}],palettes:{data:[{name:"12 Colors",translation:"properties.colorNumberOfColors.12",propertyValue:"12",type:"pyramid",scale:[["#26A0A7"],["#26A0A7","#EC983D"],["#26A0A7","#CBE989","#EC983D"],["#26A0A7","#79D69F","#F9EC86","#EC983D"],["#26A0A7","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D","#D76C6C"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"],["#138185","#26A0A7","#65D3DA","#79D69F","#70BA6E","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"]]}],ui:[{name:"Palette",colors:["#b0afae","#7b7a78","#a54343","#d76c6c","#ec983d","#ecc43d","#f9ec86","#cbe989","#70ba6e","#578b60","#79d69f","#26a0a7","#138185","#65d3da","#ffffff","#000000"]}]}},Ve={_variables:{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},type:"light",color:"@B35"},Ge={_variables:{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},type:"dark",color:"@B98",object:{listBox:{backgroundColor:"@B20",title:{main:{color:"@B98",fontSize:"14px",fontWeight:"bold"}},content:{color:"#@B98",fontSize:"12px"}}}},Ke={object:{listBox:{backgroundColor:"#ffffff",title:{main:{color:"#404040",fontSize:"14px",fontWeight:"bold"}},content:{color:"#404040",fontSize:"12px"}}}};class Ze{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=ye(e)}addColorPart(e,t,n){n=n||0,this.startLevel=Math.max(n,this.startLevel),this.colorParts[n]||(this.colorParts[n]=[]),this.colorParts[n].push([ye(e),ye(t)])}getColor(e,t){const n=e-this.min;if(Number.isNaN(+e)||Number.isNaN(+n))return this.nanColor;t=function(e,t){return Math.min(t||e.startLevel,e.colorParts.length-1)}(this,t);const r=function(e,t){return t-(e=Math.min(Math.max(e,1e-12),.999999999999))*t}(n,this.colorParts[t].length);let o=Math.floor(r);o=o===r?o-1:o;const a=this.colorParts[t][o],i=a[0],l=a[1];if(e===this.min)return l;if(e===this.max)return i;const s=function(e,t,n){return we(Math.floor(e.r+(t.r-e.r)*n),Math.floor(e.g+(t.g-e.g)*n),Math.floor(e.b+(t.b-e.b)*n),Math.floor(e.opacity+(t.opacity-e.opacity)*n))}(i,l,r-o);return s}}function Xe(e,t,n){const r=.25+(t+1)/n*.25,o=.5-r;return o+e/1*(.5+r-o)}function Qe(e,t,n){const r=[],o=new Ze(t);r.push(e[0]),n||r.push(e[0]);let a=1;for(;a<e.length-1;a++)r.push(e[a]),r.push(e[a]);r.push(e[a]),n||r.push(e[a]);for(let e=0;e<r.length;e+=2)o.addColorPart(r[e],r[e+1]);return o}function Je(e,t,n){const r=[];for(let o=0;o<t+1;o++){let a;switch(t){case 0:a=e.getColor(.5);break;default:{const r=Xe(1/t*o,t,n);a=e.getColor(r);break}}r.push(ye(a).formatHex())}return r}function Ye(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#d2d2d2";e.forEach((e=>{if("class"===e.type){const n=function(e,t,n){const r=Qe(e,n,!0),o=Qe(Je(r,t-1,t),n,!1),a=[null];for(let e=0;e<t;e++)a.push(Je(o,e,t));return a}(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}}))}function et(e,t){const n=[];let r,o;if(e){let a=e.length;for(;a>=0;){for(r=t.slice(),o=r.length;o>=0;)n.push(r.concat(e)),r.pop(),o--;e.pop(),a--}}else for(r=t.slice(),o=r.length;o>=0;)n.push(r.concat()),r.pop(),o--;return n}function tt(e,t){let n=e;for(let e=0;e<t.length;e++){if(!n[t[e]])return;n=n[t[e]]}return n}function nt(e,t,n,r){let o;if(""===e)o=et(null,n);else{o=et(e.split("."),n)}return function(e,t,n){const r=t.split(".");for(let t=0;t<e.length;t++){const o=tt(n,[...e[t],...r]);if(void 0!==o)return o}}(o,t,r)}function rt(e,t){const n=e.split(".");return{getStyle:(e,r)=>nt(e,r,n.concat(),t)}}function ot(e,t){Object.keys(e).forEach((n=>{"object"==typeof e[n]&&null!==e[n]?ot(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])}))}function at(e){const t=ye(e).rgb(),{r:n,g:r,b:o}=t,[a,i,l]=[n,r,o].map((e=>e/255)),[s,c,u]=[a,i,l].map((e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4));return+(.2126*s+.7152*c+.0722*u).toFixed(5)}rt.resolveRawTheme=e=>{const t=He(!0,{},e);return ot(t,t._variables),t.scales&&Ye(t.scales,t.dataColors&&t.dataColors.nullColor),t};const it=1e3;function lt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["#333333","#ffffff"],t={},n=0;const r=e.map(at);return{getBestContrastColor(o){if(!t[o]){n>it&&(t={},n=0);const a=at(o),i=r.map((e=>{return t=a,n=e,+((Math.max(t,n)+.05)/(Math.min(t,n)+.05)).toFixed(5);var t,n})),l=e[i.indexOf(Math.max(...i))];t[o]=l,n++}return t[o]}}}function st(){let e,t,n,r={};const o={getDataColorScales:()=>t.dataScales(),getDataColorPalettes:()=>t.dataPalettes(),getDataColorPickerPalettes:()=>t.uiPalettes(),getDataColorSpecials:()=>t.dataColors(),getColorPickerColor(){return t.uiColor(...arguments)},getContrastingColorTo:e=>n.getBestContrastColor(e),getStyle:(t,n,o)=>(r[t]||(r[t]=rt(t,e)),r[t].getStyle(n,o)),validateColor(){const e=arguments.length<=0?void 0:arguments[0];let t;if("string"==typeof e&&(t=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))){const e=parseInt(t[1],10)/255,n=parseInt(t[2],10),r=parseInt(t[3],10),o=parseInt(t[4],10);return"rgba(".concat(n,",").concat(r,",").concat(o,",").concat(e,")")}const n=ye(...arguments);return n?n.toString():void 0}},a={setTheme(a,i){e=function(e,t){const n="dark"===e.type?Ge:Ve;let r=Ke;!1!==e._inherit&&"false"!==e._inherit||(r={});const o=He(!0,{},Ue,r,n),a=He(!0,{},o,{scales:null,palettes:{data:null,ui:null}},e);return a.palettes.data&&a.palettes.data.length||(a.palettes.data=o.palettes.data),a.palettes.ui&&a.palettes.ui.length||(a.palettes.ui=o.palettes.ui),a.scales&&a.scales.length||(a.scales=o.scales),t(a)}(a,rt.resolveRawTheme),r={},t=function(e){let t;return{dataScales(){const t=[];return e.scales.forEach((e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,scheme:!0,type:e.type,colors:e.scale})})),t},dataPalettes(){const t=[];return e.palettes.data.forEach((e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,type:e.type,colors:e.scale})})),t},uiPalettes(){const t=[];return e.palettes.ui.forEach((e=>{t.push({key:"ui",name:e.name,translation:e.translation,type:"row",colors:e.colors})})),t},dataColors:()=>({primary:e.dataColors.primaryColor,nil:e.dataColors.nullColor,others:e.dataColors.othersColor}),uiColor(e,n){const r="number"==typeof(null==e?void 0:e.index)&&!Number.isNaN(null==e?void 0:e.index),o="string"==typeof(null==e?void 0:e.color);if(r||o)return n=!!n,(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-n]?e.color:t.colors[e.index-n]:e.color)}}}(e);const l=o.getStyle("","","color"),s=at(l);n=lt([l,s<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>i}};return Object.keys(ee.prototype).forEach((e=>{o[e]=ee.prototype[e]})),ee.init(o),a.setTheme({},"light"),{externalAPI:o,internalAPI:a}}const ct=(e,t)=>new Promise((n=>{setTimeout((()=>n(t)),e)})),ut=5e3;function dt(e){return"auto"!==e?e:function(){let e=!1;return window.PointerEvent&&"maxTouchPoints"in navigator?navigator.maxTouchPoints>0&&(e=!0):(window.matchMedia&&window.matchMedia("(any-pointer:coarse)").matches||window.TouchEvent||"ontouchstart"in window)&&(e=!0),e}()?"touch":"desktop"}var pt={},ft={exports:{}},ht={},mt={exports:{}},gt={};
|
|
8
8
|
/**
|
|
9
9
|
* @license React
|
|
10
10
|
* scheduler.production.min.js
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* This source code is licensed under the MIT license found in the
|
|
15
15
|
* LICENSE file in the root directory of this source tree.
|
|
16
16
|
*/
|
|
17
|
-
!function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,a=e[r];if(!(0<o(a,t)))break e;e[r]=t,e[n]=a,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length,i=a>>>1;r<i;){var l=2*(r+1)-1,s=e[l],c=l+1,u=e[c];if(0>o(s,n))c<a&&0>o(u,s)?(e[r]=u,e[c]=n,r=c):(e[r]=s,e[l]=n,r=l);else{if(!(c<a&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var s=[],c=[],u=1,d=null,p=3,f=!1,h=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function y(e){for(var o=n(c);null!==o;){if(null===o.callback)r(c);else{if(!(o.startTime<=e))break;r(c),o.sortIndex=o.expirationTime,t(s,o)}o=n(c)}}function x(e){if(m=!1,y(e),!h)if(null!==n(s))h=!0,P(S);else{var t=n(c);null!==t&&M(x,t.startTime-e)}}function S(t,o){h=!1,m&&(m=!1,v(k),k=-1),f=!0;var a=p;try{for(y(o),d=n(s);null!==d&&(!(d.expirationTime>o)||t&&!O());){var i=d.callback;if("function"==typeof i){d.callback=null,p=d.priorityLevel;var l=i(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof l?d.callback=l:d===n(s)&&r(s),y(o)}else r(s);d=n(s)}if(null!==d)var u=!0;else{var g=n(c);null!==g&&M(x,g.startTime-o),u=!1}return u}finally{d=null,p=a,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var w,E=!1,C=null,k=-1,R=5,L=-1;function O(){return!(e.unstable_now()-L<R)}function _(){if(null!==C){var t=e.unstable_now();L=t;var n=!0;try{n=C(!0,t)}finally{n?w():(E=!1,C=null)}}else E=!1}if("function"==typeof b)w=function(){b(_)};else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,T=I.port2;I.port1.onmessage=_,w=function(){T.postMessage(null)}}else w=function(){g(_,0)};function P(e){C=e,E||(E=!0,w())}function M(t,n){k=g((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){h||f||(h=!0,P(S))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},e.unstable_scheduleCallback=function(r,o,a){var i=e.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?i+a:i:a=i,r){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return r={id:u++,callback:o,priorityLevel:r,startTime:a,expirationTime:l=a+l,sortIndex:-1},a>i?(r.sortIndex=a,t(c,r),null===n(s)&&r===n(c)&&(m?(v(k),k=-1):m=!0,M(x,a-i))):(r.sortIndex=l,t(s,r),h||f||(h=!0,P(S))),r},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}(
|
|
17
|
+
!function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,a=e[r];if(!(0<o(a,t)))break e;e[r]=t,e[n]=a,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length,i=a>>>1;r<i;){var l=2*(r+1)-1,s=e[l],c=l+1,u=e[c];if(0>o(s,n))c<a&&0>o(u,s)?(e[r]=u,e[c]=n,r=c):(e[r]=s,e[l]=n,r=l);else{if(!(c<a&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,l=i.now();e.unstable_now=function(){return i.now()-l}}var s=[],c=[],u=1,d=null,p=3,f=!1,h=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function y(e){for(var o=n(c);null!==o;){if(null===o.callback)r(c);else{if(!(o.startTime<=e))break;r(c),o.sortIndex=o.expirationTime,t(s,o)}o=n(c)}}function x(e){if(m=!1,y(e),!h)if(null!==n(s))h=!0,P(S);else{var t=n(c);null!==t&&M(x,t.startTime-e)}}function S(t,o){h=!1,m&&(m=!1,v(k),k=-1),f=!0;var a=p;try{for(y(o),d=n(s);null!==d&&(!(d.expirationTime>o)||t&&!O());){var i=d.callback;if("function"==typeof i){d.callback=null,p=d.priorityLevel;var l=i(d.expirationTime<=o);o=e.unstable_now(),"function"==typeof l?d.callback=l:d===n(s)&&r(s),y(o)}else r(s);d=n(s)}if(null!==d)var u=!0;else{var g=n(c);null!==g&&M(x,g.startTime-o),u=!1}return u}finally{d=null,p=a,f=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var w,E=!1,C=null,k=-1,R=5,L=-1;function O(){return!(e.unstable_now()-L<R)}function _(){if(null!==C){var t=e.unstable_now();L=t;var n=!0;try{n=C(!0,t)}finally{n?w():(E=!1,C=null)}}else E=!1}if("function"==typeof b)w=function(){b(_)};else if("undefined"!=typeof MessageChannel){var I=new MessageChannel,T=I.port2;I.port1.onmessage=_,w=function(){T.postMessage(null)}}else w=function(){g(_,0)};function P(e){C=e,E||(E=!0,w())}function M(t,n){k=g((function(){t(e.unstable_now())}),n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){h||f||(h=!0,P(S))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(s)},e.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},e.unstable_scheduleCallback=function(r,o,a){var i=e.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?i+a:i:a=i,r){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return r={id:u++,callback:o,priorityLevel:r,startTime:a,expirationTime:l=a+l,sortIndex:-1},a>i?(r.sortIndex=a,t(c,r),null===n(s)&&r===n(c)&&(m?(v(k),k=-1):m=!0,M(x,a-i))):(r.sortIndex=l,t(s,r),h||f||(h=!0,P(S))),r},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}(gt),mt.exports=gt;var vt=mt.exports,bt=U,yt=vt;
|
|
18
18
|
/**
|
|
19
19
|
* @license React
|
|
20
20
|
* react-dom.production.min.js
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
*
|
|
24
24
|
* This source code is licensed under the MIT license found in the
|
|
25
25
|
* LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/function St(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 wt=new Set,Et={};function Ct(e,t){kt(e,t),kt(e+"Capture",t)}function kt(e,t){for(Et[e]=t,e=0;e<t.length;e++)wt.add(t[e])}var Rt=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Lt=Object.prototype.hasOwnProperty,Ot=/^[: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]*$/,_t={},It={};function Tt(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 Pt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){Pt[e]=new Tt(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];Pt[t]=new Tt(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){Pt[e]=new Tt(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){Pt[e]=new Tt(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){Pt[e]=new Tt(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){Pt[e]=new Tt(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){Pt[e]=new Tt(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){Pt[e]=new Tt(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){Pt[e]=new Tt(e,5,!1,e.toLowerCase(),null,!1,!1)}));var Mt=/[\-:]([a-z])/g;function Nt(e){return e[1].toUpperCase()}function qt(e,t,n,r){var o=Pt.hasOwnProperty(t)?Pt[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!Lt.call(It,e)||!Lt.call(_t,e)&&(Ot.test(e)?It[e]=!0:(_t[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(Mt,Nt);Pt[t]=new Tt(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(Mt,Nt);Pt[t]=new Tt(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(Mt,Nt);Pt[t]=new Tt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){Pt[e]=new Tt(e,1,!1,e.toLowerCase(),null,!1,!1)})),Pt.xlinkHref=new Tt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){Pt[e]=new Tt(e,1,!1,e.toLowerCase(),null,!0,!0)}));var zt=yt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Dt=Symbol.for("react.element"),At=Symbol.for("react.portal"),jt=Symbol.for("react.fragment"),Ft=Symbol.for("react.strict_mode"),Bt=Symbol.for("react.profiler"),$t=Symbol.for("react.provider"),Wt=Symbol.for("react.context"),Ht=Symbol.for("react.forward_ref"),Ut=Symbol.for("react.suspense"),Vt=Symbol.for("react.suspense_list"),Gt=Symbol.for("react.memo"),Kt=Symbol.for("react.lazy"),Zt=Symbol.for("react.offscreen"),Xt=Symbol.iterator;function Qt(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Xt&&e[Xt]||e["@@iterator"])?e:null}var Jt,Yt=Object.assign;function en(e){if(void 0===Jt)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Jt=t&&t[1]||""}return"\n"+Jt+e}var tn=!1;function nn(e,t){if(!e||tn)return"";tn=!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{tn=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?en(e):""}function rn(e){switch(e.tag){case 5:return en(e.type);case 16:return en("Lazy");case 13:return en("Suspense");case 19:return en("SuspenseList");case 0:case 2:case 15:return e=nn(e.type,!1);case 11:return e=nn(e.type.render,!1);case 1:return e=nn(e.type,!0);default:return""}}function on(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 jt:return"Fragment";case At:return"Portal";case Bt:return"Profiler";case Ft:return"StrictMode";case Ut:return"Suspense";case Vt:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case Wt:return(e.displayName||"Context")+".Consumer";case $t:return(e._context.displayName||"Context")+".Provider";case Ht:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Gt:return null!==(t=e.displayName||null)?t:on(e.type)||"Memo";case Kt:t=e._payload,e=e._init;try{return on(e(t))}catch(e){}}return null}function an(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 on(t);case 8:return t===Ft?"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 ln(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function sn(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function cn(e){e._valueTracker||(e._valueTracker=function(e){var t=sn(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 un(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=sn(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function dn(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 pn(e,t){var n=t.checked;return Yt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function fn(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=ln(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 hn(e,t){null!=(t=t.checked)&&qt(e,"checked",t,!1)}function mn(e,t){hn(e,t);var n=ln(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")?vn(e,t.type,n):t.hasOwnProperty("defaultValue")&&vn(e,t.type,ln(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function gn(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 vn(e,t,n){"number"===t&&dn(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var bn=Array.isArray;function yn(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=""+ln(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 xn(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(St(91));return Yt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Sn(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(St(92));if(bn(n)){if(1<n.length)throw Error(St(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ln(n)}}function wn(e,t){var n=ln(t.value),r=ln(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 En(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function Cn(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 kn(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Cn(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Rn,Ln,On=(Ln=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((Rn=Rn||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Rn.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return Ln(e,t)}))}:Ln);function _n(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 In={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},Tn=["Webkit","ms","Moz","O"];function Pn(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||In.hasOwnProperty(e)&&In[e]?(""+t).trim():t+"px"}function Mn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=Pn(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(In).forEach((function(e){Tn.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),In[t]=In[e]}))}));var Nn=Yt({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 qn(e,t){if(t){if(Nn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(St(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(St(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(St(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(St(62))}}function zn(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 Dn=null;function An(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var jn=null,Fn=null,Bn=null;function $n(e){if(e=zi(e)){if("function"!=typeof jn)throw Error(St(280));var t=e.stateNode;t&&(t=Ai(t),jn(e.stateNode,e.type,t))}}function Wn(e){Fn?Bn?Bn.push(e):Bn=[e]:Fn=e}function Hn(){if(Fn){var e=Fn,t=Bn;if(Bn=Fn=null,$n(e),t)for(e=0;e<t.length;e++)$n(t[e])}}function Un(e,t){return e(t)}function Vn(){}var Gn=!1;function Kn(e,t,n){if(Gn)return e(t,n);Gn=!0;try{return Un(e,t,n)}finally{Gn=!1,(null!==Fn||null!==Bn)&&(Vn(),Hn())}}function Zn(e,t){var n=e.stateNode;if(null===n)return null;var r=Ai(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(St(231,t,typeof n));return n}var Xn=!1;if(Rt)try{var Qn={};Object.defineProperty(Qn,"passive",{get:function(){Xn=!0}}),window.addEventListener("test",Qn,Qn),window.removeEventListener("test",Qn,Qn)}catch(Ln){Xn=!1}function Jn(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 Yn=!1,er=null,tr=!1,nr=null,rr={onError:function(e){Yn=!0,er=e}};function or(e,t,n,r,o,a,i,l,s){Yn=!1,er=null,Jn.apply(rr,arguments)}function ar(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 ir(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 lr(e){if(ar(e)!==e)throw Error(St(188))}function sr(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=ar(e)))throw Error(St(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return lr(o),e;if(a===r)return lr(o),t;a=a.sibling}throw Error(St(188))}if(n.return!==r.return)n=o,r=a;else{for(var i=!1,l=o.child;l;){if(l===n){i=!0,n=o,r=a;break}if(l===r){i=!0,r=o,n=a;break}l=l.sibling}if(!i){for(l=a.child;l;){if(l===n){i=!0,n=a,r=o;break}if(l===r){i=!0,r=a,n=o;break}l=l.sibling}if(!i)throw Error(St(189))}}if(n.alternate!==r)throw Error(St(190))}if(3!==n.tag)throw Error(St(188));return n.stateNode.current===n?e:t}(e),null!==e?cr(e):null}function cr(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=cr(e);if(null!==t)return t;e=e.sibling}return null}var ur=xt.unstable_scheduleCallback,dr=xt.unstable_cancelCallback,pr=xt.unstable_shouldYield,fr=xt.unstable_requestPaint,hr=xt.unstable_now,mr=xt.unstable_getCurrentPriorityLevel,gr=xt.unstable_ImmediatePriority,vr=xt.unstable_UserBlockingPriority,br=xt.unstable_NormalPriority,yr=xt.unstable_LowPriority,xr=xt.unstable_IdlePriority,Sr=null,wr=null;var Er=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(Cr(e)/kr|0)|0},Cr=Math.log,kr=Math.LN2;var Rr=64,Lr=4194304;function Or(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 _r(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=Or(l):0!==(a&=i)&&(r=Or(a))}else 0!==(i=n&~o)?r=Or(i):0!==a&&(r=Or(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-Er(t)),r|=e[n],t&=~o;return r}function Ir(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 Tr(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Pr(){var e=Rr;return 0==(4194240&(Rr<<=1))&&(Rr=64),e}function Mr(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Nr(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-Er(t)]=n}function qr(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Er(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var zr=0;function Dr(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var Ar,jr,Fr,Br,$r,Wr=!1,Hr=[],Ur=null,Vr=null,Gr=null,Kr=new Map,Zr=new Map,Xr=[],Qr="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 Jr(e,t){switch(e){case"focusin":case"focusout":Ur=null;break;case"dragenter":case"dragleave":Vr=null;break;case"mouseover":case"mouseout":Gr=null;break;case"pointerover":case"pointerout":Kr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zr.delete(t.pointerId)}}function Yr(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=zi(t))&&jr(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function eo(e){var t=qi(e.target);if(null!==t){var n=ar(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=ir(n)))return e.blockedOn=t,void $r(e.priority,(function(){Fr(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 to(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=fo(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=zi(n))&&jr(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Dn=r,n.target.dispatchEvent(r),Dn=null,t.shift()}return!0}function no(e,t,n){to(e)&&n.delete(t)}function ro(){Wr=!1,null!==Ur&&to(Ur)&&(Ur=null),null!==Vr&&to(Vr)&&(Vr=null),null!==Gr&&to(Gr)&&(Gr=null),Kr.forEach(no),Zr.forEach(no)}function oo(e,t){e.blockedOn===t&&(e.blockedOn=null,Wr||(Wr=!0,xt.unstable_scheduleCallback(xt.unstable_NormalPriority,ro)))}function ao(e){function t(t){return oo(t,e)}if(0<Hr.length){oo(Hr[0],e);for(var n=1;n<Hr.length;n++){var r=Hr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Ur&&oo(Ur,e),null!==Vr&&oo(Vr,e),null!==Gr&&oo(Gr,e),Kr.forEach(t),Zr.forEach(t),n=0;n<Xr.length;n++)(r=Xr[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Xr.length&&null===(n=Xr[0]).blockedOn;)eo(n),null===n.blockedOn&&Xr.shift()}var io=zt.ReactCurrentBatchConfig,lo=!0;function so(e,t,n,r){var o=zr,a=io.transition;io.transition=null;try{zr=1,uo(e,t,n,r)}finally{zr=o,io.transition=a}}function co(e,t,n,r){var o=zr,a=io.transition;io.transition=null;try{zr=4,uo(e,t,n,r)}finally{zr=o,io.transition=a}}function uo(e,t,n,r){if(lo){var o=fo(e,t,n,r);if(null===o)li(e,t,r,po,n),Jr(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Ur=Yr(Ur,e,t,n,r,o),!0;case"dragenter":return Vr=Yr(Vr,e,t,n,r,o),!0;case"mouseover":return Gr=Yr(Gr,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return Kr.set(a,Yr(Kr.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,Zr.set(a,Yr(Zr.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Jr(e,r),4&t&&-1<Qr.indexOf(e)){for(;null!==o;){var a=zi(o);if(null!==a&&Ar(a),null===(a=fo(e,t,n,r))&&li(e,t,r,po,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else li(e,t,r,null,n)}}var po=null;function fo(e,t,n,r){if(po=null,null!==(e=qi(e=An(r))))if(null===(t=ar(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=ir(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 po=e,null}function ho(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(mr()){case gr:return 1;case vr:return 4;case br:case yr:return 16;case xr:return 536870912;default:return 16}default:return 16}}var mo=null,go=null,vo=null;function bo(){if(vo)return vo;var e,t,n=go,r=n.length,o="value"in mo?mo.value:mo.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 vo=o.slice(e,1<t?1-t:void 0)}function yo(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 xo(){return!0}function So(){return!1}function wo(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)?xo:So,this.isPropagationStopped=So,this}return Yt(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=xo)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=xo)},persist:function(){},isPersistent:xo}),t}var Eo,Co,ko,Ro={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Lo=wo(Ro),Oo=Yt({},Ro,{view:0,detail:0}),_o=wo(Oo),Io=Yt({},Oo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$o,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!==ko&&(ko&&"mousemove"===e.type?(Eo=e.screenX-ko.screenX,Co=e.screenY-ko.screenY):Co=Eo=0,ko=e),Eo)},movementY:function(e){return"movementY"in e?e.movementY:Co}}),To=wo(Io),Po=wo(Yt({},Io,{dataTransfer:0})),Mo=wo(Yt({},Oo,{relatedTarget:0})),No=wo(Yt({},Ro,{animationName:0,elapsedTime:0,pseudoElement:0})),qo=Yt({},Ro,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),zo=wo(qo),Do=wo(Yt({},Ro,{data:0})),Ao={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},jo={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"},Fo={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Bo(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Fo[e])&&!!t[e]}function $o(){return Bo}var Wo=Yt({},Oo,{key:function(e){if(e.key){var t=Ao[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=yo(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?jo[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$o,charCode:function(e){return"keypress"===e.type?yo(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?yo(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Ho=wo(Wo),Uo=wo(Yt({},Io,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Vo=wo(Yt({},Oo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$o})),Go=wo(Yt({},Ro,{propertyName:0,elapsedTime:0,pseudoElement:0})),Ko=Yt({},Io,{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}),Zo=wo(Ko),Xo=[9,13,27,32],Qo=Rt&&"CompositionEvent"in window,Jo=null;Rt&&"documentMode"in document&&(Jo=document.documentMode);var Yo=Rt&&"TextEvent"in window&&!Jo,ea=Rt&&(!Qo||Jo&&8<Jo&&11>=Jo),ta=String.fromCharCode(32),na=!1;function ra(e,t){switch(e){case"keyup":return-1!==Xo.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function oa(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var aa=!1;var ia={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 la(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!ia[e.type]:"textarea"===t}function sa(e,t,n,r){Wn(r),0<(t=ci(t,"onChange")).length&&(n=new Lo("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ca=null,ua=null;function da(e){ti(e,0)}function pa(e){if(un(Di(e)))return e}function fa(e,t){if("change"===e)return t}var ha=!1;if(Rt){var ma;if(Rt){var ga="oninput"in document;if(!ga){var va=document.createElement("div");va.setAttribute("oninput","return;"),ga="function"==typeof va.oninput}ma=ga}else ma=!1;ha=ma&&(!document.documentMode||9<document.documentMode)}function ba(){ca&&(ca.detachEvent("onpropertychange",ya),ua=ca=null)}function ya(e){if("value"===e.propertyName&&pa(ua)){var t=[];sa(t,ua,e,An(e)),Kn(da,t)}}function xa(e,t,n){"focusin"===e?(ba(),ua=n,(ca=t).attachEvent("onpropertychange",ya)):"focusout"===e&&ba()}function Sa(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return pa(ua)}function wa(e,t){if("click"===e)return pa(t)}function Ea(e,t){if("input"===e||"change"===e)return pa(t)}var Ca="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ka(e,t){if(Ca(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Lt.call(t,o)||!Ca(e[o],t[o]))return!1}return!0}function Ra(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function La(e,t){var n,r=Ra(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=Ra(r)}}function Oa(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Oa(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function _a(){for(var e=window,t=dn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=dn((e=t.contentWindow).document)}return t}function Ia(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 Ta(e){var t=_a(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Oa(n.ownerDocument.documentElement,n)){if(null!==r&&Ia(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=void 0===r.end?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=La(n,a);var i=La(n,r);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Pa=Rt&&"documentMode"in document&&11>=document.documentMode,Ma=null,Na=null,qa=null,za=!1;function Da(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;za||null==Ma||Ma!==dn(r)||("selectionStart"in(r=Ma)&&Ia(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},qa&&ka(qa,r)||(qa=r,0<(r=ci(Na,"onSelect")).length&&(t=new Lo("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ma)))}function Aa(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var ja={animationend:Aa("Animation","AnimationEnd"),animationiteration:Aa("Animation","AnimationIteration"),animationstart:Aa("Animation","AnimationStart"),transitionend:Aa("Transition","TransitionEnd")},Fa={},Ba={};function $a(e){if(Fa[e])return Fa[e];if(!ja[e])return e;var t,n=ja[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ba)return Fa[e]=n[t];return e}Rt&&(Ba=document.createElement("div").style,"AnimationEvent"in window||(delete ja.animationend.animation,delete ja.animationiteration.animation,delete ja.animationstart.animation),"TransitionEvent"in window||delete ja.transitionend.transition);var Wa=$a("animationend"),Ha=$a("animationiteration"),Ua=$a("animationstart"),Va=$a("transitionend"),Ga=new Map,Ka="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 Za(e,t){Ga.set(e,t),Ct(t,[e])}for(var Xa=0;Xa<Ka.length;Xa++){var Qa=Ka[Xa];Za(Qa.toLowerCase(),"on"+(Qa[0].toUpperCase()+Qa.slice(1)))}Za(Wa,"onAnimationEnd"),Za(Ha,"onAnimationIteration"),Za(Ua,"onAnimationStart"),Za("dblclick","onDoubleClick"),Za("focusin","onFocus"),Za("focusout","onBlur"),Za(Va,"onTransitionEnd"),kt("onMouseEnter",["mouseout","mouseover"]),kt("onMouseLeave",["mouseout","mouseover"]),kt("onPointerEnter",["pointerout","pointerover"]),kt("onPointerLeave",["pointerout","pointerover"]),Ct("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ct("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ct("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ct("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ct("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ct("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ja="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(" "),Ya=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ja));function ei(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,i,l,s){if(or.apply(this,arguments),Yn){if(!Yn)throw Error(St(198));var c=er;Yn=!1,er=null,tr||(tr=!0,nr=c)}}(r,t,void 0,e),e.currentTarget=null}function ti(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;ei(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;ei(o,l,c),a=s}}}if(tr)throw e=nr,tr=!1,nr=null,e}function ni(e,t){var n=t[Pi];void 0===n&&(n=t[Pi]=new Set);var r=e+"__bubble";n.has(r)||(ii(t,e,2,!1),n.add(r))}function ri(e,t,n){var r=0;t&&(r|=4),ii(n,e,r,t)}var oi="_reactListening"+Math.random().toString(36).slice(2);function ai(e){if(!e[oi]){e[oi]=!0,wt.forEach((function(t){"selectionchange"!==t&&(Ya.has(t)||ri(t,!1,e),ri(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[oi]||(t[oi]=!0,ri("selectionchange",!1,t))}}function ii(e,t,n,r){switch(ho(t)){case 1:var o=so;break;case 4:o=co;break;default:o=uo}n=o.bind(null,t,n,e),o=void 0,!Xn||"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 li(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=qi(l)))return;if(5===(s=i.tag)||6===s){r=a=i;continue e}l=l.parentNode}}r=r.return}Kn((function(){var r=a,o=An(n),i=[];e:{var l=Ga.get(e);if(void 0!==l){var s=Lo,c=e;switch(e){case"keypress":if(0===yo(n))break e;case"keydown":case"keyup":s=Ho;break;case"focusin":c="focus",s=Mo;break;case"focusout":c="blur",s=Mo;break;case"beforeblur":case"afterblur":s=Mo;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=To;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=Po;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Vo;break;case Wa:case Ha:case Ua:s=No;break;case Va:s=Go;break;case"scroll":s=_o;break;case"wheel":s=Zo;break;case"copy":case"cut":case"paste":s=zo;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Uo}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=Zn(h,p))&&u.push(si(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===Dn||!(c=n.relatedTarget||n.fromElement)||!qi(c)&&!c[Ti])&&(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)?qi(c):null)&&(c!==(d=ar(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(s=null,c=r),s!==c)){if(u=To,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=Uo,m="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==s?l:Di(s),f=null==c?l:Di(c),(l=new u(m,h+"leave",s,n,o)).target=d,l.relatedTarget=f,m=null,qi(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=ui(f))h++;for(f=0,m=p;m;m=ui(m))f++;for(;0<h-f;)u=ui(u),h--;for(;0<f-h;)p=ui(p),f--;for(;h--;){if(u===p||null!==p&&u===p.alternate)break e;u=ui(u),p=ui(p)}u=null}else u=null;null!==s&&di(i,l,s,u,!1),null!==c&&null!==d&&di(i,d,c,u,!0)}if("select"===(s=(l=r?Di(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=fa;else if(la(l))if(ha)g=Ea;else{g=Sa;var v=xa}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=wa);switch(g&&(g=g(e,r))?sa(i,g,n,o):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&vn(l,"number",l.value)),v=r?Di(r):window,e){case"focusin":(la(v)||"true"===v.contentEditable)&&(Ma=v,Na=r,qa=null);break;case"focusout":qa=Na=Ma=null;break;case"mousedown":za=!0;break;case"contextmenu":case"mouseup":case"dragend":za=!1,Da(i,n,o);break;case"selectionchange":if(Pa)break;case"keydown":case"keyup":Da(i,n,o)}var b;if(Qo)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 aa?ra(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(ea&&"ko"!==n.locale&&(aa||"onCompositionStart"!==y?"onCompositionEnd"===y&&aa&&(b=bo()):(go="value"in(mo=o)?mo.value:mo.textContent,aa=!0)),0<(v=ci(r,y)).length&&(y=new Do(y,e,null,n,o),i.push({event:y,listeners:v}),b?y.data=b:null!==(b=oa(n))&&(y.data=b))),(b=Yo?function(e,t){switch(e){case"compositionend":return oa(t);case"keypress":return 32!==t.which?null:(na=!0,ta);case"textInput":return(e=t.data)===ta&&na?null:e;default:return null}}(e,n):function(e,t){if(aa)return"compositionend"===e||!Qo&&ra(e,t)?(e=bo(),vo=go=mo=null,aa=!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 ea&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=ci(r,"onBeforeInput")).length&&(o=new Do("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=b))}ti(i,t)}))}function si(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ci(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=Zn(e,n))&&r.unshift(si(e,a,o)),null!=(a=Zn(e,t))&&r.push(si(e,a,o))),e=e.return}return r}function ui(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function di(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=Zn(n,a))&&i.unshift(si(n,s,l)):o||null!=(s=Zn(n,a))&&i.push(si(n,s,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var pi=/\r\n?/g,fi=/\u0000|\uFFFD/g;function hi(e){return("string"==typeof e?e:""+e).replace(pi,"\n").replace(fi,"")}function mi(e,t,n){if(t=hi(t),hi(e)!==t&&n)throw Error(St(425))}function gi(){}var vi=null,bi=null;function yi(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 xi="function"==typeof setTimeout?setTimeout:void 0,Si="function"==typeof clearTimeout?clearTimeout:void 0,wi="function"==typeof Promise?Promise:void 0,Ei="function"==typeof queueMicrotask?queueMicrotask:void 0!==wi?function(e){return wi.resolve(null).then(e).catch(Ci)}:xi;function Ci(e){setTimeout((function(){throw e}))}function ki(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 ao(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);ao(t)}function Ri(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function Li(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Oi=Math.random().toString(36).slice(2),_i="__reactFiber$"+Oi,Ii="__reactProps$"+Oi,Ti="__reactContainer$"+Oi,Pi="__reactEvents$"+Oi,Mi="__reactListeners$"+Oi,Ni="__reactHandles$"+Oi;function qi(e){var t=e[_i];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ti]||n[_i]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Li(e);null!==e;){if(n=e[_i])return n;e=Li(e)}return t}n=(e=n).parentNode}return null}function zi(e){return!(e=e[_i]||e[Ti])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Di(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(St(33))}function Ai(e){return e[Ii]||null}var ji=[],Fi=-1;function Bi(e){return{current:e}}function $i(e){0>Fi||(e.current=ji[Fi],ji[Fi]=null,Fi--)}function Wi(e,t){Fi++,ji[Fi]=e.current,e.current=t}var Hi={},Ui=Bi(Hi),Vi=Bi(!1),Gi=Hi;function Ki(e,t){var n=e.type.contextTypes;if(!n)return Hi;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 Zi(e){return null!=(e=e.childContextTypes)}function Xi(){$i(Vi),$i(Ui)}function Qi(e,t,n){if(Ui.current!==Hi)throw Error(St(168));Wi(Ui,t),Wi(Vi,n)}function Ji(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(St(108,an(e)||"Unknown",o));return Yt({},n,r)}function Yi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Hi,Gi=Ui.current,Wi(Ui,e),Wi(Vi,Vi.current),!0}function el(e,t,n){var r=e.stateNode;if(!r)throw Error(St(169));n?(e=Ji(e,t,Gi),r.__reactInternalMemoizedMergedChildContext=e,$i(Vi),$i(Ui),Wi(Ui,e)):$i(Vi),Wi(Vi,n)}var tl=null,nl=!1,rl=!1;function ol(e){null===tl?tl=[e]:tl.push(e)}function al(){if(!rl&&null!==tl){rl=!0;var e=0,t=zr;try{var n=tl;for(zr=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}tl=null,nl=!1}catch(t){throw null!==tl&&(tl=tl.slice(e+1)),ur(gr,al),t}finally{zr=t,rl=!1}}return null}var il=[],ll=0,sl=null,cl=0,ul=[],dl=0,pl=null,fl=1,hl="";function ml(e,t){il[ll++]=cl,il[ll++]=sl,sl=e,cl=t}function gl(e,t,n){ul[dl++]=fl,ul[dl++]=hl,ul[dl++]=pl,pl=e;var r=fl;e=hl;var o=32-Er(r)-1;r&=~(1<<o),n+=1;var a=32-Er(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,fl=1<<32-Er(t)+o|n<<o|r,hl=a+e}else fl=1<<a|n<<o|r,hl=e}function vl(e){null!==e.return&&(ml(e,1),gl(e,1,0))}function bl(e){for(;e===sl;)sl=il[--ll],il[ll]=null,cl=il[--ll],il[ll]=null;for(;e===pl;)pl=ul[--dl],ul[dl]=null,hl=ul[--dl],ul[dl]=null,fl=ul[--dl],ul[dl]=null}var yl=null,xl=null,Sl=!1,wl=null;function El(e,t){var n=Gd(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function Cl(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,yl=e,xl=Ri(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,yl=e,xl=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==pl?{id:fl,overflow:hl}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Gd(18,null,null,0)).stateNode=t,n.return=e,e.child=n,yl=e,xl=null,!0);default:return!1}}function kl(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function Rl(e){if(Sl){var t=xl;if(t){var n=t;if(!Cl(e,t)){if(kl(e))throw Error(St(418));t=Ri(n.nextSibling);var r=yl;t&&Cl(e,t)?El(r,n):(e.flags=-4097&e.flags|2,Sl=!1,yl=e)}}else{if(kl(e))throw Error(St(418));e.flags=-4097&e.flags|2,Sl=!1,yl=e}}}function Ll(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;yl=e}function Ol(e){if(e!==yl)return!1;if(!Sl)return Ll(e),Sl=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!yi(e.type,e.memoizedProps)),t&&(t=xl)){if(kl(e))throw _l(),Error(St(418));for(;t;)El(e,t),t=Ri(t.nextSibling)}if(Ll(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(St(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){xl=Ri(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}xl=null}}else xl=yl?Ri(e.stateNode.nextSibling):null;return!0}function _l(){for(var e=xl;e;)e=Ri(e.nextSibling)}function Il(){xl=yl=null,Sl=!1}function Tl(e){null===wl?wl=[e]:wl.push(e)}var Pl=zt.ReactCurrentBatchConfig;function Ml(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(St(309));var r=n.stateNode}if(!r)throw Error(St(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(St(284));if(!n._owner)throw Error(St(290,e))}return e}function Nl(e,t){throw e=Object.prototype.toString.call(t),Error(St(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ql(e){return(0,e._init)(e._payload)}function zl(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Zd(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function i(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Yd(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){var a=n.type;return a===jt?u(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===Kt&&ql(a)===t.type)?((r=o(t,n.props)).ref=Ml(e,t,n),r.return=e,r):((r=Xd(n.type,n.key,n.props,null,e.mode,r)).ref=Ml(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=ep(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function u(e,t,n,r,a){return null===t||7!==t.tag?((t=Qd(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Yd(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Dt:return(n=Xd(t.type,t.key,t.props,null,e.mode,n)).ref=Ml(e,null,t),n.return=e,n;case At:return(t=ep(t,e.mode,n)).return=e,t;case Kt:return d(e,(0,t._init)(t._payload),n)}if(bn(t)||Qt(t))return(t=Qd(t,e.mode,n,null)).return=e,t;Nl(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Dt:return n.key===o?s(e,t,n,r):null;case At:return n.key===o?c(e,t,n,r):null;case Kt:return p(e,t,(o=n._init)(n._payload),r)}if(bn(n)||Qt(n))return null!==o?null:u(e,t,n,r,null);Nl(e,n)}return null}function f(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Dt:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case At:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Kt:return f(e,t,n,(0,r._init)(r._payload),o)}if(bn(r)||Qt(r))return u(t,e=e.get(n)||null,r,o,null);Nl(t,r)}return null}function h(o,i,l,s){for(var c=null,u=null,h=i,m=i=0,g=null;null!==h&&m<l.length;m++){h.index>m?(g=h,h=null):g=h.sibling;var v=p(o,h,l[m],s);if(null===v){null===h&&(h=g);break}e&&h&&null===v.alternate&&t(o,h),i=a(v,i,m),null===u?c=v:u.sibling=v,u=v,h=g}if(m===l.length)return n(o,h),Sl&&ml(o,m),c;if(null===h){for(;m<l.length;m++)null!==(h=d(o,l[m],s))&&(i=a(h,i,m),null===u?c=h:u.sibling=h,u=h);return Sl&&ml(o,m),c}for(h=r(o,h);m<l.length;m++)null!==(g=f(h,o,m,l[m],s))&&(e&&null!==g.alternate&&h.delete(null===g.key?m:g.key),i=a(g,i,m),null===u?c=g:u.sibling=g,u=g);return e&&h.forEach((function(e){return t(o,e)})),Sl&&ml(o,m),c}function m(o,i,l,s){var c=Qt(l);if("function"!=typeof c)throw Error(St(150));if(null==(l=c.call(l)))throw Error(St(151));for(var u=c=null,h=i,m=i=0,g=null,v=l.next();null!==h&&!v.done;m++,v=l.next()){h.index>m?(g=h,h=null):g=h.sibling;var b=p(o,h,v.value,s);if(null===b){null===h&&(h=g);break}e&&h&&null===b.alternate&&t(o,h),i=a(b,i,m),null===u?c=b:u.sibling=b,u=b,h=g}if(v.done)return n(o,h),Sl&&ml(o,m),c;if(null===h){for(;!v.done;m++,v=l.next())null!==(v=d(o,v.value,s))&&(i=a(v,i,m),null===u?c=v:u.sibling=v,u=v);return Sl&&ml(o,m),c}for(h=r(o,h);!v.done;m++,v=l.next())null!==(v=f(h,o,m,v.value,s))&&(e&&null!==v.alternate&&h.delete(null===v.key?m:v.key),i=a(v,i,m),null===u?c=v:u.sibling=v,u=v);return e&&h.forEach((function(e){return t(o,e)})),Sl&&ml(o,m),c}return function e(r,a,l,s){if("object"==typeof l&&null!==l&&l.type===jt&&null===l.key&&(l=l.props.children),"object"==typeof l&&null!==l){switch(l.$$typeof){case Dt:e:{for(var c=l.key,u=a;null!==u;){if(u.key===c){if((c=l.type)===jt){if(7===u.tag){n(r,u.sibling),(a=o(u,l.props.children)).return=r,r=a;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===Kt&&ql(c)===u.type){n(r,u.sibling),(a=o(u,l.props)).ref=Ml(r,u,l),a.return=r,r=a;break e}n(r,u);break}t(r,u),u=u.sibling}l.type===jt?((a=Qd(l.props.children,r.mode,s,l.key)).return=r,r=a):((s=Xd(l.type,l.key,l.props,null,r.mode,s)).ref=Ml(r,a,l),s.return=r,r=s)}return i(r);case At:e:{for(u=l.key;null!==a;){if(a.key===u){if(4===a.tag&&a.stateNode.containerInfo===l.containerInfo&&a.stateNode.implementation===l.implementation){n(r,a.sibling),(a=o(a,l.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=ep(l,r.mode,s)).return=r,r=a}return i(r);case Kt:return e(r,a,(u=l._init)(l._payload),s)}if(bn(l))return h(r,a,l,s);if(Qt(l))return m(r,a,l,s);Nl(r,l)}return"string"==typeof l&&""!==l||"number"==typeof l?(l=""+l,null!==a&&6===a.tag?(n(r,a.sibling),(a=o(a,l)).return=r,r=a):(n(r,a),(a=Yd(l,r.mode,s)).return=r,r=a),i(r)):n(r,a)}}var Dl=zl(!0),Al=zl(!1),jl=Bi(null),Fl=null,Bl=null,$l=null;function Wl(){$l=Bl=Fl=null}function Hl(e){var t=jl.current;$i(jl),e._currentValue=t}function Ul(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 Vl(e,t){Fl=e,$l=Bl=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(qc=!0),e.firstContext=null)}function Gl(e){var t=e._currentValue;if($l!==e)if(e={context:e,memoizedValue:t,next:null},null===Bl){if(null===Fl)throw Error(St(308));Bl=e,Fl.dependencies={lanes:0,firstContext:e}}else Bl=Bl.next=e;return t}var Kl=null;function Zl(e){null===Kl?Kl=[e]:Kl.push(e)}function Xl(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Zl(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ql(e,r)}function Ql(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 Jl=!1;function Yl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function es(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 ts(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ns(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Hu)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ql(e,n)}return null===(o=r.interleaved)?(t.next=t,Zl(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ql(e,n)}function rs(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,qr(e,n)}}function os(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 as(e,t,n,r){var o=e.updateQueue;Jl=!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=Yt({},d,p);break e;case 2:Jl=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[l]:p.push(l))}else f={eventTime:f,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===u?(c=u=f,s=d):u=u.next=f,i|=p;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(p=l).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===u&&(s=d),o.baseState=s,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{i|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);Ju|=i,e.lanes=i,e.memoizedState=d}}function is(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(St(191,o));o.call(r)}}}var ls={},ss=Bi(ls),cs=Bi(ls),us=Bi(ls);function ds(e){if(e===ls)throw Error(St(174));return e}function ps(e,t){switch(Wi(us,t),Wi(cs,e),Wi(ss,ls),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:kn(null,"");break;default:t=kn(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}$i(ss),Wi(ss,t)}function fs(){$i(ss),$i(cs),$i(us)}function hs(e){ds(us.current);var t=ds(ss.current),n=kn(t,e.type);t!==n&&(Wi(cs,e),Wi(ss,n))}function ms(e){cs.current===e&&($i(ss),$i(cs))}var gs=Bi(0);function vs(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 bs=[];function ys(){for(var e=0;e<bs.length;e++)bs[e]._workInProgressVersionPrimary=null;bs.length=0}var xs=zt.ReactCurrentDispatcher,Ss=zt.ReactCurrentBatchConfig,ws=0,Es=null,Cs=null,ks=null,Rs=!1,Ls=!1,Os=0,_s=0;function Is(){throw Error(St(321))}function Ts(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ca(e[n],t[n]))return!1;return!0}function Ps(e,t,n,r,o,a){if(ws=a,Es=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,xs.current=null===e||null===e.memoizedState?mc:gc,e=n(r,o),Ls){a=0;do{if(Ls=!1,Os=0,25<=a)throw Error(St(301));a+=1,ks=Cs=null,t.updateQueue=null,xs.current=vc,e=n(r,o)}while(Ls)}if(xs.current=hc,t=null!==Cs&&null!==Cs.next,ws=0,ks=Cs=Es=null,Rs=!1,t)throw Error(St(300));return e}function Ms(){var e=0!==Os;return Os=0,e}function Ns(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ks?Es.memoizedState=ks=e:ks=ks.next=e,ks}function qs(){if(null===Cs){var e=Es.alternate;e=null!==e?e.memoizedState:null}else e=Cs.next;var t=null===ks?Es.memoizedState:ks.next;if(null!==t)ks=t,Cs=e;else{if(null===e)throw Error(St(310));e={memoizedState:(Cs=e).memoizedState,baseState:Cs.baseState,baseQueue:Cs.baseQueue,queue:Cs.queue,next:null},null===ks?Es.memoizedState=ks=e:ks=ks.next=e}return ks}function zs(e,t){return"function"==typeof t?t(e):t}function Ds(e){var t=qs(),n=t.queue;if(null===n)throw Error(St(311));n.lastRenderedReducer=e;var r=Cs,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var i=o.next;o.next=a.next,a.next=i}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var l=i=null,s=null,c=a;do{var u=c.lane;if((ws&u)===u)null!==s&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===s?(l=s=d,i=r):s=s.next=d,Es.lanes|=u,Ju|=u}c=c.next}while(null!==c&&c!==a);null===s?i=r:s.next=l,Ca(r,t.memoizedState)||(qc=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,Es.lanes|=a,Ju|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function As(e){var t=qs(),n=t.queue;if(null===n)throw Error(St(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var i=o=o.next;do{a=e(a,i.action),i=i.next}while(i!==o);Ca(a,t.memoizedState)||(qc=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function js(){}function Fs(e,t){var n=Es,r=qs(),o=t(),a=!Ca(r.memoizedState,o);if(a&&(r.memoizedState=o,qc=!0),r=r.queue,Js(Ws.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==ks&&1&ks.memoizedState.tag){if(n.flags|=2048,Gs(9,$s.bind(null,n,r,o,t),void 0,null),null===Uu)throw Error(St(349));0!=(30&ws)||Bs(n,t,o)}return o}function Bs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Es.updateQueue)?(t={lastEffect:null,stores:null},Es.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function $s(e,t,n,r){t.value=n,t.getSnapshot=r,Hs(t)&&Us(e)}function Ws(e,t,n){return n((function(){Hs(t)&&Us(e)}))}function Hs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ca(e,n)}catch(e){return!0}}function Us(e){var t=Ql(e,1);null!==t&&bd(t,e,1,-1)}function Vs(e){var t=Ns();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:zs,lastRenderedState:e},t.queue=e,e=e.dispatch=uc.bind(null,Es,e),[t.memoizedState,e]}function Gs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Es.updateQueue)?(t={lastEffect:null,stores:null},Es.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 Ks(){return qs().memoizedState}function Zs(e,t,n,r){var o=Ns();Es.flags|=e,o.memoizedState=Gs(1|t,n,void 0,void 0===r?null:r)}function Xs(e,t,n,r){var o=qs();r=void 0===r?null:r;var a=void 0;if(null!==Cs){var i=Cs.memoizedState;if(a=i.destroy,null!==r&&Ts(r,i.deps))return void(o.memoizedState=Gs(t,n,a,r))}Es.flags|=e,o.memoizedState=Gs(1|t,n,a,r)}function Qs(e,t){return Zs(8390656,8,e,t)}function Js(e,t){return Xs(2048,8,e,t)}function Ys(e,t){return Xs(4,2,e,t)}function ec(e,t){return Xs(4,4,e,t)}function tc(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 nc(e,t,n){return n=null!=n?n.concat([e]):null,Xs(4,4,tc.bind(null,t,e),n)}function rc(){}function oc(e,t){var n=qs();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ts(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ac(e,t){var n=qs();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ts(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ic(e,t,n){return 0==(21&ws)?(e.baseState&&(e.baseState=!1,qc=!0),e.memoizedState=n):(Ca(n,t)||(n=Pr(),Es.lanes|=n,Ju|=n,e.baseState=!0),t)}function lc(e,t){var n=zr;zr=0!==n&&4>n?n:4,e(!0);var r=Ss.transition;Ss.transition={};try{e(!1),t()}finally{zr=n,Ss.transition=r}}function sc(){return qs().memoizedState}function cc(e,t,n){var r=vd(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},dc(e))pc(t,n);else if(null!==(n=Xl(e,t,n,r))){bd(n,e,r,gd()),fc(n,t,r)}}function uc(e,t,n){var r=vd(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(dc(e))pc(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,Ca(l,i)){var s=t.interleaved;return null===s?(o.next=o,Zl(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Xl(e,t,o,r))&&(bd(n,e,r,o=gd()),fc(n,t,r))}}function dc(e){var t=e.alternate;return e===Es||null!==t&&t===Es}function pc(e,t){Ls=Rs=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function fc(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,qr(e,n)}}var hc={readContext:Gl,useCallback:Is,useContext:Is,useEffect:Is,useImperativeHandle:Is,useInsertionEffect:Is,useLayoutEffect:Is,useMemo:Is,useReducer:Is,useRef:Is,useState:Is,useDebugValue:Is,useDeferredValue:Is,useTransition:Is,useMutableSource:Is,useSyncExternalStore:Is,useId:Is,unstable_isNewReconciler:!1},mc={readContext:Gl,useCallback:function(e,t){return Ns().memoizedState=[e,void 0===t?null:t],e},useContext:Gl,useEffect:Qs,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Zs(4194308,4,tc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Zs(4194308,4,e,t)},useInsertionEffect:function(e,t){return Zs(4,2,e,t)},useMemo:function(e,t){var n=Ns();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ns();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=cc.bind(null,Es,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ns().memoizedState=e},useState:Vs,useDebugValue:rc,useDeferredValue:function(e){return Ns().memoizedState=e},useTransition:function(){var e=Vs(!1),t=e[0];return e=lc.bind(null,e[1]),Ns().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Es,o=Ns();if(Sl){if(void 0===n)throw Error(St(407));n=n()}else{if(n=t(),null===Uu)throw Error(St(349));0!=(30&ws)||Bs(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Qs(Ws.bind(null,r,a,e),[e]),r.flags|=2048,Gs(9,$s.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Ns(),t=Uu.identifierPrefix;if(Sl){var n=hl;t=":"+t+"R"+(n=(fl&~(1<<32-Er(fl)-1)).toString(32)+n),0<(n=Os++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=_s++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},gc={readContext:Gl,useCallback:oc,useContext:Gl,useEffect:Js,useImperativeHandle:nc,useInsertionEffect:Ys,useLayoutEffect:ec,useMemo:ac,useReducer:Ds,useRef:Ks,useState:function(){return Ds(zs)},useDebugValue:rc,useDeferredValue:function(e){return ic(qs(),Cs.memoizedState,e)},useTransition:function(){return[Ds(zs)[0],qs().memoizedState]},useMutableSource:js,useSyncExternalStore:Fs,useId:sc,unstable_isNewReconciler:!1},vc={readContext:Gl,useCallback:oc,useContext:Gl,useEffect:Js,useImperativeHandle:nc,useInsertionEffect:Ys,useLayoutEffect:ec,useMemo:ac,useReducer:As,useRef:Ks,useState:function(){return As(zs)},useDebugValue:rc,useDeferredValue:function(e){var t=qs();return null===Cs?t.memoizedState=e:ic(t,Cs.memoizedState,e)},useTransition:function(){return[As(zs)[0],qs().memoizedState]},useMutableSource:js,useSyncExternalStore:Fs,useId:sc,unstable_isNewReconciler:!1};function bc(e,t){if(e&&e.defaultProps){for(var n in t=Yt({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function yc(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:Yt({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var xc={isMounted:function(e){return!!(e=e._reactInternals)&&ar(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=gd(),o=vd(e),a=ts(r,o);a.payload=t,null!=n&&(a.callback=n),null!==(t=ns(e,a,o))&&(bd(t,e,o,r),rs(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=gd(),o=vd(e),a=ts(r,o);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=ns(e,a,o))&&(bd(t,e,o,r),rs(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=gd(),r=vd(e),o=ts(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=ns(e,o,r))&&(bd(t,e,r,n),rs(t,e,r))}};function Sc(e,t,n,r,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!ka(n,r)||!ka(o,a))}function wc(e,t,n){var r=!1,o=Hi,a=t.contextType;return"object"==typeof a&&null!==a?a=Gl(a):(o=Zi(t)?Gi:Ui.current,a=(r=null!=(r=t.contextTypes))?Ki(e,o):Hi),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=xc,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function Ec(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&&xc.enqueueReplaceState(t,t.state,null)}function Cc(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Yl(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=Gl(a):(a=Zi(t)?Gi:Ui.current,o.context=Ki(e,a)),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(yc(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&&xc.enqueueReplaceState(o,o.state,null),as(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function kc(e,t){try{var n="",r=t;do{n+=rn(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 Rc(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function Lc(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var Oc="function"==typeof WeakMap?WeakMap:Map;function _c(e,t,n){(n=ts(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){id||(id=!0,ld=r),Lc(0,t)},n}function Ic(e,t,n){(n=ts(-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(){Lc(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){Lc(0,t),"function"!=typeof r&&(null===sd?sd=new Set([this]):sd.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function Tc(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new Oc;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Bd.bind(null,e,t,n),t.then(e,e))}function Pc(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function Mc(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=ts(-1,1)).tag=2,ns(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var Nc=zt.ReactCurrentOwner,qc=!1;function zc(e,t,n,r){t.child=null===e?Al(t,null,n,r):Dl(t,e.child,n,r)}function Dc(e,t,n,r,o){n=n.render;var a=t.ref;return Vl(t,o),r=Ps(e,t,n,r,a,o),n=Ms(),null===e||qc?(Sl&&n&&vl(t),t.flags|=1,zc(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,iu(e,t,o))}function Ac(e,t,n,r,o){if(null===e){var a=n.type;return"function"!=typeof a||Kd(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Xd(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,jc(e,t,a,r,o))}if(a=e.child,0==(e.lanes&o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:ka)(i,r)&&e.ref===t.ref)return iu(e,t,o)}return t.flags|=1,(e=Zd(a,r)).ref=t.ref,e.return=t,t.child=e}function jc(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(ka(a,r)&&e.ref===t.ref){if(qc=!1,t.pendingProps=r=a,0==(e.lanes&o))return t.lanes=e.lanes,iu(e,t,o);0!=(131072&e.flags)&&(qc=!0)}}return $c(e,t,n,r,o)}function Fc(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Wi(Zu,Ku),Ku|=n;else{if(0==(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Wi(Zu,Ku),Ku|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,Wi(Zu,Ku),Ku|=r}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Wi(Zu,Ku),Ku|=r;return zc(e,t,o,n),t.child}function Bc(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function $c(e,t,n,r,o){var a=Zi(n)?Gi:Ui.current;return a=Ki(t,a),Vl(t,o),n=Ps(e,t,n,r,a,o),r=Ms(),null===e||qc?(Sl&&r&&vl(t),t.flags|=1,zc(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,iu(e,t,o))}function Wc(e,t,n,r,o){if(Zi(n)){var a=!0;Yi(t)}else a=!1;if(Vl(t,o),null===t.stateNode)au(e,t),wc(t,n,r),Cc(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=Gl(c):c=Ki(t,c=Zi(n)?Gi:Ui.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)&&Ec(t,i,r,c),Jl=!1;var p=t.memoizedState;i.state=p,as(t,r,i,o),s=t.memoizedState,l!==r||p!==s||Vi.current||Jl?("function"==typeof u&&(yc(t,n,u,r),s=t.memoizedState),(l=Jl||Sc(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,es(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:bc(t.type,l),i.props=c,d=t.pendingProps,p=i.context,"object"==typeof(s=n.contextType)&&null!==s?s=Gl(s):s=Ki(t,s=Zi(n)?Gi:Ui.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)&&Ec(t,i,r,s),Jl=!1,p=t.memoizedState,i.state=p,as(t,r,i,o);var h=t.memoizedState;l!==d||p!==h||Vi.current||Jl?("function"==typeof f&&(yc(t,n,f,r),h=t.memoizedState),(c=Jl||Sc(t,n,c,r,p,h,s)||!1)?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,s),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=s,r=c):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Hc(e,t,n,r,a,o)}function Hc(e,t,n,r,o,a){Bc(e,t);var i=0!=(128&t.flags);if(!r&&!i)return o&&el(t,n,!1),iu(e,t,a);r=t.stateNode,Nc.current=t;var l=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Dl(t,e.child,null,a),t.child=Dl(t,null,l,a)):zc(e,t,l,a),t.memoizedState=r.state,o&&el(t,n,!0),t.child}function Uc(e){var t=e.stateNode;t.pendingContext?Qi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Qi(0,t.context,!1),ps(e,t.containerInfo)}function Vc(e,t,n,r,o){return Il(),Tl(o),t.flags|=256,zc(e,t,n,r),t.child}var Gc,Kc,Zc,Xc,Qc={dehydrated:null,treeContext:null,retryLane:0};function Jc(e){return{baseLanes:e,cachePool:null,transitions:null}}function Yc(e,t,n){var r,o=t.pendingProps,a=gs.current,i=!1,l=0!=(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(i=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Wi(gs,1&a),null===e)return Rl(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=o.children,e=o.fallback,i?(o=t.mode,i=t.child,l={mode:"hidden",children:l},0==(1&o)&&null!==i?(i.childLanes=0,i.pendingProps=l):i=Jd(l,o,0,null),e=Qd(e,o,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Jc(n),t.memoizedState=Qc,e):eu(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,i){if(n)return 256&t.flags?(t.flags&=-257,tu(e,t,i,r=Rc(Error(St(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Jd({mode:"visible",children:r.children},o,0,null),(a=Qd(a,o,i,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!=(1&t.mode)&&Dl(t,e.child,null,i),t.child.memoizedState=Jc(i),t.memoizedState=Qc,a);if(0==(1&t.mode))return tu(e,t,i,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,tu(e,t,i,r=Rc(a=Error(St(419)),r,void 0))}if(l=0!=(i&e.childLanes),qc||l){if(null!==(r=Uu)){switch(i&-i){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|i))?0:o)&&o!==a.retryLane&&(a.retryLane=o,Ql(e,o),bd(r,e,o,-1))}return Td(),tu(e,t,i,r=Rc(Error(St(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Wd.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,xl=Ri(o.nextSibling),yl=t,Sl=!0,wl=null,null!==e&&(ul[dl++]=fl,ul[dl++]=hl,ul[dl++]=pl,fl=e.id,hl=e.overflow,pl=t),t=eu(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,a,n);if(i){i=o.fallback,l=t.mode,r=(a=e.child).sibling;var s={mode:"hidden",children:o.children};return 0==(1&l)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null):(o=Zd(a,s)).subtreeFlags=14680064&a.subtreeFlags,null!==r?i=Zd(r,i):(i=Qd(i,l,n,null)).flags|=2,i.return=t,o.return=t,o.sibling=i,t.child=o,o=i,i=t.child,l=null===(l=e.child.memoizedState)?Jc(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=Qc,o}return e=(i=e.child).sibling,o=Zd(i,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function eu(e,t){return(t=Jd({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function tu(e,t,n,r){return null!==r&&Tl(r),Dl(t,e.child,null,n),(e=eu(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function nu(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ul(e.return,t,n)}function ru(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function ou(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(zc(e,t,r.children,n),0!=(2&(r=gs.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&nu(e,n,t);else if(19===e.tag)nu(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Wi(gs,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===vs(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ru(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===vs(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ru(t,!0,n,null,a);break;case"together":ru(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function au(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function iu(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ju|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(St(153));if(null!==t.child){for(n=Zd(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Zd(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function lu(e,t){if(!Sl)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function su(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function cu(e,t,n){var r=t.pendingProps;switch(bl(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return su(t),null;case 1:case 17:return Zi(t.type)&&Xi(),su(t),null;case 3:return r=t.stateNode,fs(),$i(Vi),$i(Ui),ys(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Ol(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==wl&&(wd(wl),wl=null))),Kc(e,t),su(t),null;case 5:ms(t);var o=ds(us.current);if(n=t.type,null!==e&&null!=t.stateNode)Zc(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(St(166));return su(t),null}if(e=ds(ss.current),Ol(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[_i]=t,r[Ii]=a,e=0!=(1&t.mode),n){case"dialog":ni("cancel",r),ni("close",r);break;case"iframe":case"object":case"embed":ni("load",r);break;case"video":case"audio":for(o=0;o<Ja.length;o++)ni(Ja[o],r);break;case"source":ni("error",r);break;case"img":case"image":case"link":ni("error",r),ni("load",r);break;case"details":ni("toggle",r);break;case"input":fn(r,a),ni("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},ni("invalid",r);break;case"textarea":Sn(r,a),ni("invalid",r)}for(var i in qn(n,a),o=null,a)if(a.hasOwnProperty(i)){var l=a[i];"children"===i?"string"==typeof l?r.textContent!==l&&(!0!==a.suppressHydrationWarning&&mi(r.textContent,l,e),o=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(!0!==a.suppressHydrationWarning&&mi(r.textContent,l,e),o=["children",""+l]):Et.hasOwnProperty(i)&&null!=l&&"onScroll"===i&&ni("scroll",r)}switch(n){case"input":cn(r),gn(r,a,!0);break;case"textarea":cn(r),En(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=gi)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{i=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=Cn(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=i.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),"select"===n&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[_i]=t,e[Ii]=r,Gc(e,t,!1,!1),t.stateNode=e;e:{switch(i=zn(n,r),n){case"dialog":ni("cancel",e),ni("close",e),o=r;break;case"iframe":case"object":case"embed":ni("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ja.length;o++)ni(Ja[o],e);o=r;break;case"source":ni("error",e),o=r;break;case"img":case"image":case"link":ni("error",e),ni("load",e),o=r;break;case"details":ni("toggle",e),o=r;break;case"input":fn(e,r),o=pn(e,r),ni("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Yt({},r,{value:void 0}),ni("invalid",e);break;case"textarea":Sn(e,r),o=xn(e,r),ni("invalid",e)}for(a in qn(n,o),l=o)if(l.hasOwnProperty(a)){var s=l[a];"style"===a?Mn(e,s):"dangerouslySetInnerHTML"===a?null!=(s=s?s.__html:void 0)&&On(e,s):"children"===a?"string"==typeof s?("textarea"!==n||""!==s)&&_n(e,s):"number"==typeof s&&_n(e,""+s):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(Et.hasOwnProperty(a)?null!=s&&"onScroll"===a&&ni("scroll",e):null!=s&&qt(e,a,s,i))}switch(n){case"input":cn(e),gn(e,r,!1);break;case"textarea":cn(e),En(e);break;case"option":null!=r.value&&e.setAttribute("value",""+ln(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?yn(e,!!r.multiple,a,!1):null!=r.defaultValue&&yn(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=gi)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return su(t),null;case 6:if(e&&null!=t.stateNode)Xc(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(St(166));if(n=ds(us.current),ds(ss.current),Ol(t)){if(r=t.stateNode,n=t.memoizedProps,r[_i]=t,(a=r.nodeValue!==n)&&null!==(e=yl))switch(e.tag){case 3:mi(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&mi(r.nodeValue,n,0!=(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[_i]=t,t.stateNode=r}return su(t),null;case 13:if($i(gs),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(Sl&&null!==xl&&0!=(1&t.mode)&&0==(128&t.flags))_l(),Il(),t.flags|=98560,a=!1;else if(a=Ol(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(St(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(St(317));a[_i]=t}else Il(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;su(t),a=!1}else null!==wl&&(wd(wl),wl=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&gs.current)?0===Xu&&(Xu=3):Td())),null!==t.updateQueue&&(t.flags|=4),su(t),null);case 4:return fs(),Kc(e,t),null===e&&ai(t.stateNode.containerInfo),su(t),null;case 10:return Hl(t.type._context),su(t),null;case 19:if($i(gs),null===(a=t.memoizedState))return su(t),null;if(r=0!=(128&t.flags),null===(i=a.rendering))if(r)lu(a,!1);else{if(0!==Xu||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(i=vs(e))){for(t.flags|=128,lu(a,!1),null!==(r=i.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(i=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=i.childLanes,a.lanes=i.lanes,a.child=i.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=i.memoizedProps,a.memoizedState=i.memoizedState,a.updateQueue=i.updateQueue,a.type=i.type,e=i.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Wi(gs,1&gs.current|2),t.child}e=e.sibling}null!==a.tail&&hr()>od&&(t.flags|=128,r=!0,lu(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=vs(i))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),lu(a,!0),null===a.tail&&"hidden"===a.tailMode&&!i.alternate&&!Sl)return su(t),null}else 2*hr()-a.renderingStartTime>od&&1073741824!==n&&(t.flags|=128,r=!0,lu(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(null!==(n=a.last)?n.sibling=i:t.child=i,a.last=i)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=hr(),t.sibling=null,n=gs.current,Wi(gs,r?1&n|2:1&n),t):(su(t),null);case 22:case 23:return Ld(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Ku)&&(su(t),6&t.subtreeFlags&&(t.flags|=8192)):su(t),null;case 24:case 25:return null}throw Error(St(156,t.tag))}function uu(e,t){switch(bl(t),t.tag){case 1:return Zi(t.type)&&Xi(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return fs(),$i(Vi),$i(Ui),ys(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ms(t),null;case 13:if($i(gs),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(St(340));Il()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return $i(gs),null;case 4:return fs(),null;case 10:return Hl(t.type._context),null;case 22:case 23:return Ld(),null;default:return null}}Gc=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Kc=function(){},Zc=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ds(ss.current);var a,i=null;switch(n){case"input":o=pn(e,o),r=pn(e,r),i=[];break;case"select":o=Yt({},o,{value:void 0}),r=Yt({},r,{value:void 0}),i=[];break;case"textarea":o=xn(e,o),r=xn(e,r),i=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=gi)}for(c in qn(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var l=o[c];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(Et.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var s=r[c];if(l=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&s!==l&&(null!=s||null!=l))if("style"===c)if(l){for(a in l)!l.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in s)s.hasOwnProperty(a)&&l[a]!==s[a]&&(n||(n={}),n[a]=s[a])}else n||(i||(i=[]),i.push(c,n)),n=s;else"dangerouslySetInnerHTML"===c?(s=s?s.__html:void 0,l=l?l.__html:void 0,null!=s&&l!==s&&(i=i||[]).push(c,s)):"children"===c?"string"!=typeof s&&"number"!=typeof s||(i=i||[]).push(c,""+s):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(Et.hasOwnProperty(c)?(null!=s&&"onScroll"===c&&ni("scroll",e),i||l===s||(i=[])):(i=i||[]).push(c,s))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}},Xc=function(e,t,n,r){n!==r&&(t.flags|=4)};var du=!1,pu=!1,fu="function"==typeof WeakSet?WeakSet:Set,hu=null;function mu(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Fd(e,t,n)}else n.current=null}function gu(e,t,n){try{n()}catch(n){Fd(e,t,n)}}var vu=!1;function bu(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&gu(t,n,a)}o=o.next}while(o!==r)}}function yu(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function xu(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function Su(e){var t=e.alternate;null!==t&&(e.alternate=null,Su(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[_i],delete t[Ii],delete t[Pi],delete t[Mi],delete t[Ni])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function wu(e){return 5===e.tag||3===e.tag||4===e.tag}function Eu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||wu(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Cu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=gi));else if(4!==r&&null!==(e=e.child))for(Cu(e,t,n),e=e.sibling;null!==e;)Cu(e,t,n),e=e.sibling}function ku(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ku(e,t,n),e=e.sibling;null!==e;)ku(e,t,n),e=e.sibling}var Ru=null,Lu=!1;function Ou(e,t,n){for(n=n.child;null!==n;)_u(e,t,n),n=n.sibling}function _u(e,t,n){if(wr&&"function"==typeof wr.onCommitFiberUnmount)try{wr.onCommitFiberUnmount(Sr,n)}catch(e){}switch(n.tag){case 5:pu||mu(n,t);case 6:var r=Ru,o=Lu;Ru=null,Ou(e,t,n),Lu=o,null!==(Ru=r)&&(Lu?(e=Ru,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):Ru.removeChild(n.stateNode));break;case 18:null!==Ru&&(Lu?(e=Ru,n=n.stateNode,8===e.nodeType?ki(e.parentNode,n):1===e.nodeType&&ki(e,n),ao(e)):ki(Ru,n.stateNode));break;case 4:r=Ru,o=Lu,Ru=n.stateNode.containerInfo,Lu=!0,Ou(e,t,n),Ru=r,Lu=o;break;case 0:case 11:case 14:case 15:if(!pu&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(0!=(2&a)||0!=(4&a))&&gu(n,t,i),o=o.next}while(o!==r)}Ou(e,t,n);break;case 1:if(!pu&&(mu(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Fd(n,t,e)}Ou(e,t,n);break;case 21:Ou(e,t,n);break;case 22:1&n.mode?(pu=(r=pu)||null!==n.memoizedState,Ou(e,t,n),pu=r):Ou(e,t,n);break;default:Ou(e,t,n)}}function Iu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new fu),t.forEach((function(t){var r=Hd.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Tu(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,i=t,l=i;e:for(;null!==l;){switch(l.tag){case 5:Ru=l.stateNode,Lu=!1;break e;case 3:case 4:Ru=l.stateNode.containerInfo,Lu=!0;break e}l=l.return}if(null===Ru)throw Error(St(160));_u(a,i,o),Ru=null,Lu=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(e){Fd(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)Pu(t,e),t=t.sibling}function Pu(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Tu(t,e),Mu(e),4&r){try{bu(3,e,e.return),yu(3,e)}catch(t){Fd(e,e.return,t)}try{bu(5,e,e.return)}catch(t){Fd(e,e.return,t)}}break;case 1:Tu(t,e),Mu(e),512&r&&null!==n&&mu(n,n.return);break;case 5:if(Tu(t,e),Mu(e),512&r&&null!==n&&mu(n,n.return),32&e.flags){var o=e.stateNode;try{_n(o,"")}catch(t){Fd(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,i=null!==n?n.memoizedProps:a,l=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===l&&"radio"===a.type&&null!=a.name&&hn(o,a),zn(l,i);var c=zn(l,a);for(i=0;i<s.length;i+=2){var u=s[i],d=s[i+1];"style"===u?Mn(o,d):"dangerouslySetInnerHTML"===u?On(o,d):"children"===u?_n(o,d):qt(o,u,d,c)}switch(l){case"input":mn(o,a);break;case"textarea":wn(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var f=a.value;null!=f?yn(o,!!a.multiple,f,!1):p!==!!a.multiple&&(null!=a.defaultValue?yn(o,!!a.multiple,a.defaultValue,!0):yn(o,!!a.multiple,a.multiple?[]:"",!1))}o[Ii]=a}catch(t){Fd(e,e.return,t)}}break;case 6:if(Tu(t,e),Mu(e),4&r){if(null===e.stateNode)throw Error(St(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){Fd(e,e.return,t)}}break;case 3:if(Tu(t,e),Mu(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{ao(t.containerInfo)}catch(t){Fd(e,e.return,t)}break;case 4:default:Tu(t,e),Mu(e);break;case 13:Tu(t,e),Mu(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(rd=hr())),4&r&&Iu(e);break;case 22:if(u=null!==n&&null!==n.memoizedState,1&e.mode?(pu=(c=pu)||u,Tu(t,e),pu=c):Tu(t,e),Mu(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!u&&0!=(1&e.mode))for(hu=e,u=e.child;null!==u;){for(d=hu=u;null!==hu;){switch(f=(p=hu).child,p.tag){case 0:case 11:case 14:case 15:bu(4,p,p.return);break;case 1:mu(p,p.return);var h=p.stateNode;if("function"==typeof h.componentWillUnmount){r=p,n=p.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){Fd(r,n,e)}}break;case 5:mu(p,p.return);break;case 22:if(null!==p.memoizedState){Du(d);continue}}null!==f?(f.return=p,hu=f):Du(d)}u=u.sibling}e:for(u=null,d=e;;){if(5===d.tag){if(null===u){u=d;try{o=d.stateNode,c?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=d.stateNode,i=null!=(s=d.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,l.style.display=Pn("display",i))}catch(t){Fd(e,e.return,t)}}}else if(6===d.tag){if(null===u)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){Fd(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Tu(t,e),Mu(e),4&r&&Iu(e);case 21:}}function Mu(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(wu(n)){var r=n;break e}n=n.return}throw Error(St(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(_n(o,""),r.flags&=-33),ku(e,Eu(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;Cu(e,Eu(e),a);break;default:throw Error(St(161))}}catch(t){Fd(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Nu(e,t,n){hu=e,qu(e)}function qu(e,t,n){for(var r=0!=(1&e.mode);null!==hu;){var o=hu,a=o.child;if(22===o.tag&&r){var i=null!==o.memoizedState||du;if(!i){var l=o.alternate,s=null!==l&&null!==l.memoizedState||pu;l=du;var c=pu;if(du=i,(pu=s)&&!c)for(hu=o;null!==hu;)s=(i=hu).child,22===i.tag&&null!==i.memoizedState?Au(o):null!==s?(s.return=i,hu=s):Au(o);for(;null!==a;)hu=a,qu(a),a=a.sibling;hu=o,du=l,pu=c}zu(e)}else 0!=(8772&o.subtreeFlags)&&null!==a?(a.return=o,hu=a):zu(e)}}function zu(e){for(;null!==hu;){var t=hu;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:pu||yu(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!pu)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:bc(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&is(t,a,r);break;case 3:var i=t.updateQueue;if(null!==i){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}is(t,i,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var u=c.memoizedState;if(null!==u){var d=u.dehydrated;null!==d&&ao(d)}}}break;default:throw Error(St(163))}pu||512&t.flags&&xu(t)}catch(e){Fd(t,t.return,e)}}if(t===e){hu=null;break}if(null!==(n=t.sibling)){n.return=t.return,hu=n;break}hu=t.return}}function Du(e){for(;null!==hu;){var t=hu;if(t===e){hu=null;break}var n=t.sibling;if(null!==n){n.return=t.return,hu=n;break}hu=t.return}}function Au(e){for(;null!==hu;){var t=hu;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{yu(4,t)}catch(e){Fd(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Fd(t,o,e)}}var a=t.return;try{xu(t)}catch(e){Fd(t,a,e)}break;case 5:var i=t.return;try{xu(t)}catch(e){Fd(t,i,e)}}}catch(e){Fd(t,t.return,e)}if(t===e){hu=null;break}var l=t.sibling;if(null!==l){l.return=t.return,hu=l;break}hu=t.return}}var ju,Fu=Math.ceil,Bu=zt.ReactCurrentDispatcher,$u=zt.ReactCurrentOwner,Wu=zt.ReactCurrentBatchConfig,Hu=0,Uu=null,Vu=null,Gu=0,Ku=0,Zu=Bi(0),Xu=0,Qu=null,Ju=0,Yu=0,ed=0,td=null,nd=null,rd=0,od=1/0,ad=null,id=!1,ld=null,sd=null,cd=!1,ud=null,dd=0,pd=0,fd=null,hd=-1,md=0;function gd(){return 0!=(6&Hu)?hr():-1!==hd?hd:hd=hr()}function vd(e){return 0==(1&e.mode)?1:0!=(2&Hu)&&0!==Gu?Gu&-Gu:null!==Pl.transition?(0===md&&(md=Pr()),md):0!==(e=zr)?e:e=void 0===(e=window.event)?16:ho(e.type)}function bd(e,t,n,r){if(50<pd)throw pd=0,fd=null,Error(St(185));Nr(e,n,r),0!=(2&Hu)&&e===Uu||(e===Uu&&(0==(2&Hu)&&(Yu|=n),4===Xu&&Ed(e,Gu)),yd(e,r),1===n&&0===Hu&&0==(1&t.mode)&&(od=hr()+500,nl&&al()))}function yd(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-Er(a),l=1<<i,s=o[i];-1===s?0!=(l&n)&&0==(l&r)||(o[i]=Ir(l,t)):s<=t&&(e.expiredLanes|=l),a&=~l}}(e,t);var r=_r(e,e===Uu?Gu:0);if(0===r)null!==n&&dr(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&dr(n),1===t)0===e.tag?function(e){nl=!0,ol(e)}(Cd.bind(null,e)):ol(Cd.bind(null,e)),Ei((function(){0==(6&Hu)&&al()})),n=null;else{switch(Dr(r)){case 1:n=gr;break;case 4:n=vr;break;case 16:default:n=br;break;case 536870912:n=xr}n=Ud(n,xd.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function xd(e,t){if(hd=-1,md=0,0!=(6&Hu))throw Error(St(327));var n=e.callbackNode;if(Ad()&&e.callbackNode!==n)return null;var r=_r(e,e===Uu?Gu:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=Pd(e,r);else{t=r;var o=Hu;Hu|=2;var a=Id();for(Uu===e&&Gu===t||(ad=null,od=hr()+500,Od(e,t));;)try{Nd();break}catch(t){_d(e,t)}Wl(),Bu.current=a,Hu=o,null!==Vu?t=0:(Uu=null,Gu=0,t=Xu)}if(0!==t){if(2===t&&(0!==(o=Tr(e))&&(r=o,t=Sd(e,o))),1===t)throw n=Qu,Od(e,0),Ed(e,r),yd(e,hr()),n;if(6===t)Ed(e,r);else{if(o=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],a=o.getSnapshot;o=o.value;try{if(!Ca(a(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=Pd(e,r))&&(0!==(a=Tr(e))&&(r=a,t=Sd(e,a))),1===t))throw n=Qu,Od(e,0),Ed(e,r),yd(e,hr()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(St(345));case 2:case 5:Dd(e,nd,ad);break;case 3:if(Ed(e,r),(130023424&r)===r&&10<(t=rd+500-hr())){if(0!==_r(e,0))break;if(((o=e.suspendedLanes)&r)!==r){gd(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=xi(Dd.bind(null,e,nd,ad),t);break}Dd(e,nd,ad);break;case 4:if(Ed(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-Er(r);a=1<<i,(i=t[i])>o&&(o=i),r&=~a}if(r=o,10<(r=(120>(r=hr()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Fu(r/1960))-r)){e.timeoutHandle=xi(Dd.bind(null,e,nd,ad),r);break}Dd(e,nd,ad);break;default:throw Error(St(329))}}}return yd(e,hr()),e.callbackNode===n?xd.bind(null,e):null}function Sd(e,t){var n=td;return e.current.memoizedState.isDehydrated&&(Od(e,t).flags|=256),2!==(e=Pd(e,t))&&(t=nd,nd=n,null!==t&&wd(t)),e}function wd(e){null===nd?nd=e:nd.push.apply(nd,e)}function Ed(e,t){for(t&=~ed,t&=~Yu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Er(t),r=1<<n;e[n]=-1,t&=~r}}function Cd(e){if(0!=(6&Hu))throw Error(St(327));Ad();var t=_r(e,0);if(0==(1&t))return yd(e,hr()),null;var n=Pd(e,t);if(0!==e.tag&&2===n){var r=Tr(e);0!==r&&(t=r,n=Sd(e,r))}if(1===n)throw n=Qu,Od(e,0),Ed(e,t),yd(e,hr()),n;if(6===n)throw Error(St(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Dd(e,nd,ad),yd(e,hr()),null}function kd(e,t){var n=Hu;Hu|=1;try{return e(t)}finally{0===(Hu=n)&&(od=hr()+500,nl&&al())}}function Rd(e){null!==ud&&0===ud.tag&&0==(6&Hu)&&Ad();var t=Hu;Hu|=1;var n=Wu.transition,r=zr;try{if(Wu.transition=null,zr=1,e)return e()}finally{zr=r,Wu.transition=n,0==(6&(Hu=t))&&al()}}function Ld(){Ku=Zu.current,$i(Zu)}function Od(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Si(n)),null!==Vu)for(n=Vu.return;null!==n;){var r=n;switch(bl(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Xi();break;case 3:fs(),$i(Vi),$i(Ui),ys();break;case 5:ms(r);break;case 4:fs();break;case 13:case 19:$i(gs);break;case 10:Hl(r.type._context);break;case 22:case 23:Ld()}n=n.return}if(Uu=e,Vu=e=Zd(e.current,null),Gu=Ku=t,Xu=0,Qu=null,ed=Yu=Ju=0,nd=td=null,null!==Kl){for(t=0;t<Kl.length;t++)if(null!==(r=(n=Kl[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}Kl=null}return e}function _d(e,t){for(;;){var n=Vu;try{if(Wl(),xs.current=hc,Rs){for(var r=Es.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}Rs=!1}if(ws=0,ks=Cs=Es=null,Ls=!1,Os=0,$u.current=null,null===n||null===n.return){Xu=1,Qu=t,Vu=null;break}e:{var a=e,i=n.return,l=n,s=t;if(t=Gu,l.flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var c=s,u=l,d=u.tag;if(0==(1&u.mode)&&(0===d||11===d||15===d)){var p=u.alternate;p?(u.updateQueue=p.updateQueue,u.memoizedState=p.memoizedState,u.lanes=p.lanes):(u.updateQueue=null,u.memoizedState=null)}var f=Pc(i);if(null!==f){f.flags&=-257,Mc(f,i,l,0,t),1&f.mode&&Tc(a,c,t),s=c;var h=(t=f).updateQueue;if(null===h){var m=new Set;m.add(s),t.updateQueue=m}else h.add(s);break e}if(0==(1&t)){Tc(a,c,t),Td();break e}s=Error(St(426))}else if(Sl&&1&l.mode){var g=Pc(i);if(null!==g){0==(65536&g.flags)&&(g.flags|=256),Mc(g,i,l,0,t),Tl(kc(s,l));break e}}a=s=kc(s,l),4!==Xu&&(Xu=2),null===td?td=[a]:td.push(a),a=i;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,os(a,_c(0,s,t));break e;case 1:l=s;var v=a.type,b=a.stateNode;if(0==(128&a.flags)&&("function"==typeof v.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===sd||!sd.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,os(a,Ic(a,l,t));break e}}a=a.return}while(null!==a)}zd(n)}catch(e){t=e,Vu===n&&null!==n&&(Vu=n=n.return);continue}break}}function Id(){var e=Bu.current;return Bu.current=hc,null===e?hc:e}function Td(){0!==Xu&&3!==Xu&&2!==Xu||(Xu=4),null===Uu||0==(268435455&Ju)&&0==(268435455&Yu)||Ed(Uu,Gu)}function Pd(e,t){var n=Hu;Hu|=2;var r=Id();for(Uu===e&&Gu===t||(ad=null,Od(e,t));;)try{Md();break}catch(t){_d(e,t)}if(Wl(),Hu=n,Bu.current=r,null!==Vu)throw Error(St(261));return Uu=null,Gu=0,Xu}function Md(){for(;null!==Vu;)qd(Vu)}function Nd(){for(;null!==Vu&&!pr();)qd(Vu)}function qd(e){var t=ju(e.alternate,e,Ku);e.memoizedProps=e.pendingProps,null===t?zd(e):Vu=t,$u.current=null}function zd(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=cu(n,t,Ku)))return void(Vu=n)}else{if(null!==(n=uu(n,t)))return n.flags&=32767,void(Vu=n);if(null===e)return Xu=6,void(Vu=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Vu=t);Vu=t=e}while(null!==t);0===Xu&&(Xu=5)}function Dd(e,t,n){var r=zr,o=Wu.transition;try{Wu.transition=null,zr=1,function(e,t,n,r){do{Ad()}while(null!==ud);if(0!=(6&Hu))throw Error(St(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(St(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-Er(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}(e,a),e===Uu&&(Vu=Uu=null,Gu=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||cd||(cd=!0,Ud(br,(function(){return Ad(),null}))),a=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||a){a=Wu.transition,Wu.transition=null;var i=zr;zr=1;var l=Hu;Hu|=4,$u.current=null,function(e,t){if(vi=lo,Ia(e=_a())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var i=0,l=-1,s=-1,c=0,u=0,d=e,p=null;t:for(;;){for(var f;d!==n||0!==o&&3!==d.nodeType||(l=i+o),d!==a||0!==r&&3!==d.nodeType||(s=i+r),3===d.nodeType&&(i+=d.nodeValue.length),null!==(f=d.firstChild);)p=d,d=f;for(;;){if(d===e)break t;if(p===n&&++c===o&&(l=i),p===a&&++u===r&&(s=i),null!==(f=d.nextSibling))break;p=(d=p).parentNode}d=f}n=-1===l||-1===s?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(bi={focusedElem:e,selectionRange:n},lo=!1,hu=t;null!==hu;)if(e=(t=hu).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,hu=e;else for(;null!==hu;){t=hu;try{var h=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var m=h.memoizedProps,g=h.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:bc(t.type,m),g);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var y=t.stateNode.containerInfo;1===y.nodeType?y.textContent="":9===y.nodeType&&y.documentElement&&y.removeChild(y.documentElement);break;default:throw Error(St(163))}}catch(e){Fd(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,hu=e;break}hu=t.return}h=vu,vu=!1}(e,n),Pu(n,e),Ta(bi),lo=!!vi,bi=vi=null,e.current=n,Nu(n),fr(),Hu=l,zr=i,Wu.transition=a}else e.current=n;if(cd&&(cd=!1,ud=e,dd=o),a=e.pendingLanes,0===a&&(sd=null),function(e){if(wr&&"function"==typeof wr.onCommitFiberRoot)try{wr.onCommitFiberRoot(Sr,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),yd(e,hr()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(id)throw id=!1,e=ld,ld=null,e;0!=(1&dd)&&0!==e.tag&&Ad(),a=e.pendingLanes,0!=(1&a)?e===fd?pd++:(pd=0,fd=e):pd=0,al()}(e,t,n,r)}finally{Wu.transition=o,zr=r}return null}function Ad(){if(null!==ud){var e=Dr(dd),t=Wu.transition,n=zr;try{if(Wu.transition=null,zr=16>e?16:e,null===ud)var r=!1;else{if(e=ud,ud=null,dd=0,0!=(6&Hu))throw Error(St(331));var o=Hu;for(Hu|=4,hu=e.current;null!==hu;){var a=hu,i=a.child;if(0!=(16&hu.flags)){var l=a.deletions;if(null!==l){for(var s=0;s<l.length;s++){var c=l[s];for(hu=c;null!==hu;){var u=hu;switch(u.tag){case 0:case 11:case 15:bu(8,u,a)}var d=u.child;if(null!==d)d.return=u,hu=d;else for(;null!==hu;){var p=(u=hu).sibling,f=u.return;if(Su(u),u===c){hu=null;break}if(null!==p){p.return=f,hu=p;break}hu=f}}}var h=a.alternate;if(null!==h){var m=h.child;if(null!==m){h.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(null!==m)}}hu=a}}if(0!=(2064&a.subtreeFlags)&&null!==i)i.return=a,hu=i;else e:for(;null!==hu;){if(0!=(2048&(a=hu).flags))switch(a.tag){case 0:case 11:case 15:bu(9,a,a.return)}var v=a.sibling;if(null!==v){v.return=a.return,hu=v;break e}hu=a.return}}var b=e.current;for(hu=b;null!==hu;){var y=(i=hu).child;if(0!=(2064&i.subtreeFlags)&&null!==y)y.return=i,hu=y;else e:for(i=b;null!==hu;){if(0!=(2048&(l=hu).flags))try{switch(l.tag){case 0:case 11:case 15:yu(9,l)}}catch(e){Fd(l,l.return,e)}if(l===i){hu=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,hu=x;break e}hu=l.return}}if(Hu=o,al(),wr&&"function"==typeof wr.onPostCommitFiberRoot)try{wr.onPostCommitFiberRoot(Sr,e)}catch(e){}r=!0}return r}finally{zr=n,Wu.transition=t}}return!1}function jd(e,t,n){e=ns(e,t=_c(0,t=kc(n,t),1),1),t=gd(),null!==e&&(Nr(e,1,t),yd(e,t))}function Fd(e,t,n){if(3===e.tag)jd(e,e,n);else for(;null!==t;){if(3===t.tag){jd(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===sd||!sd.has(r))){t=ns(t,e=Ic(t,e=kc(n,e),1),1),e=gd(),null!==t&&(Nr(t,1,e),yd(t,e));break}}t=t.return}}function Bd(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=gd(),e.pingedLanes|=e.suspendedLanes&n,Uu===e&&(Gu&n)===n&&(4===Xu||3===Xu&&(130023424&Gu)===Gu&&500>hr()-rd?Od(e,0):ed|=n),yd(e,t)}function $d(e,t){0===t&&(0==(1&e.mode)?t=1:(t=Lr,0==(130023424&(Lr<<=1))&&(Lr=4194304)));var n=gd();null!==(e=Ql(e,t))&&(Nr(e,t,n),yd(e,n))}function Wd(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),$d(e,n)}function Hd(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(St(314))}null!==r&&r.delete(t),$d(e,n)}function Ud(e,t){return ur(e,t)}function Vd(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Gd(e,t,n,r){return new Vd(e,t,n,r)}function Kd(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Zd(e,t){var n=e.alternate;return null===n?((n=Gd(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Xd(e,t,n,r,o,a){var i=2;if(r=e,"function"==typeof e)Kd(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case jt:return Qd(n.children,o,a,t);case Ft:i=8,o|=8;break;case Bt:return(e=Gd(12,n,t,2|o)).elementType=Bt,e.lanes=a,e;case Ut:return(e=Gd(13,n,t,o)).elementType=Ut,e.lanes=a,e;case Vt:return(e=Gd(19,n,t,o)).elementType=Vt,e.lanes=a,e;case Zt:return Jd(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case $t:i=10;break e;case Wt:i=9;break e;case Ht:i=11;break e;case Gt:i=14;break e;case Kt:i=16,r=null;break e}throw Error(St(130,null==e?e:typeof e,""))}return(t=Gd(i,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Qd(e,t,n,r){return(e=Gd(7,e,r,t)).lanes=n,e}function Jd(e,t,n,r){return(e=Gd(22,e,r,t)).elementType=Zt,e.lanes=n,e.stateNode={isHidden:!1},e}function Yd(e,t,n){return(e=Gd(6,e,null,t)).lanes=n,e}function ep(e,t,n){return(t=Gd(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function tp(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Mr(0),this.expirationTimes=Mr(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mr(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function np(e,t,n,r,o,a,i,l,s){return e=new tp(e,t,n,l,s),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Gd(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Yl(a),e}function rp(e){if(!e)return Hi;e:{if(ar(e=e._reactInternals)!==e||1!==e.tag)throw Error(St(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Zi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(St(171))}if(1===e.tag){var n=e.type;if(Zi(n))return Ji(e,n,t)}return t}function op(e,t,n,r,o,a,i,l,s){return(e=np(n,r,!0,e,0,a,0,l,s)).context=rp(null),n=e.current,(a=ts(r=gd(),o=vd(n))).callback=null!=t?t:null,ns(n,a,o),e.current.lanes=o,Nr(e,o,r),yd(e,r),e}function ap(e,t,n,r){var o=t.current,a=gd(),i=vd(o);return n=rp(n),null===t.context?t.context=n:t.pendingContext=n,(t=ts(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=ns(o,t,i))&&(bd(e,o,i,a),rs(e,o,i)),i}function ip(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function lp(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function sp(e,t){lp(e,t),(e=e.alternate)&&lp(e,t)}ju=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Vi.current)qc=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return qc=!1,function(e,t,n){switch(t.tag){case 3:Uc(t),Il();break;case 5:hs(t);break;case 1:Zi(t.type)&&Yi(t);break;case 4:ps(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Wi(jl,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Wi(gs,1&gs.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Yc(e,t,n):(Wi(gs,1&gs.current),null!==(e=iu(e,t,n))?e.sibling:null);Wi(gs,1&gs.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return ou(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Wi(gs,gs.current),r)break;return null;case 22:case 23:return t.lanes=0,Fc(e,t,n)}return iu(e,t,n)}(e,t,n);qc=0!=(131072&e.flags)}else qc=!1,Sl&&0!=(1048576&t.flags)&&gl(t,cl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;au(e,t),e=t.pendingProps;var o=Ki(t,Ui.current);Vl(t,n),o=Ps(null,t,r,e,o,n);var a=Ms();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Zi(r)?(a=!0,Yi(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Yl(t),o.updater=xc,t.stateNode=o,o._reactInternals=t,Cc(t,r,e,n),t=Hc(null,t,r,!0,a,n)):(t.tag=0,Sl&&a&&vl(t),zc(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(au(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Kd(e)?1:0;if(null!=e){if((e=e.$$typeof)===Ht)return 11;if(e===Gt)return 14}return 2}(r),e=bc(r,e),o){case 0:t=$c(null,t,r,e,n);break e;case 1:t=Wc(null,t,r,e,n);break e;case 11:t=Dc(null,t,r,e,n);break e;case 14:t=Ac(null,t,r,bc(r.type,e),n);break e}throw Error(St(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,$c(e,t,r,o=t.elementType===r?o:bc(r,o),n);case 1:return r=t.type,o=t.pendingProps,Wc(e,t,r,o=t.elementType===r?o:bc(r,o),n);case 3:e:{if(Uc(t),null===e)throw Error(St(387));r=t.pendingProps,o=(a=t.memoizedState).element,es(e,t),as(t,r,null,n);var i=t.memoizedState;if(r=i.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Vc(e,t,r,n,o=kc(Error(St(423)),t));break e}if(r!==o){t=Vc(e,t,r,n,o=kc(Error(St(424)),t));break e}for(xl=Ri(t.stateNode.containerInfo.firstChild),yl=t,Sl=!0,wl=null,n=Al(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(Il(),r===o){t=iu(e,t,n);break e}zc(e,t,r,n)}t=t.child}return t;case 5:return hs(t),null===e&&Rl(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,i=o.children,yi(r,o)?i=null:null!==a&&yi(r,a)&&(t.flags|=32),Bc(e,t),zc(e,t,i,n),t.child;case 6:return null===e&&Rl(t),null;case 13:return Yc(e,t,n);case 4:return ps(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Dl(t,null,r,n):zc(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Dc(e,t,r,o=t.elementType===r?o:bc(r,o),n);case 7:return zc(e,t,t.pendingProps,n),t.child;case 8:case 12:return zc(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,Wi(jl,r._currentValue),r._currentValue=i,null!==a)if(Ca(a.value,i)){if(a.children===o.children&&!Vi.current){t=iu(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){i=a.child;for(var s=l.firstContext;null!==s;){if(s.context===r){if(1===a.tag){(s=ts(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var u=(c=c.shared).pending;null===u?s.next=s:(s.next=u.next,u.next=s),c.pending=s}}a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),Ul(a.return,n,t),l.lanes|=n;break}s=s.next}}else if(10===a.tag)i=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(i=a.return))throw Error(St(341));i.lanes|=n,null!==(l=i.alternate)&&(l.lanes|=n),Ul(i,n,t),i=a.sibling}else i=a.child;if(null!==i)i.return=a;else for(i=a;null!==i;){if(i===t){i=null;break}if(null!==(a=i.sibling)){a.return=i.return,i=a;break}i=i.return}a=i}zc(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Vl(t,n),r=r(o=Gl(o)),t.flags|=1,zc(e,t,r,n),t.child;case 14:return o=bc(r=t.type,t.pendingProps),Ac(e,t,r,o=bc(r.type,o),n);case 15:return jc(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:bc(r,o),au(e,t),t.tag=1,Zi(r)?(e=!0,Yi(t)):e=!1,Vl(t,n),wc(t,r,o),Cc(t,r,o,n),Hc(null,t,r,!0,e,n);case 19:return ou(e,t,n);case 22:return Fc(e,t,n)}throw Error(St(156,t.tag))};var cp="function"==typeof reportError?reportError:function(e){console.error(e)};function up(e){this._internalRoot=e}function dp(e){this._internalRoot=e}function pp(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function fp(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function hp(){}function mp(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a;if("function"==typeof o){var l=o;o=function(){var e=ip(i);l.call(e)}}ap(t,i,e,o)}else i=function(e,t,n,r,o){if(o){if("function"==typeof r){var a=r;r=function(){var e=ip(i);a.call(e)}}var i=op(t,r,e,0,null,!1,0,"",hp);return e._reactRootContainer=i,e[Ti]=i.current,ai(8===e.nodeType?e.parentNode:e),Rd(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=ip(s);l.call(e)}}var s=np(e,0,!1,null,0,!1,0,"",hp);return e._reactRootContainer=s,e[Ti]=s.current,ai(8===e.nodeType?e.parentNode:e),Rd((function(){ap(t,s,n,r)})),s}(n,t,e,o,r);return ip(i)}dp.prototype.render=up.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(St(409));ap(e,t,null,null)},dp.prototype.unmount=up.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;Rd((function(){ap(null,e,null,null)})),t[Ti]=null}},dp.prototype.unstable_scheduleHydration=function(e){if(e){var t=Br();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Xr.length&&0!==t&&t<Xr[n].priority;n++);Xr.splice(n,0,e),0===n&&eo(e)}},Ar=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Or(t.pendingLanes);0!==n&&(qr(t,1|n),yd(t,hr()),0==(6&Hu)&&(od=hr()+500,al()))}break;case 13:Rd((function(){var t=Ql(e,1);if(null!==t){var n=gd();bd(t,e,1,n)}})),sp(e,1)}},jr=function(e){if(13===e.tag){var t=Ql(e,134217728);if(null!==t)bd(t,e,134217728,gd());sp(e,134217728)}},Fr=function(e){if(13===e.tag){var t=vd(e),n=Ql(e,t);if(null!==n)bd(n,e,t,gd());sp(e,t)}},Br=function(){return zr},$r=function(e,t){var n=zr;try{return zr=e,t()}finally{zr=n}},jn=function(e,t,n){switch(t){case"input":if(mn(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Ai(r);if(!o)throw Error(St(90));un(r),mn(r,o)}}}break;case"textarea":wn(e,n);break;case"select":null!=(t=n.value)&&yn(e,!!n.multiple,t,!1)}},Un=kd,Vn=Rd;var gp={usingClientEntryPoint:!1,Events:[zi,Di,Ai,Wn,Hn,kd]},vp={findFiberByHostInstance:qi,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},bp={bundleType:vp.bundleType,version:vp.version,rendererPackageName:vp.rendererPackageName,rendererConfig:vp.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:zt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=sr(e))?null:e.stateNode},findFiberByHostInstance:vp.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 yp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!yp.isDisabled&&yp.supportsFiber)try{Sr=yp.inject(bp),wr=yp}catch(Ln){}}mt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=gp,mt.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!pp(t))throw Error(St(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:At,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},mt.createRoot=function(e,t){if(!pp(e))throw Error(St(299));var n=!1,r="",o=cp;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=np(e,1,!1,null,0,n,0,r,o),e[Ti]=t.current,ai(8===e.nodeType?e.parentNode:e),new up(t)},mt.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(St(188));throw e=Object.keys(e).join(","),Error(St(268,e))}return e=null===(e=sr(t))?null:e.stateNode},mt.flushSync=function(e){return Rd(e)},mt.hydrate=function(e,t,n){if(!fp(t))throw Error(St(200));return mp(null,e,t,!0,n)},mt.hydrateRoot=function(e,t,n){if(!pp(e))throw Error(St(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",i=cp;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(i=n.onRecoverableError)),t=op(t,null,e,1,null!=n?n:null,o,0,a,i),e[Ti]=t.current,ai(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new dp(t)},mt.render=function(e,t,n){if(!fp(t))throw Error(St(200));return mp(null,e,t,!1,n)},mt.unmountComponentAtNode=function(e){if(!fp(e))throw Error(St(40));return!!e._reactRootContainer&&(Rd((function(){mp(null,null,e,!1,(function(){e._reactRootContainer=null,e[Ti]=null}))})),!0)},mt.unstable_batchedUpdates=kd,mt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!fp(n))throw Error(St(200));if(null==e||void 0===e._reactInternals)throw Error(St(38));return mp(e,t,n,!1,r)},mt.version="18.3.1-next-f1338f8080-20240426",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)}}(),ht.exports=mt;var xp=ht.exports,Sp=n(xp),wp=xp;function Ep(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}ft.createRoot=wp.createRoot,ft.hydrateRoot=wp.hydrateRoot;var Cp=Object.freeze({__proto__:null,default:Ep}),kp="$$material";function Rp(){return Rp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rp.apply(this,arguments)}function Lp(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Op(){return Op=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Op.apply(this,arguments)}function _p(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Ip=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|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)-.*))$/,Tp=_p((function(e){return Ip.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var Pp=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Mp="-ms-",Np="-moz-",qp="-webkit-",zp="comm",Dp="rule",Ap="decl",jp="@keyframes",Fp=Math.abs,Bp=String.fromCharCode,$p=Object.assign;function Wp(e){return e.trim()}function Hp(e,t,n){return e.replace(t,n)}function Up(e,t){return e.indexOf(t)}function Vp(e,t){return 0|e.charCodeAt(t)}function Gp(e,t,n){return e.slice(t,n)}function Kp(e){return e.length}function Zp(e){return e.length}function Xp(e,t){return t.push(e),e}var Qp=1,Jp=1,Yp=0,ef=0,tf=0,nf="";function rf(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Qp,column:Jp,length:i,return:""}}function of(e,t){return $p(rf("",null,null,"",null,null,0),e,{length:-e.length},t)}function af(){return tf=ef>0?Vp(nf,--ef):0,Jp--,10===tf&&(Jp=1,Qp--),tf}function lf(){return tf=ef<Yp?Vp(nf,ef++):0,Jp++,10===tf&&(Jp=1,Qp++),tf}function sf(){return Vp(nf,ef)}function cf(){return ef}function uf(e,t){return Gp(nf,e,t)}function df(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function pf(e){return Qp=Jp=1,Yp=Kp(nf=e),ef=0,[]}function ff(e){return nf="",e}function hf(e){return Wp(uf(ef-1,vf(91===e?e+2:40===e?e+1:e)))}function mf(e){for(;(tf=sf())&&tf<33;)lf();return df(e)>2||df(tf)>3?"":" "}function gf(e,t){for(;--t&&lf()&&!(tf<48||tf>102||tf>57&&tf<65||tf>70&&tf<97););return uf(e,cf()+(t<6&&32==sf()&&32==lf()))}function vf(e){for(;lf();)switch(tf){case e:return ef;case 34:case 39:34!==e&&39!==e&&vf(tf);break;case 40:41===e&&vf(e);break;case 92:lf()}return ef}function bf(e,t){for(;lf()&&e+tf!==57&&(e+tf!==84||47!==sf()););return"/*"+uf(t,ef-1)+"*"+Bp(47===e?e:lf())}function yf(e){for(;!df(sf());)lf();return uf(e,ef)}function xf(e){return ff(Sf("",null,null,null,[""],e=pf(e),0,[0],e))}function Sf(e,t,n,r,o,a,i,l,s){for(var c=0,u=0,d=i,p=0,f=0,h=0,m=1,g=1,v=1,b=0,y="",x=o,S=a,w=r,E=y;g;)switch(h=b,b=lf()){case 40:if(108!=h&&58==Vp(E,d-1)){-1!=Up(E+=Hp(hf(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:E+=hf(b);break;case 9:case 10:case 13:case 32:E+=mf(h);break;case 92:E+=gf(cf()-1,7);continue;case 47:switch(sf()){case 42:case 47:Xp(Ef(bf(lf(),cf()),t,n),s);break;default:E+="/"}break;case 123*m:l[c++]=Kp(E)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==v&&(E=Hp(E,/\f/g,"")),f>0&&Kp(E)-d&&Xp(f>32?Cf(E+";",r,n,d-1):Cf(Hp(E," ","")+";",r,n,d-2),s);break;case 59:E+=";";default:if(Xp(w=wf(E,t,n,c,u,o,l,y,x=[],S=[],d),a),123===b)if(0===u)Sf(E,t,w,w,x,a,d,l,S);else switch(99===p&&110===Vp(E,3)?100:p){case 100:case 108:case 109:case 115:Sf(e,w,w,r&&Xp(wf(e,w,w,0,0,o,l,y,o,x=[],d),S),o,S,d,l,r?x:S);break;default:Sf(E,w,w,w,[""],S,0,l,S)}}c=u=f=0,m=v=1,y=E="",d=i;break;case 58:d=1+Kp(E),f=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==af())continue;switch(E+=Bp(b),b*m){case 38:v=u>0?1:(E+="\f",-1);break;case 44:l[c++]=(Kp(E)-1)*v,v=1;break;case 64:45===sf()&&(E+=hf(lf())),p=sf(),u=d=Kp(y=E+=yf(cf())),b++;break;case 45:45===h&&2==Kp(E)&&(m=0)}}return a}function wf(e,t,n,r,o,a,i,l,s,c,u){for(var d=o-1,p=0===o?a:[""],f=Zp(p),h=0,m=0,g=0;h<r;++h)for(var v=0,b=Gp(e,d+1,d=Fp(m=i[h])),y=e;v<f;++v)(y=Wp(m>0?p[v]+" "+b:Hp(b,/&\f/g,p[v])))&&(s[g++]=y);return rf(e,t,n,0===o?Dp:l,s,c,u)}function Ef(e,t,n){return rf(e,t,n,zp,Bp(tf),Gp(e,2,-2),0)}function Cf(e,t,n,r){return rf(e,t,n,Ap,Gp(e,0,r),Gp(e,r+1,-1),r)}function kf(e,t){for(var n="",r=Zp(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Rf(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Ap:return e.return=e.return||e.value;case zp:return"";case jp:return e.return=e.value+"{"+kf(e.children,r)+"}";case Dp:e.value=e.props.join(",")}return Kp(n=kf(e.children,r))?e.return=e.value+"{"+n+"}":""}function Lf(e){var t=Zp(e);return function(n,r,o,a){for(var i="",l=0;l<t;l++)i+=e[l](n,r,o,a)||"";return i}}var Of=function(e,t,n){for(var r=0,o=0;r=o,o=sf(),38===r&&12===o&&(t[n]=1),!df(o);)lf();return uf(e,ef)},_f=function(e,t){return ff(function(e,t){var n=-1,r=44;do{switch(df(r)){case 0:38===r&&12===sf()&&(t[n]=1),e[n]+=Of(ef-1,t,n);break;case 2:e[n]+=hf(r);break;case 4:if(44===r){e[++n]=58===sf()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Bp(r)}}while(r=lf());return e}(pf(e),t))},If=new WeakMap,Tf=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||If.get(n))&&!r){If.set(e,!0);for(var o=[],a=_f(t,o),i=n.props,l=0,s=0;l<a.length;l++)for(var c=0;c<i.length;c++,s++)e.props[s]=o[l]?a[l].replace(/&\f/g,i[c]):i[c]+" "+a[l]}}},Pf=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Mf(e,t){switch(function(e,t){return 45^Vp(e,0)?(((t<<2^Vp(e,0))<<2^Vp(e,1))<<2^Vp(e,2))<<2^Vp(e,3):0}(e,t)){case 5103:return qp+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return qp+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return qp+e+Np+e+Mp+e+e;case 6828:case 4268:return qp+e+Mp+e+e;case 6165:return qp+e+Mp+"flex-"+e+e;case 5187:return qp+e+Hp(e,/(\w+).+(:[^]+)/,qp+"box-$1$2"+Mp+"flex-$1$2")+e;case 5443:return qp+e+Mp+"flex-item-"+Hp(e,/flex-|-self/,"")+e;case 4675:return qp+e+Mp+"flex-line-pack"+Hp(e,/align-content|flex-|-self/,"")+e;case 5548:return qp+e+Mp+Hp(e,"shrink","negative")+e;case 5292:return qp+e+Mp+Hp(e,"basis","preferred-size")+e;case 6060:return qp+"box-"+Hp(e,"-grow","")+qp+e+Mp+Hp(e,"grow","positive")+e;case 4554:return qp+Hp(e,/([^-])(transform)/g,"$1"+qp+"$2")+e;case 6187:return Hp(Hp(Hp(e,/(zoom-|grab)/,qp+"$1"),/(image-set)/,qp+"$1"),e,"")+e;case 5495:case 3959:return Hp(e,/(image-set\([^]*)/,qp+"$1$`$1");case 4968:return Hp(Hp(e,/(.+:)(flex-)?(.*)/,qp+"box-pack:$3"+Mp+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+qp+e+e;case 4095:case 3583:case 4068:case 2532:return Hp(e,/(.+)-inline(.+)/,qp+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Kp(e)-1-t>6)switch(Vp(e,t+1)){case 109:if(45!==Vp(e,t+4))break;case 102:return Hp(e,/(.+:)(.+)-([^]+)/,"$1"+qp+"$2-$3$1"+Np+(108==Vp(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Up(e,"stretch")?Mf(Hp(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Vp(e,t+1))break;case 6444:switch(Vp(e,Kp(e)-3-(~Up(e,"!important")&&10))){case 107:return Hp(e,":",":"+qp)+e;case 101:return Hp(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+qp+(45===Vp(e,14)?"inline-":"")+"box$3$1"+qp+"$2$3$1"+Mp+"$2box$3")+e}break;case 5936:switch(Vp(e,t+11)){case 114:return qp+e+Mp+Hp(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return qp+e+Mp+Hp(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return qp+e+Mp+Hp(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return qp+e+Mp+e+e}return e}var Nf,qf="undefined"!=typeof document,zf=qf?void 0:function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}((function(){return _p((function(){var e={};return function(t){return e[t]}}))})),Df=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Ap:e.return=Mf(e.value,e.length);break;case jp:return kf([of(e,{value:Hp(e.value,"@","@"+qp)})],r);case Dp:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return kf([of(e,{props:[Hp(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return kf([of(e,{props:[Hp(t,/:(plac\w+)/,":"+qp+"input-$1")]}),of(e,{props:[Hp(t,/:(plac\w+)/,":-moz-$1")]}),of(e,{props:[Hp(t,/:(plac\w+)/,Mp+"input-$1")]})],r)}return""}))}}],Af=function(e){var t=e.key;if(qf&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,a=e.stylisPlugins||Df,i={},l=[];qf&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;l.push(e)})));var s,c=[Tf,Pf];if(qf){var u,d=[Rf,(s=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&s(e)})],p=Lf(c.concat(a,d));o=function(e,t,n,r){u=n,function(e){kf(xf(e),p)}(e?e+"{"+t.styles+"}":t.styles),r&&(v.inserted[t.name]=!0)}}else{var f=[Rf],h=Lf(c.concat(a,f)),m=zf(a)(t),g=function(e,t){var n=t.name;return void 0===m[n]&&(m[n]=function(e){return kf(xf(e),h)}(e?e+"{"+t.styles+"}":t.styles)),m[n]};o=function(e,t,n,r){var o=t.name,a=g(e,t);return void 0===v.compat?(r&&(v.inserted[o]=!0),a):r?void(v.inserted[o]=a):a}}var v={key:t,sheet:new Pp({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return v.sheet.hydrate(l),v},jf={exports:{}},Ff={},Bf=Symbol.for("react.element"),$f=Symbol.for("react.portal"),Wf=Symbol.for("react.fragment"),Hf=Symbol.for("react.strict_mode"),Uf=Symbol.for("react.profiler"),Vf=Symbol.for("react.provider"),Gf=Symbol.for("react.context"),Kf=Symbol.for("react.server_context"),Zf=Symbol.for("react.forward_ref"),Xf=Symbol.for("react.suspense"),Qf=Symbol.for("react.suspense_list"),Jf=Symbol.for("react.memo"),Yf=Symbol.for("react.lazy"),eh=Symbol.for("react.offscreen");function th(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Bf:switch(e=e.type){case Wf:case Uf:case Hf:case Xf:case Qf:return e;default:switch(e=e&&e.$$typeof){case Kf:case Gf:case Zf:case Yf:case Jf:case Vf:return e;default:return t}}case $f:return t}}}Nf=Symbol.for("react.module.reference"),Ff.ContextConsumer=Gf,Ff.ContextProvider=Vf,Ff.Element=Bf,Ff.ForwardRef=Zf,Ff.Fragment=Wf,Ff.Lazy=Yf,Ff.Memo=Jf,Ff.Portal=$f,Ff.Profiler=Uf,Ff.StrictMode=Hf,Ff.Suspense=Xf,Ff.SuspenseList=Qf,Ff.isAsyncMode=function(){return!1},Ff.isConcurrentMode=function(){return!1},Ff.isContextConsumer=function(e){return th(e)===Gf},Ff.isContextProvider=function(e){return th(e)===Vf},Ff.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Bf},Ff.isForwardRef=function(e){return th(e)===Zf},Ff.isFragment=function(e){return th(e)===Wf},Ff.isLazy=function(e){return th(e)===Yf},Ff.isMemo=function(e){return th(e)===Jf},Ff.isPortal=function(e){return th(e)===$f},Ff.isProfiler=function(e){return th(e)===Uf},Ff.isStrictMode=function(e){return th(e)===Hf},Ff.isSuspense=function(e){return th(e)===Xf},Ff.isSuspenseList=function(e){return th(e)===Qf},Ff.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Wf||e===Uf||e===Hf||e===Xf||e===Qf||e===eh||"object"==typeof e&&null!==e&&(e.$$typeof===Yf||e.$$typeof===Jf||e.$$typeof===Vf||e.$$typeof===Gf||e.$$typeof===Zf||e.$$typeof===Nf||void 0!==e.getModuleId)},Ff.typeOf=th,jf.exports=Ff;var nh=jf.exports,rh=nh,oh={};oh[rh.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},oh[rh.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var ah="undefined"!=typeof document;var ih=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===ah&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},lh=function(e,t,n){ih(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o="",a=t;do{var i=e.insert(t===a?"."+r:"",a,e.sheet,!0);ah||void 0===i||(o+=i),a=a.next}while(void 0!==a);if(!ah&&0!==o.length)return o}};function sh(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}var ch={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},uh=/[A-Z]|^ms/g,dh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ph=function(e){return 45===e.charCodeAt(1)},fh=function(e){return null!=e&&"boolean"!=typeof e},hh=_p((function(e){return ph(e)?e:e.replace(uh,"-$&").toLowerCase()})),mh=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(dh,(function(e,t,n){return vh={name:t,styles:n,next:vh},t}))}return 1===ch[e]||ph(e)||"number"!=typeof t||0===t?t:t+"px"};function gh(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return vh={name:n.name,styles:n.styles,next:vh},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)vh={name:r.name,styles:r.styles,next:vh},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=gh(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)fh(i)&&(r+=hh(a)+":"+mh(a,i)+";");else if(Array.isArray(i)&&"string"==typeof i[0]&&null==t)for(var l=0;l<i.length;l++)fh(i[l])&&(r+=hh(a)+":"+mh(a,i[l])+";");else{var s=gh(e,t,i);switch(a){case"animation":case"animationName":r+=hh(a)+":"+s+";";break;default:r+=a+"{"+s+"}"}}}return r}(e,t,n);case"function":if(void 0!==e){var o=vh,a=n(e);return vh=o,gh(e,t,a)}}return n}var vh,bh=/label:\s*([^\s;\n{]+)\s*(;|$)/g,yh=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";vh=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=gh(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=gh(n,t,e[i]),r&&(o+=a[i]);bh.lastIndex=0;for(var l,s="";null!==(l=bh.exec(o));)s+="-"+l[1];return{name:sh(o)+s,styles:o,next:vh}},xh="undefined"!=typeof document,Sh=function(e){return e()},wh=!!K.useInsertionEffect&&K.useInsertionEffect,Eh=xh&&wh||Sh,Ch=wh||V.useLayoutEffect,kh="undefined"!=typeof document,Rh=V.createContext("undefined"!=typeof HTMLElement?Af({key:"css"}):null),Lh=Rh.Provider,Oh=function(e){return V.forwardRef((function(t,n){var r=V.useContext(Rh);return e(t,r,n)}))};kh||(Oh=function(e){return function(t){var n=V.useContext(Rh);return null===n?(n=Af({key:"css"}),V.createElement(Rh.Provider,{value:n},e(t,n))):e(t,n)}});var _h=V.createContext({}),Ih=Oh((function(e,t){var n=e.styles,r=yh([n],void 0,V.useContext(_h));if(!kh){for(var o,a=r.name,i=r.styles,l=r.next;void 0!==l;)a+=" "+l.name,i+=l.styles,l=l.next;var s=!0===t.compat,c=t.insert("",{name:a,styles:i},t.sheet,s);return s?null:V.createElement("style",((o={})["data-emotion"]=t.key+"-global "+a,o.dangerouslySetInnerHTML={__html:c},o.nonce=t.sheet.nonce,o))}var u=V.useRef();return Ch((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),n.hydrate([a])),u.current=[n,o],function(){n.flush()}}),[t]),Ch((function(){var e=u.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&lh(t,r.next,!0),n.tags.length){var o=n.tags[n.tags.length-1].nextElementSibling;n.before=o,n.flush()}t.insert("",r,n,!1)}}),[t,r.name]),null}));function Th(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return yh(t)}var Ph=function(){var e=Th.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},Mh=/[A-Z]|^ms/g,Nh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,qh=function(e){return 45===e.charCodeAt(1)},zh=function(e){return null!=e&&"boolean"!=typeof e},Dh=_p((function(e){return qh(e)?e:e.replace(Mh,"-$&").toLowerCase()})),Ah=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Nh,(function(e,t,n){return Fh={name:t,styles:n,next:Fh},t}))}return 1===ch[e]||qh(e)||"number"!=typeof t||0===t?t:t+"px"};function jh(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Fh={name:n.name,styles:n.styles,next:Fh},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Fh={name:r.name,styles:r.styles,next:Fh},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=jh(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":zh(i)&&(r+=Dh(a)+":"+Ah(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var l=jh(e,t,i);switch(a){case"animation":case"animationName":r+=Dh(a)+":"+l+";";break;default:r+=a+"{"+l+"}"}}else for(var s=0;s<i.length;s++)zh(i[s])&&(r+=Dh(a)+":"+Ah(a,i[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=Fh,a=n(e);return Fh=o,jh(e,t,a)}}if(null==t)return n;var i=t[n];return void 0!==i?i:n}var Fh,Bh=/label:\s*([^\s;\n{]+)\s*(;|$)/g,$h=Tp,Wh=function(e){return"theme"!==e},Hh=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?$h:Wh},Uh=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Vh="undefined"!=typeof document,Gh=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;ih(t,n,r);var o=Eh((function(){return lh(t,n,r)}));if(!Vh&&void 0!==o){for(var a,i=n.name,l=n.next;void 0!==l;)i+=" "+l.name,l=l.next;return V.createElement("style",((a={})["data-emotion"]=t.key+" "+i,a.dangerouslySetInnerHTML={__html:o},a.nonce=t.sheet.nonce,a))}return null},Kh=function e(t,n){var r,o,a=t.__emotion_real===t,i=a&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var l=Uh(t,n,a),s=l||Hh(i),c=!s("as");return function(){var u=arguments,d=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{d.push(u[0][0]);for(var p=u.length,f=1;f<p;f++)d.push(u[f],u[0][f])}var h=Oh((function(e,t,n){var r,a,u,p,f=c&&e.as||i,h="",m=[],g=e;if(null==e.theme){for(var v in g={},e)g[v]=e[v];g.theme=V.useContext(_h)}"string"==typeof e.className?(r=t.registered,a=m,u=e.className,p="",u.split(" ").forEach((function(e){void 0!==r[e]?a.push(r[e]+";"):p+=e+" "})),h=p):null!=e.className&&(h=e.className+" ");var b=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";Fh=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=jh(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=jh(n,t,e[i]),r&&(o+=a[i]);Bh.lastIndex=0;for(var l,s="";null!==(l=Bh.exec(o));)s+="-"+l[1];return{name:sh(o)+s,styles:o,next:Fh}}(d.concat(m),t.registered,g);h+=t.key+"-"+b.name,void 0!==o&&(h+=" "+o);var y=c&&void 0===l?Hh(f):s,x={};for(var S in e)c&&"as"===S||y(S)&&(x[S]=e[S]);return x.className=h,x.ref=n,V.createElement(V.Fragment,null,V.createElement(Gh,{cache:t,serialized:b,isStringTag:"string"==typeof f}),V.createElement(f,x))}));return h.displayName=void 0!==r?r:"Styled("+("string"==typeof i?i:i.displayName||i.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=i,h.__emotion_styles=d,h.__emotion_forwardProp=l,Object.defineProperty(h,"toString",{value:function(){return"."+o}}),h.withComponent=function(t,r){return e(t,Op({},n,r,{shouldForwardProp:Uh(h,r,!0)})).apply(void 0,d)},h}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Kh[e]=Kh(e)}));var Zh={exports:{}},Xh={},Qh=V,Jh=Symbol.for("react.element"),Yh=Symbol.for("react.fragment"),em=Object.prototype.hasOwnProperty,tm=Qh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,nm={key:!0,ref:!0,__self:!0,__source:!0};function rm(e,t,n){var r,o={},a=null,i=null;for(r in void 0!==n&&(a=""+n),void 0!==t.key&&(a=""+t.key),void 0!==t.ref&&(i=t.ref),t)em.call(t,r)&&!nm.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:Jh,type:e,key:a,ref:i,props:o,_owner:tm.current}}Xh.Fragment=Yh,Xh.jsx=rm,Xh.jsxs=rm,Zh.exports=Xh;var om=Zh.exports;let am;function im(e){const{injectFirst:t,children:n}=e;return t&&am?om.jsx(Lh,{value:am,children:n}):n}function lm(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return om.jsx(Ih,{styles:r})}
|
|
26
|
+
*/function xt(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var St=new Set,wt={};function Et(e,t){Ct(e,t),Ct(e+"Capture",t)}function Ct(e,t){for(wt[e]=t,e=0;e<t.length;e++)St.add(t[e])}var kt=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Rt=Object.prototype.hasOwnProperty,Lt=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Ot={},_t={};function It(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var Tt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){Tt[e]=new It(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];Tt[t]=new It(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){Tt[e]=new It(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){Tt[e]=new It(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){Tt[e]=new It(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){Tt[e]=new It(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){Tt[e]=new It(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){Tt[e]=new It(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){Tt[e]=new It(e,5,!1,e.toLowerCase(),null,!1,!1)}));var Pt=/[\-:]([a-z])/g;function Mt(e){return e[1].toUpperCase()}function Nt(e,t,n,r){var o=Tt.hasOwnProperty(t)?Tt[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!Rt.call(_t,e)||!Rt.call(Ot,e)&&(Lt.test(e)?_t[e]=!0:(Ot[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(Pt,Mt);Tt[t]=new It(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(Pt,Mt);Tt[t]=new It(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(Pt,Mt);Tt[t]=new It(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){Tt[e]=new It(e,1,!1,e.toLowerCase(),null,!1,!1)})),Tt.xlinkHref=new It("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){Tt[e]=new It(e,1,!1,e.toLowerCase(),null,!0,!0)}));var qt=bt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,zt=Symbol.for("react.element"),Dt=Symbol.for("react.portal"),At=Symbol.for("react.fragment"),jt=Symbol.for("react.strict_mode"),Ft=Symbol.for("react.profiler"),Bt=Symbol.for("react.provider"),$t=Symbol.for("react.context"),Wt=Symbol.for("react.forward_ref"),Ht=Symbol.for("react.suspense"),Ut=Symbol.for("react.suspense_list"),Vt=Symbol.for("react.memo"),Gt=Symbol.for("react.lazy"),Kt=Symbol.for("react.offscreen"),Zt=Symbol.iterator;function Xt(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=Zt&&e[Zt]||e["@@iterator"])?e:null}var Qt,Jt=Object.assign;function Yt(e){if(void 0===Qt)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Qt=t&&t[1]||""}return"\n"+Qt+e}var en=!1;function tn(e,t){if(!e||en)return"";en=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),a=r.stack.split("\n"),i=o.length-1,l=a.length-1;1<=i&&0<=l&&o[i]!==a[l];)l--;for(;1<=i&&0<=l;i--,l--)if(o[i]!==a[l]){if(1!==i||1!==l)do{if(i--,0>--l||o[i]!==a[l]){var s="\n"+o[i].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=i&&0<=l);break}}}finally{en=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Yt(e):""}function nn(e){switch(e.tag){case 5:return Yt(e.type);case 16:return Yt("Lazy");case 13:return Yt("Suspense");case 19:return Yt("SuspenseList");case 0:case 2:case 15:return e=tn(e.type,!1);case 11:return e=tn(e.type.render,!1);case 1:return e=tn(e.type,!0);default:return""}}function rn(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case At:return"Fragment";case Dt:return"Portal";case Ft:return"Profiler";case jt:return"StrictMode";case Ht:return"Suspense";case Ut:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case $t:return(e.displayName||"Context")+".Consumer";case Bt:return(e._context.displayName||"Context")+".Provider";case Wt:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case Vt:return null!==(t=e.displayName||null)?t:rn(e.type)||"Memo";case Gt:t=e._payload,e=e._init;try{return rn(e(t))}catch(e){}}return null}function on(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return rn(t);case 8:return t===jt?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function an(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ln(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function sn(e){e._valueTracker||(e._valueTracker=function(e){var t=ln(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function cn(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ln(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function un(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function dn(e,t){var n=t.checked;return Jt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function pn(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=an(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function fn(e,t){null!=(t=t.checked)&&Nt(e,"checked",t,!1)}function hn(e,t){fn(e,t);var n=an(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?gn(e,t.type,n):t.hasOwnProperty("defaultValue")&&gn(e,t.type,an(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function mn(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function gn(e,t,n){"number"===t&&un(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var vn=Array.isArray;function bn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+an(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function yn(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(xt(91));return Jt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function xn(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(xt(92));if(vn(n)){if(1<n.length)throw Error(xt(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:an(n)}}function Sn(e,t){var n=an(t.value),r=an(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function wn(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function En(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Cn(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?En(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var kn,Rn,Ln=(Rn=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((kn=kn||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=kn.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return Rn(e,t)}))}:Rn);function On(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var _n={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},In=["Webkit","ms","Moz","O"];function Tn(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||_n.hasOwnProperty(e)&&_n[e]?(""+t).trim():t+"px"}function Pn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=Tn(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(_n).forEach((function(e){In.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),_n[t]=_n[e]}))}));var Mn=Jt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Nn(e,t){if(t){if(Mn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(xt(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(xt(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(xt(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(xt(62))}}function qn(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var zn=null;function Dn(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var An=null,jn=null,Fn=null;function Bn(e){if(e=qi(e)){if("function"!=typeof An)throw Error(xt(280));var t=e.stateNode;t&&(t=Di(t),An(e.stateNode,e.type,t))}}function $n(e){jn?Fn?Fn.push(e):Fn=[e]:jn=e}function Wn(){if(jn){var e=jn,t=Fn;if(Fn=jn=null,Bn(e),t)for(e=0;e<t.length;e++)Bn(t[e])}}function Hn(e,t){return e(t)}function Un(){}var Vn=!1;function Gn(e,t,n){if(Vn)return e(t,n);Vn=!0;try{return Hn(e,t,n)}finally{Vn=!1,(null!==jn||null!==Fn)&&(Un(),Wn())}}function Kn(e,t){var n=e.stateNode;if(null===n)return null;var r=Di(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(xt(231,t,typeof n));return n}var Zn=!1;if(kt)try{var Xn={};Object.defineProperty(Xn,"passive",{get:function(){Zn=!0}}),window.addEventListener("test",Xn,Xn),window.removeEventListener("test",Xn,Xn)}catch(Rn){Zn=!1}function Qn(e,t,n,r,o,a,i,l,s){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var Jn=!1,Yn=null,er=!1,tr=null,nr={onError:function(e){Jn=!0,Yn=e}};function rr(e,t,n,r,o,a,i,l,s){Jn=!1,Yn=null,Qn.apply(nr,arguments)}function or(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function ar(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function ir(e){if(or(e)!==e)throw Error(xt(188))}function lr(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=or(e)))throw Error(xt(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return ir(o),e;if(a===r)return ir(o),t;a=a.sibling}throw Error(xt(188))}if(n.return!==r.return)n=o,r=a;else{for(var i=!1,l=o.child;l;){if(l===n){i=!0,n=o,r=a;break}if(l===r){i=!0,r=o,n=a;break}l=l.sibling}if(!i){for(l=a.child;l;){if(l===n){i=!0,n=a,r=o;break}if(l===r){i=!0,r=a,n=o;break}l=l.sibling}if(!i)throw Error(xt(189))}}if(n.alternate!==r)throw Error(xt(190))}if(3!==n.tag)throw Error(xt(188));return n.stateNode.current===n?e:t}(e),null!==e?sr(e):null}function sr(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=sr(e);if(null!==t)return t;e=e.sibling}return null}var cr=yt.unstable_scheduleCallback,ur=yt.unstable_cancelCallback,dr=yt.unstable_shouldYield,pr=yt.unstable_requestPaint,fr=yt.unstable_now,hr=yt.unstable_getCurrentPriorityLevel,mr=yt.unstable_ImmediatePriority,gr=yt.unstable_UserBlockingPriority,vr=yt.unstable_NormalPriority,br=yt.unstable_LowPriority,yr=yt.unstable_IdlePriority,xr=null,Sr=null;var wr=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(Er(e)/Cr|0)|0},Er=Math.log,Cr=Math.LN2;var kr=64,Rr=4194304;function Lr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Or(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,a=e.pingedLanes,i=268435455&n;if(0!==i){var l=i&~o;0!==l?r=Lr(l):0!==(a&=i)&&(r=Lr(a))}else 0!==(i=n&~o)?r=Lr(i):0!==a&&(r=Lr(a));if(0===r)return 0;if(0!==t&&t!==r&&0==(t&o)&&((o=r&-r)>=(a=t&-t)||16===o&&0!=(4194240&a)))return t;if(0!=(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-wr(t)),r|=e[n],t&=~o;return r}function _r(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function Ir(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Tr(){var e=kr;return 0==(4194240&(kr<<=1))&&(kr=64),e}function Pr(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Mr(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-wr(t)]=n}function Nr(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-wr(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var qr=0;function zr(e){return 1<(e&=-e)?4<e?0!=(268435455&e)?16:536870912:4:1}var Dr,Ar,jr,Fr,Br,$r=!1,Wr=[],Hr=null,Ur=null,Vr=null,Gr=new Map,Kr=new Map,Zr=[],Xr="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Qr(e,t){switch(e){case"focusin":case"focusout":Hr=null;break;case"dragenter":case"dragleave":Ur=null;break;case"mouseover":case"mouseout":Vr=null;break;case"pointerover":case"pointerout":Gr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Kr.delete(t.pointerId)}}function Jr(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[o]},null!==t&&(null!==(t=qi(t))&&Ar(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Yr(e){var t=Ni(e.target);if(null!==t){var n=or(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=ar(n)))return e.blockedOn=t,void Br(e.priority,(function(){jr(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function eo(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=po(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=qi(n))&&Ar(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);zn=r,n.target.dispatchEvent(r),zn=null,t.shift()}return!0}function to(e,t,n){eo(e)&&n.delete(t)}function no(){$r=!1,null!==Hr&&eo(Hr)&&(Hr=null),null!==Ur&&eo(Ur)&&(Ur=null),null!==Vr&&eo(Vr)&&(Vr=null),Gr.forEach(to),Kr.forEach(to)}function ro(e,t){e.blockedOn===t&&(e.blockedOn=null,$r||($r=!0,yt.unstable_scheduleCallback(yt.unstable_NormalPriority,no)))}function oo(e){function t(t){return ro(t,e)}if(0<Wr.length){ro(Wr[0],e);for(var n=1;n<Wr.length;n++){var r=Wr[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Hr&&ro(Hr,e),null!==Ur&&ro(Ur,e),null!==Vr&&ro(Vr,e),Gr.forEach(t),Kr.forEach(t),n=0;n<Zr.length;n++)(r=Zr[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Zr.length&&null===(n=Zr[0]).blockedOn;)Yr(n),null===n.blockedOn&&Zr.shift()}var ao=qt.ReactCurrentBatchConfig,io=!0;function lo(e,t,n,r){var o=qr,a=ao.transition;ao.transition=null;try{qr=1,co(e,t,n,r)}finally{qr=o,ao.transition=a}}function so(e,t,n,r){var o=qr,a=ao.transition;ao.transition=null;try{qr=4,co(e,t,n,r)}finally{qr=o,ao.transition=a}}function co(e,t,n,r){if(io){var o=po(e,t,n,r);if(null===o)ii(e,t,r,uo,n),Qr(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Hr=Jr(Hr,e,t,n,r,o),!0;case"dragenter":return Ur=Jr(Ur,e,t,n,r,o),!0;case"mouseover":return Vr=Jr(Vr,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return Gr.set(a,Jr(Gr.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,Kr.set(a,Jr(Kr.get(a)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Qr(e,r),4&t&&-1<Xr.indexOf(e)){for(;null!==o;){var a=qi(o);if(null!==a&&Dr(a),null===(a=po(e,t,n,r))&&ii(e,t,r,uo,n),a===o)break;o=a}null!==o&&r.stopPropagation()}else ii(e,t,r,null,n)}}var uo=null;function po(e,t,n,r){if(uo=null,null!==(e=Ni(e=Dn(r))))if(null===(t=or(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=ar(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return uo=e,null}function fo(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(hr()){case mr:return 1;case gr:return 4;case vr:case br:return 16;case yr:return 536870912;default:return 16}default:return 16}}var ho=null,mo=null,go=null;function vo(){if(go)return go;var e,t,n=mo,r=n.length,o="value"in ho?ho.value:ho.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return go=o.slice(e,1<t?1-t:void 0)}function bo(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function yo(){return!0}function xo(){return!1}function So(e){function t(t,n,r,o,a){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?yo:xo,this.isPropagationStopped=xo,this}return Jt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=yo)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=yo)},persist:function(){},isPersistent:yo}),t}var wo,Eo,Co,ko={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ro=So(ko),Lo=Jt({},ko,{view:0,detail:0}),Oo=So(Lo),_o=Jt({},Lo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bo,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Co&&(Co&&"mousemove"===e.type?(wo=e.screenX-Co.screenX,Eo=e.screenY-Co.screenY):Eo=wo=0,Co=e),wo)},movementY:function(e){return"movementY"in e?e.movementY:Eo}}),Io=So(_o),To=So(Jt({},_o,{dataTransfer:0})),Po=So(Jt({},Lo,{relatedTarget:0})),Mo=So(Jt({},ko,{animationName:0,elapsedTime:0,pseudoElement:0})),No=Jt({},ko,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),qo=So(No),zo=So(Jt({},ko,{data:0})),Do={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ao={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},jo={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Fo(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=jo[e])&&!!t[e]}function Bo(){return Fo}var $o=Jt({},Lo,{key:function(e){if(e.key){var t=Do[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=bo(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Ao[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bo,charCode:function(e){return"keypress"===e.type?bo(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?bo(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Wo=So($o),Ho=So(Jt({},_o,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Uo=So(Jt({},Lo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bo})),Vo=So(Jt({},ko,{propertyName:0,elapsedTime:0,pseudoElement:0})),Go=Jt({},_o,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ko=So(Go),Zo=[9,13,27,32],Xo=kt&&"CompositionEvent"in window,Qo=null;kt&&"documentMode"in document&&(Qo=document.documentMode);var Jo=kt&&"TextEvent"in window&&!Qo,Yo=kt&&(!Xo||Qo&&8<Qo&&11>=Qo),ea=String.fromCharCode(32),ta=!1;function na(e,t){switch(e){case"keyup":return-1!==Zo.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ra(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var oa=!1;var aa={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ia(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!aa[e.type]:"textarea"===t}function la(e,t,n,r){$n(r),0<(t=si(t,"onChange")).length&&(n=new Ro("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var sa=null,ca=null;function ua(e){ei(e,0)}function da(e){if(cn(zi(e)))return e}function pa(e,t){if("change"===e)return t}var fa=!1;if(kt){var ha;if(kt){var ma="oninput"in document;if(!ma){var ga=document.createElement("div");ga.setAttribute("oninput","return;"),ma="function"==typeof ga.oninput}ha=ma}else ha=!1;fa=ha&&(!document.documentMode||9<document.documentMode)}function va(){sa&&(sa.detachEvent("onpropertychange",ba),ca=sa=null)}function ba(e){if("value"===e.propertyName&&da(ca)){var t=[];la(t,ca,e,Dn(e)),Gn(ua,t)}}function ya(e,t,n){"focusin"===e?(va(),ca=n,(sa=t).attachEvent("onpropertychange",ba)):"focusout"===e&&va()}function xa(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return da(ca)}function Sa(e,t){if("click"===e)return da(t)}function wa(e,t){if("input"===e||"change"===e)return da(t)}var Ea="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Ca(e,t){if(Ea(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Rt.call(t,o)||!Ea(e[o],t[o]))return!1}return!0}function ka(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ra(e,t){var n,r=ka(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ka(r)}}function La(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?La(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Oa(){for(var e=window,t=un();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=un((e=t.contentWindow).document)}return t}function _a(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function Ia(e){var t=Oa(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&La(n.ownerDocument.documentElement,n)){if(null!==r&&_a(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,a=Math.min(r.start,o);r=void 0===r.end?a:Math.min(r.end,o),!e.extend&&a>r&&(o=r,r=a,a=o),o=Ra(n,a);var i=Ra(n,r);o&&i&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Ta=kt&&"documentMode"in document&&11>=document.documentMode,Pa=null,Ma=null,Na=null,qa=!1;function za(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;qa||null==Pa||Pa!==un(r)||("selectionStart"in(r=Pa)&&_a(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},Na&&Ca(Na,r)||(Na=r,0<(r=si(Ma,"onSelect")).length&&(t=new Ro("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Pa)))}function Da(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Aa={animationend:Da("Animation","AnimationEnd"),animationiteration:Da("Animation","AnimationIteration"),animationstart:Da("Animation","AnimationStart"),transitionend:Da("Transition","TransitionEnd")},ja={},Fa={};function Ba(e){if(ja[e])return ja[e];if(!Aa[e])return e;var t,n=Aa[e];for(t in n)if(n.hasOwnProperty(t)&&t in Fa)return ja[e]=n[t];return e}kt&&(Fa=document.createElement("div").style,"AnimationEvent"in window||(delete Aa.animationend.animation,delete Aa.animationiteration.animation,delete Aa.animationstart.animation),"TransitionEvent"in window||delete Aa.transitionend.transition);var $a=Ba("animationend"),Wa=Ba("animationiteration"),Ha=Ba("animationstart"),Ua=Ba("transitionend"),Va=new Map,Ga="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ka(e,t){Va.set(e,t),Et(t,[e])}for(var Za=0;Za<Ga.length;Za++){var Xa=Ga[Za];Ka(Xa.toLowerCase(),"on"+(Xa[0].toUpperCase()+Xa.slice(1)))}Ka($a,"onAnimationEnd"),Ka(Wa,"onAnimationIteration"),Ka(Ha,"onAnimationStart"),Ka("dblclick","onDoubleClick"),Ka("focusin","onFocus"),Ka("focusout","onBlur"),Ka(Ua,"onTransitionEnd"),Ct("onMouseEnter",["mouseout","mouseover"]),Ct("onMouseLeave",["mouseout","mouseover"]),Ct("onPointerEnter",["pointerout","pointerover"]),Ct("onPointerLeave",["pointerout","pointerover"]),Et("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Et("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Et("onBeforeInput",["compositionend","keypress","textInput","paste"]),Et("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Et("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Et("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qa="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ja=new Set("cancel close invalid load scroll toggle".split(" ").concat(Qa));function Ya(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,i,l,s){if(rr.apply(this,arguments),Jn){if(!Jn)throw Error(xt(198));var c=Yn;Jn=!1,Yn=null,er||(er=!0,tr=c)}}(r,t,void 0,e),e.currentTarget=null}function ei(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==a&&o.isPropagationStopped())break e;Ya(o,l,c),a=s}else for(i=0;i<r.length;i++){if(s=(l=r[i]).instance,c=l.currentTarget,l=l.listener,s!==a&&o.isPropagationStopped())break e;Ya(o,l,c),a=s}}}if(er)throw e=tr,er=!1,tr=null,e}function ti(e,t){var n=t[Ti];void 0===n&&(n=t[Ti]=new Set);var r=e+"__bubble";n.has(r)||(ai(t,e,2,!1),n.add(r))}function ni(e,t,n){var r=0;t&&(r|=4),ai(n,e,r,t)}var ri="_reactListening"+Math.random().toString(36).slice(2);function oi(e){if(!e[ri]){e[ri]=!0,St.forEach((function(t){"selectionchange"!==t&&(Ja.has(t)||ni(t,!1,e),ni(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[ri]||(t[ri]=!0,ni("selectionchange",!1,t))}}function ai(e,t,n,r){switch(fo(t)){case 1:var o=lo;break;case 4:o=so;break;default:o=co}n=o.bind(null,t,n,e),o=void 0,!Zn||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function ii(e,t,n,r,o){var a=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===i)for(i=r.return;null!==i;){var s=i.tag;if((3===s||4===s)&&((s=i.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;i=i.return}for(;null!==l;){if(null===(i=Ni(l)))return;if(5===(s=i.tag)||6===s){r=a=i;continue e}l=l.parentNode}}r=r.return}Gn((function(){var r=a,o=Dn(n),i=[];e:{var l=Va.get(e);if(void 0!==l){var s=Ro,c=e;switch(e){case"keypress":if(0===bo(n))break e;case"keydown":case"keyup":s=Wo;break;case"focusin":c="focus",s=Po;break;case"focusout":c="blur",s=Po;break;case"beforeblur":case"afterblur":s=Po;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=Io;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=To;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Uo;break;case $a:case Wa:case Ha:s=Mo;break;case Ua:s=Vo;break;case"scroll":s=Oo;break;case"wheel":s=Ko;break;case"copy":case"cut":case"paste":s=qo;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Ho}var u=0!=(4&t),d=!u&&"scroll"===e,p=u?null!==l?l+"Capture":null:l;u=[];for(var f,h=r;null!==h;){var m=(f=h).stateNode;if(5===f.tag&&null!==m&&(f=m,null!==p&&(null!=(m=Kn(h,p))&&u.push(li(h,m,f)))),d)break;h=h.return}0<u.length&&(l=new s(l,c,null,n,o),i.push({event:l,listeners:u}))}}if(0==(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===zn||!(c=n.relatedTarget||n.fromElement)||!Ni(c)&&!c[Ii])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(c=(c=n.relatedTarget||n.toElement)?Ni(c):null)&&(c!==(d=or(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(s=null,c=r),s!==c)){if(u=Io,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(u=Ho,m="onPointerLeave",p="onPointerEnter",h="pointer"),d=null==s?l:zi(s),f=null==c?l:zi(c),(l=new u(m,h+"leave",s,n,o)).target=d,l.relatedTarget=f,m=null,Ni(o)===r&&((u=new u(p,h+"enter",c,n,o)).target=f,u.relatedTarget=d,m=u),d=m,s&&c)e:{for(p=c,h=0,f=u=s;f;f=ci(f))h++;for(f=0,m=p;m;m=ci(m))f++;for(;0<h-f;)u=ci(u),h--;for(;0<f-h;)p=ci(p),f--;for(;h--;){if(u===p||null!==p&&u===p.alternate)break e;u=ci(u),p=ci(p)}u=null}else u=null;null!==s&&ui(i,l,s,u,!1),null!==c&&null!==d&&ui(i,d,c,u,!0)}if("select"===(s=(l=r?zi(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=pa;else if(ia(l))if(fa)g=wa;else{g=xa;var v=ya}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=Sa);switch(g&&(g=g(e,r))?la(i,g,n,o):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&gn(l,"number",l.value)),v=r?zi(r):window,e){case"focusin":(ia(v)||"true"===v.contentEditable)&&(Pa=v,Ma=r,Na=null);break;case"focusout":Na=Ma=Pa=null;break;case"mousedown":qa=!0;break;case"contextmenu":case"mouseup":case"dragend":qa=!1,za(i,n,o);break;case"selectionchange":if(Ta)break;case"keydown":case"keyup":za(i,n,o)}var b;if(Xo)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else oa?na(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Yo&&"ko"!==n.locale&&(oa||"onCompositionStart"!==y?"onCompositionEnd"===y&&oa&&(b=vo()):(mo="value"in(ho=o)?ho.value:ho.textContent,oa=!0)),0<(v=si(r,y)).length&&(y=new zo(y,e,null,n,o),i.push({event:y,listeners:v}),b?y.data=b:null!==(b=ra(n))&&(y.data=b))),(b=Jo?function(e,t){switch(e){case"compositionend":return ra(t);case"keypress":return 32!==t.which?null:(ta=!0,ea);case"textInput":return(e=t.data)===ea&&ta?null:e;default:return null}}(e,n):function(e,t){if(oa)return"compositionend"===e||!Xo&&na(e,t)?(e=vo(),go=mo=ho=null,oa=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Yo&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=si(r,"onBeforeInput")).length&&(o=new zo("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=b))}ei(i,t)}))}function li(e,t,n){return{instance:e,listener:t,currentTarget:n}}function si(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=Kn(e,n))&&r.unshift(li(e,a,o)),null!=(a=Kn(e,t))&&r.push(li(e,a,o))),e=e.return}return r}function ci(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function ui(e,t,n,r,o){for(var a=t._reactName,i=[];null!==n&&n!==r;){var l=n,s=l.alternate,c=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==c&&(l=c,o?null!=(s=Kn(n,a))&&i.unshift(li(n,s,l)):o||null!=(s=Kn(n,a))&&i.push(li(n,s,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var di=/\r\n?/g,pi=/\u0000|\uFFFD/g;function fi(e){return("string"==typeof e?e:""+e).replace(di,"\n").replace(pi,"")}function hi(e,t,n){if(t=fi(t),fi(e)!==t&&n)throw Error(xt(425))}function mi(){}var gi=null,vi=null;function bi(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var yi="function"==typeof setTimeout?setTimeout:void 0,xi="function"==typeof clearTimeout?clearTimeout:void 0,Si="function"==typeof Promise?Promise:void 0,wi="function"==typeof queueMicrotask?queueMicrotask:void 0!==Si?function(e){return Si.resolve(null).then(e).catch(Ei)}:yi;function Ei(e){setTimeout((function(){throw e}))}function Ci(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void oo(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);oo(t)}function ki(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function Ri(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 Li=Math.random().toString(36).slice(2),Oi="__reactFiber$"+Li,_i="__reactProps$"+Li,Ii="__reactContainer$"+Li,Ti="__reactEvents$"+Li,Pi="__reactListeners$"+Li,Mi="__reactHandles$"+Li;function Ni(e){var t=e[Oi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ii]||n[Oi]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Ri(e);null!==e;){if(n=e[Oi])return n;e=Ri(e)}return t}n=(e=n).parentNode}return null}function qi(e){return!(e=e[Oi]||e[Ii])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function zi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(xt(33))}function Di(e){return e[_i]||null}var Ai=[],ji=-1;function Fi(e){return{current:e}}function Bi(e){0>ji||(e.current=Ai[ji],Ai[ji]=null,ji--)}function $i(e,t){ji++,Ai[ji]=e.current,e.current=t}var Wi={},Hi=Fi(Wi),Ui=Fi(!1),Vi=Wi;function Gi(e,t){var n=e.type.contextTypes;if(!n)return Wi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Ki(e){return null!=(e=e.childContextTypes)}function Zi(){Bi(Ui),Bi(Hi)}function Xi(e,t,n){if(Hi.current!==Wi)throw Error(xt(168));$i(Hi,t),$i(Ui,n)}function Qi(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(xt(108,on(e)||"Unknown",o));return Jt({},n,r)}function Ji(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Wi,Vi=Hi.current,$i(Hi,e),$i(Ui,Ui.current),!0}function Yi(e,t,n){var r=e.stateNode;if(!r)throw Error(xt(169));n?(e=Qi(e,t,Vi),r.__reactInternalMemoizedMergedChildContext=e,Bi(Ui),Bi(Hi),$i(Hi,e)):Bi(Ui),$i(Ui,n)}var el=null,tl=!1,nl=!1;function rl(e){null===el?el=[e]:el.push(e)}function ol(){if(!nl&&null!==el){nl=!0;var e=0,t=qr;try{var n=el;for(qr=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}el=null,tl=!1}catch(t){throw null!==el&&(el=el.slice(e+1)),cr(mr,ol),t}finally{qr=t,nl=!1}}return null}var al=[],il=0,ll=null,sl=0,cl=[],ul=0,dl=null,pl=1,fl="";function hl(e,t){al[il++]=sl,al[il++]=ll,ll=e,sl=t}function ml(e,t,n){cl[ul++]=pl,cl[ul++]=fl,cl[ul++]=dl,dl=e;var r=pl;e=fl;var o=32-wr(r)-1;r&=~(1<<o),n+=1;var a=32-wr(t)+o;if(30<a){var i=o-o%5;a=(r&(1<<i)-1).toString(32),r>>=i,o-=i,pl=1<<32-wr(t)+o|n<<o|r,fl=a+e}else pl=1<<a|n<<o|r,fl=e}function gl(e){null!==e.return&&(hl(e,1),ml(e,1,0))}function vl(e){for(;e===ll;)ll=al[--il],al[il]=null,sl=al[--il],al[il]=null;for(;e===dl;)dl=cl[--ul],cl[ul]=null,fl=cl[--ul],cl[ul]=null,pl=cl[--ul],cl[ul]=null}var bl=null,yl=null,xl=!1,Sl=null;function wl(e,t){var n=Vd(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function El(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,bl=e,yl=ki(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,bl=e,yl=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==dl?{id:pl,overflow:fl}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Vd(18,null,null,0)).stateNode=t,n.return=e,e.child=n,bl=e,yl=null,!0);default:return!1}}function Cl(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function kl(e){if(xl){var t=yl;if(t){var n=t;if(!El(e,t)){if(Cl(e))throw Error(xt(418));t=ki(n.nextSibling);var r=bl;t&&El(e,t)?wl(r,n):(e.flags=-4097&e.flags|2,xl=!1,bl=e)}}else{if(Cl(e))throw Error(xt(418));e.flags=-4097&e.flags|2,xl=!1,bl=e}}}function Rl(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;bl=e}function Ll(e){if(e!==bl)return!1;if(!xl)return Rl(e),xl=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!bi(e.type,e.memoizedProps)),t&&(t=yl)){if(Cl(e))throw Ol(),Error(xt(418));for(;t;)wl(e,t),t=ki(t.nextSibling)}if(Rl(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(xt(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){yl=ki(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}yl=null}}else yl=bl?ki(e.stateNode.nextSibling):null;return!0}function Ol(){for(var e=yl;e;)e=ki(e.nextSibling)}function _l(){yl=bl=null,xl=!1}function Il(e){null===Sl?Sl=[e]:Sl.push(e)}var Tl=qt.ReactCurrentBatchConfig;function Pl(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(xt(309));var r=n.stateNode}if(!r)throw Error(xt(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(xt(284));if(!n._owner)throw Error(xt(290,e))}return e}function Ml(e,t){throw e=Object.prototype.toString.call(t),Error(xt(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Nl(e){return(0,e._init)(e._payload)}function ql(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Kd(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function i(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Jd(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){var a=n.type;return a===At?u(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===Gt&&Nl(a)===t.type)?((r=o(t,n.props)).ref=Pl(e,t,n),r.return=e,r):((r=Zd(n.type,n.key,n.props,null,e.mode,r)).ref=Pl(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Yd(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function u(e,t,n,r,a){return null===t||7!==t.tag?((t=Xd(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Jd(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case zt:return(n=Zd(t.type,t.key,t.props,null,e.mode,n)).ref=Pl(e,null,t),n.return=e,n;case Dt:return(t=Yd(t,e.mode,n)).return=e,t;case Gt:return d(e,(0,t._init)(t._payload),n)}if(vn(t)||Xt(t))return(t=Xd(t,e.mode,n,null)).return=e,t;Ml(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case zt:return n.key===o?s(e,t,n,r):null;case Dt:return n.key===o?c(e,t,n,r):null;case Gt:return p(e,t,(o=n._init)(n._payload),r)}if(vn(n)||Xt(n))return null!==o?null:u(e,t,n,r,null);Ml(e,n)}return null}function f(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case zt:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Dt:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Gt:return f(e,t,n,(0,r._init)(r._payload),o)}if(vn(r)||Xt(r))return u(t,e=e.get(n)||null,r,o,null);Ml(t,r)}return null}function h(o,i,l,s){for(var c=null,u=null,h=i,m=i=0,g=null;null!==h&&m<l.length;m++){h.index>m?(g=h,h=null):g=h.sibling;var v=p(o,h,l[m],s);if(null===v){null===h&&(h=g);break}e&&h&&null===v.alternate&&t(o,h),i=a(v,i,m),null===u?c=v:u.sibling=v,u=v,h=g}if(m===l.length)return n(o,h),xl&&hl(o,m),c;if(null===h){for(;m<l.length;m++)null!==(h=d(o,l[m],s))&&(i=a(h,i,m),null===u?c=h:u.sibling=h,u=h);return xl&&hl(o,m),c}for(h=r(o,h);m<l.length;m++)null!==(g=f(h,o,m,l[m],s))&&(e&&null!==g.alternate&&h.delete(null===g.key?m:g.key),i=a(g,i,m),null===u?c=g:u.sibling=g,u=g);return e&&h.forEach((function(e){return t(o,e)})),xl&&hl(o,m),c}function m(o,i,l,s){var c=Xt(l);if("function"!=typeof c)throw Error(xt(150));if(null==(l=c.call(l)))throw Error(xt(151));for(var u=c=null,h=i,m=i=0,g=null,v=l.next();null!==h&&!v.done;m++,v=l.next()){h.index>m?(g=h,h=null):g=h.sibling;var b=p(o,h,v.value,s);if(null===b){null===h&&(h=g);break}e&&h&&null===b.alternate&&t(o,h),i=a(b,i,m),null===u?c=b:u.sibling=b,u=b,h=g}if(v.done)return n(o,h),xl&&hl(o,m),c;if(null===h){for(;!v.done;m++,v=l.next())null!==(v=d(o,v.value,s))&&(i=a(v,i,m),null===u?c=v:u.sibling=v,u=v);return xl&&hl(o,m),c}for(h=r(o,h);!v.done;m++,v=l.next())null!==(v=f(h,o,m,v.value,s))&&(e&&null!==v.alternate&&h.delete(null===v.key?m:v.key),i=a(v,i,m),null===u?c=v:u.sibling=v,u=v);return e&&h.forEach((function(e){return t(o,e)})),xl&&hl(o,m),c}return function e(r,a,l,s){if("object"==typeof l&&null!==l&&l.type===At&&null===l.key&&(l=l.props.children),"object"==typeof l&&null!==l){switch(l.$$typeof){case zt:e:{for(var c=l.key,u=a;null!==u;){if(u.key===c){if((c=l.type)===At){if(7===u.tag){n(r,u.sibling),(a=o(u,l.props.children)).return=r,r=a;break e}}else if(u.elementType===c||"object"==typeof c&&null!==c&&c.$$typeof===Gt&&Nl(c)===u.type){n(r,u.sibling),(a=o(u,l.props)).ref=Pl(r,u,l),a.return=r,r=a;break e}n(r,u);break}t(r,u),u=u.sibling}l.type===At?((a=Xd(l.props.children,r.mode,s,l.key)).return=r,r=a):((s=Zd(l.type,l.key,l.props,null,r.mode,s)).ref=Pl(r,a,l),s.return=r,r=s)}return i(r);case Dt:e:{for(u=l.key;null!==a;){if(a.key===u){if(4===a.tag&&a.stateNode.containerInfo===l.containerInfo&&a.stateNode.implementation===l.implementation){n(r,a.sibling),(a=o(a,l.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=Yd(l,r.mode,s)).return=r,r=a}return i(r);case Gt:return e(r,a,(u=l._init)(l._payload),s)}if(vn(l))return h(r,a,l,s);if(Xt(l))return m(r,a,l,s);Ml(r,l)}return"string"==typeof l&&""!==l||"number"==typeof l?(l=""+l,null!==a&&6===a.tag?(n(r,a.sibling),(a=o(a,l)).return=r,r=a):(n(r,a),(a=Jd(l,r.mode,s)).return=r,r=a),i(r)):n(r,a)}}var zl=ql(!0),Dl=ql(!1),Al=Fi(null),jl=null,Fl=null,Bl=null;function $l(){Bl=Fl=jl=null}function Wl(e){var t=Al.current;Bi(Al),e._currentValue=t}function Hl(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 Ul(e,t){jl=e,Bl=Fl=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Nc=!0),e.firstContext=null)}function Vl(e){var t=e._currentValue;if(Bl!==e)if(e={context:e,memoizedValue:t,next:null},null===Fl){if(null===jl)throw Error(xt(308));Fl=e,jl.dependencies={lanes:0,firstContext:e}}else Fl=Fl.next=e;return t}var Gl=null;function Kl(e){null===Gl?Gl=[e]:Gl.push(e)}function Zl(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Kl(t)):(n.next=o.next,o.next=n),t.interleaved=n,Xl(e,r)}function Xl(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 Ql=!1;function Jl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Yl(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 es(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ts(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!=(2&Wu)){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Xl(e,n)}return null===(o=r.interleaved)?(t.next=t,Kl(r)):(t.next=o.next,o.next=t),r.interleaved=t,Xl(e,n)}function ns(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Nr(e,n)}}function rs(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 os(e,t,n,r){var o=e.updateQueue;Ql=!1;var a=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,c=s.next;s.next=null,null===i?a=c:i.next=c,i=s;var u=e.alternate;null!==u&&((l=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===l?u.firstBaseUpdate=c:l.next=c,u.lastBaseUpdate=s))}if(null!==a){var d=o.baseState;for(i=0,u=c=s=null,l=a;;){var p=l.lane,f=l.eventTime;if((r&p)===p){null!==u&&(u=u.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,m=l;switch(p=t,f=n,m.tag){case 1:if("function"==typeof(h=m.payload)){d=h.call(f,d,p);break e}d=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(p="function"==typeof(h=m.payload)?h.call(f,d,p):h))break e;d=Jt({},d,p);break e;case 2:Ql=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[l]:p.push(l))}else f={eventTime:f,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===u?(c=u=f,s=d):u=u.next=f,i|=p;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(p=l).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===u&&(s=d),o.baseState=s,o.firstBaseUpdate=c,o.lastBaseUpdate=u,null!==(t=o.shared.interleaved)){o=t;do{i|=o.lane,o=o.next}while(o!==t)}else null===a&&(o.shared.lanes=0);Qu|=i,e.lanes=i,e.memoizedState=d}}function as(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(xt(191,o));o.call(r)}}}var is={},ls=Fi(is),ss=Fi(is),cs=Fi(is);function us(e){if(e===is)throw Error(xt(174));return e}function ds(e,t){switch($i(cs,t),$i(ss,e),$i(ls,is),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Cn(null,"");break;default:t=Cn(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Bi(ls),$i(ls,t)}function ps(){Bi(ls),Bi(ss),Bi(cs)}function fs(e){us(cs.current);var t=us(ls.current),n=Cn(t,e.type);t!==n&&($i(ss,e),$i(ls,n))}function hs(e){ss.current===e&&(Bi(ls),Bi(ss))}var ms=Fi(0);function gs(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 vs=[];function bs(){for(var e=0;e<vs.length;e++)vs[e]._workInProgressVersionPrimary=null;vs.length=0}var ys=qt.ReactCurrentDispatcher,xs=qt.ReactCurrentBatchConfig,Ss=0,ws=null,Es=null,Cs=null,ks=!1,Rs=!1,Ls=0,Os=0;function _s(){throw Error(xt(321))}function Is(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ea(e[n],t[n]))return!1;return!0}function Ts(e,t,n,r,o,a){if(Ss=a,ws=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ys.current=null===e||null===e.memoizedState?hc:mc,e=n(r,o),Rs){a=0;do{if(Rs=!1,Ls=0,25<=a)throw Error(xt(301));a+=1,Cs=Es=null,t.updateQueue=null,ys.current=gc,e=n(r,o)}while(Rs)}if(ys.current=fc,t=null!==Es&&null!==Es.next,Ss=0,Cs=Es=ws=null,ks=!1,t)throw Error(xt(300));return e}function Ps(){var e=0!==Ls;return Ls=0,e}function Ms(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Cs?ws.memoizedState=Cs=e:Cs=Cs.next=e,Cs}function Ns(){if(null===Es){var e=ws.alternate;e=null!==e?e.memoizedState:null}else e=Es.next;var t=null===Cs?ws.memoizedState:Cs.next;if(null!==t)Cs=t,Es=e;else{if(null===e)throw Error(xt(310));e={memoizedState:(Es=e).memoizedState,baseState:Es.baseState,baseQueue:Es.baseQueue,queue:Es.queue,next:null},null===Cs?ws.memoizedState=Cs=e:Cs=Cs.next=e}return Cs}function qs(e,t){return"function"==typeof t?t(e):t}function zs(e){var t=Ns(),n=t.queue;if(null===n)throw Error(xt(311));n.lastRenderedReducer=e;var r=Es,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var i=o.next;o.next=a.next,a.next=i}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var l=i=null,s=null,c=a;do{var u=c.lane;if((Ss&u)===u)null!==s&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===s?(l=s=d,i=r):s=s.next=d,ws.lanes|=u,Qu|=u}c=c.next}while(null!==c&&c!==a);null===s?i=r:s.next=l,Ea(r,t.memoizedState)||(Nc=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,ws.lanes|=a,Qu|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ds(e){var t=Ns(),n=t.queue;if(null===n)throw Error(xt(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var i=o=o.next;do{a=e(a,i.action),i=i.next}while(i!==o);Ea(a,t.memoizedState)||(Nc=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function As(){}function js(e,t){var n=ws,r=Ns(),o=t(),a=!Ea(r.memoizedState,o);if(a&&(r.memoizedState=o,Nc=!0),r=r.queue,Qs($s.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==Cs&&1&Cs.memoizedState.tag){if(n.flags|=2048,Vs(9,Bs.bind(null,n,r,o,t),void 0,null),null===Hu)throw Error(xt(349));0!=(30&Ss)||Fs(n,t,o)}return o}function Fs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ws.updateQueue)?(t={lastEffect:null,stores:null},ws.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Bs(e,t,n,r){t.value=n,t.getSnapshot=r,Ws(t)&&Hs(e)}function $s(e,t,n){return n((function(){Ws(t)&&Hs(e)}))}function Ws(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ea(e,n)}catch(e){return!0}}function Hs(e){var t=Xl(e,1);null!==t&&vd(t,e,1,-1)}function Us(e){var t=Ms();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:qs,lastRenderedState:e},t.queue=e,e=e.dispatch=cc.bind(null,ws,e),[t.memoizedState,e]}function Vs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ws.updateQueue)?(t={lastEffect:null,stores:null},ws.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 Gs(){return Ns().memoizedState}function Ks(e,t,n,r){var o=Ms();ws.flags|=e,o.memoizedState=Vs(1|t,n,void 0,void 0===r?null:r)}function Zs(e,t,n,r){var o=Ns();r=void 0===r?null:r;var a=void 0;if(null!==Es){var i=Es.memoizedState;if(a=i.destroy,null!==r&&Is(r,i.deps))return void(o.memoizedState=Vs(t,n,a,r))}ws.flags|=e,o.memoizedState=Vs(1|t,n,a,r)}function Xs(e,t){return Ks(8390656,8,e,t)}function Qs(e,t){return Zs(2048,8,e,t)}function Js(e,t){return Zs(4,2,e,t)}function Ys(e,t){return Zs(4,4,e,t)}function ec(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 tc(e,t,n){return n=null!=n?n.concat([e]):null,Zs(4,4,ec.bind(null,t,e),n)}function nc(){}function rc(e,t){var n=Ns();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Is(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function oc(e,t){var n=Ns();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Is(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ac(e,t,n){return 0==(21&Ss)?(e.baseState&&(e.baseState=!1,Nc=!0),e.memoizedState=n):(Ea(n,t)||(n=Tr(),ws.lanes|=n,Qu|=n,e.baseState=!0),t)}function ic(e,t){var n=qr;qr=0!==n&&4>n?n:4,e(!0);var r=xs.transition;xs.transition={};try{e(!1),t()}finally{qr=n,xs.transition=r}}function lc(){return Ns().memoizedState}function sc(e,t,n){var r=gd(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},uc(e))dc(t,n);else if(null!==(n=Zl(e,t,n,r))){vd(n,e,r,md()),pc(n,t,r)}}function cc(e,t,n){var r=gd(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(uc(e))dc(t,o);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var i=t.lastRenderedState,l=a(i,n);if(o.hasEagerState=!0,o.eagerState=l,Ea(l,i)){var s=t.interleaved;return null===s?(o.next=o,Kl(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Zl(e,t,o,r))&&(vd(n,e,r,o=md()),pc(n,t,r))}}function uc(e){var t=e.alternate;return e===ws||null!==t&&t===ws}function dc(e,t){Rs=ks=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function pc(e,t,n){if(0!=(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Nr(e,n)}}var fc={readContext:Vl,useCallback:_s,useContext:_s,useEffect:_s,useImperativeHandle:_s,useInsertionEffect:_s,useLayoutEffect:_s,useMemo:_s,useReducer:_s,useRef:_s,useState:_s,useDebugValue:_s,useDeferredValue:_s,useTransition:_s,useMutableSource:_s,useSyncExternalStore:_s,useId:_s,unstable_isNewReconciler:!1},hc={readContext:Vl,useCallback:function(e,t){return Ms().memoizedState=[e,void 0===t?null:t],e},useContext:Vl,useEffect:Xs,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Ks(4194308,4,ec.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ks(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ks(4,2,e,t)},useMemo:function(e,t){var n=Ms();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ms();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=sc.bind(null,ws,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ms().memoizedState=e},useState:Us,useDebugValue:nc,useDeferredValue:function(e){return Ms().memoizedState=e},useTransition:function(){var e=Us(!1),t=e[0];return e=ic.bind(null,e[1]),Ms().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ws,o=Ms();if(xl){if(void 0===n)throw Error(xt(407));n=n()}else{if(n=t(),null===Hu)throw Error(xt(349));0!=(30&Ss)||Fs(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Xs($s.bind(null,r,a,e),[e]),r.flags|=2048,Vs(9,Bs.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Ms(),t=Hu.identifierPrefix;if(xl){var n=fl;t=":"+t+"R"+(n=(pl&~(1<<32-wr(pl)-1)).toString(32)+n),0<(n=Ls++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Os++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},mc={readContext:Vl,useCallback:rc,useContext:Vl,useEffect:Qs,useImperativeHandle:tc,useInsertionEffect:Js,useLayoutEffect:Ys,useMemo:oc,useReducer:zs,useRef:Gs,useState:function(){return zs(qs)},useDebugValue:nc,useDeferredValue:function(e){return ac(Ns(),Es.memoizedState,e)},useTransition:function(){return[zs(qs)[0],Ns().memoizedState]},useMutableSource:As,useSyncExternalStore:js,useId:lc,unstable_isNewReconciler:!1},gc={readContext:Vl,useCallback:rc,useContext:Vl,useEffect:Qs,useImperativeHandle:tc,useInsertionEffect:Js,useLayoutEffect:Ys,useMemo:oc,useReducer:Ds,useRef:Gs,useState:function(){return Ds(qs)},useDebugValue:nc,useDeferredValue:function(e){var t=Ns();return null===Es?t.memoizedState=e:ac(t,Es.memoizedState,e)},useTransition:function(){return[Ds(qs)[0],Ns().memoizedState]},useMutableSource:As,useSyncExternalStore:js,useId:lc,unstable_isNewReconciler:!1};function vc(e,t){if(e&&e.defaultProps){for(var n in t=Jt({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function bc(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:Jt({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var yc={isMounted:function(e){return!!(e=e._reactInternals)&&or(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=md(),o=gd(e),a=es(r,o);a.payload=t,null!=n&&(a.callback=n),null!==(t=ts(e,a,o))&&(vd(t,e,o,r),ns(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=md(),o=gd(e),a=es(r,o);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=ts(e,a,o))&&(vd(t,e,o,r),ns(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=md(),r=gd(e),o=es(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=ts(e,o,r))&&(vd(t,e,r,n),ns(t,e,r))}};function xc(e,t,n,r,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!t.prototype||!t.prototype.isPureReactComponent||(!Ca(n,r)||!Ca(o,a))}function Sc(e,t,n){var r=!1,o=Wi,a=t.contextType;return"object"==typeof a&&null!==a?a=Vl(a):(o=Ki(t)?Vi:Hi.current,a=(r=null!=(r=t.contextTypes))?Gi(e,o):Wi),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=yc,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function wc(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&&yc.enqueueReplaceState(t,t.state,null)}function Ec(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Jl(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=Vl(a):(a=Ki(t)?Vi:Hi.current,o.context=Gi(e,a)),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(bc(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&&yc.enqueueReplaceState(o,o.state,null),os(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Cc(e,t){try{var n="",r=t;do{n+=nn(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function kc(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function Rc(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var Lc="function"==typeof WeakMap?WeakMap:Map;function Oc(e,t,n){(n=es(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ad||(ad=!0,id=r),Rc(0,t)},n}function _c(e,t,n){(n=es(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Rc(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){Rc(0,t),"function"!=typeof r&&(null===ld?ld=new Set([this]):ld.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function Ic(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new Lc;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Fd.bind(null,e,t,n),t.then(e,e))}function Tc(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function Pc(e,t,n,r,o){return 0==(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=es(-1,1)).tag=2,ts(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var Mc=qt.ReactCurrentOwner,Nc=!1;function qc(e,t,n,r){t.child=null===e?Dl(t,null,n,r):zl(t,e.child,n,r)}function zc(e,t,n,r,o){n=n.render;var a=t.ref;return Ul(t,o),r=Ts(e,t,n,r,a,o),n=Ps(),null===e||Nc?(xl&&n&&gl(t),t.flags|=1,qc(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,au(e,t,o))}function Dc(e,t,n,r,o){if(null===e){var a=n.type;return"function"!=typeof a||Gd(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Zd(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ac(e,t,a,r,o))}if(a=e.child,0==(e.lanes&o)){var i=a.memoizedProps;if((n=null!==(n=n.compare)?n:Ca)(i,r)&&e.ref===t.ref)return au(e,t,o)}return t.flags|=1,(e=Kd(a,r)).ref=t.ref,e.return=t,t.child=e}function Ac(e,t,n,r,o){if(null!==e){var a=e.memoizedProps;if(Ca(a,r)&&e.ref===t.ref){if(Nc=!1,t.pendingProps=r=a,0==(e.lanes&o))return t.lanes=e.lanes,au(e,t,o);0!=(131072&e.flags)&&(Nc=!0)}}return Bc(e,t,n,r,o)}function jc(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},$i(Ku,Gu),Gu|=n;else{if(0==(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,$i(Ku,Gu),Gu|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,$i(Ku,Gu),Gu|=r}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,$i(Ku,Gu),Gu|=r;return qc(e,t,o,n),t.child}function Fc(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Bc(e,t,n,r,o){var a=Ki(n)?Vi:Hi.current;return a=Gi(t,a),Ul(t,o),n=Ts(e,t,n,r,a,o),r=Ps(),null===e||Nc?(xl&&r&&gl(t),t.flags|=1,qc(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,au(e,t,o))}function $c(e,t,n,r,o){if(Ki(n)){var a=!0;Ji(t)}else a=!1;if(Ul(t,o),null===t.stateNode)ou(e,t),Sc(t,n,r),Ec(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=Vl(c):c=Gi(t,c=Ki(n)?Vi:Hi.current);var u=n.getDerivedStateFromProps,d="function"==typeof u||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==r||s!==c)&&wc(t,i,r,c),Ql=!1;var p=t.memoizedState;i.state=p,os(t,r,i,o),s=t.memoizedState,l!==r||p!==s||Ui.current||Ql?("function"==typeof u&&(bc(t,n,u,r),s=t.memoizedState),(l=Ql||xc(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,Yl(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:vc(t.type,l),i.props=c,d=t.pendingProps,p=i.context,"object"==typeof(s=n.contextType)&&null!==s?s=Vl(s):s=Gi(t,s=Ki(n)?Vi:Hi.current);var f=n.getDerivedStateFromProps;(u="function"==typeof f||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==d||p!==s)&&wc(t,i,r,s),Ql=!1,p=t.memoizedState,i.state=p,os(t,r,i,o);var h=t.memoizedState;l!==d||p!==h||Ui.current||Ql?("function"==typeof f&&(bc(t,n,f,r),h=t.memoizedState),(c=Ql||xc(t,n,c,r,p,h,s)||!1)?(u||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,s),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,s)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=s,r=c):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Wc(e,t,n,r,a,o)}function Wc(e,t,n,r,o,a){Fc(e,t);var i=0!=(128&t.flags);if(!r&&!i)return o&&Yi(t,n,!1),au(e,t,a);r=t.stateNode,Mc.current=t;var l=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=zl(t,e.child,null,a),t.child=zl(t,null,l,a)):qc(e,t,l,a),t.memoizedState=r.state,o&&Yi(t,n,!0),t.child}function Hc(e){var t=e.stateNode;t.pendingContext?Xi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Xi(0,t.context,!1),ds(e,t.containerInfo)}function Uc(e,t,n,r,o){return _l(),Il(o),t.flags|=256,qc(e,t,n,r),t.child}var Vc,Gc,Kc,Zc,Xc={dehydrated:null,treeContext:null,retryLane:0};function Qc(e){return{baseLanes:e,cachePool:null,transitions:null}}function Jc(e,t,n){var r,o=t.pendingProps,a=ms.current,i=!1,l=0!=(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(i=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),$i(ms,1&a),null===e)return kl(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=o.children,e=o.fallback,i?(o=t.mode,i=t.child,l={mode:"hidden",children:l},0==(1&o)&&null!==i?(i.childLanes=0,i.pendingProps=l):i=Qd(l,o,0,null),e=Xd(e,o,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Qc(n),t.memoizedState=Xc,e):Yc(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,i){if(n)return 256&t.flags?(t.flags&=-257,eu(e,t,i,r=kc(Error(xt(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Qd({mode:"visible",children:r.children},o,0,null),(a=Xd(a,o,i,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!=(1&t.mode)&&zl(t,e.child,null,i),t.child.memoizedState=Qc(i),t.memoizedState=Xc,a);if(0==(1&t.mode))return eu(e,t,i,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,eu(e,t,i,r=kc(a=Error(xt(419)),r,void 0))}if(l=0!=(i&e.childLanes),Nc||l){if(null!==(r=Hu)){switch(i&-i){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!=(o&(r.suspendedLanes|i))?0:o)&&o!==a.retryLane&&(a.retryLane=o,Xl(e,o),vd(r,e,o,-1))}return Id(),eu(e,t,i,r=kc(Error(xt(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=$d.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,yl=ki(o.nextSibling),bl=t,xl=!0,Sl=null,null!==e&&(cl[ul++]=pl,cl[ul++]=fl,cl[ul++]=dl,pl=e.id,fl=e.overflow,dl=t),t=Yc(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,a,n);if(i){i=o.fallback,l=t.mode,r=(a=e.child).sibling;var s={mode:"hidden",children:o.children};return 0==(1&l)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null):(o=Kd(a,s)).subtreeFlags=14680064&a.subtreeFlags,null!==r?i=Kd(r,i):(i=Xd(i,l,n,null)).flags|=2,i.return=t,o.return=t,o.sibling=i,t.child=o,o=i,i=t.child,l=null===(l=e.child.memoizedState)?Qc(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=Xc,o}return e=(i=e.child).sibling,o=Kd(i,{mode:"visible",children:o.children}),0==(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Yc(e,t){return(t=Qd({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function eu(e,t,n,r){return null!==r&&Il(r),zl(t,e.child,null,n),(e=Yc(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function tu(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Hl(e.return,t,n)}function nu(e,t,n,r,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o)}function ru(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(qc(e,t,r.children,n),0!=(2&(r=ms.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&tu(e,n,t);else if(19===e.tag)tu(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if($i(ms,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===gs(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),nu(t,!1,o,n,a);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===gs(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}nu(t,!0,n,null,a);break;case"together":nu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ou(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function au(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Qu|=t.lanes,0==(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(xt(153));if(null!==t.child){for(n=Kd(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Kd(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function iu(e,t){if(!xl)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function lu(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function su(e,t,n){var r=t.pendingProps;switch(vl(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lu(t),null;case 1:case 17:return Ki(t.type)&&Zi(),lu(t),null;case 3:return r=t.stateNode,ps(),Bi(Ui),Bi(Hi),bs(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Ll(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==Sl&&(Sd(Sl),Sl=null))),Gc(e,t),lu(t),null;case 5:hs(t);var o=us(cs.current);if(n=t.type,null!==e&&null!=t.stateNode)Kc(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(xt(166));return lu(t),null}if(e=us(ls.current),Ll(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[Oi]=t,r[_i]=a,e=0!=(1&t.mode),n){case"dialog":ti("cancel",r),ti("close",r);break;case"iframe":case"object":case"embed":ti("load",r);break;case"video":case"audio":for(o=0;o<Qa.length;o++)ti(Qa[o],r);break;case"source":ti("error",r);break;case"img":case"image":case"link":ti("error",r),ti("load",r);break;case"details":ti("toggle",r);break;case"input":pn(r,a),ti("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},ti("invalid",r);break;case"textarea":xn(r,a),ti("invalid",r)}for(var i in Nn(n,a),o=null,a)if(a.hasOwnProperty(i)){var l=a[i];"children"===i?"string"==typeof l?r.textContent!==l&&(!0!==a.suppressHydrationWarning&&hi(r.textContent,l,e),o=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(!0!==a.suppressHydrationWarning&&hi(r.textContent,l,e),o=["children",""+l]):wt.hasOwnProperty(i)&&null!=l&&"onScroll"===i&&ti("scroll",r)}switch(n){case"input":sn(r),mn(r,a,!0);break;case"textarea":sn(r),wn(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=mi)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{i=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=En(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=i.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),"select"===n&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[Oi]=t,e[_i]=r,Vc(e,t,!1,!1),t.stateNode=e;e:{switch(i=qn(n,r),n){case"dialog":ti("cancel",e),ti("close",e),o=r;break;case"iframe":case"object":case"embed":ti("load",e),o=r;break;case"video":case"audio":for(o=0;o<Qa.length;o++)ti(Qa[o],e);o=r;break;case"source":ti("error",e),o=r;break;case"img":case"image":case"link":ti("error",e),ti("load",e),o=r;break;case"details":ti("toggle",e),o=r;break;case"input":pn(e,r),o=dn(e,r),ti("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Jt({},r,{value:void 0}),ti("invalid",e);break;case"textarea":xn(e,r),o=yn(e,r),ti("invalid",e)}for(a in Nn(n,o),l=o)if(l.hasOwnProperty(a)){var s=l[a];"style"===a?Pn(e,s):"dangerouslySetInnerHTML"===a?null!=(s=s?s.__html:void 0)&&Ln(e,s):"children"===a?"string"==typeof s?("textarea"!==n||""!==s)&&On(e,s):"number"==typeof s&&On(e,""+s):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(wt.hasOwnProperty(a)?null!=s&&"onScroll"===a&&ti("scroll",e):null!=s&&Nt(e,a,s,i))}switch(n){case"input":sn(e),mn(e,r,!1);break;case"textarea":sn(e),wn(e);break;case"option":null!=r.value&&e.setAttribute("value",""+an(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?bn(e,!!r.multiple,a,!1):null!=r.defaultValue&&bn(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=mi)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return lu(t),null;case 6:if(e&&null!=t.stateNode)Zc(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(xt(166));if(n=us(cs.current),us(ls.current),Ll(t)){if(r=t.stateNode,n=t.memoizedProps,r[Oi]=t,(a=r.nodeValue!==n)&&null!==(e=bl))switch(e.tag){case 3:hi(r.nodeValue,n,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&hi(r.nodeValue,n,0!=(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Oi]=t,t.stateNode=r}return lu(t),null;case 13:if(Bi(ms),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(xl&&null!==yl&&0!=(1&t.mode)&&0==(128&t.flags))Ol(),_l(),t.flags|=98560,a=!1;else if(a=Ll(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(xt(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(xt(317));a[Oi]=t}else _l(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;lu(t),a=!1}else null!==Sl&&(Sd(Sl),Sl=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!=(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ms.current)?0===Zu&&(Zu=3):Id())),null!==t.updateQueue&&(t.flags|=4),lu(t),null);case 4:return ps(),Gc(e,t),null===e&&oi(t.stateNode.containerInfo),lu(t),null;case 10:return Wl(t.type._context),lu(t),null;case 19:if(Bi(ms),null===(a=t.memoizedState))return lu(t),null;if(r=0!=(128&t.flags),null===(i=a.rendering))if(r)iu(a,!1);else{if(0!==Zu||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(i=gs(e))){for(t.flags|=128,iu(a,!1),null!==(r=i.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(i=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=i.childLanes,a.lanes=i.lanes,a.child=i.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=i.memoizedProps,a.memoizedState=i.memoizedState,a.updateQueue=i.updateQueue,a.type=i.type,e=i.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return $i(ms,1&ms.current|2),t.child}e=e.sibling}null!==a.tail&&fr()>rd&&(t.flags|=128,r=!0,iu(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=gs(i))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),iu(a,!0),null===a.tail&&"hidden"===a.tailMode&&!i.alternate&&!xl)return lu(t),null}else 2*fr()-a.renderingStartTime>rd&&1073741824!==n&&(t.flags|=128,r=!0,iu(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(null!==(n=a.last)?n.sibling=i:t.child=i,a.last=i)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=fr(),t.sibling=null,n=ms.current,$i(ms,r?1&n|2:1&n),t):(lu(t),null);case 22:case 23:return Rd(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!=(1&t.mode)?0!=(1073741824&Gu)&&(lu(t),6&t.subtreeFlags&&(t.flags|=8192)):lu(t),null;case 24:case 25:return null}throw Error(xt(156,t.tag))}function cu(e,t){switch(vl(t),t.tag){case 1:return Ki(t.type)&&Zi(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ps(),Bi(Ui),Bi(Hi),bs(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return hs(t),null;case 13:if(Bi(ms),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(xt(340));_l()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Bi(ms),null;case 4:return ps(),null;case 10:return Wl(t.type._context),null;case 22:case 23:return Rd(),null;default:return null}}Vc=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Gc=function(){},Kc=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,us(ls.current);var a,i=null;switch(n){case"input":o=dn(e,o),r=dn(e,r),i=[];break;case"select":o=Jt({},o,{value:void 0}),r=Jt({},r,{value:void 0}),i=[];break;case"textarea":o=yn(e,o),r=yn(e,r),i=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=mi)}for(c in Nn(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var l=o[c];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(wt.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var s=r[c];if(l=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&s!==l&&(null!=s||null!=l))if("style"===c)if(l){for(a in l)!l.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in s)s.hasOwnProperty(a)&&l[a]!==s[a]&&(n||(n={}),n[a]=s[a])}else n||(i||(i=[]),i.push(c,n)),n=s;else"dangerouslySetInnerHTML"===c?(s=s?s.__html:void 0,l=l?l.__html:void 0,null!=s&&l!==s&&(i=i||[]).push(c,s)):"children"===c?"string"!=typeof s&&"number"!=typeof s||(i=i||[]).push(c,""+s):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(wt.hasOwnProperty(c)?(null!=s&&"onScroll"===c&&ti("scroll",e),i||l===s||(i=[])):(i=i||[]).push(c,s))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}},Zc=function(e,t,n,r){n!==r&&(t.flags|=4)};var uu=!1,du=!1,pu="function"==typeof WeakSet?WeakSet:Set,fu=null;function hu(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){jd(e,t,n)}else n.current=null}function mu(e,t,n){try{n()}catch(n){jd(e,t,n)}}var gu=!1;function vu(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var a=o.destroy;o.destroy=void 0,void 0!==a&&mu(t,n,a)}o=o.next}while(o!==r)}}function bu(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function yu(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function xu(e){var t=e.alternate;null!==t&&(e.alternate=null,xu(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[Oi],delete t[_i],delete t[Ti],delete t[Pi],delete t[Mi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Su(e){return 5===e.tag||3===e.tag||4===e.tag}function wu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Su(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Eu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=mi));else if(4!==r&&null!==(e=e.child))for(Eu(e,t,n),e=e.sibling;null!==e;)Eu(e,t,n),e=e.sibling}function Cu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(Cu(e,t,n),e=e.sibling;null!==e;)Cu(e,t,n),e=e.sibling}var ku=null,Ru=!1;function Lu(e,t,n){for(n=n.child;null!==n;)Ou(e,t,n),n=n.sibling}function Ou(e,t,n){if(Sr&&"function"==typeof Sr.onCommitFiberUnmount)try{Sr.onCommitFiberUnmount(xr,n)}catch(e){}switch(n.tag){case 5:du||hu(n,t);case 6:var r=ku,o=Ru;ku=null,Lu(e,t,n),Ru=o,null!==(ku=r)&&(Ru?(e=ku,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ku.removeChild(n.stateNode));break;case 18:null!==ku&&(Ru?(e=ku,n=n.stateNode,8===e.nodeType?Ci(e.parentNode,n):1===e.nodeType&&Ci(e,n),oo(e)):Ci(ku,n.stateNode));break;case 4:r=ku,o=Ru,ku=n.stateNode.containerInfo,Ru=!0,Lu(e,t,n),ku=r,Ru=o;break;case 0:case 11:case 14:case 15:if(!du&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var a=o,i=a.destroy;a=a.tag,void 0!==i&&(0!=(2&a)||0!=(4&a))&&mu(n,t,i),o=o.next}while(o!==r)}Lu(e,t,n);break;case 1:if(!du&&(hu(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){jd(n,t,e)}Lu(e,t,n);break;case 21:Lu(e,t,n);break;case 22:1&n.mode?(du=(r=du)||null!==n.memoizedState,Lu(e,t,n),du=r):Lu(e,t,n);break;default:Lu(e,t,n)}}function _u(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new pu),t.forEach((function(t){var r=Wd.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Iu(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,i=t,l=i;e:for(;null!==l;){switch(l.tag){case 5:ku=l.stateNode,Ru=!1;break e;case 3:case 4:ku=l.stateNode.containerInfo,Ru=!0;break e}l=l.return}if(null===ku)throw Error(xt(160));Ou(a,i,o),ku=null,Ru=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(e){jd(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)Tu(t,e),t=t.sibling}function Tu(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Iu(t,e),Pu(e),4&r){try{vu(3,e,e.return),bu(3,e)}catch(t){jd(e,e.return,t)}try{vu(5,e,e.return)}catch(t){jd(e,e.return,t)}}break;case 1:Iu(t,e),Pu(e),512&r&&null!==n&&hu(n,n.return);break;case 5:if(Iu(t,e),Pu(e),512&r&&null!==n&&hu(n,n.return),32&e.flags){var o=e.stateNode;try{On(o,"")}catch(t){jd(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,i=null!==n?n.memoizedProps:a,l=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===l&&"radio"===a.type&&null!=a.name&&fn(o,a),qn(l,i);var c=qn(l,a);for(i=0;i<s.length;i+=2){var u=s[i],d=s[i+1];"style"===u?Pn(o,d):"dangerouslySetInnerHTML"===u?Ln(o,d):"children"===u?On(o,d):Nt(o,u,d,c)}switch(l){case"input":hn(o,a);break;case"textarea":Sn(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var f=a.value;null!=f?bn(o,!!a.multiple,f,!1):p!==!!a.multiple&&(null!=a.defaultValue?bn(o,!!a.multiple,a.defaultValue,!0):bn(o,!!a.multiple,a.multiple?[]:"",!1))}o[_i]=a}catch(t){jd(e,e.return,t)}}break;case 6:if(Iu(t,e),Pu(e),4&r){if(null===e.stateNode)throw Error(xt(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){jd(e,e.return,t)}}break;case 3:if(Iu(t,e),Pu(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{oo(t.containerInfo)}catch(t){jd(e,e.return,t)}break;case 4:default:Iu(t,e),Pu(e);break;case 13:Iu(t,e),Pu(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(nd=fr())),4&r&&_u(e);break;case 22:if(u=null!==n&&null!==n.memoizedState,1&e.mode?(du=(c=du)||u,Iu(t,e),du=c):Iu(t,e),Pu(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!u&&0!=(1&e.mode))for(fu=e,u=e.child;null!==u;){for(d=fu=u;null!==fu;){switch(f=(p=fu).child,p.tag){case 0:case 11:case 14:case 15:vu(4,p,p.return);break;case 1:hu(p,p.return);var h=p.stateNode;if("function"==typeof h.componentWillUnmount){r=p,n=p.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){jd(r,n,e)}}break;case 5:hu(p,p.return);break;case 22:if(null!==p.memoizedState){zu(d);continue}}null!==f?(f.return=p,fu=f):zu(d)}u=u.sibling}e:for(u=null,d=e;;){if(5===d.tag){if(null===u){u=d;try{o=d.stateNode,c?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=d.stateNode,i=null!=(s=d.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,l.style.display=Tn("display",i))}catch(t){jd(e,e.return,t)}}}else if(6===d.tag){if(null===u)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){jd(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Iu(t,e),Pu(e),4&r&&_u(e);case 21:}}function Pu(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(Su(n)){var r=n;break e}n=n.return}throw Error(xt(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(On(o,""),r.flags&=-33),Cu(e,wu(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;Eu(e,wu(e),a);break;default:throw Error(xt(161))}}catch(t){jd(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Mu(e,t,n){fu=e,Nu(e)}function Nu(e,t,n){for(var r=0!=(1&e.mode);null!==fu;){var o=fu,a=o.child;if(22===o.tag&&r){var i=null!==o.memoizedState||uu;if(!i){var l=o.alternate,s=null!==l&&null!==l.memoizedState||du;l=uu;var c=du;if(uu=i,(du=s)&&!c)for(fu=o;null!==fu;)s=(i=fu).child,22===i.tag&&null!==i.memoizedState?Du(o):null!==s?(s.return=i,fu=s):Du(o);for(;null!==a;)fu=a,Nu(a),a=a.sibling;fu=o,uu=l,du=c}qu(e)}else 0!=(8772&o.subtreeFlags)&&null!==a?(a.return=o,fu=a):qu(e)}}function qu(e){for(;null!==fu;){var t=fu;if(0!=(8772&t.flags)){var n=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:du||bu(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!du)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:vc(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&as(t,a,r);break;case 3:var i=t.updateQueue;if(null!==i){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}as(t,i,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var u=c.memoizedState;if(null!==u){var d=u.dehydrated;null!==d&&oo(d)}}}break;default:throw Error(xt(163))}du||512&t.flags&&yu(t)}catch(e){jd(t,t.return,e)}}if(t===e){fu=null;break}if(null!==(n=t.sibling)){n.return=t.return,fu=n;break}fu=t.return}}function zu(e){for(;null!==fu;){var t=fu;if(t===e){fu=null;break}var n=t.sibling;if(null!==n){n.return=t.return,fu=n;break}fu=t.return}}function Du(e){for(;null!==fu;){var t=fu;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{bu(4,t)}catch(e){jd(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){jd(t,o,e)}}var a=t.return;try{yu(t)}catch(e){jd(t,a,e)}break;case 5:var i=t.return;try{yu(t)}catch(e){jd(t,i,e)}}}catch(e){jd(t,t.return,e)}if(t===e){fu=null;break}var l=t.sibling;if(null!==l){l.return=t.return,fu=l;break}fu=t.return}}var Au,ju=Math.ceil,Fu=qt.ReactCurrentDispatcher,Bu=qt.ReactCurrentOwner,$u=qt.ReactCurrentBatchConfig,Wu=0,Hu=null,Uu=null,Vu=0,Gu=0,Ku=Fi(0),Zu=0,Xu=null,Qu=0,Ju=0,Yu=0,ed=null,td=null,nd=0,rd=1/0,od=null,ad=!1,id=null,ld=null,sd=!1,cd=null,ud=0,dd=0,pd=null,fd=-1,hd=0;function md(){return 0!=(6&Wu)?fr():-1!==fd?fd:fd=fr()}function gd(e){return 0==(1&e.mode)?1:0!=(2&Wu)&&0!==Vu?Vu&-Vu:null!==Tl.transition?(0===hd&&(hd=Tr()),hd):0!==(e=qr)?e:e=void 0===(e=window.event)?16:fo(e.type)}function vd(e,t,n,r){if(50<dd)throw dd=0,pd=null,Error(xt(185));Mr(e,n,r),0!=(2&Wu)&&e===Hu||(e===Hu&&(0==(2&Wu)&&(Ju|=n),4===Zu&&wd(e,Vu)),bd(e,r),1===n&&0===Wu&&0==(1&t.mode)&&(rd=fr()+500,tl&&ol()))}function bd(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,a=e.pendingLanes;0<a;){var i=31-wr(a),l=1<<i,s=o[i];-1===s?0!=(l&n)&&0==(l&r)||(o[i]=_r(l,t)):s<=t&&(e.expiredLanes|=l),a&=~l}}(e,t);var r=Or(e,e===Hu?Vu:0);if(0===r)null!==n&&ur(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&ur(n),1===t)0===e.tag?function(e){tl=!0,rl(e)}(Ed.bind(null,e)):rl(Ed.bind(null,e)),wi((function(){0==(6&Wu)&&ol()})),n=null;else{switch(zr(r)){case 1:n=mr;break;case 4:n=gr;break;case 16:default:n=vr;break;case 536870912:n=yr}n=Hd(n,yd.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function yd(e,t){if(fd=-1,hd=0,0!=(6&Wu))throw Error(xt(327));var n=e.callbackNode;if(Dd()&&e.callbackNode!==n)return null;var r=Or(e,e===Hu?Vu:0);if(0===r)return null;if(0!=(30&r)||0!=(r&e.expiredLanes)||t)t=Td(e,r);else{t=r;var o=Wu;Wu|=2;var a=_d();for(Hu===e&&Vu===t||(od=null,rd=fr()+500,Ld(e,t));;)try{Md();break}catch(t){Od(e,t)}$l(),Fu.current=a,Wu=o,null!==Uu?t=0:(Hu=null,Vu=0,t=Zu)}if(0!==t){if(2===t&&(0!==(o=Ir(e))&&(r=o,t=xd(e,o))),1===t)throw n=Xu,Ld(e,0),wd(e,r),bd(e,fr()),n;if(6===t)wd(e,r);else{if(o=e.current.alternate,0==(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],a=o.getSnapshot;o=o.value;try{if(!Ea(a(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)&&(2===(t=Td(e,r))&&(0!==(a=Ir(e))&&(r=a,t=xd(e,a))),1===t))throw n=Xu,Ld(e,0),wd(e,r),bd(e,fr()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(xt(345));case 2:case 5:zd(e,td,od);break;case 3:if(wd(e,r),(130023424&r)===r&&10<(t=nd+500-fr())){if(0!==Or(e,0))break;if(((o=e.suspendedLanes)&r)!==r){md(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=yi(zd.bind(null,e,td,od),t);break}zd(e,td,od);break;case 4:if(wd(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var i=31-wr(r);a=1<<i,(i=t[i])>o&&(o=i),r&=~a}if(r=o,10<(r=(120>(r=fr()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ju(r/1960))-r)){e.timeoutHandle=yi(zd.bind(null,e,td,od),r);break}zd(e,td,od);break;default:throw Error(xt(329))}}}return bd(e,fr()),e.callbackNode===n?yd.bind(null,e):null}function xd(e,t){var n=ed;return e.current.memoizedState.isDehydrated&&(Ld(e,t).flags|=256),2!==(e=Td(e,t))&&(t=td,td=n,null!==t&&Sd(t)),e}function Sd(e){null===td?td=e:td.push.apply(td,e)}function wd(e,t){for(t&=~Yu,t&=~Ju,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-wr(t),r=1<<n;e[n]=-1,t&=~r}}function Ed(e){if(0!=(6&Wu))throw Error(xt(327));Dd();var t=Or(e,0);if(0==(1&t))return bd(e,fr()),null;var n=Td(e,t);if(0!==e.tag&&2===n){var r=Ir(e);0!==r&&(t=r,n=xd(e,r))}if(1===n)throw n=Xu,Ld(e,0),wd(e,t),bd(e,fr()),n;if(6===n)throw Error(xt(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,zd(e,td,od),bd(e,fr()),null}function Cd(e,t){var n=Wu;Wu|=1;try{return e(t)}finally{0===(Wu=n)&&(rd=fr()+500,tl&&ol())}}function kd(e){null!==cd&&0===cd.tag&&0==(6&Wu)&&Dd();var t=Wu;Wu|=1;var n=$u.transition,r=qr;try{if($u.transition=null,qr=1,e)return e()}finally{qr=r,$u.transition=n,0==(6&(Wu=t))&&ol()}}function Rd(){Gu=Ku.current,Bi(Ku)}function Ld(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,xi(n)),null!==Uu)for(n=Uu.return;null!==n;){var r=n;switch(vl(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Zi();break;case 3:ps(),Bi(Ui),Bi(Hi),bs();break;case 5:hs(r);break;case 4:ps();break;case 13:case 19:Bi(ms);break;case 10:Wl(r.type._context);break;case 22:case 23:Rd()}n=n.return}if(Hu=e,Uu=e=Kd(e.current,null),Vu=Gu=t,Zu=0,Xu=null,Yu=Ju=Qu=0,td=ed=null,null!==Gl){for(t=0;t<Gl.length;t++)if(null!==(r=(n=Gl[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}Gl=null}return e}function Od(e,t){for(;;){var n=Uu;try{if($l(),ys.current=fc,ks){for(var r=ws.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ks=!1}if(Ss=0,Cs=Es=ws=null,Rs=!1,Ls=0,Bu.current=null,null===n||null===n.return){Zu=1,Xu=t,Uu=null;break}e:{var a=e,i=n.return,l=n,s=t;if(t=Vu,l.flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var c=s,u=l,d=u.tag;if(0==(1&u.mode)&&(0===d||11===d||15===d)){var p=u.alternate;p?(u.updateQueue=p.updateQueue,u.memoizedState=p.memoizedState,u.lanes=p.lanes):(u.updateQueue=null,u.memoizedState=null)}var f=Tc(i);if(null!==f){f.flags&=-257,Pc(f,i,l,0,t),1&f.mode&&Ic(a,c,t),s=c;var h=(t=f).updateQueue;if(null===h){var m=new Set;m.add(s),t.updateQueue=m}else h.add(s);break e}if(0==(1&t)){Ic(a,c,t),Id();break e}s=Error(xt(426))}else if(xl&&1&l.mode){var g=Tc(i);if(null!==g){0==(65536&g.flags)&&(g.flags|=256),Pc(g,i,l,0,t),Il(Cc(s,l));break e}}a=s=Cc(s,l),4!==Zu&&(Zu=2),null===ed?ed=[a]:ed.push(a),a=i;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,rs(a,Oc(0,s,t));break e;case 1:l=s;var v=a.type,b=a.stateNode;if(0==(128&a.flags)&&("function"==typeof v.getDerivedStateFromError||null!==b&&"function"==typeof b.componentDidCatch&&(null===ld||!ld.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,rs(a,_c(a,l,t));break e}}a=a.return}while(null!==a)}qd(n)}catch(e){t=e,Uu===n&&null!==n&&(Uu=n=n.return);continue}break}}function _d(){var e=Fu.current;return Fu.current=fc,null===e?fc:e}function Id(){0!==Zu&&3!==Zu&&2!==Zu||(Zu=4),null===Hu||0==(268435455&Qu)&&0==(268435455&Ju)||wd(Hu,Vu)}function Td(e,t){var n=Wu;Wu|=2;var r=_d();for(Hu===e&&Vu===t||(od=null,Ld(e,t));;)try{Pd();break}catch(t){Od(e,t)}if($l(),Wu=n,Fu.current=r,null!==Uu)throw Error(xt(261));return Hu=null,Vu=0,Zu}function Pd(){for(;null!==Uu;)Nd(Uu)}function Md(){for(;null!==Uu&&!dr();)Nd(Uu)}function Nd(e){var t=Au(e.alternate,e,Gu);e.memoizedProps=e.pendingProps,null===t?qd(e):Uu=t,Bu.current=null}function qd(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(n=su(n,t,Gu)))return void(Uu=n)}else{if(null!==(n=cu(n,t)))return n.flags&=32767,void(Uu=n);if(null===e)return Zu=6,void(Uu=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Uu=t);Uu=t=e}while(null!==t);0===Zu&&(Zu=5)}function zd(e,t,n){var r=qr,o=$u.transition;try{$u.transition=null,qr=1,function(e,t,n,r){do{Dd()}while(null!==cd);if(0!=(6&Wu))throw Error(xt(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(xt(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-wr(n),a=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~a}}(e,a),e===Hu&&(Uu=Hu=null,Vu=0),0==(2064&n.subtreeFlags)&&0==(2064&n.flags)||sd||(sd=!0,Hd(vr,(function(){return Dd(),null}))),a=0!=(15990&n.flags),0!=(15990&n.subtreeFlags)||a){a=$u.transition,$u.transition=null;var i=qr;qr=1;var l=Wu;Wu|=4,Bu.current=null,function(e,t){if(gi=io,_a(e=Oa())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var i=0,l=-1,s=-1,c=0,u=0,d=e,p=null;t:for(;;){for(var f;d!==n||0!==o&&3!==d.nodeType||(l=i+o),d!==a||0!==r&&3!==d.nodeType||(s=i+r),3===d.nodeType&&(i+=d.nodeValue.length),null!==(f=d.firstChild);)p=d,d=f;for(;;){if(d===e)break t;if(p===n&&++c===o&&(l=i),p===a&&++u===r&&(s=i),null!==(f=d.nextSibling))break;p=(d=p).parentNode}d=f}n=-1===l||-1===s?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(vi={focusedElem:e,selectionRange:n},io=!1,fu=t;null!==fu;)if(e=(t=fu).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,fu=e;else for(;null!==fu;){t=fu;try{var h=t.alternate;if(0!=(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var m=h.memoizedProps,g=h.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:vc(t.type,m),g);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var y=t.stateNode.containerInfo;1===y.nodeType?y.textContent="":9===y.nodeType&&y.documentElement&&y.removeChild(y.documentElement);break;default:throw Error(xt(163))}}catch(e){jd(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,fu=e;break}fu=t.return}h=gu,gu=!1}(e,n),Tu(n,e),Ia(vi),io=!!gi,vi=gi=null,e.current=n,Mu(n),pr(),Wu=l,qr=i,$u.transition=a}else e.current=n;if(sd&&(sd=!1,cd=e,ud=o),a=e.pendingLanes,0===a&&(ld=null),function(e){if(Sr&&"function"==typeof Sr.onCommitFiberRoot)try{Sr.onCommitFiberRoot(xr,e,void 0,128==(128&e.current.flags))}catch(e){}}(n.stateNode),bd(e,fr()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(ad)throw ad=!1,e=id,id=null,e;0!=(1&ud)&&0!==e.tag&&Dd(),a=e.pendingLanes,0!=(1&a)?e===pd?dd++:(dd=0,pd=e):dd=0,ol()}(e,t,n,r)}finally{$u.transition=o,qr=r}return null}function Dd(){if(null!==cd){var e=zr(ud),t=$u.transition,n=qr;try{if($u.transition=null,qr=16>e?16:e,null===cd)var r=!1;else{if(e=cd,cd=null,ud=0,0!=(6&Wu))throw Error(xt(331));var o=Wu;for(Wu|=4,fu=e.current;null!==fu;){var a=fu,i=a.child;if(0!=(16&fu.flags)){var l=a.deletions;if(null!==l){for(var s=0;s<l.length;s++){var c=l[s];for(fu=c;null!==fu;){var u=fu;switch(u.tag){case 0:case 11:case 15:vu(8,u,a)}var d=u.child;if(null!==d)d.return=u,fu=d;else for(;null!==fu;){var p=(u=fu).sibling,f=u.return;if(xu(u),u===c){fu=null;break}if(null!==p){p.return=f,fu=p;break}fu=f}}}var h=a.alternate;if(null!==h){var m=h.child;if(null!==m){h.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(null!==m)}}fu=a}}if(0!=(2064&a.subtreeFlags)&&null!==i)i.return=a,fu=i;else e:for(;null!==fu;){if(0!=(2048&(a=fu).flags))switch(a.tag){case 0:case 11:case 15:vu(9,a,a.return)}var v=a.sibling;if(null!==v){v.return=a.return,fu=v;break e}fu=a.return}}var b=e.current;for(fu=b;null!==fu;){var y=(i=fu).child;if(0!=(2064&i.subtreeFlags)&&null!==y)y.return=i,fu=y;else e:for(i=b;null!==fu;){if(0!=(2048&(l=fu).flags))try{switch(l.tag){case 0:case 11:case 15:bu(9,l)}}catch(e){jd(l,l.return,e)}if(l===i){fu=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,fu=x;break e}fu=l.return}}if(Wu=o,ol(),Sr&&"function"==typeof Sr.onPostCommitFiberRoot)try{Sr.onPostCommitFiberRoot(xr,e)}catch(e){}r=!0}return r}finally{qr=n,$u.transition=t}}return!1}function Ad(e,t,n){e=ts(e,t=Oc(0,t=Cc(n,t),1),1),t=md(),null!==e&&(Mr(e,1,t),bd(e,t))}function jd(e,t,n){if(3===e.tag)Ad(e,e,n);else for(;null!==t;){if(3===t.tag){Ad(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===ld||!ld.has(r))){t=ts(t,e=_c(t,e=Cc(n,e),1),1),e=md(),null!==t&&(Mr(t,1,e),bd(t,e));break}}t=t.return}}function Fd(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=md(),e.pingedLanes|=e.suspendedLanes&n,Hu===e&&(Vu&n)===n&&(4===Zu||3===Zu&&(130023424&Vu)===Vu&&500>fr()-nd?Ld(e,0):Yu|=n),bd(e,t)}function Bd(e,t){0===t&&(0==(1&e.mode)?t=1:(t=Rr,0==(130023424&(Rr<<=1))&&(Rr=4194304)));var n=md();null!==(e=Xl(e,t))&&(Mr(e,t,n),bd(e,n))}function $d(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Bd(e,n)}function Wd(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(xt(314))}null!==r&&r.delete(t),Bd(e,n)}function Hd(e,t){return cr(e,t)}function Ud(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Vd(e,t,n,r){return new Ud(e,t,n,r)}function Gd(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Kd(e,t){var n=e.alternate;return null===n?((n=Vd(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Zd(e,t,n,r,o,a){var i=2;if(r=e,"function"==typeof e)Gd(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case At:return Xd(n.children,o,a,t);case jt:i=8,o|=8;break;case Ft:return(e=Vd(12,n,t,2|o)).elementType=Ft,e.lanes=a,e;case Ht:return(e=Vd(13,n,t,o)).elementType=Ht,e.lanes=a,e;case Ut:return(e=Vd(19,n,t,o)).elementType=Ut,e.lanes=a,e;case Kt:return Qd(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Bt:i=10;break e;case $t:i=9;break e;case Wt:i=11;break e;case Vt:i=14;break e;case Gt:i=16,r=null;break e}throw Error(xt(130,null==e?e:typeof e,""))}return(t=Vd(i,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Xd(e,t,n,r){return(e=Vd(7,e,r,t)).lanes=n,e}function Qd(e,t,n,r){return(e=Vd(22,e,r,t)).elementType=Kt,e.lanes=n,e.stateNode={isHidden:!1},e}function Jd(e,t,n){return(e=Vd(6,e,null,t)).lanes=n,e}function Yd(e,t,n){return(t=Vd(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ep(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Pr(0),this.expirationTimes=Pr(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pr(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function tp(e,t,n,r,o,a,i,l,s){return e=new ep(e,t,n,l,s),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Vd(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Jl(a),e}function np(e){if(!e)return Wi;e:{if(or(e=e._reactInternals)!==e||1!==e.tag)throw Error(xt(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ki(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(xt(171))}if(1===e.tag){var n=e.type;if(Ki(n))return Qi(e,n,t)}return t}function rp(e,t,n,r,o,a,i,l,s){return(e=tp(n,r,!0,e,0,a,0,l,s)).context=np(null),n=e.current,(a=es(r=md(),o=gd(n))).callback=null!=t?t:null,ts(n,a,o),e.current.lanes=o,Mr(e,o,r),bd(e,r),e}function op(e,t,n,r){var o=t.current,a=md(),i=gd(o);return n=np(n),null===t.context?t.context=n:t.pendingContext=n,(t=es(a,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=ts(o,t,i))&&(vd(e,o,i,a),ns(e,o,i)),i}function ap(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function ip(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function lp(e,t){ip(e,t),(e=e.alternate)&&ip(e,t)}Au=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ui.current)Nc=!0;else{if(0==(e.lanes&n)&&0==(128&t.flags))return Nc=!1,function(e,t,n){switch(t.tag){case 3:Hc(t),_l();break;case 5:fs(t);break;case 1:Ki(t.type)&&Ji(t);break;case 4:ds(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;$i(Al,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?($i(ms,1&ms.current),t.flags|=128,null):0!=(n&t.child.childLanes)?Jc(e,t,n):($i(ms,1&ms.current),null!==(e=au(e,t,n))?e.sibling:null);$i(ms,1&ms.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(128&e.flags)){if(r)return ru(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),$i(ms,ms.current),r)break;return null;case 22:case 23:return t.lanes=0,jc(e,t,n)}return au(e,t,n)}(e,t,n);Nc=0!=(131072&e.flags)}else Nc=!1,xl&&0!=(1048576&t.flags)&&ml(t,sl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;ou(e,t),e=t.pendingProps;var o=Gi(t,Hi.current);Ul(t,n),o=Ts(null,t,r,e,o,n);var a=Ps();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ki(r)?(a=!0,Ji(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Jl(t),o.updater=yc,t.stateNode=o,o._reactInternals=t,Ec(t,r,e,n),t=Wc(null,t,r,!0,a,n)):(t.tag=0,xl&&a&&gl(t),qc(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(ou(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Gd(e)?1:0;if(null!=e){if((e=e.$$typeof)===Wt)return 11;if(e===Vt)return 14}return 2}(r),e=vc(r,e),o){case 0:t=Bc(null,t,r,e,n);break e;case 1:t=$c(null,t,r,e,n);break e;case 11:t=zc(null,t,r,e,n);break e;case 14:t=Dc(null,t,r,vc(r.type,e),n);break e}throw Error(xt(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Bc(e,t,r,o=t.elementType===r?o:vc(r,o),n);case 1:return r=t.type,o=t.pendingProps,$c(e,t,r,o=t.elementType===r?o:vc(r,o),n);case 3:e:{if(Hc(t),null===e)throw Error(xt(387));r=t.pendingProps,o=(a=t.memoizedState).element,Yl(e,t),os(t,r,null,n);var i=t.memoizedState;if(r=i.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Uc(e,t,r,n,o=Cc(Error(xt(423)),t));break e}if(r!==o){t=Uc(e,t,r,n,o=Cc(Error(xt(424)),t));break e}for(yl=ki(t.stateNode.containerInfo.firstChild),bl=t,xl=!0,Sl=null,n=Dl(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(_l(),r===o){t=au(e,t,n);break e}qc(e,t,r,n)}t=t.child}return t;case 5:return fs(t),null===e&&kl(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,i=o.children,bi(r,o)?i=null:null!==a&&bi(r,a)&&(t.flags|=32),Fc(e,t),qc(e,t,i,n),t.child;case 6:return null===e&&kl(t),null;case 13:return Jc(e,t,n);case 4:return ds(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=zl(t,null,r,n):qc(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,zc(e,t,r,o=t.elementType===r?o:vc(r,o),n);case 7:return qc(e,t,t.pendingProps,n),t.child;case 8:case 12:return qc(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,i=o.value,$i(Al,r._currentValue),r._currentValue=i,null!==a)if(Ea(a.value,i)){if(a.children===o.children&&!Ui.current){t=au(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){i=a.child;for(var s=l.firstContext;null!==s;){if(s.context===r){if(1===a.tag){(s=es(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var u=(c=c.shared).pending;null===u?s.next=s:(s.next=u.next,u.next=s),c.pending=s}}a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),Hl(a.return,n,t),l.lanes|=n;break}s=s.next}}else if(10===a.tag)i=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(i=a.return))throw Error(xt(341));i.lanes|=n,null!==(l=i.alternate)&&(l.lanes|=n),Hl(i,n,t),i=a.sibling}else i=a.child;if(null!==i)i.return=a;else for(i=a;null!==i;){if(i===t){i=null;break}if(null!==(a=i.sibling)){a.return=i.return,i=a;break}i=i.return}a=i}qc(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ul(t,n),r=r(o=Vl(o)),t.flags|=1,qc(e,t,r,n),t.child;case 14:return o=vc(r=t.type,t.pendingProps),Dc(e,t,r,o=vc(r.type,o),n);case 15:return Ac(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:vc(r,o),ou(e,t),t.tag=1,Ki(r)?(e=!0,Ji(t)):e=!1,Ul(t,n),Sc(t,r,o),Ec(t,r,o,n),Wc(null,t,r,!0,e,n);case 19:return ru(e,t,n);case 22:return jc(e,t,n)}throw Error(xt(156,t.tag))};var sp="function"==typeof reportError?reportError:function(e){console.error(e)};function cp(e){this._internalRoot=e}function up(e){this._internalRoot=e}function dp(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function pp(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function fp(){}function hp(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a;if("function"==typeof o){var l=o;o=function(){var e=ap(i);l.call(e)}}op(t,i,e,o)}else i=function(e,t,n,r,o){if(o){if("function"==typeof r){var a=r;r=function(){var e=ap(i);a.call(e)}}var i=rp(t,r,e,0,null,!1,0,"",fp);return e._reactRootContainer=i,e[Ii]=i.current,oi(8===e.nodeType?e.parentNode:e),kd(),i}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=ap(s);l.call(e)}}var s=tp(e,0,!1,null,0,!1,0,"",fp);return e._reactRootContainer=s,e[Ii]=s.current,oi(8===e.nodeType?e.parentNode:e),kd((function(){op(t,s,n,r)})),s}(n,t,e,o,r);return ap(i)}up.prototype.render=cp.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(xt(409));op(e,t,null,null)},up.prototype.unmount=cp.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;kd((function(){op(null,e,null,null)})),t[Ii]=null}},up.prototype.unstable_scheduleHydration=function(e){if(e){var t=Fr();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Zr.length&&0!==t&&t<Zr[n].priority;n++);Zr.splice(n,0,e),0===n&&Yr(e)}},Dr=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Lr(t.pendingLanes);0!==n&&(Nr(t,1|n),bd(t,fr()),0==(6&Wu)&&(rd=fr()+500,ol()))}break;case 13:kd((function(){var t=Xl(e,1);if(null!==t){var n=md();vd(t,e,1,n)}})),lp(e,1)}},Ar=function(e){if(13===e.tag){var t=Xl(e,134217728);if(null!==t)vd(t,e,134217728,md());lp(e,134217728)}},jr=function(e){if(13===e.tag){var t=gd(e),n=Xl(e,t);if(null!==n)vd(n,e,t,md());lp(e,t)}},Fr=function(){return qr},Br=function(e,t){var n=qr;try{return qr=e,t()}finally{qr=n}},An=function(e,t,n){switch(t){case"input":if(hn(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Di(r);if(!o)throw Error(xt(90));cn(r),hn(r,o)}}}break;case"textarea":Sn(e,n);break;case"select":null!=(t=n.value)&&bn(e,!!n.multiple,t,!1)}},Hn=Cd,Un=kd;var mp={usingClientEntryPoint:!1,Events:[qi,zi,Di,$n,Wn,Cd]},gp={findFiberByHostInstance:Ni,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},vp={bundleType:gp.bundleType,version:gp.version,rendererPackageName:gp.rendererPackageName,rendererConfig:gp.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:qt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=lr(e))?null:e.stateNode},findFiberByHostInstance:gp.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 bp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bp.isDisabled&&bp.supportsFiber)try{xr=bp.inject(vp),Sr=bp}catch(Rn){}}ht.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=mp,ht.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!dp(t))throw Error(xt(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Dt,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},ht.createRoot=function(e,t){if(!dp(e))throw Error(xt(299));var n=!1,r="",o=sp;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=tp(e,1,!1,null,0,n,0,r,o),e[Ii]=t.current,oi(8===e.nodeType?e.parentNode:e),new cp(t)},ht.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(xt(188));throw e=Object.keys(e).join(","),Error(xt(268,e))}return e=null===(e=lr(t))?null:e.stateNode},ht.flushSync=function(e){return kd(e)},ht.hydrate=function(e,t,n){if(!pp(t))throw Error(xt(200));return hp(null,e,t,!0,n)},ht.hydrateRoot=function(e,t,n){if(!dp(e))throw Error(xt(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",i=sp;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(i=n.onRecoverableError)),t=rp(t,null,e,1,null!=n?n:null,o,0,a,i),e[Ii]=t.current,oi(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new up(t)},ht.render=function(e,t,n){if(!pp(t))throw Error(xt(200));return hp(null,e,t,!1,n)},ht.unmountComponentAtNode=function(e){if(!pp(e))throw Error(xt(40));return!!e._reactRootContainer&&(kd((function(){hp(null,null,e,!1,(function(){e._reactRootContainer=null,e[Ii]=null}))})),!0)},ht.unstable_batchedUpdates=Cd,ht.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!pp(n))throw Error(xt(200));if(null==e||void 0===e._reactInternals)throw Error(xt(38));return hp(e,t,n,!1,r)},ht.version="18.3.1-next-f1338f8080-20240426",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),ft.exports=ht;var yp=ft.exports,xp=n(yp),Sp=yp;function wp(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}pt.createRoot=Sp.createRoot,pt.hydrateRoot=Sp.hydrateRoot;var Ep=Object.freeze({__proto__:null,default:wp}),Cp="$$material";function kp(){return kp=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},kp.apply(this,arguments)}function Rp(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Lp(){return Lp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lp.apply(this,arguments)}function Op(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var _p=/^((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)-.*))$/,Ip=Op((function(e){return _p.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var Tp=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}(),Pp="-ms-",Mp="-moz-",Np="-webkit-",qp="comm",zp="rule",Dp="decl",Ap="@keyframes",jp=Math.abs,Fp=String.fromCharCode,Bp=Object.assign;function $p(e){return e.trim()}function Wp(e,t,n){return e.replace(t,n)}function Hp(e,t){return e.indexOf(t)}function Up(e,t){return 0|e.charCodeAt(t)}function Vp(e,t,n){return e.slice(t,n)}function Gp(e){return e.length}function Kp(e){return e.length}function Zp(e,t){return t.push(e),e}var Xp=1,Qp=1,Jp=0,Yp=0,ef=0,tf="";function nf(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Xp,column:Qp,length:i,return:""}}function rf(e,t){return Bp(nf("",null,null,"",null,null,0),e,{length:-e.length},t)}function of(){return ef=Yp>0?Up(tf,--Yp):0,Qp--,10===ef&&(Qp=1,Xp--),ef}function af(){return ef=Yp<Jp?Up(tf,Yp++):0,Qp++,10===ef&&(Qp=1,Xp++),ef}function lf(){return Up(tf,Yp)}function sf(){return Yp}function cf(e,t){return Vp(tf,e,t)}function uf(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 df(e){return Xp=Qp=1,Jp=Gp(tf=e),Yp=0,[]}function pf(e){return tf="",e}function ff(e){return $p(cf(Yp-1,gf(91===e?e+2:40===e?e+1:e)))}function hf(e){for(;(ef=lf())&&ef<33;)af();return uf(e)>2||uf(ef)>3?"":" "}function mf(e,t){for(;--t&&af()&&!(ef<48||ef>102||ef>57&&ef<65||ef>70&&ef<97););return cf(e,sf()+(t<6&&32==lf()&&32==af()))}function gf(e){for(;af();)switch(ef){case e:return Yp;case 34:case 39:34!==e&&39!==e&&gf(ef);break;case 40:41===e&&gf(e);break;case 92:af()}return Yp}function vf(e,t){for(;af()&&e+ef!==57&&(e+ef!==84||47!==lf()););return"/*"+cf(t,Yp-1)+"*"+Fp(47===e?e:af())}function bf(e){for(;!uf(lf());)af();return cf(e,Yp)}function yf(e){return pf(xf("",null,null,null,[""],e=df(e),0,[0],e))}function xf(e,t,n,r,o,a,i,l,s){for(var c=0,u=0,d=i,p=0,f=0,h=0,m=1,g=1,v=1,b=0,y="",x=o,S=a,w=r,E=y;g;)switch(h=b,b=af()){case 40:if(108!=h&&58==Up(E,d-1)){-1!=Hp(E+=Wp(ff(b),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:E+=ff(b);break;case 9:case 10:case 13:case 32:E+=hf(h);break;case 92:E+=mf(sf()-1,7);continue;case 47:switch(lf()){case 42:case 47:Zp(wf(vf(af(),sf()),t,n),s);break;default:E+="/"}break;case 123*m:l[c++]=Gp(E)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==v&&(E=Wp(E,/\f/g,"")),f>0&&Gp(E)-d&&Zp(f>32?Ef(E+";",r,n,d-1):Ef(Wp(E," ","")+";",r,n,d-2),s);break;case 59:E+=";";default:if(Zp(w=Sf(E,t,n,c,u,o,l,y,x=[],S=[],d),a),123===b)if(0===u)xf(E,t,w,w,x,a,d,l,S);else switch(99===p&&110===Up(E,3)?100:p){case 100:case 108:case 109:case 115:xf(e,w,w,r&&Zp(Sf(e,w,w,0,0,o,l,y,o,x=[],d),S),o,S,d,l,r?x:S);break;default:xf(E,w,w,w,[""],S,0,l,S)}}c=u=f=0,m=v=1,y=E="",d=i;break;case 58:d=1+Gp(E),f=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==of())continue;switch(E+=Fp(b),b*m){case 38:v=u>0?1:(E+="\f",-1);break;case 44:l[c++]=(Gp(E)-1)*v,v=1;break;case 64:45===lf()&&(E+=ff(af())),p=lf(),u=d=Gp(y=E+=bf(sf())),b++;break;case 45:45===h&&2==Gp(E)&&(m=0)}}return a}function Sf(e,t,n,r,o,a,i,l,s,c,u){for(var d=o-1,p=0===o?a:[""],f=Kp(p),h=0,m=0,g=0;h<r;++h)for(var v=0,b=Vp(e,d+1,d=jp(m=i[h])),y=e;v<f;++v)(y=$p(m>0?p[v]+" "+b:Wp(b,/&\f/g,p[v])))&&(s[g++]=y);return nf(e,t,n,0===o?zp:l,s,c,u)}function wf(e,t,n){return nf(e,t,n,qp,Fp(ef),Vp(e,2,-2),0)}function Ef(e,t,n,r){return nf(e,t,n,Dp,Vp(e,0,r),Vp(e,r+1,-1),r)}function Cf(e,t){for(var n="",r=Kp(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function kf(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Dp:return e.return=e.return||e.value;case qp:return"";case Ap:return e.return=e.value+"{"+Cf(e.children,r)+"}";case zp:e.value=e.props.join(",")}return Gp(n=Cf(e.children,r))?e.return=e.value+"{"+n+"}":""}function Rf(e){var t=Kp(e);return function(n,r,o,a){for(var i="",l=0;l<t;l++)i+=e[l](n,r,o,a)||"";return i}}var Lf=function(e,t,n){for(var r=0,o=0;r=o,o=lf(),38===r&&12===o&&(t[n]=1),!uf(o);)af();return cf(e,Yp)},Of=function(e,t){return pf(function(e,t){var n=-1,r=44;do{switch(uf(r)){case 0:38===r&&12===lf()&&(t[n]=1),e[n]+=Lf(Yp-1,t,n);break;case 2:e[n]+=ff(r);break;case 4:if(44===r){e[++n]=58===lf()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Fp(r)}}while(r=af());return e}(df(e),t))},_f=new WeakMap,If=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||_f.get(n))&&!r){_f.set(e,!0);for(var o=[],a=Of(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]}}},Tf=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Pf(e,t){switch(function(e,t){return 45^Up(e,0)?(((t<<2^Up(e,0))<<2^Up(e,1))<<2^Up(e,2))<<2^Up(e,3):0}(e,t)){case 5103:return Np+"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 Np+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Np+e+Mp+e+Pp+e+e;case 6828:case 4268:return Np+e+Pp+e+e;case 6165:return Np+e+Pp+"flex-"+e+e;case 5187:return Np+e+Wp(e,/(\w+).+(:[^]+)/,Np+"box-$1$2"+Pp+"flex-$1$2")+e;case 5443:return Np+e+Pp+"flex-item-"+Wp(e,/flex-|-self/,"")+e;case 4675:return Np+e+Pp+"flex-line-pack"+Wp(e,/align-content|flex-|-self/,"")+e;case 5548:return Np+e+Pp+Wp(e,"shrink","negative")+e;case 5292:return Np+e+Pp+Wp(e,"basis","preferred-size")+e;case 6060:return Np+"box-"+Wp(e,"-grow","")+Np+e+Pp+Wp(e,"grow","positive")+e;case 4554:return Np+Wp(e,/([^-])(transform)/g,"$1"+Np+"$2")+e;case 6187:return Wp(Wp(Wp(e,/(zoom-|grab)/,Np+"$1"),/(image-set)/,Np+"$1"),e,"")+e;case 5495:case 3959:return Wp(e,/(image-set\([^]*)/,Np+"$1$`$1");case 4968:return Wp(Wp(e,/(.+:)(flex-)?(.*)/,Np+"box-pack:$3"+Pp+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Np+e+e;case 4095:case 3583:case 4068:case 2532:return Wp(e,/(.+)-inline(.+)/,Np+"$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(Gp(e)-1-t>6)switch(Up(e,t+1)){case 109:if(45!==Up(e,t+4))break;case 102:return Wp(e,/(.+:)(.+)-([^]+)/,"$1"+Np+"$2-$3$1"+Mp+(108==Up(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Hp(e,"stretch")?Pf(Wp(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Up(e,t+1))break;case 6444:switch(Up(e,Gp(e)-3-(~Hp(e,"!important")&&10))){case 107:return Wp(e,":",":"+Np)+e;case 101:return Wp(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Np+(45===Up(e,14)?"inline-":"")+"box$3$1"+Np+"$2$3$1"+Pp+"$2box$3")+e}break;case 5936:switch(Up(e,t+11)){case 114:return Np+e+Pp+Wp(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Np+e+Pp+Wp(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Np+e+Pp+Wp(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Np+e+Pp+e+e}return e}var Mf,Nf="undefined"!=typeof document,qf=Nf?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 Op((function(){var e={};return function(t){return e[t]}}))})),zf=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Dp:e.return=Pf(e.value,e.length);break;case Ap:return Cf([rf(e,{value:Wp(e.value,"@","@"+Np)})],r);case zp:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Cf([rf(e,{props:[Wp(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Cf([rf(e,{props:[Wp(t,/:(plac\w+)/,":"+Np+"input-$1")]}),rf(e,{props:[Wp(t,/:(plac\w+)/,":-moz-$1")]}),rf(e,{props:[Wp(t,/:(plac\w+)/,Pp+"input-$1")]})],r)}return""}))}}],Df=function(e){var t=e.key;if(Nf&&"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||zf,i={},l=[];Nf&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;l.push(e)})));var s,c=[If,Tf];if(Nf){var u,d=[kf,(s=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&s(e)})],p=Rf(c.concat(a,d));o=function(e,t,n,r){u=n,function(e){Cf(yf(e),p)}(e?e+"{"+t.styles+"}":t.styles),r&&(v.inserted[t.name]=!0)}}else{var f=[kf],h=Rf(c.concat(a,f)),m=qf(a)(t),g=function(e,t){var n=t.name;return void 0===m[n]&&(m[n]=function(e){return Cf(yf(e),h)}(e?e+"{"+t.styles+"}":t.styles)),m[n]};o=function(e,t,n,r){var o=t.name,a=g(e,t);return void 0===v.compat?(r&&(v.inserted[o]=!0),a):r?void(v.inserted[o]=a):a}}var v={key:t,sheet:new Tp({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return v.sheet.hydrate(l),v},Af={exports:{}},jf={},Ff=Symbol.for("react.element"),Bf=Symbol.for("react.portal"),$f=Symbol.for("react.fragment"),Wf=Symbol.for("react.strict_mode"),Hf=Symbol.for("react.profiler"),Uf=Symbol.for("react.provider"),Vf=Symbol.for("react.context"),Gf=Symbol.for("react.server_context"),Kf=Symbol.for("react.forward_ref"),Zf=Symbol.for("react.suspense"),Xf=Symbol.for("react.suspense_list"),Qf=Symbol.for("react.memo"),Jf=Symbol.for("react.lazy"),Yf=Symbol.for("react.offscreen");function eh(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Ff:switch(e=e.type){case $f:case Hf:case Wf:case Zf:case Xf:return e;default:switch(e=e&&e.$$typeof){case Gf:case Vf:case Kf:case Jf:case Qf:case Uf:return e;default:return t}}case Bf:return t}}}Mf=Symbol.for("react.module.reference"),jf.ContextConsumer=Vf,jf.ContextProvider=Uf,jf.Element=Ff,jf.ForwardRef=Kf,jf.Fragment=$f,jf.Lazy=Jf,jf.Memo=Qf,jf.Portal=Bf,jf.Profiler=Hf,jf.StrictMode=Wf,jf.Suspense=Zf,jf.SuspenseList=Xf,jf.isAsyncMode=function(){return!1},jf.isConcurrentMode=function(){return!1},jf.isContextConsumer=function(e){return eh(e)===Vf},jf.isContextProvider=function(e){return eh(e)===Uf},jf.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Ff},jf.isForwardRef=function(e){return eh(e)===Kf},jf.isFragment=function(e){return eh(e)===$f},jf.isLazy=function(e){return eh(e)===Jf},jf.isMemo=function(e){return eh(e)===Qf},jf.isPortal=function(e){return eh(e)===Bf},jf.isProfiler=function(e){return eh(e)===Hf},jf.isStrictMode=function(e){return eh(e)===Wf},jf.isSuspense=function(e){return eh(e)===Zf},jf.isSuspenseList=function(e){return eh(e)===Xf},jf.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===$f||e===Hf||e===Wf||e===Zf||e===Xf||e===Yf||"object"==typeof e&&null!==e&&(e.$$typeof===Jf||e.$$typeof===Qf||e.$$typeof===Uf||e.$$typeof===Vf||e.$$typeof===Kf||e.$$typeof===Mf||void 0!==e.getModuleId)},jf.typeOf=eh,Af.exports=jf;var th=Af.exports,nh=th,rh={};rh[nh.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},rh[nh.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var oh="undefined"!=typeof document;var ah=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===oh&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},ih=function(e,t,n){ah(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);oh||void 0===i||(o+=i),a=a.next}while(void 0!==a);if(!oh&&0!==o.length)return o}};function lh(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}var sh={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ch=/[A-Z]|^ms/g,uh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,dh=function(e){return 45===e.charCodeAt(1)},ph=function(e){return null!=e&&"boolean"!=typeof e},fh=Op((function(e){return dh(e)?e:e.replace(ch,"-$&").toLowerCase()})),hh=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(uh,(function(e,t,n){return gh={name:t,styles:n,next:gh},t}))}return 1===sh[e]||dh(e)||"number"!=typeof t||0===t?t:t+"px"};function mh(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return gh={name:n.name,styles:n.styles,next:gh},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)gh={name:r.name,styles:r.styles,next:gh},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=mh(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)ph(i)&&(r+=fh(a)+":"+hh(a,i)+";");else if(Array.isArray(i)&&"string"==typeof i[0]&&null==t)for(var l=0;l<i.length;l++)ph(i[l])&&(r+=fh(a)+":"+hh(a,i[l])+";");else{var s=mh(e,t,i);switch(a){case"animation":case"animationName":r+=fh(a)+":"+s+";";break;default:r+=a+"{"+s+"}"}}}return r}(e,t,n);case"function":if(void 0!==e){var o=gh,a=n(e);return gh=o,mh(e,t,a)}}return n}var gh,vh=/label:\s*([^\s;\n{]+)\s*(;|$)/g,bh=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";gh=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=mh(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=mh(n,t,e[i]),r&&(o+=a[i]);vh.lastIndex=0;for(var l,s="";null!==(l=vh.exec(o));)s+="-"+l[1];return{name:lh(o)+s,styles:o,next:gh}},yh="undefined"!=typeof document,xh=function(e){return e()},Sh=!!G.useInsertionEffect&&G.useInsertionEffect,wh=yh&&Sh||xh,Eh=Sh||U.useLayoutEffect,Ch="undefined"!=typeof document,kh=U.createContext("undefined"!=typeof HTMLElement?Df({key:"css"}):null),Rh=kh.Provider,Lh=function(e){return U.forwardRef((function(t,n){var r=U.useContext(kh);return e(t,r,n)}))};Ch||(Lh=function(e){return function(t){var n=U.useContext(kh);return null===n?(n=Df({key:"css"}),U.createElement(kh.Provider,{value:n},e(t,n))):e(t,n)}});var Oh=U.createContext({}),_h=Lh((function(e,t){var n=e.styles,r=bh([n],void 0,U.useContext(Oh));if(!Ch){for(var o,a=r.name,i=r.styles,l=r.next;void 0!==l;)a+=" "+l.name,i+=l.styles,l=l.next;var s=!0===t.compat,c=t.insert("",{name:a,styles:i},t.sheet,s);return s?null:U.createElement("style",((o={})["data-emotion"]=t.key+"-global "+a,o.dangerouslySetInnerHTML={__html:c},o.nonce=t.sheet.nonce,o))}var u=U.useRef();return Eh((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),n.hydrate([a])),u.current=[n,o],function(){n.flush()}}),[t]),Eh((function(){var e=u.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&ih(t,r.next,!0),n.tags.length){var o=n.tags[n.tags.length-1].nextElementSibling;n.before=o,n.flush()}t.insert("",r,n,!1)}}),[t,r.name]),null}));function Ih(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return bh(t)}var Th=function(){var e=Ih.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_"}}},Ph=/[A-Z]|^ms/g,Mh=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Nh=function(e){return 45===e.charCodeAt(1)},qh=function(e){return null!=e&&"boolean"!=typeof e},zh=Op((function(e){return Nh(e)?e:e.replace(Ph,"-$&").toLowerCase()})),Dh=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Mh,(function(e,t,n){return jh={name:t,styles:n,next:jh},t}))}return 1===sh[e]||Nh(e)||"number"!=typeof t||0===t?t:t+"px"};function Ah(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return jh={name:n.name,styles:n.styles,next:jh},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)jh={name:r.name,styles:r.styles,next:jh},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Ah(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":qh(i)&&(r+=zh(a)+":"+Dh(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var l=Ah(e,t,i);switch(a){case"animation":case"animationName":r+=zh(a)+":"+l+";";break;default:r+=a+"{"+l+"}"}}else for(var s=0;s<i.length;s++)qh(i[s])&&(r+=zh(a)+":"+Dh(a,i[s])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=jh,a=n(e);return jh=o,Ah(e,t,a)}}if(null==t)return n;var i=t[n];return void 0!==i?i:n}var jh,Fh=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Bh=Ip,$h=function(e){return"theme"!==e},Wh=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Bh:$h},Hh=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},Uh="undefined"!=typeof document,Vh=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;ah(t,n,r);var o=wh((function(){return ih(t,n,r)}));if(!Uh&&void 0!==o){for(var a,i=n.name,l=n.next;void 0!==l;)i+=" "+l.name,l=l.next;return U.createElement("style",((a={})["data-emotion"]=t.key+" "+i,a.dangerouslySetInnerHTML={__html:o},a.nonce=t.sheet.nonce,a))}return null},Gh=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=Hh(t,n,a),s=l||Wh(i),c=!s("as");return function(){var u=arguments,d=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{d.push(u[0][0]);for(var p=u.length,f=1;f<p;f++)d.push(u[f],u[0][f])}var h=Lh((function(e,t,n){var r,a,u,p,f=c&&e.as||i,h="",m=[],g=e;if(null==e.theme){for(var v in g={},e)g[v]=e[v];g.theme=U.useContext(Oh)}"string"==typeof e.className?(r=t.registered,a=m,u=e.className,p="",u.split(" ").forEach((function(e){void 0!==r[e]?a.push(r[e]+";"):p+=e+" "})),h=p):null!=e.className&&(h=e.className+" ");var b=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";jh=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=Ah(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=Ah(n,t,e[i]),r&&(o+=a[i]);Fh.lastIndex=0;for(var l,s="";null!==(l=Fh.exec(o));)s+="-"+l[1];return{name:lh(o)+s,styles:o,next:jh}}(d.concat(m),t.registered,g);h+=t.key+"-"+b.name,void 0!==o&&(h+=" "+o);var y=c&&void 0===l?Wh(f):s,x={};for(var S in e)c&&"as"===S||y(S)&&(x[S]=e[S]);return x.className=h,x.ref=n,U.createElement(U.Fragment,null,U.createElement(Vh,{cache:t,serialized:b,isStringTag:"string"==typeof f}),U.createElement(f,x))}));return h.displayName=void 0!==r?r:"Styled("+("string"==typeof i?i:i.displayName||i.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=i,h.__emotion_styles=d,h.__emotion_forwardProp=l,Object.defineProperty(h,"toString",{value:function(){return"."+o}}),h.withComponent=function(t,r){return e(t,Lp({},n,r,{shouldForwardProp:Hh(h,r,!0)})).apply(void 0,d)},h}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Gh[e]=Gh(e)}));var Kh={exports:{}},Zh={},Xh=U,Qh=Symbol.for("react.element"),Jh=Symbol.for("react.fragment"),Yh=Object.prototype.hasOwnProperty,em=Xh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,tm={key:!0,ref:!0,__self:!0,__source:!0};function nm(e,t,n){var r,o={},a=null,i=null;for(r in void 0!==n&&(a=""+n),void 0!==t.key&&(a=""+t.key),void 0!==t.ref&&(i=t.ref),t)Yh.call(t,r)&&!tm.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:Qh,type:e,key:a,ref:i,props:o,_owner:em.current}}Zh.Fragment=Jh,Zh.jsx=nm,Zh.jsxs=nm,Kh.exports=Zh;var rm=Kh.exports;let om;function am(e){const{injectFirst:t,children:n}=e;return t&&om?rm.jsx(Rh,{value:om,children:n}):n}function im(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 rm.jsx(_h,{styles:r})}
|
|
27
27
|
/**
|
|
28
28
|
* @mui/styled-engine v5.15.14
|
|
29
29
|
*
|
|
30
30
|
* @license MIT
|
|
31
31
|
* This source code is licensed under the MIT license found in the
|
|
32
32
|
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/function sm(e,t){return Kh(e,t)}"object"==typeof document&&(am=Af({key:"css",prepend:!0}));const cm=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};var um=Object.freeze({__proto__:null,GlobalStyles:lm,StyledEngineProvider:im,ThemeContext:_h,css:Th,default:sm,internal_processStyles:cm,keyframes:Ph});function dm(){return dm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dm.apply(this,arguments)}function pm(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function fm(){return fm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fm.apply(this,arguments)}function hm(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function mm(e){if(!hm(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=mm(e[n])})),t}function gm(e,t,n={clone:!0}){const r=n.clone?fm({},e):e;return hm(e)&&hm(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(hm(t[o])&&o in e&&hm(e[o])?r[o]=gm(e[o],t[o],n):n.clone?r[o]=hm(t[o])?mm(t[o]):t[o]:r[o]=t[o])})),r}var vm=Object.freeze({__proto__:null,default:gm,isPlainObject:hm});const bm=["values","unit","step"],ym=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>dm({},e,{[t.key]:t.val})),{})};function xm(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=pm(e,bm),a=ym(t),i=Object.keys(a);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const a=i.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==a&&"number"==typeof t[i[a]]?t[i[a]]:o)-r/100}${n})`}return dm({keys:i,values:a,up:l,down:s,between:c,only:function(e){return i.indexOf(e)+1<i.length?c(e,i[i.indexOf(e)+1]):l(e)},not:function(e){const t=i.indexOf(e);return 0===t?l(i[1]):t===i.length-1?s(i[t]):c(e,i[i.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const Sm={borderRadius:4};function wm(e,t){return t?gm(e,t,{clone:!1}):e}const Em={xs:0,sm:600,md:900,lg:1200,xl:1536},Cm={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Em[e]}px)`};function km(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Cm;return t.reduce(((r,o,a)=>(r[e.up(e.keys[a])]=n(t[a]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Cm;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||Em).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function Rm(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function Lm(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function Om({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r<e.length&&(n[t]=!0)})):r.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(e,t),o=Object.keys(r);if(0===o.length)return e;let a;return o.reduce(((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[a],a=r):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[a],a=n):t[n]=e,t)),{})}function _m(e){if("string"!=typeof e)throw new Error(Ep(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Im=Object.freeze({__proto__:null,default:_m});function Tm(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function Pm(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Tm(e,n)||r,t&&(o=t(o,r,e)),o}function Mm(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=e=>{if(null==e[t])return null;const a=e[t],i=Tm(e.theme,r)||{};return km(e,a,(e=>{let r=Pm(i,o,e);return e===r&&"string"==typeof e&&(r=Pm(i,o,`${t}${"default"===e?"":_m(e)}`,e)),!1===n?r:{[n]:r}}))};return a.propTypes={},a.filterProps=[t],a}const Nm={m:"margin",p:"padding"},qm={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},zm={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Dm=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!zm[e])return[e];e=zm[e]}const[t,n]=e.split(""),r=Nm[t],o=qm[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),Am=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],jm=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Fm(e,t,n,r){var o;const a=null!=(o=Tm(e,t,!1))?o:n;return"number"==typeof a?e=>"string"==typeof e?e:a*e:Array.isArray(a)?e=>"string"==typeof e?e:a[e]:"function"==typeof a?a:()=>{}}function Bm(e){return Fm(e,"spacing",8)}function $m(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function Wm(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=$m(t,n),e)),{})}(Dm(n),r);return km(e,e[n],o)}function Hm(e,t){const n=Bm(e.theme);return Object.keys(e).map((r=>Wm(e,t,r,n))).reduce(wm,{})}function Um(e){return Hm(e,Am)}function Vm(e){return Hm(e,jm)}function Gm(e=8){if(e.mui)return e;const t=Bm({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}function Km(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?wm(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Zm(e){return"number"!=typeof e?e:`${e}px solid`}function Xm(e,t){return Mm({prop:e,themeKey:"borders",transform:t})}Um.propTypes={},Um.filterProps=Am,Vm.propTypes={},Vm.filterProps=jm;const Qm=Xm("border",Zm),Jm=Xm("borderTop",Zm),Ym=Xm("borderRight",Zm),eg=Xm("borderBottom",Zm),tg=Xm("borderLeft",Zm),ng=Xm("borderColor"),rg=Xm("borderTopColor"),og=Xm("borderRightColor"),ag=Xm("borderBottomColor"),ig=Xm("borderLeftColor"),lg=Xm("outline",Zm),sg=Xm("outlineColor"),cg=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Fm(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:$m(t,e)});return km(e,e.borderRadius,n)}return null};cg.propTypes={},cg.filterProps=["borderRadius"],Km(Qm,Jm,Ym,eg,tg,ng,rg,og,ag,ig,cg,lg,sg);const ug=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Fm(e.theme,"spacing",8),n=e=>({gap:$m(t,e)});return km(e,e.gap,n)}return null};ug.propTypes={},ug.filterProps=["gap"];const dg=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Fm(e.theme,"spacing",8),n=e=>({columnGap:$m(t,e)});return km(e,e.columnGap,n)}return null};dg.propTypes={},dg.filterProps=["columnGap"];const pg=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Fm(e.theme,"spacing",8),n=e=>({rowGap:$m(t,e)});return km(e,e.rowGap,n)}return null};pg.propTypes={},pg.filterProps=["rowGap"];function fg(e,t){return"grey"===t?t:e}Km(ug,dg,pg,Mm({prop:"gridColumn"}),Mm({prop:"gridRow"}),Mm({prop:"gridAutoFlow"}),Mm({prop:"gridAutoColumns"}),Mm({prop:"gridAutoRows"}),Mm({prop:"gridTemplateColumns"}),Mm({prop:"gridTemplateRows"}),Mm({prop:"gridTemplateAreas"}),Mm({prop:"gridArea"}));function hg(e){return e<=1&&0!==e?100*e+"%":e}Km(Mm({prop:"color",themeKey:"palette",transform:fg}),Mm({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:fg}),Mm({prop:"backgroundColor",themeKey:"palette",transform:fg}));const mg=Mm({prop:"width",transform:hg}),gg=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||Em[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:hg(t)}};return km(e,e.maxWidth,t)}return null};gg.filterProps=["maxWidth"];const vg=Mm({prop:"minWidth",transform:hg}),bg=Mm({prop:"height",transform:hg}),yg=Mm({prop:"maxHeight",transform:hg}),xg=Mm({prop:"minHeight",transform:hg});Mm({prop:"size",cssProperty:"width",transform:hg}),Mm({prop:"size",cssProperty:"height",transform:hg});Km(mg,gg,vg,bg,yg,xg,Mm({prop:"boxSizing"}));const Sg={border:{themeKey:"borders",transform:Zm},borderTop:{themeKey:"borders",transform:Zm},borderRight:{themeKey:"borders",transform:Zm},borderBottom:{themeKey:"borders",transform:Zm},borderLeft:{themeKey:"borders",transform:Zm},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Zm},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:cg},color:{themeKey:"palette",transform:fg},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:fg},backgroundColor:{themeKey:"palette",transform:fg},p:{style:Vm},pt:{style:Vm},pr:{style:Vm},pb:{style:Vm},pl:{style:Vm},px:{style:Vm},py:{style:Vm},padding:{style:Vm},paddingTop:{style:Vm},paddingRight:{style:Vm},paddingBottom:{style:Vm},paddingLeft:{style:Vm},paddingX:{style:Vm},paddingY:{style:Vm},paddingInline:{style:Vm},paddingInlineStart:{style:Vm},paddingInlineEnd:{style:Vm},paddingBlock:{style:Vm},paddingBlockStart:{style:Vm},paddingBlockEnd:{style:Vm},m:{style:Um},mt:{style:Um},mr:{style:Um},mb:{style:Um},ml:{style:Um},mx:{style:Um},my:{style:Um},margin:{style:Um},marginTop:{style:Um},marginRight:{style:Um},marginBottom:{style:Um},marginLeft:{style:Um},marginX:{style:Um},marginY:{style:Um},marginInline:{style:Um},marginInlineStart:{style:Um},marginInlineEnd:{style:Um},marginBlock:{style:Um},marginBlockStart:{style:Um},marginBlockEnd:{style:Um},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:ug},rowGap:{style:pg},columnGap:{style:dg},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:hg},maxWidth:{style:gg},minWidth:{transform:hg},height:{transform:hg},maxHeight:{transform:hg},minHeight:{transform:hg},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function wg(){function e(e,t,n,r){const o={[e]:t,theme:n},a=r[e];if(!a)return{[e]:t};const{cssProperty:i=e,themeKey:l,transform:s,style:c}=a;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const u=Tm(n,l)||{};if(c)return c(o);return km(o,t,(t=>{let n=Pm(u,s,t);return t===n&&"string"==typeof t&&(n=Pm(u,s,`${e}${"default"===t?"":_m(t)}`,t)),!1===i?n:{[i]:n}}))}return function t(n){var r;const{sx:o,theme:a={}}=n||{};if(!o)return null;const i=null!=(r=a.unstable_sxConfig)?r:Sg;function l(n){let r=n;if("function"==typeof n)r=n(a);else if("object"!=typeof n)return n;if(!r)return null;const o=Rm(a.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],c=a,"function"==typeof l?l(c):l);var l,c;if(null!=o)if("object"==typeof o)if(i[n])s=wm(s,e(n,o,a,i));else{const e=km({theme:a},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=wm(s,e):s[n]=t({sx:o,theme:a})}else s=wm(s,e(n,o,a,i))})),Lm(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const Eg=wg();function Cg(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){return{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return n.palette.mode===e?t:{}}Eg.filterProps=["sx"];const kg=["breakpoints","palette","spacing","shape"];function Rg(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={}}=e,i=pm(e,kg),l=xm(n),s=Gm(o);let c=gm({breakpoints:l,direction:"ltr",components:{},palette:dm({mode:"light"},r),spacing:s,shape:dm({},Sm,a)},i);return c.applyStyles=Cg,c=t.reduce(((e,t)=>gm(e,t)),c),c.unstable_sxConfig=dm({},Sg,null==i?void 0:i.unstable_sxConfig),c.unstable_sx=function(e){return Eg({sx:e,theme:this})},c}var Lg=Object.freeze({__proto__:null,default:Rg,private_createBreakpoints:xm,unstable_applyStyles:Cg});function Og(e=null){const t=V.useContext(_h);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const _g=Rg();function Ig(e=_g){return Og(e)}function Tg({styles:e,themeId:t,defaultTheme:n={}}){const r=Ig(n),o="function"==typeof e?e(t&&r[t]||r):e;return om.jsx(lm,{styles:o})}const Pg=["sx"],Mg=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Sg;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function Ng(e){const{sx:t}=e,n=pm(e,Pg),{systemProps:r,otherProps:o}=Mg(n);let a;return a=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return hm(n)?dm({},r,n):r}:dm({},r,t),dm({},o,{sx:a})}var qg=Object.freeze({__proto__:null,default:Eg,extendSxProp:Ng,unstable_createStyleFunctionSx:wg,unstable_defaultSxConfig:Sg});const zg=e=>e,Dg=(()=>{let e=zg;return{configure(t){e=t},generate:t=>e(t),reset(){e=zg}}})();function Ag(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=Ag(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function jg(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ag(e))&&(r&&(r+=" "),r+=t);return r}const Fg=["className","component"];const Bg={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function $g(e,t,n="Mui"){const r=Bg[t];return r?`${n}-${r}`:`${Dg.generate(e)}-${t}`}function Wg(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=$g(e,t,n)})),r}const Hg=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Ug(e){const t=`${e}`.match(Hg);return t&&t[1]||""}function Vg(e,t=""){return e.displayName||e.name||Ug(e)||t}function Gg(e,t,n){const r=Vg(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Kg=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Vg(e,"Component");if("object"==typeof e)switch(e.$$typeof){case nh.ForwardRef:return Gg(e,e.render,"ForwardRef");case nh.Memo:return Gg(e,e.type,"memo");default:return}}},getFunctionName:Ug});const Zg=["ownerState"],Xg=["variants"],Qg=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Jg(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Yg=Rg(),ev=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function tv({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function nv(e){return e?(t,n)=>n[e]:null}function rv(e,t){let{ownerState:n}=t,r=pm(t,Zg);const o="function"==typeof e?e(dm({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>rv(e,dm({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=pm(o,Xg);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(dm({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style(dm({ownerState:n},r,n)):e.style))})),t}return o}const ov=function(e={}){const{themeId:t,defaultTheme:n=Yg,rootShouldForwardProp:r=Jg,slotShouldForwardProp:o=Jg}=e,a=e=>Eg(dm({},e,{theme:tv(dm({},e,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(e,i={})=>{cm(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:c,skipSx:u,overridesResolver:d=nv(ev(s))}=i,p=pm(i,Qg),f=void 0!==c?c:s&&"Root"!==s&&"root"!==s||!1,h=u||!1;let m=Jg;"Root"===s||"root"===s?m=r:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=sm(e,dm({shouldForwardProp:m,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||hm(e)?r=>rv(e,dm({},r,{theme:tv({theme:r.theme,defaultTheme:n,themeId:t})})):e,b=(r,...o)=>{let i=v(r);const s=o?o.map(v):[];l&&d&&s.push((e=>{const r=tv(dm({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,a={};return Object.entries(o).forEach((([t,n])=>{a[t]=rv(n,dm({},e,{theme:r}))})),d(e,a)})),l&&!f&&s.push((e=>{var r;const o=tv(dm({},e,{defaultTheme:n,themeId:t}));return rv({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},dm({},e,{theme:o}))})),h||s.push(a);const c=s.length-o.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const u=g(i,...s);return e.muiName&&(u.muiName=e.muiName),u};return g.withConfig&&(b.withConfig=g.withConfig),b}}();function av(e,t){const n=fm({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=fm({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},a=t[r];n[r]={},a&&Object.keys(a)?o&&Object.keys(o)?(n[r]=fm({},a),Object.keys(o).forEach((e=>{n[r][e]=av(o[e],a[e])}))):n[r]=a:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function iv({props:e,name:t,defaultTheme:n,themeId:r}){let o=Ig(n);r&&(o=o[r]||o);const a=function(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?av(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return a}const lv="undefined"!=typeof window?V.useLayoutEffect:V.useEffect;var sv=Object.freeze({__proto__:null,default:function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}});function cv(){return cv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cv.apply(this,arguments)}function uv(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function dv(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function pv(e,t){var n,r;return V.isValidElement(e)&&-1!==t.indexOf(null!=(n=e.type.muiName)?n:null==(r=e.type)||null==(r=r._payload)||null==(r=r.value)?void 0:r.muiName)}function fv(e){return e&&e.ownerDocument||document}function hv(e){return fv(e).defaultView||window}function mv(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let gv=0;const vv=K["useId".toString()];function bv(e){if(void 0!==vv){const t=vv();return null!=e?e:t}return function(e){const[t,n]=V.useState(e),r=e||t;return V.useEffect((()=>{null==t&&(gv+=1,n(`mui-${gv}`))}),[t]),r}(e)}function yv({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=V.useRef(void 0!==e),[a,i]=V.useState(t);return[o?e:a,V.useCallback((e=>{o||i(e)}),[])]}function xv(e){const t=V.useRef(e);return lv((()=>{t.current=e})),V.useRef(((...e)=>(0,t.current)(...e))).current}function Sv(...e){return V.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{mv(e,t)}))}),e)}const wv={};const Ev=[];class Cv{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Cv}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function kv(){const e=function(e,t){const n=V.useRef(wv);return n.current===wv&&(n.current=e(t)),n}(Cv.create).current;var t;return t=e.disposeEffect,V.useEffect(t,Ev),e}let Rv=!0,Lv=!1;const Ov=new Cv,_v={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Iv(e){e.metaKey||e.altKey||e.ctrlKey||(Rv=!0)}function Tv(){Rv=!1}function Pv(){"hidden"===this.visibilityState&&Lv&&(Rv=!0)}function Mv(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Rv||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!_v[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Nv(){const e=V.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Iv,!0),t.addEventListener("mousedown",Tv,!0),t.addEventListener("pointerdown",Tv,!0),t.addEventListener("touchstart",Tv,!0),t.addEventListener("visibilitychange",Pv,!0))}),[]),t=V.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Mv(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Lv=!0,Ov.start(100,(()=>{Lv=!1})),t.current=!1,!0)},ref:e}}function qv(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const zv=e=>{const t=V.useRef({});return V.useEffect((()=>{t.current=e})),t.current};function Dv(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}const Av=V.createContext(null);function jv(){return V.useContext(Av)}var Fv="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Bv(e){const{children:t,theme:n}=e,r=jv(),o=V.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return cv({},e,t)}(r,n);return null!=e&&(e[Fv]=null!==r),e}),[n,r]);return om.jsx(Av.Provider,{value:o,children:t})}const $v=["value"],Wv=V.createContext();function Hv(e){let{value:t}=e,n=pm(e,$v);return om.jsx(Wv.Provider,dm({value:null==t||t},n))}const Uv={};function Vv(e,t,n,r=!1){return V.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const a=n(o),i=e?dm({},t,{[e]:a}):a;return r?()=>i:i}return dm({},t,e?{[e]:n}:n)}),[e,t,n,r])}function Gv(e){const{children:t,theme:n,themeId:r}=e,o=Og(Uv),a=jv()||Uv,i=Vv(r,o,n),l=Vv(r,a,n,!0),s="rtl"===i.direction;return om.jsx(Bv,{theme:l,children:om.jsx(_h.Provider,{value:i,children:om.jsx(Hv,{value:s,children:t})})})}const Kv=["component","direction","spacing","divider","children","className","useFlexGap"],Zv=Rg(),Xv=ov("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Qv(e){return iv({props:e,name:"MuiStack",defaultTheme:Zv})}function Jv(e,t){const n=V.Children.toArray(e).filter(Boolean);return n.reduce(((e,r,o)=>(e.push(r),o<n.length-1&&e.push(V.cloneElement(t,{key:`separator-${o}`})),e)),[])}const Yv=({ownerState:e,theme:t})=>{let n=dm({display:"flex",flexDirection:"column"},km({theme:t},Om({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const r=Bm(t),o=Object.keys(t.breakpoints.values).reduce(((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t)),{}),a=Om({values:e.direction,base:o}),i=Om({values:e.spacing,base:o});"object"==typeof a&&Object.keys(a).forEach(((e,t,n)=>{if(!a[e]){const r=t>0?a[n[t-1]]:"column";a[e]=r}}));n=gm(n,km({theme:t},i,((t,n)=>{return e.useFlexGap?{gap:$m(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${o=n?a[n]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:$m(r,t)}};var o})))}return n=function(e,...t){const n=Rm(e),r=[n,...t].reduce(((e,t)=>gm(e,t)),{});return Lm(Object.keys(n),r)}(t.breakpoints,n),n};const eb=["defaultProps","mixins","overrides","palette","props","styleOverrides"],tb=["type","mode"];var nb={},rb={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(rb);var ob=rb.exports,ab=r(Cp),ib=r(sv),lb=ob;Object.defineProperty(nb,"__esModule",{value:!0});var sb=nb.alpha=Sb;nb.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),a=gb(e),i=gb(t),l=[o(a.values[0],i.values[0]),o(a.values[1],i.values[1]),o(a.values[2],i.values[2])];return bb({type:"rgb",values:l})},nb.colorChannel=void 0;var cb=nb.darken=wb;nb.decomposeColor=gb,nb.emphasize=Cb;var ub=nb.getContrastRatio=function(e,t){const n=xb(e),r=xb(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};nb.getLuminance=xb,nb.hexToRgb=mb,nb.hslToRgb=yb;var db=nb.lighten=Eb;nb.private_safeAlpha=function(e,t,n){try{return Sb(e,t)}catch(t){return e}},nb.private_safeColorChannel=void 0,nb.private_safeDarken=function(e,t,n){try{return wb(e,t)}catch(t){return e}},nb.private_safeEmphasize=function(e,t,n){try{return Cb(e,t)}catch(t){return e}},nb.private_safeLighten=function(e,t,n){try{return Eb(e,t)}catch(t){return e}},nb.recomposeColor=bb,nb.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=gb(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 pb=lb(ab),fb=lb(ib);function hb(e,t=0,n=1){return(0,fb.default)(e,t,n)}function mb(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 gb(e){if(e.type)return e;if("#"===e.charAt(0))return gb(mb(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,pb.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,pb.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const vb=e=>{const t=gb(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};nb.colorChannel=vb;function bb(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 yb(e){e=gb(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),i=(e,t=(e+n/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*i(0)),Math.round(255*i(8)),Math.round(255*i(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),bb({type:l,values:s})}function xb(e){let t="hsl"===(e=gb(e)).type||"hsla"===e.type?gb(yb(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 Sb(e,t){return e=gb(e),t=hb(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,bb(e)}function wb(e,t){if(e=gb(e),t=hb(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 bb(e)}function Eb(e,t){if(e=gb(e),t=hb(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 bb(e)}function Cb(e,t=.15){return xb(e)>.5?wb(e,t):Eb(e,t)}nb.private_safeColorChannel=(e,t)=>{try{return vb(e)}catch(t){return e}};const kb={black:"#000",white:"#fff"},Rb={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"},Lb={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Ob={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},_b={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Ib={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Tb={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Pb={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Mb=["mode","contrastThreshold","tonalOffset"],Nb={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:kb.white,default:kb.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}},qb={text:{primary:kb.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:kb.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 zb(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=db(e.main,o):"dark"===t&&(e.dark=cb(e.main,a)))}function Db(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Lp(e,Mb),a=e.primary||function(e="light"){return"dark"===e?{main:Ib[200],light:Ib[50],dark:Ib[400]}:{main:Ib[700],light:Ib[400],dark:Ib[800]}}(t),i=e.secondary||function(e="light"){return"dark"===e?{main:Lb[200],light:Lb[50],dark:Lb[400]}:{main:Lb[500],light:Lb[300],dark:Lb[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Ob[500],light:Ob[300],dark:Ob[700]}:{main:Ob[700],light:Ob[400],dark:Ob[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Tb[400],light:Tb[300],dark:Tb[700]}:{main:Tb[700],light:Tb[500],dark:Tb[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:Pb[400],light:Pb[300],dark:Pb[700]}:{main:Pb[800],light:Pb[500],dark:Pb[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:_b[400],light:_b[300],dark:_b[700]}:{main:"#ed6c02",light:_b[500],dark:_b[900]}}(t);function d(e){return ub(e,qb.text.primary)>=n?qb.text.primary:Nb.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:a=700})=>{if(!(e=Rp({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Ep(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Ep(12,t?` (${t})`:"",JSON.stringify(e.main)));return zb(e,"light",o,r),zb(e,"dark",a,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:qb,light:Nb};return gm(Rp({common:Rp({},kb),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:Rb,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const Ab=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const jb={textTransform:"uppercase"},Fb='"Roboto", "Helvetica", "Arial", sans-serif';function Bb(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Fb,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,p=Lp(n,Ab),f=o/14,h=d||(e=>e/c*f+"rem"),m=(e,t,n,o,a)=>{return Rp({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===Fb?{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,jb),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,jb),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return gm(Rp({htmlFontSize:c,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function $b(...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 Wb=["none",$b(0,2,1,-1,0,1,1,0,0,1,3,0),$b(0,3,1,-2,0,2,2,0,0,1,5,0),$b(0,3,3,-2,0,3,4,0,0,1,8,0),$b(0,2,4,-1,0,4,5,0,0,1,10,0),$b(0,3,5,-1,0,5,8,0,0,1,14,0),$b(0,3,5,-1,0,6,10,0,0,1,18,0),$b(0,4,5,-2,0,7,10,1,0,2,16,1),$b(0,5,5,-3,0,8,10,1,0,3,14,2),$b(0,5,6,-3,0,9,12,1,0,3,16,2),$b(0,6,6,-3,0,10,14,1,0,4,18,3),$b(0,6,7,-4,0,11,15,1,0,4,20,3),$b(0,7,8,-4,0,12,17,2,0,5,22,4),$b(0,7,8,-4,0,13,19,2,0,5,24,4),$b(0,7,9,-4,0,14,21,2,0,5,26,4),$b(0,8,9,-5,0,15,22,2,0,6,28,5),$b(0,8,10,-5,0,16,24,2,0,6,30,5),$b(0,8,11,-5,0,17,26,2,0,6,32,5),$b(0,9,11,-5,0,18,28,2,0,7,34,6),$b(0,9,12,-6,0,19,29,2,0,7,36,6),$b(0,10,13,-6,0,20,31,3,0,8,38,7),$b(0,10,13,-6,0,21,33,3,0,8,40,7),$b(0,10,14,-6,0,22,35,3,0,8,42,7),$b(0,11,14,-7,0,23,36,3,0,9,44,8),$b(0,11,15,-7,0,24,38,3,0,9,46,8)],Hb=["duration","easing","delay"],Ub={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)"},Vb={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Gb(e){return`${Math.round(e)}ms`}function Kb(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Zb(e){const t=Rp({},Ub,e.easing),n=Rp({},Vb,e.duration);return Rp({getAutoHeightDuration:Kb,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:a=t.easeInOut,delay:i=0}=r;return Lp(r,Hb),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Gb(o)} ${a} ${"string"==typeof i?i:Gb(i)}`)).join(",")}},e,{easing:t,duration:n})}const Xb={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Qb=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Jb(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:a={}}=e,i=Lp(e,Qb);if(e.vars)throw new Error(Ep(18));const l=Db(r),s=Rg(e);let c=gm(s,{mixins:(u=s.breakpoints,d=n,Rp({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:Wb.slice(),typography:Bb(l,a),transitions:Zb(o),zIndex:Rp({},Xb)});var u,d;return c=gm(c,i),c=t.reduce(((e,t)=>gm(e,t)),c),c.unstable_sxConfig=Rp({},Sg,null==i?void 0:i.unstable_sxConfig),c.unstable_sx=function(e){return Eg({sx:e,theme:this})},c}const Yb=Jb();function ey(){const e=Ig(Yb);return e[kp]||e}function ty({props:e,name:t}){return iv({props:e,name:t,defaultTheme:Yb,themeId:kp})}var ny,ry={},oy={exports:{}};var ay,iy={exports:{}};var ly=r(um),sy=r(vm),cy=r(Im),uy=r(Kg),dy=r(Lg),py=r(qg),fy=ob;Object.defineProperty(ry,"__esModule",{value:!0});var hy=ry.default=function(e={}){const{themeId:t,defaultTheme:n=Ry,rootShouldForwardProp:r=ky,slotShouldForwardProp:o=ky}=e,a=e=>(0,xy.default)((0,my.default)({},e,{theme:Oy((0,my.default)({},e,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(e,i={})=>{(0,vy.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:c,skipSx:u,overridesResolver:d=_y(Ly(s))}=i,p=(0,gy.default)(i,Ey),f=void 0!==c?c:s&&"Root"!==s&&"root"!==s||!1,h=u||!1;let m=ky;"Root"===s||"root"===s?m=r:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,vy.default)(e,(0,my.default)({shouldForwardProp:m,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,by.isPlainObject)(e)?r=>Iy(e,(0,my.default)({},r,{theme:Oy({theme:r.theme,defaultTheme:n,themeId:t})})):e,b=(r,...o)=>{let i=v(r);const s=o?o.map(v):[];l&&d&&s.push((e=>{const r=Oy((0,my.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,a={};return Object.entries(o).forEach((([t,n])=>{a[t]=Iy(n,(0,my.default)({},e,{theme:r}))})),d(e,a)})),l&&!f&&s.push((e=>{var r;const o=Oy((0,my.default)({},e,{defaultTheme:n,themeId:t}));return Iy({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},(0,my.default)({},e,{theme:o}))})),h||s.push(a);const c=s.length-o.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const u=g(i,...s);return e.muiName&&(u.muiName=e.muiName),u};return g.withConfig&&(b.withConfig=g.withConfig),b}};ry.shouldForwardProp=ky,ry.systemDefaultTheme=void 0;var my=fy((ny||(ny=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}(oy)),oy.exports)),gy=fy((ay||(ay=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}(iy)),iy.exports)),vy=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=Cy(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}(ly),by=sy;fy(cy),fy(uy);var yy=fy(dy),xy=fy(py);const Sy=["ownerState"],wy=["variants"],Ey=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Cy(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(Cy=function(e){return e?n:t})(e)}function ky(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Ry=ry.systemDefaultTheme=(0,yy.default)(),Ly=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Oy({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function _y(e){return e?(t,n)=>n[e]:null}function Iy(e,t){let{ownerState:n}=t,r=(0,gy.default)(t,Sy);const o="function"==typeof e?e((0,my.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>Iy(e,(0,my.default)({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,gy.default)(o,wy);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,my.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,my.default)({ownerState:n},r,n)):e.style))})),t}return o}const Ty=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,Py=hy({themeId:kp,defaultTheme:Yb,rootShouldForwardProp:Ty}),My=["theme"];function Ny(e){let{theme:t}=e,n=Lp(e,My);const r=t[kp];return om.jsx(Gv,Rp({},n,{themeId:r?kp:void 0,theme:r||t}))}const qy=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function zy(){return zy=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},zy.apply(this,arguments)}function Dy(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 Ay(e,t){return Ay=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ay(e,t)}function jy(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ay(e,t)}var Fy=!1,By=G.createContext(null),$y="unmounted",Wy="exited",Hy="entering",Uy="entered",Vy="exiting",Gy=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=Wy,r.appearStatus=Hy):o=Uy:o=t.unmountOnExit||t.mountOnEnter?$y:Wy,r.state={status:o},r.nextCallback=null,r}jy(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===$y?{status:Wy}: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!==Hy&&n!==Uy&&(t=Hy):n!==Hy&&n!==Uy||(t=Vy)}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===Hy){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Sp.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Wy&&this.setState({status:$y})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Sp.findDOMNode(this),r],a=o[0],i=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||Fy?this.safeSetState({status:Uy},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,i),this.safeSetState({status:Hy},(function(){t.props.onEntering(a,i),t.onTransitionEnd(s,(function(){t.safeSetState({status:Uy},(function(){t.props.onEntered(a,i)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Sp.findDOMNode(this);t&&!Fy?(this.props.onExit(r),this.safeSetState({status:Vy},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Wy},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Wy},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Sp.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=o[0],i=o[1];this.props.addEndListener(a,i)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===$y)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=Dy(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return G.createElement(By.Provider,{value:null},"function"==typeof n?n(e,r):G.cloneElement(G.Children.only(n),r))},t}(G.Component);function Ky(){}function Zy(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xy(e,t){var n=Object.create(null);return e&&V.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&V.isValidElement(e)?t(e):e}(e)})),n}function Qy(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Jy(e,t,n){var r=Xy(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(V.isValidElement(i)){var l=a in t,s=a in r,c=t[a],u=V.isValidElement(c)&&!c.props.in;!s||l&&!u?s||!l||u?s&&l&&V.isValidElement(c)&&(o[a]=V.cloneElement(i,{onExited:n.bind(null,i),in:c.props.in,exit:Qy(i,"exit",e),enter:Qy(i,"enter",e)})):o[a]=V.cloneElement(i,{in:!1}):o[a]=V.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:Qy(i,"exit",e),enter:Qy(i,"enter",e)})}})),o}Gy.contextType=By,Gy.propTypes={},Gy.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ky,onEntering:Ky,onEntered:Ky,onExit:Ky,onExiting:Ky,onExited:Ky},Gy.UNMOUNTED=$y,Gy.EXITED=Wy,Gy.ENTERING=Hy,Gy.ENTERED=Uy,Gy.EXITING=Vy;var Yy=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},ex=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Zy(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}jy(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,Xy(n.children,(function(e){return V.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:Qy(e,"appear",n),enter:Qy(e,"enter",n),exit:Qy(e,"exit",n)})}))):Jy(e,o,a),firstRender:!1}},n.handleExited=function(e,t){var n=Xy(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=zy({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Dy(e,["component","childFactory"]),o=this.state.contextValue,a=Yy(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?G.createElement(By.Provider,{value:o},a):G.createElement(By.Provider,{value:o},G.createElement(t,r,a))},t}(G.Component);ex.propTypes={},ex.defaultProps={component:"div",childFactory:function(e){return e}};const tx=Wg("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),nx=["center","classes","className"];let rx,ox,ax,ix,lx=e=>e;const sx=Ph(rx||(rx=lx`
|
|
33
|
+
*/function lm(e,t){return Gh(e,t)}"object"==typeof document&&(om=Df({key:"css",prepend:!0}));const sm=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};var cm=Object.freeze({__proto__:null,GlobalStyles:im,StyledEngineProvider:am,ThemeContext:Oh,css:Ih,default:lm,internal_processStyles:sm,keyframes:Th});function um(){return um=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},um.apply(this,arguments)}function dm(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 pm(){return pm=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},pm.apply(this,arguments)}function fm(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 hm(e){if(!fm(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=hm(e[n])})),t}function mm(e,t,n={clone:!0}){const r=n.clone?pm({},e):e;return fm(e)&&fm(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(fm(t[o])&&o in e&&fm(e[o])?r[o]=mm(e[o],t[o],n):n.clone?r[o]=fm(t[o])?hm(t[o]):t[o]:r[o]=t[o])})),r}var gm=Object.freeze({__proto__:null,default:mm,isPlainObject:fm});const vm=["values","unit","step"],bm=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)=>um({},e,{[t.key]:t.val})),{})};function ym(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=dm(e,vm),a=bm(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 um({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 xm={borderRadius:4};function Sm(e,t){return t?mm(e,t,{clone:!1}):e}const wm={xs:0,sm:600,md:900,lg:1200,xl:1536},Em={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${wm[e]}px)`};function Cm(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Em;return t.reduce(((r,o,a)=>(r[e.up(e.keys[a])]=n(t[a]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Em;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||wm).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function km(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function Rm(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function Lm({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 Om(e){if("string"!=typeof e)throw new Error(wp(7));return e.charAt(0).toUpperCase()+e.slice(1)}var _m=Object.freeze({__proto__:null,default:Om});function Im(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 Tm(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Im(e,n)||r,t&&(o=t(o,r,e)),o}function Pm(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=Im(e.theme,r)||{};return Cm(e,a,(e=>{let r=Tm(i,o,e);return e===r&&"string"==typeof e&&(r=Tm(i,o,`${t}${"default"===e?"":Om(e)}`,e)),!1===n?r:{[n]:r}}))};return a.propTypes={},a.filterProps=[t],a}const Mm={m:"margin",p:"padding"},Nm={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},qm={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},zm=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!qm[e])return[e];e=qm[e]}const[t,n]=e.split(""),r=Mm[t],o=Nm[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),Dm=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Am=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function jm(e,t,n,r){var o;const a=null!=(o=Im(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 Fm(e){return jm(e,"spacing",8)}function Bm(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 $m(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Bm(t,n),e)),{})}(zm(n),r);return Cm(e,e[n],o)}function Wm(e,t){const n=Fm(e.theme);return Object.keys(e).map((r=>$m(e,t,r,n))).reduce(Sm,{})}function Hm(e){return Wm(e,Dm)}function Um(e){return Wm(e,Am)}function Vm(e=8){if(e.mui)return e;const t=Fm({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 Gm(...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]?Sm(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Km(e){return"number"!=typeof e?e:`${e}px solid`}function Zm(e,t){return Pm({prop:e,themeKey:"borders",transform:t})}Hm.propTypes={},Hm.filterProps=Dm,Um.propTypes={},Um.filterProps=Am;const Xm=Zm("border",Km),Qm=Zm("borderTop",Km),Jm=Zm("borderRight",Km),Ym=Zm("borderBottom",Km),eg=Zm("borderLeft",Km),tg=Zm("borderColor"),ng=Zm("borderTopColor"),rg=Zm("borderRightColor"),og=Zm("borderBottomColor"),ag=Zm("borderLeftColor"),ig=Zm("outline",Km),lg=Zm("outlineColor"),sg=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=jm(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Bm(t,e)});return Cm(e,e.borderRadius,n)}return null};sg.propTypes={},sg.filterProps=["borderRadius"],Gm(Xm,Qm,Jm,Ym,eg,tg,ng,rg,og,ag,sg,ig,lg);const cg=e=>{if(void 0!==e.gap&&null!==e.gap){const t=jm(e.theme,"spacing",8),n=e=>({gap:Bm(t,e)});return Cm(e,e.gap,n)}return null};cg.propTypes={},cg.filterProps=["gap"];const ug=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=jm(e.theme,"spacing",8),n=e=>({columnGap:Bm(t,e)});return Cm(e,e.columnGap,n)}return null};ug.propTypes={},ug.filterProps=["columnGap"];const dg=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=jm(e.theme,"spacing",8),n=e=>({rowGap:Bm(t,e)});return Cm(e,e.rowGap,n)}return null};dg.propTypes={},dg.filterProps=["rowGap"];function pg(e,t){return"grey"===t?t:e}Gm(cg,ug,dg,Pm({prop:"gridColumn"}),Pm({prop:"gridRow"}),Pm({prop:"gridAutoFlow"}),Pm({prop:"gridAutoColumns"}),Pm({prop:"gridAutoRows"}),Pm({prop:"gridTemplateColumns"}),Pm({prop:"gridTemplateRows"}),Pm({prop:"gridTemplateAreas"}),Pm({prop:"gridArea"}));function fg(e){return e<=1&&0!==e?100*e+"%":e}Gm(Pm({prop:"color",themeKey:"palette",transform:pg}),Pm({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:pg}),Pm({prop:"backgroundColor",themeKey:"palette",transform:pg}));const hg=Pm({prop:"width",transform:fg}),mg=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])||wm[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:fg(t)}};return Cm(e,e.maxWidth,t)}return null};mg.filterProps=["maxWidth"];const gg=Pm({prop:"minWidth",transform:fg}),vg=Pm({prop:"height",transform:fg}),bg=Pm({prop:"maxHeight",transform:fg}),yg=Pm({prop:"minHeight",transform:fg});Pm({prop:"size",cssProperty:"width",transform:fg}),Pm({prop:"size",cssProperty:"height",transform:fg});Gm(hg,mg,gg,vg,bg,yg,Pm({prop:"boxSizing"}));const xg={border:{themeKey:"borders",transform:Km},borderTop:{themeKey:"borders",transform:Km},borderRight:{themeKey:"borders",transform:Km},borderBottom:{themeKey:"borders",transform:Km},borderLeft:{themeKey:"borders",transform:Km},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Km},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:sg},color:{themeKey:"palette",transform:pg},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:pg},backgroundColor:{themeKey:"palette",transform:pg},p:{style:Um},pt:{style:Um},pr:{style:Um},pb:{style:Um},pl:{style:Um},px:{style:Um},py:{style:Um},padding:{style:Um},paddingTop:{style:Um},paddingRight:{style:Um},paddingBottom:{style:Um},paddingLeft:{style:Um},paddingX:{style:Um},paddingY:{style:Um},paddingInline:{style:Um},paddingInlineStart:{style:Um},paddingInlineEnd:{style:Um},paddingBlock:{style:Um},paddingBlockStart:{style:Um},paddingBlockEnd:{style:Um},m:{style:Hm},mt:{style:Hm},mr:{style:Hm},mb:{style:Hm},ml:{style:Hm},mx:{style:Hm},my:{style:Hm},margin:{style:Hm},marginTop:{style:Hm},marginRight:{style:Hm},marginBottom:{style:Hm},marginLeft:{style:Hm},marginX:{style:Hm},marginY:{style:Hm},marginInline:{style:Hm},marginInlineStart:{style:Hm},marginInlineEnd:{style:Hm},marginBlock:{style:Hm},marginBlockStart:{style:Hm},marginBlockEnd:{style:Hm},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:cg},rowGap:{style:dg},columnGap:{style:ug},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:fg},maxWidth:{style:mg},minWidth:{transform:fg},height:{transform:fg},maxHeight:{transform:fg},minHeight:{transform:fg},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Sg(){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=Im(n,l)||{};if(c)return c(o);return Cm(o,t,(t=>{let n=Tm(u,s,t);return t===n&&"string"==typeof t&&(n=Tm(u,s,`${e}${"default"===t?"":Om(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:xg;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=km(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=Sm(s,e(n,o,a,i));else{const e=Cm({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=Sm(s,e):s[n]=t({sx:o,theme:a})}else s=Sm(s,e(n,o,a,i))})),Rm(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const wg=Sg();function Eg(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:{}}wg.filterProps=["sx"];const Cg=["breakpoints","palette","spacing","shape"];function kg(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={}}=e,i=dm(e,Cg),l=ym(n),s=Vm(o);let c=mm({breakpoints:l,direction:"ltr",components:{},palette:um({mode:"light"},r),spacing:s,shape:um({},xm,a)},i);return c.applyStyles=Eg,c=t.reduce(((e,t)=>mm(e,t)),c),c.unstable_sxConfig=um({},xg,null==i?void 0:i.unstable_sxConfig),c.unstable_sx=function(e){return wg({sx:e,theme:this})},c}var Rg=Object.freeze({__proto__:null,default:kg,private_createBreakpoints:ym,unstable_applyStyles:Eg});function Lg(e=null){const t=U.useContext(Oh);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const Og=kg();function _g(e=Og){return Lg(e)}function Ig({styles:e,themeId:t,defaultTheme:n={}}){const r=_g(n),o="function"==typeof e?e(t&&r[t]||r):e;return rm.jsx(im,{styles:o})}const Tg=["sx"],Pg=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:xg;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function Mg(e){const{sx:t}=e,n=dm(e,Tg),{systemProps:r,otherProps:o}=Pg(n);let a;return a=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return fm(n)?um({},r,n):r}:um({},r,t),um({},o,{sx:a})}var Ng=Object.freeze({__proto__:null,default:wg,extendSxProp:Mg,unstable_createStyleFunctionSx:Sg,unstable_defaultSxConfig:xg});const qg=e=>e,zg=(()=>{let e=qg;return{configure(t){e=t},generate:t=>e(t),reset(){e=qg}}})();function Dg(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=Dg(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ag(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Dg(e))&&(r&&(r+=" "),r+=t);return r}const jg=["className","component"];const Fg={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 Bg(e,t,n="Mui"){const r=Fg[t];return r?`${n}-${r}`:`${zg.generate(e)}-${t}`}function $g(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Bg(e,t,n)})),r}const Wg=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Hg(e){const t=`${e}`.match(Wg);return t&&t[1]||""}function Ug(e,t=""){return e.displayName||e.name||Hg(e)||t}function Vg(e,t,n){const r=Ug(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var Gg=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Ug(e,"Component");if("object"==typeof e)switch(e.$$typeof){case th.ForwardRef:return Vg(e,e.render,"ForwardRef");case th.Memo:return Vg(e,e.type,"memo");default:return}}},getFunctionName:Hg});const Kg=["ownerState"],Zg=["variants"],Xg=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Qg(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Jg=kg(),Yg=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function ev({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function tv(e){return e?(t,n)=>n[e]:null}function nv(e,t){let{ownerState:n}=t,r=dm(t,Kg);const o="function"==typeof e?e(um({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>nv(e,um({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=dm(o,Zg);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props(um({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(um({ownerState:n},r,n)):e.style))})),t}return o}const rv=function(e={}){const{themeId:t,defaultTheme:n=Jg,rootShouldForwardProp:r=Qg,slotShouldForwardProp:o=Qg}=e,a=e=>wg(um({},e,{theme:ev(um({},e,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(e,i={})=>{sm(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:c,skipSx:u,overridesResolver:d=tv(Yg(s))}=i,p=dm(i,Xg),f=void 0!==c?c:s&&"Root"!==s&&"root"!==s||!1,h=u||!1;let m=Qg;"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=lm(e,um({shouldForwardProp:m,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||fm(e)?r=>nv(e,um({},r,{theme:ev({theme:r.theme,defaultTheme:n,themeId:t})})):e,b=(r,...o)=>{let i=v(r);const s=o?o.map(v):[];l&&d&&s.push((e=>{const r=ev(um({},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]=nv(n,um({},e,{theme:r}))})),d(e,a)})),l&&!f&&s.push((e=>{var r;const o=ev(um({},e,{defaultTheme:n,themeId:t}));return nv({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},um({},e,{theme:o}))})),h||s.push(a);const c=s.length-o.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const u=g(i,...s);return e.muiName&&(u.muiName=e.muiName),u};return g.withConfig&&(b.withConfig=g.withConfig),b}}();function ov(e,t){const n=pm({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=pm({},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]=pm({},a),Object.keys(o).forEach((e=>{n[r][e]=ov(o[e],a[e])}))):n[r]=a:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function av({props:e,name:t,defaultTheme:n,themeId:r}){let o=_g(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?ov(t.components[n].defaultProps,r):r}({theme:o,name:t,props:e});return a}const iv="undefined"!=typeof window?U.useLayoutEffect:U.useEffect;var lv=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 sv(){return sv=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},sv.apply(this,arguments)}function cv(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}function uv(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}function dv(e,t){var n,r;return U.isValidElement(e)&&-1!==t.indexOf(null!=(n=e.type.muiName)?n:null==(r=e.type)||null==(r=r._payload)||null==(r=r.value)?void 0:r.muiName)}function pv(e){return e&&e.ownerDocument||document}function fv(e){return pv(e).defaultView||window}function hv(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let mv=0;const gv=G["useId".toString()];function vv(e){if(void 0!==gv){const t=gv();return null!=e?e:t}return function(e){const[t,n]=U.useState(e),r=e||t;return U.useEffect((()=>{null==t&&(mv+=1,n(`mui-${mv}`))}),[t]),r}(e)}function bv({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=U.useRef(void 0!==e),[a,i]=U.useState(t);return[o?e:a,U.useCallback((e=>{o||i(e)}),[])]}function yv(e){const t=U.useRef(e);return iv((()=>{t.current=e})),U.useRef(((...e)=>(0,t.current)(...e))).current}function xv(...e){return U.useMemo((()=>e.every((e=>null==e))?null:t=>{e.forEach((e=>{hv(e,t)}))}),e)}const Sv={};const wv=[];class Ev{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ev}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=null,t()}),e)}}function Cv(){const e=function(e,t){const n=U.useRef(Sv);return n.current===Sv&&(n.current=e(t)),n}(Ev.create).current;var t;return t=e.disposeEffect,U.useEffect(t,wv),e}let kv=!0,Rv=!1;const Lv=new Ev,Ov={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 _v(e){e.metaKey||e.altKey||e.ctrlKey||(kv=!0)}function Iv(){kv=!1}function Tv(){"hidden"===this.visibilityState&&Rv&&(kv=!0)}function Pv(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return kv||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Ov[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Mv(){const e=U.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",_v,!0),t.addEventListener("mousedown",Iv,!0),t.addEventListener("pointerdown",Iv,!0),t.addEventListener("touchstart",Iv,!0),t.addEventListener("visibilitychange",Tv,!0))}),[]),t=U.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!Pv(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Rv=!0,Lv.start(100,(()=>{Rv=!1})),t.current=!1,!0)},ref:e}}function Nv(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const qv=e=>{const t=U.useRef({});return U.useEffect((()=>{t.current=e})),t.current};function zv(e,t,n=void 0){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}const Dv=U.createContext(null);function Av(){return U.useContext(Dv)}var jv="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Fv(e){const{children:t,theme:n}=e,r=Av(),o=U.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return sv({},e,t)}(r,n);return null!=e&&(e[jv]=null!==r),e}),[n,r]);return rm.jsx(Dv.Provider,{value:o,children:t})}const Bv=["value"],$v=U.createContext();function Wv(e){let{value:t}=e,n=dm(e,Bv);return rm.jsx($v.Provider,um({value:null==t||t},n))}const Hv={};function Uv(e,t,n,r=!1){return U.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const a=n(o),i=e?um({},t,{[e]:a}):a;return r?()=>i:i}return um({},t,e?{[e]:n}:n)}),[e,t,n,r])}function Vv(e){const{children:t,theme:n,themeId:r}=e,o=Lg(Hv),a=Av()||Hv,i=Uv(r,o,n),l=Uv(r,a,n,!0),s="rtl"===i.direction;return rm.jsx(Fv,{theme:l,children:rm.jsx(Oh.Provider,{value:i,children:rm.jsx(Wv,{value:s,children:t})})})}const Gv=["component","direction","spacing","divider","children","className","useFlexGap"],Kv=kg(),Zv=rv("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Xv(e){return av({props:e,name:"MuiStack",defaultTheme:Kv})}function Qv(e,t){const n=U.Children.toArray(e).filter(Boolean);return n.reduce(((e,r,o)=>(e.push(r),o<n.length-1&&e.push(U.cloneElement(t,{key:`separator-${o}`})),e)),[])}const Jv=({ownerState:e,theme:t})=>{let n=um({display:"flex",flexDirection:"column"},Cm({theme:t},Lm({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const r=Fm(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=Lm({values:e.direction,base:o}),i=Lm({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=mm(n,Cm({theme:t},i,((t,n)=>{return e.useFlexGap?{gap:Bm(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]}`]:Bm(r,t)}};var o})))}return n=function(e,...t){const n=km(e),r=[n,...t].reduce(((e,t)=>mm(e,t)),{});return Rm(Object.keys(n),r)}(t.breakpoints,n),n};const Yv=["defaultProps","mixins","overrides","palette","props","styleOverrides"],eb=["type","mode"];var tb={},nb={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(nb);var rb=nb.exports,ob=r(Ep),ab=r(lv),ib=rb;Object.defineProperty(tb,"__esModule",{value:!0});var lb=tb.alpha=xb;tb.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),a=mb(e),i=mb(t),l=[o(a.values[0],i.values[0]),o(a.values[1],i.values[1]),o(a.values[2],i.values[2])];return vb({type:"rgb",values:l})},tb.colorChannel=void 0;var sb=tb.darken=Sb;tb.decomposeColor=mb,tb.emphasize=Eb;var cb=tb.getContrastRatio=function(e,t){const n=yb(e),r=yb(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};tb.getLuminance=yb,tb.hexToRgb=hb,tb.hslToRgb=bb;var ub=tb.lighten=wb;tb.private_safeAlpha=function(e,t,n){try{return xb(e,t)}catch(t){return e}},tb.private_safeColorChannel=void 0,tb.private_safeDarken=function(e,t,n){try{return Sb(e,t)}catch(t){return e}},tb.private_safeEmphasize=function(e,t,n){try{return Eb(e,t)}catch(t){return e}},tb.private_safeLighten=function(e,t,n){try{return wb(e,t)}catch(t){return e}},tb.recomposeColor=vb,tb.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=mb(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 db=ib(ob),pb=ib(ab);function fb(e,t=0,n=1){return(0,pb.default)(e,t,n)}function hb(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 mb(e){if(e.type)return e;if("#"===e.charAt(0))return mb(hb(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,db.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,db.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const gb=e=>{const t=mb(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};tb.colorChannel=gb;function vb(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 bb(e){e=mb(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),i=(e,t=(e+n/30)%12)=>o-a*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*i(0)),Math.round(255*i(8)),Math.round(255*i(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),vb({type:l,values:s})}function yb(e){let t="hsl"===(e=mb(e)).type||"hsla"===e.type?mb(bb(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 xb(e,t){return e=mb(e),t=fb(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,vb(e)}function Sb(e,t){if(e=mb(e),t=fb(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 vb(e)}function wb(e,t){if(e=mb(e),t=fb(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 vb(e)}function Eb(e,t=.15){return yb(e)>.5?Sb(e,t):wb(e,t)}tb.private_safeColorChannel=(e,t)=>{try{return gb(e)}catch(t){return e}};const Cb={black:"#000",white:"#fff"},kb={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"},Rb={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Lb={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Ob={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},_b={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Ib={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Tb={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Pb=["mode","contrastThreshold","tonalOffset"],Mb={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:Cb.white,default:Cb.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}},Nb={text:{primary:Cb.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:Cb.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 qb(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=ub(e.main,o):"dark"===t&&(e.dark=sb(e.main,a)))}function zb(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Rp(e,Pb),a=e.primary||function(e="light"){return"dark"===e?{main:_b[200],light:_b[50],dark:_b[400]}:{main:_b[700],light:_b[400],dark:_b[800]}}(t),i=e.secondary||function(e="light"){return"dark"===e?{main:Rb[200],light:Rb[50],dark:Rb[400]}:{main:Rb[500],light:Rb[300],dark:Rb[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:Lb[500],light:Lb[300],dark:Lb[700]}:{main:Lb[700],light:Lb[400],dark:Lb[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:Ib[400],light:Ib[300],dark:Ib[700]}:{main:Ib[700],light:Ib[500],dark:Ib[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:Tb[400],light:Tb[300],dark:Tb[700]}:{main:Tb[800],light:Tb[500],dark:Tb[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:Ob[400],light:Ob[300],dark:Ob[700]}:{main:"#ed6c02",light:Ob[500],dark:Ob[900]}}(t);function d(e){return cb(e,Nb.text.primary)>=n?Nb.text.primary:Mb.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:a=700})=>{if(!(e=kp({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(wp(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(wp(12,t?` (${t})`:"",JSON.stringify(e.main)));return qb(e,"light",o,r),qb(e,"dark",a,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:Nb,light:Mb};return mm(kp({common:kp({},Cb),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:kb,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const Db=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Ab={textTransform:"uppercase"},jb='"Roboto", "Helvetica", "Arial", sans-serif';function Fb(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=jb,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,p=Rp(n,Db),f=o/14,h=d||(e=>e/c*f+"rem"),m=(e,t,n,o,a)=>{return kp({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===jb?{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,Ab),caption:m(i,12,1.66,.4),overline:m(i,12,2.66,1,Ab),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return mm(kp({htmlFontSize:c,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function Bb(...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 $b=["none",Bb(0,2,1,-1,0,1,1,0,0,1,3,0),Bb(0,3,1,-2,0,2,2,0,0,1,5,0),Bb(0,3,3,-2,0,3,4,0,0,1,8,0),Bb(0,2,4,-1,0,4,5,0,0,1,10,0),Bb(0,3,5,-1,0,5,8,0,0,1,14,0),Bb(0,3,5,-1,0,6,10,0,0,1,18,0),Bb(0,4,5,-2,0,7,10,1,0,2,16,1),Bb(0,5,5,-3,0,8,10,1,0,3,14,2),Bb(0,5,6,-3,0,9,12,1,0,3,16,2),Bb(0,6,6,-3,0,10,14,1,0,4,18,3),Bb(0,6,7,-4,0,11,15,1,0,4,20,3),Bb(0,7,8,-4,0,12,17,2,0,5,22,4),Bb(0,7,8,-4,0,13,19,2,0,5,24,4),Bb(0,7,9,-4,0,14,21,2,0,5,26,4),Bb(0,8,9,-5,0,15,22,2,0,6,28,5),Bb(0,8,10,-5,0,16,24,2,0,6,30,5),Bb(0,8,11,-5,0,17,26,2,0,6,32,5),Bb(0,9,11,-5,0,18,28,2,0,7,34,6),Bb(0,9,12,-6,0,19,29,2,0,7,36,6),Bb(0,10,13,-6,0,20,31,3,0,8,38,7),Bb(0,10,13,-6,0,21,33,3,0,8,40,7),Bb(0,10,14,-6,0,22,35,3,0,8,42,7),Bb(0,11,14,-7,0,23,36,3,0,9,44,8),Bb(0,11,15,-7,0,24,38,3,0,9,46,8)],Wb=["duration","easing","delay"],Hb={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)"},Ub={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Vb(e){return`${Math.round(e)}ms`}function Gb(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Kb(e){const t=kp({},Hb,e.easing),n=kp({},Ub,e.duration);return kp({getAutoHeightDuration:Gb,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:a=t.easeInOut,delay:i=0}=r;return Rp(r,Wb),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Vb(o)} ${a} ${"string"==typeof i?i:Vb(i)}`)).join(",")}},e,{easing:t,duration:n})}const Zb={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Xb=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Qb(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:a={}}=e,i=Rp(e,Xb);if(e.vars)throw new Error(wp(18));const l=zb(r),s=kg(e);let c=mm(s,{mixins:(u=s.breakpoints,d=n,kp({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:$b.slice(),typography:Fb(l,a),transitions:Kb(o),zIndex:kp({},Zb)});var u,d;return c=mm(c,i),c=t.reduce(((e,t)=>mm(e,t)),c),c.unstable_sxConfig=kp({},xg,null==i?void 0:i.unstable_sxConfig),c.unstable_sx=function(e){return wg({sx:e,theme:this})},c}const Jb=Qb();function Yb(){const e=_g(Jb);return e[Cp]||e}function ey({props:e,name:t}){return av({props:e,name:t,defaultTheme:Jb,themeId:Cp})}var ty,ny={},ry={exports:{}};var oy,ay={exports:{}};var iy=r(cm),ly=r(gm),sy=r(_m),cy=r(Gg),uy=r(Rg),dy=r(Ng),py=rb;Object.defineProperty(ny,"__esModule",{value:!0});var fy=ny.default=function(e={}){const{themeId:t,defaultTheme:n=ky,rootShouldForwardProp:r=Cy,slotShouldForwardProp:o=Cy}=e,a=e=>(0,yy.default)((0,hy.default)({},e,{theme:Ly((0,hy.default)({},e,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(e,i={})=>{(0,gy.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:c,skipSx:u,overridesResolver:d=Oy(Ry(s))}=i,p=(0,my.default)(i,wy),f=void 0!==c?c:s&&"Root"!==s&&"root"!==s||!1,h=u||!1;let m=Cy;"Root"===s||"root"===s?m=r:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,gy.default)(e,(0,hy.default)({shouldForwardProp:m,label:undefined},p)),v=e=>"function"==typeof e&&e.__emotion_real!==e||(0,vy.isPlainObject)(e)?r=>_y(e,(0,hy.default)({},r,{theme:Ly({theme:r.theme,defaultTheme:n,themeId:t})})):e,b=(r,...o)=>{let i=v(r);const s=o?o.map(v):[];l&&d&&s.push((e=>{const r=Ly((0,hy.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,a={};return Object.entries(o).forEach((([t,n])=>{a[t]=_y(n,(0,hy.default)({},e,{theme:r}))})),d(e,a)})),l&&!f&&s.push((e=>{var r;const o=Ly((0,hy.default)({},e,{defaultTheme:n,themeId:t}));return _y({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},(0,hy.default)({},e,{theme:o}))})),h||s.push(a);const c=s.length-o.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");i=[...r,...e],i.raw=[...r.raw,...e]}const u=g(i,...s);return e.muiName&&(u.muiName=e.muiName),u};return g.withConfig&&(b.withConfig=g.withConfig),b}};ny.shouldForwardProp=Cy,ny.systemDefaultTheme=void 0;var hy=py((ty||(ty=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}(ry)),ry.exports)),my=py((oy||(oy=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}(ay)),ay.exports)),gy=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=Ey(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}(iy),vy=ly;py(sy),py(cy);var by=py(uy),yy=py(dy);const xy=["ownerState"],Sy=["variants"],wy=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Ey(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(Ey=function(e){return e?n:t})(e)}function Cy(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const ky=ny.systemDefaultTheme=(0,by.default)(),Ry=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function Ly({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function Oy(e){return e?(t,n)=>n[e]:null}function _y(e,t){let{ownerState:n}=t,r=(0,my.default)(t,xy);const o="function"==typeof e?e((0,hy.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>_y(e,(0,hy.default)({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,my.default)(o,Sy);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,hy.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,hy.default)({ownerState:n},r,n)):e.style))})),t}return o}const Iy=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e,Ty=fy({themeId:Cp,defaultTheme:Jb,rootShouldForwardProp:Iy}),Py=["theme"];function My(e){let{theme:t}=e,n=Rp(e,Py);const r=t[Cp];return rm.jsx(Vv,kp({},n,{themeId:r?Cp:void 0,theme:r||t}))}const Ny=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function qy(){return qy=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},qy.apply(this,arguments)}function zy(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 Dy(e,t){return Dy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Dy(e,t)}function Ay(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Dy(e,t)}var jy=!1,Fy=V.createContext(null),By="unmounted",$y="exited",Wy="entering",Hy="entered",Uy="exiting",Vy=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=$y,r.appearStatus=Wy):o=Hy:o=t.unmountOnExit||t.mountOnEnter?By:$y,r.state={status:o},r.nextCallback=null,r}Ay(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===By?{status:$y}: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!==Wy&&n!==Hy&&(t=Wy):n!==Wy&&n!==Hy||(t=Uy)}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===Wy){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:xp.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===$y&&this.setState({status:By})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[xp.findDOMNode(this),r],a=o[0],i=o[1],l=this.getTimeouts(),s=r?l.appear:l.enter;!e&&!n||jy?this.safeSetState({status:Hy},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,i),this.safeSetState({status:Wy},(function(){t.props.onEntering(a,i),t.onTransitionEnd(s,(function(){t.safeSetState({status:Hy},(function(){t.props.onEntered(a,i)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:xp.findDOMNode(this);t&&!jy?(this.props.onExit(r),this.safeSetState({status:Uy},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:$y},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:$y},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:xp.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=o[0],i=o[1];this.props.addEndListener(a,i)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===By)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=zy(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return V.createElement(Fy.Provider,{value:null},"function"==typeof n?n(e,r):V.cloneElement(V.Children.only(n),r))},t}(V.Component);function Gy(){}function Ky(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zy(e,t){var n=Object.create(null);return e&&U.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&U.isValidElement(e)?t(e):e}(e)})),n}function Xy(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Qy(e,t,n){var r=Zy(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),a=[];for(var i in e)i in t?a.length&&(o[i]=a,a=[]):a.push(i);var l={};for(var s in t){if(o[s])for(r=0;r<o[s].length;r++){var c=o[s][r];l[o[s][r]]=n(c)}l[s]=n(s)}for(r=0;r<a.length;r++)l[a[r]]=n(a[r]);return l}(t,r);return Object.keys(o).forEach((function(a){var i=o[a];if(U.isValidElement(i)){var l=a in t,s=a in r,c=t[a],u=U.isValidElement(c)&&!c.props.in;!s||l&&!u?s||!l||u?s&&l&&U.isValidElement(c)&&(o[a]=U.cloneElement(i,{onExited:n.bind(null,i),in:c.props.in,exit:Xy(i,"exit",e),enter:Xy(i,"enter",e)})):o[a]=U.cloneElement(i,{in:!1}):o[a]=U.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:Xy(i,"exit",e),enter:Xy(i,"enter",e)})}})),o}Vy.contextType=Fy,Vy.propTypes={},Vy.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Gy,onEntering:Gy,onEntered:Gy,onExit:Gy,onExiting:Gy,onExited:Gy},Vy.UNMOUNTED=By,Vy.EXITED=$y,Vy.ENTERING=Wy,Vy.ENTERED=Hy,Vy.EXITING=Uy;var Jy=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Yy=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Ky(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Ay(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,Zy(n.children,(function(e){return U.cloneElement(e,{onExited:r.bind(null,e),in:!0,appear:Xy(e,"appear",n),enter:Xy(e,"enter",n),exit:Xy(e,"exit",n)})}))):Qy(e,o,a),firstRender:!1}},n.handleExited=function(e,t){var n=Zy(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=qy({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=zy(e,["component","childFactory"]),o=this.state.contextValue,a=Jy(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?V.createElement(Fy.Provider,{value:o},a):V.createElement(Fy.Provider,{value:o},V.createElement(t,r,a))},t}(V.Component);Yy.propTypes={},Yy.defaultProps={component:"div",childFactory:function(e){return e}};const ex=$g("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),tx=["center","classes","className"];let nx,rx,ox,ax,ix=e=>e;const lx=Th(nx||(nx=ix`
|
|
34
34
|
0% {
|
|
35
35
|
transform: scale(0);
|
|
36
36
|
opacity: 0.1;
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
transform: scale(1);
|
|
41
41
|
opacity: 0.3;
|
|
42
42
|
}
|
|
43
|
-
`)),
|
|
43
|
+
`)),sx=Th(rx||(rx=ix`
|
|
44
44
|
0% {
|
|
45
45
|
opacity: 1;
|
|
46
46
|
}
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
100% {
|
|
49
49
|
opacity: 0;
|
|
50
50
|
}
|
|
51
|
-
`)),
|
|
51
|
+
`)),cx=Th(ox||(ox=ix`
|
|
52
52
|
0% {
|
|
53
53
|
transform: scale(1);
|
|
54
54
|
}
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
100% {
|
|
61
61
|
transform: scale(1);
|
|
62
62
|
}
|
|
63
|
-
`)),
|
|
63
|
+
`)),ux=Ty("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),dx=Ty((function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:a,rippleSize:i,in:l,onExited:s,timeout:c}=e,[u,d]=U.useState(!1),p=Ag(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:i,height:i,top:-i/2+a,left:-i/2+o},h=Ag(n.child,u&&n.childLeaving,r&&n.childPulsate);return l||u||d(!0),U.useEffect((()=>{if(!l&&null!=s){const e=setTimeout(s,c);return()=>{clearTimeout(e)}}}),[s,l,c]),rm.jsx("span",{className:p,style:f,children:rm.jsx("span",{className:h})})}),{name:"MuiTouchRipple",slot:"Ripple"})(ax||(ax=ix`
|
|
64
64
|
opacity: 0;
|
|
65
65
|
position: absolute;
|
|
66
66
|
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
animation-iteration-count: infinite;
|
|
104
104
|
animation-delay: 200ms;
|
|
105
105
|
}
|
|
106
|
-
`),tx.rippleVisible,sx,550,(({theme:e})=>e.transitions.easing.easeInOut),tx.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),tx.child,tx.childLeaving,cx,550,(({theme:e})=>e.transitions.easing.easeInOut),tx.childPulsate,ux,(({theme:e})=>e.transitions.easing.easeInOut)),fx=V.forwardRef((function(e,t){const n=ty({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a}=n,i=Lp(n,nx),[l,s]=V.useState([]),c=V.useRef(0),u=V.useRef(null);V.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[l]);const d=V.useRef(!1),p=kv(),f=V.useRef(null),h=V.useRef(null),m=V.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:a,cb:i}=e;s((e=>[...e,om.jsx(px,{classes:{ripple:jg(o.ripple,tx.ripple),rippleVisible:jg(o.rippleVisible,tx.rippleVisible),ripplePulsate:jg(o.ripplePulsate,tx.ripplePulsate),child:jg(o.child,tx.child),childLeaving:jg(o.childLeaving,tx.childLeaving),childPulsate:jg(o.childPulsate,tx.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:a},c.current)])),c.current+=1,u.current=i}),[o]),g=V.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=V.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=V.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{b(e,t)}));f.current=null,s((e=>e.length>0?e.slice(1):e)),u.current=t}),[p]);return V.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),om.jsx(dx,Rp({className:jg(tx.root,o.root,a),ref:h},i,{children:om.jsx(ex,{component:null,exit:!0,children:l})}))}));function hx(e){return $g("MuiButtonBase",e)}const mx=Wg("MuiButtonBase",["root","disabled","focusVisible"]),gx=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],vx=Py("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${mx.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),bx=V.forwardRef((function(e,t){const n=ty({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:a,className:i,component:l="button",disabled:s=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:w,onMouseUp:E,onTouchEnd:C,onTouchMove:k,onTouchStart:R,tabIndex:L=0,TouchRippleProps:O,touchRippleRef:_,type:I}=n,T=Lp(n,gx),P=V.useRef(null),M=V.useRef(null),N=Sv(M,_),{isFocusVisibleRef:q,onFocus:z,onBlur:D,ref:A}=Nv(),[j,F]=V.useState(!1);s&&j&&F(!1),V.useImperativeHandle(r,(()=>({focusVisible:()=>{F(!0),P.current.focus()}})),[]);const[B,$]=V.useState(!1);V.useEffect((()=>{$(!0)}),[]);const W=B&&!c&&!s;function H(e,t,n=u){return xv((r=>{t&&t(r);return!n&&M.current&&M.current[e](r),!0}))}V.useEffect((()=>{j&&d&&!c&&B&&M.current.pulsate()}),[c,d,j,B]);const U=H("start",S),G=H("stop",m),K=H("stop",g),Z=H("stop",E),X=H("stop",(e=>{j&&e.preventDefault(),w&&w(e)})),Q=H("start",R),J=H("stop",C),Y=H("stop",k),ee=H("stop",(e=>{D(e),!1===q.current&&F(!1),f&&f(e)}),!1),te=xv((e=>{P.current||(P.current=e.currentTarget),z(e),!0===q.current&&(F(!0),b&&b(e)),v&&v(e)})),ne=()=>{const e=P.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=V.useRef(!1),oe=xv((e=>{d&&!re.current&&j&&M.current&&" "===e.key&&(re.current=!0,M.current.stop(e,(()=>{M.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),ae=xv((e=>{d&&" "===e.key&&M.current&&j&&!e.defaultPrevented&&(re.current=!1,M.current.stop(e,(()=>{M.current.pulsate(e)}))),x&&x(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ie=l;"button"===ie&&(T.href||T.to)&&(ie=p);const le={};"button"===ie?(le.type=void 0===I?"button":I,le.disabled=s):(T.href||T.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=Sv(t,A,P),ce=Rp({},n,{centerRipple:o,component:l,disabled:s,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:L,focusVisible:j}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Dv({root:["root",t&&"disabled",n&&"focusVisible"]},hx,o);return n&&r&&(a.root+=` ${r}`),a})(ce);return om.jsxs(vx,Rp({as:ie,className:jg(ue.root,i),ownerState:ce,onBlur:ee,onClick:h,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ae,onMouseDown:U,onMouseLeave:X,onMouseUp:Z,onDragLeave:K,onTouchEnd:J,onTouchMove:Y,onTouchStart:Q,ref:se,tabIndex:s?-1:L,type:I},le,T,{children:[a,W?om.jsx(fx,Rp({ref:N,center:o},O)):null]}))}));function yx(e){return $g("MuiButton",e)}const xx=Wg("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","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"]),Sx=V.createContext({}),wx=V.createContext(void 0),Ex=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Cx=e=>Rp({},"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}}),kx=Py(bx,{shouldForwardProp:e=>Ty(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${_m(n.color)}`],t[`size${_m(n.size)}`],t[`${n.variant}Size${_m(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],a="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return Rp({},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":Rp({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:sb(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})`:sb(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})`:sb(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":Rp({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${xx.focusVisible}`]:Rp({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${xx.disabled}`]:Rp({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 ${sb(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"},[`&.${xx.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${xx.disabled}`]:{boxShadow:"none"}})),Rx=Py("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${_m(n.size)}`]]}})((({ownerState:e})=>Rp({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Cx(e)))),Lx=Py("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${_m(n.size)}`]]}})((({ownerState:e})=>Rp({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Cx(e)))),Ox=V.forwardRef((function(e,t){const n=V.useContext(Sx),r=V.useContext(wx),o=ty({props:av(n,e),name:"MuiButton"}),{children:a,color:i="primary",component:l="button",className:s,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:v,variant:b="text"}=o,y=Lp(o,Ex),x=Rp({},o,{color:i,component:l,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:h,size:m,type:v,variant:b}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,classes:i}=e;return Rp({},i,Dv({root:["root",a,`${a}${_m(t)}`,`size${_m(o)}`,`${a}Size${_m(o)}`,`color${_m(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${_m(o)}`],endIcon:["icon","endIcon",`iconSize${_m(o)}`]},yx,i))})(x),w=g&&om.jsx(Rx,{className:S.startIcon,ownerState:x,children:g}),E=p&&om.jsx(Lx,{className:S.endIcon,ownerState:x,children:p}),C=r||"";return om.jsxs(kx,Rp({ownerState:x,className:jg(n.className,S.root,s,C),component:l,disabled:c,focusRipple:!d,focusVisibleClassName:jg(S.focusVisible,f),ref:t,type:v},y,{classes:S,children:[w,a,E]}))}));var _x={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 Ix={green:"#009845",greenPale:"#0AAF54",red:"#DC423F",redPale:"#F05551",blue:"#3F8AB3",bluePale:"#469DCD",grey100:"#ffffff",grey98:"#FBFBFB",grey95:"#F2F2F2",grey90:"#E6E6E6",grey85:"#D9D9D9",grey55:"#8C8C8C",grey45:"#737373",grey30:"#4D4D4D",grey25:"#404040",grey20:"#333333",grey15:"#262626",grey10:"#1A1A1A",grey5:"#0E0E0E",grey0:"#000000"},Tx={mode:"light",palette:{primary:{main:Ix.grey25,contrastText:Ix.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:Ix.grey25,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)",light:Ix.grey100,dark:Ix.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:Ix.grey100,default:Ix.grey100,lightest:Ix.grey100,lighter:Ix.grey98,darker:Ix.grey95,darkest:Ix.grey90},custom:{focusBorder:Ix.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)",disabledBackground:Ix.grey45,disabledContrastText:Ix.grey100},selected:{main:Ix.green,alternative:"#E4E4E4",excluded:"#BEBEBE",selectedExcluded:"#BEBEBE",possible:Ix.grey100,selectedContrastText:Ix.grey100,mainContrastText:Ix.grey100,alternativeContrastText:Ix.grey25,excludedContrastText:Ix.grey25,selectedExcludedContrastText:Ix.grey100,possibleContrastText:Ix.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)"}}},Px={mode:"dark",palette:{primary:{main:Ix.grey20,contrastText:Ix.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:Ix.grey100,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)",light:Ix.grey100,dark:Ix.grey0},action:{active:Ix.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:Ix.grey25,lighter:Ix.grey20,darker:Ix.grey15,darkest:Ix.grey10},custom:{focusBorder:Ix.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)",disabledBackground:Ix.grey45,disabledContrastText:Ix.grey100},selected:{main:Ix.green,alternative:Ix.grey20,excluded:Ix.grey10,selectedExcluded:Ix.grey10,possible:Ix.grey80,selectedContrastText:Ix.grey100,mainContrastText:Ix.grey100,alternativeContrastText:Ix.grey100,excludedContrastText:Ix.grey100,selectedExcludedContrastText:Ix.grey100,possibleContrastText:Ix.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)"}}},Mx={},Nx=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(xx.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(xx.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(xx.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(xx.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function qx(e){let t=Tx,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=Px));const r=JSON.stringify(t);if(Mx[r])return Mx[r];const o={palette:a(a({type:t.mode},_x.palette),t.palette),typography:a({},_x.typography),shadows:_x.shadows,props:a({},_x.props),shape:a({},_x.shape)};return Mx[r]=Jb(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:a={},styleOverrides:i={}}=e,l=Rp({},Lp(e,eb),{components:{}});Object.keys(t).forEach((e=>{const n=l.components[e]||{};n.defaultProps=t[e],l.components[e]=n})),Object.keys(a).forEach((e=>{const t=l.components[e]||{};t.defaultProps=a[e],l.components[e]=t})),Object.keys(i).forEach((e=>{const t=l.components[e]||{};t.styleOverrides=i[e],l.components[e]=t})),Object.keys(r).forEach((e=>{const t=l.components[e]||{};t.styleOverrides=r[e],l.components[e]=t})),l.spacing=Gm(e.spacing);const s=xm(e.breakpoints||{}),c=l.spacing;l.mixins=Rp({gutters:(e={})=>Rp({paddingLeft:c(2),paddingRight:c(2)},e,{[s.up("sm")]:Rp({paddingLeft:c(3),paddingRight:c(3)},e[s.up("sm")])})},n);const{type:u,mode:d}=o,p=Lp(o,tb),f=d||u||"light";return l.palette=Rp({text:{hint:"dark"===f?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:f,type:f},p),l}(a(a({},o),{},{overrides:Nx(o)}))),Mx[r].name=n,Mx[r]}Dg.configure((e=>"njs-".concat("06ed","-").concat(e.replace("Mui",""))));var zx=G.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null,modelStore:{},selectionStore:{}});const Dx={active:!0,select:!0,passive:!0,edit:!1};function Ax(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(Dx).forEach((e=>{void 0!==r[e]?(t[e]=r[e],n[e]=!r[e]):(t[e]=Dx[e],n[e]=!Dx[e])})),e.constraints=n,e.interactions=t}var jx=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};const t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=[],r={get:e=>t[e],set:(n,r)=>{if(void 0===n||"object"==typeof n)throw new Error("Invalid key: ".concat(JSON.stringify(n)));return t[n]=r,e({type:"SET",value:r}),r},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));t[e]=null},dispatch:e=>{n.forEach((n=>n(e?{}:t)))}};return[()=>{const[,e]=V.useState(t);return V.useEffect((()=>(n.push(e),()=>{const t=n.indexOf(e);n.splice(t,1)})),[e]),[r]},r]};const Fx=V.forwardRef(((e,t)=>{let{initialContext:n,renderCallback:r,modelStore:o,selectionStore:a}=e;const[i,l]=V.useState(n),[s,c]=V.useState(),{theme:u}=V.useMemo((()=>({theme:qx(s)})),[s]),[d,p]=V.useState([]);return V.useEffect((()=>{r&&r()}),[]),V.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),G.createElement(im,{injectFirst:!0},G.createElement(Ny,{theme:u},G.createElement(zx.Provider,{value:i},d)))}));function Bx(e){let t,{app:n,context:r}=e;const o=new Promise((e=>{t=e})),a=G.createRef(),i=document.createElement("div");i.style.display="none",i.setAttribute("data-nebulajs-version","5.1.0"),i.setAttribute("data-app-id",n.id),document.body.appendChild(i),r&&Ax(r);const l=function(e){const[t,n]=jx({}),[r,o]=jx({}),[a,i]=jx({}),[l,s]=jx({}),[c,u]=jx({}),[,d]=jx({}),p=e=>{let{type:t,value:r}=e;const a=d.get(r.id);d.set(r.id,{});const l=()=>{o.clear(r.id),u.set(r.id,{}),u.dispatch(!0)},c=()=>{r.removeListener("changed",l),n.clear(r.id),o.clear(r.id),i.clear(r.id),s.clear(r.id),u.clear(r.id),d.clear(r.id)};return"SET"===t&&(a||(r.on("changed",l),r.once("closed",(()=>{c()})))),c},[f,h]=jx({},p);return{subscribe:e=>{const t=p({type:"SET",value:e});return()=>{t(),h.clear(e.id)}},useModelStore:f,modelStore:h,useModelChangedStore:c,useRpcResultStore:t,rpcResultStore:n,useRpcRequestStore:r,rpcRequestStore:o,useRpcRequestModelStore:l,rpcRequestModelStore:s,useRpcRequestSessionModelStore:a,rpcRequestSessionModelStore:i,modelChangedStore:u,appId:e}}(n.id),s=function(e){const[t,n]=jx({}),[r,o]=jx({}),[a,i]=jx({});return{useAppSelectionsStore:t,useAppModalStore:r,appSelectionsStore:n,appModalStore:o,useModalObjectStore:a,modalObjectStore:i,appId:e}}(n.id);ft.createRoot(i).render(G.createElement(Fx,{ref:a,initialContext:r,renderCallback:t,modelStore:l,selectionStore:s}));const c={},u=[];return[{toggleFocusOfCells(e){Object.keys(c).forEach((t=>{c[t].current.toggleFocus(t===e)}))},cells:c,addCell(e,t){c[e]=t},removeCell(e){delete c[e]},add(e){(async()=>{await o,u.push(e),a.current.setComps(u)})()},remove(e){(async()=>{await o;const t=u.indexOf(e);-1!==t&&u.splice(t,1),a.current.setComps(u)})()},setMuiThemeName(e){(async()=>{await o,a.current.setMuiThemeName(e)})()},context(e){(async()=>{await o,e&&Ax(e),a.current.setContext(e)})()}},l,s,a,o]}function $x(e){return $g("MuiSvgIcon",e)}Wg("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Wx=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Hx=Py("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${_m(n.color)}`],t[`fontSize${_m(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,a,i,l,s,c,u,d,p,f,h;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(a=e.typography)||null==(i=a.pxToRem)?void 0:i.call(a,20))||"1.25rem",medium:(null==(l=e.typography)||null==(s=l.pxToRem)?void 0:s.call(l,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.disabled,inherit:void 0}[t.color]}})),Ux=V.forwardRef((function(e,t){const n=ty({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=Lp(n,Wx),f=V.isValidElement(r)&&"svg"===r.type,h=Rp({},n,{color:a,component:i,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:f}),m={};c||(m.viewBox=d);const g=(e=>{const{color:t,fontSize:n,classes:r}=e;return Dv({root:["root","inherit"!==t&&`color${_m(t)}`,`fontSize${_m(n)}`]},$x,r)})(h);return om.jsxs(Hx,Rp({as:i,className:jg(g.root,o),focusable:"false",color:s,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},m,p,f&&r.props,{ownerState:h,children:[f?r.props.children:r,u?om.jsx("title",{children:u}):null]}))}));function Vx(e,t){function n(n,r){return om.jsx(Ux,Rp({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=Ux.muiName,V.memo(V.forwardRef(n))}Ux.muiName="SvgIcon";const Gx={configure:e=>{Dg.configure(e)}};var Kx=Object.freeze({__proto__:null,capitalize:_m,createChainedFunction:uv,createSvgIcon:Vx,debounce:dv,deprecatedPropType:function(e,t){return()=>null},isMuiElement:pv,ownerDocument:fv,ownerWindow:hv,requirePropFactory:function(e,t){return()=>null},setRef:mv,unstable_ClassNameGenerator:Gx,unstable_useEnhancedEffect:lv,unstable_useId:bv,unsupportedProp:function(e,t,n,r,o){return null},useControlled:yv,useEventCallback:xv,useForkRef:Sv,useIsFocusVisible:Nv});const Zx=e=>e.scrollTop;function Xx(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 Qx(e){return $g("MuiPaper",e)}Wg("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Jx=["className","component","elevation","square","variant"],Yx=Py("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 Rp({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&&Rp({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${sb("#fff",qy(t.elevation))}, ${sb("#fff",qy(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),eS=V.forwardRef((function(e,t){const n=ty({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:a=1,square:i=!1,variant:l="elevation"}=n,s=Lp(n,Jx),c=Rp({},n,{component:o,elevation:a,square:i,variant:l}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Dv({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Qx,o)})(c);return om.jsx(Yx,Rp({as:o,ownerState:c,className:jg(u.root,r),ref:t},s))}));function tS(){return tS=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},tS.apply(this,arguments)}function nS(e){return"string"==typeof e}function rS(e,t,n){return void 0===e||nS(e)?t:tS({},t,{ownerState:tS({},t.ownerState,n)})}const oS={disableDefaultClasses:!1},aS=V.createContext(oS);function iS(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 lS(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 sS(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 cS=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function uS(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=lS(e,cS),l=a?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:s,internalRef:c}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const e=jg(null==n?void 0:n.className,a,null==o?void 0:o.className,null==r?void 0:r.className),t=tS({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),i=tS({},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=iS(tS({},o,r)),l=sS(r),s=sS(o),c=t(i),u=jg(null==c?void 0:c.className,null==n?void 0:n.className,a,null==o?void 0:o.className,null==r?void 0:r.className),d=tS({},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=tS({},c,n,s,l);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}(tS({},i,{externalSlotProps:l}));return rS(n,tS({},s,{ref:Sv(c,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o)}function dS(e){return $g("MuiIconButton",e)}const pS=Wg("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),fS=["edge","children","className","color","disabled","disableFocusRipple","size"],hS=Py(bx,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${_m(n.color)}`],n.edge&&t[`edge${_m(n.edge)}`],t[`size${_m(n.size)}`]]}})((({theme:e,ownerState:t})=>Rp({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})`:sb(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 Rp({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&Rp({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":Rp({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:sb(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)},{[`&.${pS.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),mS=V.forwardRef((function(e,t){const n=ty({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=Lp(n,fS),d=Rp({},n,{edge:r,color:i,disabled:l,disableFocusRipple:s,size:c}),p=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:a}=e;return Dv({root:["root",n&&"disabled","default"!==r&&`color${_m(r)}`,o&&`edge${_m(o)}`,`size${_m(a)}`]},dS,t)})(d);return om.jsx(hS,Rp({className:jg(p.root,a),centerRipple:!0,focusRipple:!s,disabled:l,ref:t},u,{ownerState:d,children:o}))}));function gS(e){return $g("MuiTypography",e)}Wg("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const vS=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],bS=Py("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${_m(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Rp({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}))),yS={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},xS={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},SS=V.forwardRef((function(e,t){const n=ty({props:e,name:"MuiTypography"}),r=(e=>xS[e]||e)(n.color),o=Ng(Rp({},n,{color:r})),{align:a="inherit",className:i,component:l,gutterBottom:s=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=yS}=o,f=Lp(o,vS),h=Rp({},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]||yS[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e;return Dv({root:["root",a,"inherit"!==e.align&&`align${_m(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},gS,i)})(h);return om.jsx(bS,Rp({as:m,ref:t,ownerState:h,className:jg(g.root,i)},f))}));const wS="base";function ES(e,t){const n=Bg[t];return n?`${wS}--${n}`:function(e,t){return`${wS}-${e}-${t}`}(e,t)}const CS=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function kS(e){const t=[],n=[];return Array.from(e.querySelectorAll(CS)).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 RS(){return!0}function LS(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=kS,isEnabled:i=RS,open:l}=e,s=V.useRef(!1),c=V.useRef(null),u=V.useRef(null),d=V.useRef(null),p=V.useRef(null),f=V.useRef(!1),h=V.useRef(null),m=Sv(t.ref,h),g=V.useRef(null);V.useEffect((()=>{l&&h.current&&(f.current=!n)}),[n,l]),V.useEffect((()=>{if(!l||!h.current)return;const e=fv(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),V.useEffect((()=>{if(!l||!h.current)return;const e=fv(h.current),t=t=>{g.current=t,!r&&i()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,u.current&&u.current.focus())},n=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!i()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==c.current&&e.activeElement!==u.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==c.current&&e.activeElement!==u.current||(n=a(h.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,i,l,a]);const v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return om.jsxs(V.Fragment,{children:[om.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),V.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),om.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelEnd"})]})}const OS=V.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[a,i]=V.useState(null),l=Sv(V.isValidElement(n)?n.ref:null,t);if(lv((()=>{o||i(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),lv((()=>{if(a&&!o)return mv(t,a),()=>{mv(t,null)}}),[t,a,o]),o){if(V.isValidElement(n)){const e={ref:l};return V.cloneElement(n,e)}return om.jsx(V.Fragment,{children:n})}return om.jsx(V.Fragment,{children:a?xp.createPortal(n,a):a})}));function _S(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function IS(e){return parseInt(hv(e).getComputedStyle(e).paddingRight,10)||0}function TS(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&&_S(e,o)}))}function PS(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function MS(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=fv(e);return t.body===e?hv(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=qv(fv(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${IS(r)+e}px`;const t=fv(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${IS(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=fv(r).body;else{const t=r.parentElement,n=hv(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const NS=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&&_S(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);TS(t,e.mount,e.modalRef,r,!0);const o=PS(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=PS(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=MS(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=PS(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&&_S(e.modalRef,t),TS(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&&_S(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function qS(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=NS,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:l,children:s,onClose:c,open:u,rootRef:d}=e,p=V.useRef({}),f=V.useRef(null),h=V.useRef(null),m=Sv(h,d),[g,v]=V.useState(!u),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},w=xv((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||fv(f.current).body;o.add(x(),e),h.current&&S()})),E=V.useCallback((()=>o.isTopModal(x())),[o]),C=xv((e=>{f.current=e,e&&(u&&E()?S():h.current&&_S(h.current,y))})),k=V.useCallback((()=>{o.remove(x(),y)}),[y,o]);V.useEffect((()=>()=>{k()}),[k]),V.useEffect((()=>{u?w():b&&a||k()}),[u,k,b,a,w]);const R=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&E()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},L=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=iS(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=tS({},n,t);return tS({role:"presentation"},r,{onKeyDown:R(r),ref:m})},getBackdropProps:(e={})=>tS({"aria-hidden":!0},e,{onClick:L(e),open:u}),getTransitionProps:()=>({onEnter:uv((()=>{v(!1),i&&i()}),null==s?void 0:s.props.onEnter),onExited:uv((()=>{v(!0),l&&l(),a&&k()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:C,isTopModal:E,exited:g,hasTransition:b}}var zS="top",DS="bottom",AS="right",jS="left",FS="auto",BS=[zS,DS,AS,jS],$S="start",WS="end",HS="clippingParents",US="viewport",VS="popper",GS="reference",KS=BS.reduce((function(e,t){return e.concat([t+"-"+$S,t+"-"+WS])}),[]),ZS=[].concat(BS,[FS]).reduce((function(e,t){return e.concat([t,t+"-"+$S,t+"-"+WS])}),[]),XS=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function QS(e){return e?(e.nodeName||"").toLowerCase():null}function JS(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function YS(e){return e instanceof JS(e).Element||e instanceof Element}function ew(e){return e instanceof JS(e).HTMLElement||e instanceof HTMLElement}function tw(e){return"undefined"!=typeof ShadowRoot&&(e instanceof JS(e).ShadowRoot||e instanceof ShadowRoot)}var nw={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];ew(o)&&QS(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}),{});ew(r)&&QS(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function rw(e){return e.split("-")[0]}var ow=Math.max,aw=Math.min,iw=Math.round;function lw(){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 sw(){return!/^((?!chrome|android).)*safari/i.test(lw())}function cw(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&ew(e)&&(o=e.offsetWidth>0&&iw(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&iw(r.height)/e.offsetHeight||1);var i=(YS(e)?JS(e):window).visualViewport,l=!sw()&&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 uw(e){var t=cw(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 dw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&tw(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function pw(e){return JS(e).getComputedStyle(e)}function fw(e){return["table","td","th"].indexOf(QS(e))>=0}function hw(e){return((YS(e)?e.ownerDocument:e.document)||window.document).documentElement}function mw(e){return"html"===QS(e)?e:e.assignedSlot||e.parentNode||(tw(e)?e.host:null)||hw(e)}function gw(e){return ew(e)&&"fixed"!==pw(e).position?e.offsetParent:null}function vw(e){for(var t=JS(e),n=gw(e);n&&fw(n)&&"static"===pw(n).position;)n=gw(n);return n&&("html"===QS(n)||"body"===QS(n)&&"static"===pw(n).position)?t:n||function(e){var t=/firefox/i.test(lw());if(/Trident/i.test(lw())&&ew(e)&&"fixed"===pw(e).position)return null;var n=mw(e);for(tw(n)&&(n=n.host);ew(n)&&["html","body"].indexOf(QS(n))<0;){var r=pw(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 bw(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function yw(e,t,n){return ow(e,aw(t,n))}function xw(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Sw(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var ww={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=rw(n.placement),s=bw(l),c=[jS,AS].indexOf(l)>=0?"height":"width";if(a&&i){var u=function(e,t){return xw("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Sw(e,BS))}(o.padding,n),d=uw(a),p="y"===s?zS:jS,f="y"===s?DS:AS,h=n.rects.reference[c]+n.rects.reference[s]-i[s]-n.rects.popper[c],m=i[s]-n.rects.reference[s],g=vw(a),v=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,b=h/2-m/2,y=u[p],x=v-d[c]-u[f],S=v/2-d[c]/2+b,w=yw(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)))&&dw(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ew(e){return e.split("-")[1]}var Cw={top:"auto",right:"auto",bottom:"auto",left:"auto"};function kw(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=i.x,f=void 0===p?0:p,h=i.y,m=void 0===h?0:h,g="function"==typeof u?u({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var v=i.hasOwnProperty("x"),b=i.hasOwnProperty("y"),y=jS,x=zS,S=window;if(c){var w=vw(n),E="clientHeight",C="clientWidth";if(w===JS(n)&&"static"!==pw(w=hw(n)).position&&"absolute"===l&&(E="scrollHeight",C="scrollWidth"),o===zS||(o===jS||o===AS)&&a===WS)x=DS,m-=(d&&w===S&&S.visualViewport?S.visualViewport.height:w[E])-r.height,m*=s?1:-1;if(o===jS||(o===zS||o===DS)&&a===WS)y=AS,f-=(d&&w===S&&S.visualViewport?S.visualViewport.width:w[C])-r.width,f*=s?1:-1}var k,R=Object.assign({position:l},c&&Cw),L=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:iw(n*o)/o||0,y:iw(r*o)/o||0}}({x:f,y:m},JS(n)):{x:f,y:m};return f=L.x,m=L.y,s?Object.assign({},R,((k={})[x]=b?"0":"",k[y]=v?"0":"",k.transform=(S.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",k)):Object.assign({},R,((t={})[x]=b?m+"px":"",t[y]=v?f+"px":"",t.transform="",t))}var Rw={passive:!0};var Lw={left:"right",right:"left",bottom:"top",top:"bottom"};function Ow(e){return e.replace(/left|right|bottom|top/g,(function(e){return Lw[e]}))}var _w={start:"end",end:"start"};function Iw(e){return e.replace(/start|end/g,(function(e){return _w[e]}))}function Tw(e){var t=JS(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Pw(e){return cw(hw(e)).left+Tw(e).scrollLeft}function Mw(e){var t=pw(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Nw(e){return["html","body","#document"].indexOf(QS(e))>=0?e.ownerDocument.body:ew(e)&&Mw(e)?e:Nw(mw(e))}function qw(e,t){var n;void 0===t&&(t=[]);var r=Nw(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=JS(r),i=o?[a].concat(a.visualViewport||[],Mw(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(qw(mw(i)))}function zw(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Dw(e,t,n){return t===US?zw(function(e,t){var n=JS(e),r=hw(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,l=0,s=0;if(o){a=o.width,i=o.height;var c=sw();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:i,x:l+Pw(e),y:s}}(e,n)):YS(t)?function(e,t){var n=cw(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):zw(function(e){var t,n=hw(e),r=Tw(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=ow(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=ow(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Pw(e),s=-r.scrollTop;return"rtl"===pw(o||n).direction&&(l+=ow(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:l,y:s}}(hw(e)))}function Aw(e,t,n,r){var o="clippingParents"===t?function(e){var t=qw(mw(e)),n=["absolute","fixed"].indexOf(pw(e).position)>=0&&ew(e)?vw(e):e;return YS(n)?t.filter((function(e){return YS(e)&&dw(e,n)&&"body"!==QS(e)})):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],l=a.reduce((function(t,n){var o=Dw(e,n,r);return t.top=ow(o.top,t.top),t.right=aw(o.right,t.right),t.bottom=aw(o.bottom,t.bottom),t.left=ow(o.left,t.left),t}),Dw(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 jw(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?rw(o):null,i=o?Ew(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(a){case zS:t={x:l,y:n.y-r.height};break;case DS:t={x:l,y:n.y+n.height};break;case AS:t={x:n.x+n.width,y:s};break;case jS:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=a?bw(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case $S:t[c]=t[c]-(n[u]/2-r[u]/2);break;case WS:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function Fw(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?HS:l,c=n.rootBoundary,u=void 0===c?US:c,d=n.elementContext,p=void 0===d?VS:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,v=xw("number"!=typeof g?g:Sw(g,BS)),b=p===VS?GS:VS,y=e.rects.popper,x=e.elements[h?b:p],S=Aw(YS(x)?x:x.contextElement||hw(e.elements.popper),s,u,i),w=cw(e.elements.reference),E=jw({reference:w,element:y,strategy:"absolute",placement:o}),C=zw(Object.assign({},y,E)),k=p===VS?C:w,R={top:S.top-k.top+v.top,bottom:k.bottom-S.bottom+v.bottom,left:S.left-k.left+v.left,right:k.right-S.right+v.right},L=e.modifiersData.offset;if(p===VS&&L){var O=L[o];Object.keys(R).forEach((function(e){var t=[AS,DS].indexOf(e)>=0?1:-1,n=[zS,DS].indexOf(e)>=0?"y":"x";R[e]+=O[n]*t}))}return R}function Bw(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?ZS:s,u=Ew(r),d=u?l?KS:KS.filter((function(e){return Ew(e)===u})):BS,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]=Fw(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[rw(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}var $w={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0===i||i,s=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,v=rw(g),b=s||(v===g||!h?[Ow(g)]:function(e){if(rw(e)===FS)return[];var t=Ow(e);return[Iw(e),t,Iw(t)]}(g)),y=[g].concat(b).reduce((function(e,n){return e.concat(rw(n)===FS?Bw(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),x=t.rects.reference,S=t.rects.popper,w=new Map,E=!0,C=y[0],k=0;k<y.length;k++){var R=y[k],L=rw(R),O=Ew(R)===$S,_=[zS,DS].indexOf(L)>=0,I=_?"width":"height",T=Fw(t,{placement:R,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),P=_?O?AS:jS:O?DS:zS;x[I]>S[I]&&(P=Ow(P));var M=Ow(P),N=[];if(a&&N.push(T[L]<=0),l&&N.push(T[P]<=0,T[M]<=0),N.every((function(e){return e}))){C=R,E=!1;break}w.set(R,N)}if(E)for(var q=function(e){var t=y.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},z=h?3:1;z>0;z--){if("break"===q(z))break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ww(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 Hw(e){return[zS,AS,DS,jS].some((function(t){return e[t]>=0}))}var Uw={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=ZS.reduce((function(e,n){return e[n]=function(e,t,n){var r=rw(e),o=[jS,zS].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,[jS,AS].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 Vw={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=Fw(t,{boundary:s,rootBoundary:c,padding:d,altBoundary:u}),v=rw(t.placement),b=Ew(t.placement),y=!b,x=bw(v),S="x"===x?"y":"x",w=t.modifiersData.popperOffsets,E=t.rects.reference,C=t.rects.popper,k="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,R="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(w){if(a){var _,I="y"===x?zS:jS,T="y"===x?DS:AS,P="y"===x?"height":"width",M=w[x],N=M+g[I],q=M-g[T],z=f?-C[P]/2:0,D=b===$S?E[P]:C[P],A=b===$S?-C[P]:-E[P],j=t.elements.arrow,F=f&&j?uw(j):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},$=B[I],W=B[T],H=yw(0,E[P],F[P]),U=y?E[P]/2-z-H-$-R.mainAxis:D-H-$-R.mainAxis,V=y?-E[P]/2+z+H+W+R.mainAxis:A+H+W+R.mainAxis,G=t.elements.arrow&&vw(t.elements.arrow),K=G?"y"===x?G.clientTop||0:G.clientLeft||0:0,Z=null!=(_=null==L?void 0:L[x])?_:0,X=M+V-Z,Q=yw(f?aw(N,M+U-Z-K):N,M,f?ow(q,X):q);w[x]=Q,O[x]=Q-M}if(l){var J,Y="x"===x?zS:jS,ee="x"===x?DS:AS,te=w[S],ne="y"===S?"height":"width",re=te+g[Y],oe=te-g[ee],ae=-1!==[zS,jS].indexOf(v),ie=null!=(J=null==L?void 0:L[S])?J:0,le=ae?re:te-E[ne]-C[ne]-ie+R.altAxis,se=ae?te+E[ne]+C[ne]-ie-R.altAxis:oe,ce=f&&ae?function(e,t,n){var r=yw(e,t,n);return r>n?n:r}(le,te,se):yw(f?le:re,te,f?se:oe);w[S]=ce,O[S]=ce-te}t.modifiersData[r]=O}},requiresIfExists:["offset"]};function Gw(e,t,n){void 0===n&&(n=!1);var r=ew(t),o=ew(t)&&function(e){var t=e.getBoundingClientRect(),n=iw(t.width)/e.offsetWidth||1,r=iw(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),a=hw(t),i=cw(e,o,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==QS(t)||Mw(a))&&(l=function(e){return e!==JS(e)&&ew(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Tw(e);var t}(t)),ew(t)?((s=cw(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):a&&(s.x=Pw(a))),{x:i.left+l.scrollLeft-s.x,y:i.top+l.scrollTop-s.y,width:i.width,height:i.height}}function Kw(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 Zw={placement:"bottom",modifiers:[],strategy:"absolute"};function Xw(){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 Qw(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?Zw:o;return function(e,t,n){void 0===n&&(n=a);var o,i,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Zw,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:YS(e)?qw(e):e.contextElement?qw(e.contextElement):[],popper:qw(t)};var i,c,p=function(e){var t=Kw(e);return XS.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(Xw(t,n)){l.rects={reference:Gw(t,vw(n),"fixed"===l.options.strategy),popper:uw(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(!Xw(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 Jw=Qw({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=JS(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",n.update,Rw)})),l&&s.addEventListener("resize",n.update,Rw),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",n.update,Rw)})),l&&s.removeEventListener("resize",n.update,Rw)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=jw({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,l=n.roundOffsets,s=void 0===l||l,c={placement:rw(t.placement),variation:Ew(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,kw(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,kw(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:{}},nw,Uw,$w,Vw,ww,{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=Fw(t,{elementContext:"reference"}),l=Fw(t,{altBoundary:!0}),s=Ww(i,r),c=Ww(l,o,a),u=Hw(s),d=Hw(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 Yw="Popper";function eE(e){return ES(Yw,e)}!function(e,t){const n={};t.forEach((t=>{n[t]=ES(e,t)}))}(Yw,["root"]);const tE=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],nE=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function rE(e){return"function"==typeof e?e():e}const oE=()=>Dv({root:["root"]},function(e){const{disableDefaultClasses:t}=V.useContext(aS);return n=>t?"":e(n)}(eE)),aE={},iE=V.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=lS(e,tE),g=V.useRef(null),v=Sv(g,t),b=V.useRef(null),y=Sv(b,d),x=V.useRef(y);lv((()=>{x.current=y}),[y]),V.useImperativeHandle(d,(()=>b.current),[]);const S=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(c,a),[w,E]=V.useState(S),[C,k]=V.useState(rE(r));V.useEffect((()=>{b.current&&b.current.forceUpdate()})),V.useEffect((()=>{r&&k(rE(r))}),[r]),lv((()=>{if(!C||!s)return;let e=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{E(e.placement)}}];null!=l&&(e=e.concat(l)),u&&null!=u.modifiers&&(e=e.concat(u.modifiers));const t=Jw(C,g.current,tS({placement:S},u,{modifiers:e}));return x.current(t),()=>{t.destroy(),x.current(null)}}),[C,i,l,s,u,S]);const R={placement:w};null!==h&&(R.TransitionProps=h);const L=oE(),O=null!=(n=f.root)?n:"div",_=uS({elementType:O,externalSlotProps:p.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:v},ownerState:e,className:L.root});return om.jsx(O,tS({},_,{children:"function"==typeof o?o(R):o}))})),lE=V.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=aE,popperRef:p,style:f,transition:h=!1,slotProps:m={},slots:g={}}=e,v=lS(e,nE),[b,y]=V.useState(!0);if(!l&&!c&&(!h||b))return null;let x;if(o)x=o;else if(n){const e=rE(n);x=e&&void 0!==e.nodeType?fv(e).body:fv(null).body}const S=c||!l||h&&!b?void 0:"none",w=h?{in:c,onEnter:()=>{y(!1)},onExited:()=>{y(!0)}}:void 0;return om.jsx(OS,{disablePortal:i,container:x,children:om.jsx(iE,tS({anchorEl:n,direction:a,disablePortal:i,modifiers:s,ref:t,open:h?!b:c,placement:u,popperOptions:d,popperRef:p,slotProps:m,slots:g},v,{style:tS({position:"fixed",top:0,left:0,display:S},f),TransitionProps:w,children:r}))})})),sE=["onChange","maxRows","minRows","style","value"];function cE(e){return parseInt(e,10)||0}const uE={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};const dE=V.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:a,value:i}=e,l=lS(e,sE),{current:s}=V.useRef(null!=i),c=V.useRef(null),u=Sv(t,c),d=V.useRef(null),p=V.useCallback((()=>{const t=c.current,n=hv(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0,overflowing:!1};const a=d.current;a.style.width=n.width,a.value=t.value||e.placeholder||"x","\n"===a.value.slice(-1)&&(a.value+=" ");const i=n.boxSizing,l=cE(n.paddingBottom)+cE(n.paddingTop),s=cE(n.borderBottomWidth)+cE(n.borderTopWidth),u=a.scrollHeight;a.value="x";const p=a.scrollHeight;let f=u;o&&(f=Math.max(Number(o)*p,f)),r&&(f=Math.min(Number(r)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===i?l+s:0),overflowing:Math.abs(f-u)<=1}}),[r,o,e.placeholder]),f=V.useCallback((()=>{const e=p();if(null==(t=e)||0===Object.keys(t).length||0===t.outerHeightStyle&&!t.overflowing)return;var t;const n=c.current;n.style.height=`${e.outerHeightStyle}px`,n.style.overflow=e.overflowing?"hidden":""}),[p]);lv((()=>{const e=()=>{f()};const t=dv(e),n=c.current,r=hv(n);let o;return r.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(n)),()=>{t.clear(),cancelAnimationFrame(undefined),r.removeEventListener("resize",t),o&&o.disconnect()}}),[p,f]),lv((()=>{f()}));return om.jsxs(V.Fragment,{children:[om.jsx("textarea",tS({value:i,onChange:e=>{s||f(),n&&n(e)},ref:u,rows:o,style:a},l)),om.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:tS({},uE,a,{paddingTop:0,paddingBottom:0})})]})}));var pE={};Object.defineProperty(pE,"__esModule",{value:!0});var fE=pE.default=void 0,hE=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=gE(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}(V),mE=ly;function gE(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(gE=function(e){return e?n:t})(e)}fE=pE.default=function(e=null){const t=hE.useContext(mE.ThemeContext);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n};const vE=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],bE=Py(lE,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),yE=V.forwardRef((function(e,t){var n;const r=fE(),o=ty({props:e,name:"MuiPopper"}),{anchorEl:a,component:i,components:l,componentsProps:s,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:v,slots:b,slotProps:y}=o,x=Lp(o,vE),S=null!=(n=null==b?void 0:b.root)?n:null==l?void 0:l.Root,w=Rp({anchorEl:a,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:v},x);return om.jsx(bE,Rp({as:i,direction:null==r?void 0:r.direction,slots:{root:S},slotProps:null!=y?y:s},w,{ref:t}))}));function xE({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 SE=V.createContext(void 0);function wE(){return V.useContext(SE)}function EE(e){return om.jsx(Tg,Rp({},e,{defaultTheme:Yb,themeId:kp}))}function CE(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function kE(e){return $g("MuiInputBase",e)}const RE=Wg("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),LE=["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"],OE=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${_m(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},_E=(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]},IE=Py("div",{name:"MuiInputBase",slot:"Root",overridesResolver:OE})((({theme:e,ownerState:t})=>Rp({},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",[`&.${RE.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Rp({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),TE=Py("input",{name:"MuiInputBase",slot:"Input",overridesResolver:_E})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=Rp({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 Rp({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] + .${RE.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},[`&.${RE.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"})})),PE=om.jsx(EE,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),ME=V.forwardRef((function(e,t){var n;const r=ty({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:i,className:l,components:s={},componentsProps:c={},defaultValue:u,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:v={},inputRef:b,maxRows:y,minRows:x,multiline:S=!1,name:w,onBlur:E,onChange:C,onClick:k,onFocus:R,onKeyDown:L,onKeyUp:O,placeholder:_,readOnly:I,renderSuffix:T,rows:P,slotProps:M={},slots:N={},startAdornment:q,type:z="text",value:D}=r,A=Lp(r,LE),j=null!=v.value?v.value:D,{current:F}=V.useRef(null!=j),B=V.useRef(),$=V.useCallback((e=>{}),[]),W=Sv(B,b,v.ref,$),[H,U]=V.useState(!1),G=wE(),K=xE({props:r,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=G?G.focused:H,V.useEffect((()=>{!G&&d&&H&&(U(!1),E&&E())}),[G,d,H,E]);const Z=G&&G.onFilled,X=G&&G.onEmpty,Q=V.useCallback((e=>{!function(e,t=!1){return e&&(CE(e.value)&&""!==e.value||t&&CE(e.defaultValue)&&""!==e.defaultValue)}(e)?X&&X():Z&&Z()}),[Z,X]);lv((()=>{F&&Q({value:j})}),[j,Q,F]);V.useEffect((()=>{Q(B.current)}),[]);let J=g,Y=v;S&&"input"===J&&(Y=Rp(P?{type:void 0,minRows:P,maxRows:P}:{type:void 0,maxRows:y,minRows:x},Y),J=dE);V.useEffect((()=>{G&&G.setAdornedStart(Boolean(q))}),[G,q]);const ee=Rp({},r,{color:K.color||"primary",disabled:K.disabled,endAdornment:f,error:K.error,focused:K.focused,formControl:G,fullWidth:h,hiddenLabel:K.hiddenLabel,multiline:S,size:K.size,startAdornment:q,type:z}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:i,formControl:l,fullWidth:s,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:f,type:h}=e;return Dv({root:["root",`color${_m(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",i&&"focused",l&&"formControl",p&&"medium"!==p&&`size${_m(p)}`,u&&"multiline",f&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]},kE,t)})(ee),ne=N.root||s.Root||IE,re=M.root||c.root||{},oe=N.input||s.Input||TE;return Y=Rp({},Y,null!=(n=M.input)?n:c.input),om.jsxs(V.Fragment,{children:[!p&&PE,om.jsxs(ne,Rp({},re,!nS(ne)&&{ownerState:Rp({},ee,re.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),k&&k(e)}},A,{className:jg(te.root,re.className,l,I&&"MuiInputBase-readOnly"),children:[q,om.jsx(SE.Provider,{value:null,children:om.jsx(oe,Rp({ownerState:ee,"aria-invalid":K.error,"aria-describedby":o,autoComplete:a,autoFocus:i,defaultValue:u,disabled:K.disabled,id:m,onAnimationStart:e=>{Q("mui-auto-fill-cancel"===e.animationName?B.current:{value:"x"})},name:w,placeholder:_,readOnly:I,required:K.required,rows:P,value:j,onKeyDown:L,onKeyUp:O,type:z},Y,!nS(oe)&&{as:J,ownerState:Rp({},ee,Y.ownerState)},{ref:W,className:jg(te.input,Y.className,I&&"MuiInputBase-readOnly"),onBlur:e=>{E&&E(e),v.onBlur&&v.onBlur(e),G&&G.onBlur?G.onBlur(e):U(!1)},onChange:(e,...t)=>{if(!F){const t=e.target||B.current;if(null==t)throw new Error(Ep(1));Q({value:t.value})}v.onChange&&v.onChange(e,...t),C&&C(e,...t)},onFocus:e=>{K.disabled?e.stopPropagation():(R&&R(e),v.onFocus&&v.onFocus(e),G&&G.onFocus?G.onFocus(e):U(!0))}}))}),f,T?T(Rp({},K,{startAdornment:q})):null]}))]})}));var NE=ME;function qE(e){return $g("MuiOutlinedInput",e)}const zE=Rp({},RE,Wg("MuiOutlinedInput",["root","notchedOutline","input"])),DE=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],AE={entering:{opacity:1},entered:{opacity:1}},jE=V.forwardRef((function(e,t){const n=ey(),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=Gy}=e,b=Lp(e,DE),y=V.useRef(null),x=Sv(y,i.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},w=S(d),E=S(((e,t)=>{Zx(e);const r=Xx({style:m,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),C=S(u),k=S(h),R=S((e=>{const t=Xx({style:m,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),L=S(f);return om.jsx(v,Rp({appear:a,in:s,nodeRef:y,onEnter:E,onEntered:C,onEntering:w,onExit:R,onExited:L,onExiting:k,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>V.cloneElement(i,Rp({style:Rp({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},AE[e],m,i.props.style),ref:x},t))}))}));function FE(e){return $g("MuiBackdrop",e)}Wg("MuiBackdrop",["root","invisible"]);const BE=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],$E=Py("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Rp({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"}))),WE=V.forwardRef((function(e,t){var n,r,o;const a=ty({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=jE,transitionDuration:g}=a,v=Lp(a,BE),b=Rp({},a,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return Dv({root:["root",n&&"invisible"]},FE,t)})(b),x=null!=(n=f.root)?n:u.root;return om.jsx(m,Rp({in:p,timeout:g},v,{children:om.jsx($E,Rp({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:c.Root)?r:s,className:jg(y.root,l,null==x?void 0:x.className),ownerState:Rp({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:i}))}))}));function HE(e){return $g("MuiBadge",e)}const UE=Wg("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),VE=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],GE=ty,KE=Py("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),ZE=Py("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${_m(n.anchorOrigin.vertical)}${_m(n.anchorOrigin.horizontal)}${_m(n.overlap)}`],"default"!==n.color&&t[`color${_m(n.color)}`],n.invisible&&t.invisible]}})((({theme:e})=>{var t;return{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.keys((null!=(t=e.vars)?t:e).palette).filter((t=>{var n,r;return(null!=(n=e.vars)?n:e).palette[t].main&&(null!=(r=e.vars)?r:e).palette[t].contrastText})).map((t=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}}))),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:({ownerState:e})=>"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap,style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${UE.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%",[`&.${UE.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%",[`&.${UE.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%",[`&.${UE.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%",[`&.${UE.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%",[`&.${UE.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%",[`&.${UE.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%",[`&.${UE.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})}}]}})),XE=V.forwardRef((function(e,t){var n,r,o,a,i,l;const s=GE({props:e,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:u,component:d,components:p={},componentsProps:f={},children:h,overlap:m="rectangular",color:g="default",invisible:v=!1,max:b=99,badgeContent:y,slots:x,slotProps:S,showZero:w=!1,variant:E="standard"}=s,C=Lp(s,VE),{badgeContent:k,invisible:R,max:L,displayValue:O}=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,a=zv({badgeContent:t,max:r});let i=n;!1!==n||0!==t||o||(i=!0);const{badgeContent:l,max:s=r}=i?a:e;return{badgeContent:l,invisible:i,max:s,displayValue:l&&Number(l)>s?`${s}+`:l}}({max:b,invisible:v,badgeContent:y,showZero:w}),_=zv({anchorOrigin:c,color:g,overlap:m,variant:E,badgeContent:y}),I=R||null==k&&"dot"!==E,{color:T=g,overlap:P=m,anchorOrigin:M=c,variant:N=E}=I?_:s,q="dot"!==N?O:void 0,z=Rp({},s,{badgeContent:k,invisible:I,max:L,displayValue:q,showZero:w,anchorOrigin:M,color:T,overlap:P,variant:N}),D=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:a,classes:i={}}=e;return Dv({root:["root"],badge:["badge",a,r&&"invisible",`anchorOrigin${_m(n.vertical)}${_m(n.horizontal)}`,`anchorOrigin${_m(n.vertical)}${_m(n.horizontal)}${_m(o)}`,`overlap${_m(o)}`,"default"!==t&&`color${_m(t)}`]},HE,i)})(z),A=null!=(n=null!=(r=null==x?void 0:x.root)?r:p.Root)?n:KE,j=null!=(o=null!=(a=null==x?void 0:x.badge)?a:p.Badge)?o:ZE,F=null!=(i=null==S?void 0:S.root)?i:f.root,B=null!=(l=null==S?void 0:S.badge)?l:f.badge,$=uS({elementType:A,externalSlotProps:F,externalForwardedProps:C,additionalProps:{ref:t,as:d},ownerState:z,className:jg(null==F?void 0:F.className,D.root,u)}),W=uS({elementType:j,externalSlotProps:B,ownerState:z,className:jg(D.badge,null==B?void 0:B.className)});return om.jsxs(A,Rp({},$,{children:[h,om.jsx(j,Rp({},W,{children:q}))]}))})),QE=Wg("MuiBox",["root"]),JE=Jb(),YE=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,a=sm("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Eg),i=V.forwardRef((function(e,i){const l=Ig(n),s=Ng(e),{className:c,component:u="div"}=s,d=pm(s,Fg);return om.jsx(a,dm({as:u,ref:i,className:jg(c,o?o(r):r),theme:t&&l[t]||l},d))}));return i}({themeId:kp,defaultTheme:JE,defaultClassName:QE.root,generateClassName:Dg.generate});function eC(e){return $g("PrivateSwitchBase",e)}Wg("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const tC=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],nC=Py(bx)((({ownerState:e})=>Rp({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),rC=Py("input",{shouldForwardProp:Ty})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),oC=V.forwardRef((function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,className:a,defaultChecked:i,disabled:l,disableFocusRipple:s=!1,edge:c=!1,icon:u,id:d,inputProps:p,inputRef:f,name:h,onBlur:m,onChange:g,onFocus:v,readOnly:b,required:y=!1,tabIndex:x,type:S,value:w}=e,E=Lp(e,tC),[C,k]=yv({controlled:r,default:Boolean(i),name:"SwitchBase",state:"checked"}),R=wE();let L=l;R&&void 0===L&&(L=R.disabled);const O="checkbox"===S||"radio"===S,_=Rp({},e,{checked:C,disabled:L,disableFocusRipple:s,edge:c}),I=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return Dv({root:["root",n&&"checked",r&&"disabled",o&&`edge${_m(o)}`],input:["input"]},eC,t)})(_);return om.jsxs(nC,Rp({component:"span",className:jg(I.root,a),centerRipple:!0,focusRipple:!s,disabled:L,tabIndex:null,role:void 0,onFocus:e=>{v&&v(e),R&&R.onFocus&&R.onFocus(e)},onBlur:e=>{m&&m(e),R&&R.onBlur&&R.onBlur(e)},ownerState:_,ref:t},E,{children:[om.jsx(rC,Rp({autoFocus:n,checked:r,defaultChecked:i,className:I.input,disabled:L,id:O?d:void 0,name:h,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;k(t),g&&g(e,t)},readOnly:b,ref:f,required:y,ownerState:_,tabIndex:x,type:S},"checkbox"===S&&void 0===w?{}:{value:w},p)),C?o:u]}))}));var aC=Vx(om.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),iC=Vx(om.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),lC=Vx(om.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function sC(e){return $g("MuiCheckbox",e)}const cC=Wg("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),uC=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],dC=Py(oC,{shouldForwardProp:e=>Ty(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${_m(n.size)}`],"default"!==n.color&&t[`color${_m(n.color)}`]]}})((({theme:e,ownerState:t})=>Rp({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})`:sb("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${cC.checked}, &.${cC.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${cC.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),pC=om.jsx(iC,{}),fC=om.jsx(aC,{}),hC=om.jsx(lC,{}),mC=V.forwardRef((function(e,t){var n,r;const o=ty({props:e,name:"MuiCheckbox"}),{checkedIcon:a=pC,color:i="primary",icon:l=fC,indeterminate:s=!1,indeterminateIcon:c=hC,inputProps:u,size:d="medium",className:p}=o,f=Lp(o,uC),h=s?c:l,m=s?c:a,g=Rp({},o,{color:i,indeterminate:s,size:d}),v=(e=>{const{classes:t,indeterminate:n,color:r,size:o}=e;return Rp({},t,Dv({root:["root",n&&"indeterminate",`color${_m(r)}`,`size${_m(o)}`]},sC,t))})(g);return om.jsx(dC,Rp({type:"checkbox",inputProps:Rp({"data-indeterminate":s},u),icon:V.cloneElement(h,{fontSize:null!=(n=h.props.fontSize)?n:d}),checkedIcon:V.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:d}),ownerState:g,ref:t,className:jg(v.root,p)},f,{classes:v}))}));function gC(e){return $g("MuiCircularProgress",e)}Wg("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const vC=["className","color","disableShrink","size","style","thickness","value","variant"];let bC,yC,xC,SC,wC=e=>e;const EC=44,CC=Ph(bC||(bC=wC`
|
|
106
|
+
`),ex.rippleVisible,lx,550,(({theme:e})=>e.transitions.easing.easeInOut),ex.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),ex.child,ex.childLeaving,sx,550,(({theme:e})=>e.transitions.easing.easeInOut),ex.childPulsate,cx,(({theme:e})=>e.transitions.easing.easeInOut)),px=U.forwardRef((function(e,t){const n=ey({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a}=n,i=Rp(n,tx),[l,s]=U.useState([]),c=U.useRef(0),u=U.useRef(null);U.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[l]);const d=U.useRef(!1),p=Cv(),f=U.useRef(null),h=U.useRef(null),m=U.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:a,cb:i}=e;s((e=>[...e,rm.jsx(dx,{classes:{ripple:Ag(o.ripple,ex.ripple),rippleVisible:Ag(o.rippleVisible,ex.rippleVisible),ripplePulsate:Ag(o.ripplePulsate,ex.ripplePulsate),child:Ag(o.child,ex.child),childLeaving:Ag(o.childLeaving,ex.childLeaving),childPulsate:Ag(o.childPulsate,ex.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:a},c.current)])),c.current+=1,u.current=i}),[o]),g=U.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:a=r||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=i?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(a||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(s.width/2),u=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-s.left),u=Math.round(n-s.top)}if(a)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-u),u)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,m,p]),v=U.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=U.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{b(e,t)}));f.current=null,s((e=>e.length>0?e.slice(1):e)),u.current=t}),[p]);return U.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),rm.jsx(ux,kp({className:Ag(ex.root,o.root,a),ref:h},i,{children:rm.jsx(Yy,{component:null,exit:!0,children:l})}))}));function fx(e){return Bg("MuiButtonBase",e)}const hx=$g("MuiButtonBase",["root","disabled","focusVisible"]),mx=["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"],gx=Ty("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"},[`&.${hx.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),vx=U.forwardRef((function(e,t){const n=ey({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:a,className:i,component:l="button",disabled:s=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:w,onMouseUp:E,onTouchEnd:C,onTouchMove:k,onTouchStart:R,tabIndex:L=0,TouchRippleProps:O,touchRippleRef:_,type:I}=n,T=Rp(n,mx),P=U.useRef(null),M=U.useRef(null),N=xv(M,_),{isFocusVisibleRef:q,onFocus:z,onBlur:D,ref:A}=Mv(),[j,F]=U.useState(!1);s&&j&&F(!1),U.useImperativeHandle(r,(()=>({focusVisible:()=>{F(!0),P.current.focus()}})),[]);const[B,$]=U.useState(!1);U.useEffect((()=>{$(!0)}),[]);const W=B&&!c&&!s;function H(e,t,n=u){return yv((r=>{t&&t(r);return!n&&M.current&&M.current[e](r),!0}))}U.useEffect((()=>{j&&d&&!c&&B&&M.current.pulsate()}),[c,d,j,B]);const V=H("start",S),G=H("stop",m),K=H("stop",g),Z=H("stop",E),X=H("stop",(e=>{j&&e.preventDefault(),w&&w(e)})),Q=H("start",R),J=H("stop",C),Y=H("stop",k),ee=H("stop",(e=>{D(e),!1===q.current&&F(!1),f&&f(e)}),!1),te=yv((e=>{P.current||(P.current=e.currentTarget),z(e),!0===q.current&&(F(!0),b&&b(e)),v&&v(e)})),ne=()=>{const e=P.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=U.useRef(!1),oe=yv((e=>{d&&!re.current&&j&&M.current&&" "===e.key&&(re.current=!0,M.current.stop(e,(()=>{M.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),ae=yv((e=>{d&&" "===e.key&&M.current&&j&&!e.defaultPrevented&&(re.current=!1,M.current.stop(e,(()=>{M.current.pulsate(e)}))),x&&x(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ie=l;"button"===ie&&(T.href||T.to)&&(ie=p);const le={};"button"===ie?(le.type=void 0===I?"button":I,le.disabled=s):(T.href||T.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=xv(t,A,P),ce=kp({},n,{centerRipple:o,component:l,disabled:s,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:L,focusVisible:j}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=zv({root:["root",t&&"disabled",n&&"focusVisible"]},fx,o);return n&&r&&(a.root+=` ${r}`),a})(ce);return rm.jsxs(gx,kp({as:ie,className:Ag(ue.root,i),ownerState:ce,onBlur:ee,onClick:h,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ae,onMouseDown:V,onMouseLeave:X,onMouseUp:Z,onDragLeave:K,onTouchEnd:J,onTouchMove:Y,onTouchStart:Q,ref:se,tabIndex:s?-1:L,type:I},le,T,{children:[a,W?rm.jsx(px,kp({ref:N,center:o},O)):null]}))}));function bx(e){return Bg("MuiButton",e)}const yx=$g("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"]),xx=U.createContext({}),Sx=U.createContext(void 0),wx=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Ex=e=>kp({},"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}}),Cx=Ty(vx,{shouldForwardProp:e=>Iy(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Om(n.color)}`],t[`size${Om(n.size)}`],t[`${n.variant}Size${Om(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 kp({},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":kp({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:lb(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})`:lb(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})`:lb(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":kp({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${yx.focusVisible}`]:kp({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${yx.disabled}`]:kp({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 ${lb(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"},[`&.${yx.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${yx.disabled}`]:{boxShadow:"none"}})),kx=Ty("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Om(n.size)}`]]}})((({ownerState:e})=>kp({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Ex(e)))),Rx=Ty("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Om(n.size)}`]]}})((({ownerState:e})=>kp({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Ex(e)))),Lx=U.forwardRef((function(e,t){const n=U.useContext(xx),r=U.useContext(Sx),o=ey({props:ov(n,e),name:"MuiButton"}),{children:a,color:i="primary",component:l="button",className:s,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:v,variant:b="text"}=o,y=Rp(o,wx),x=kp({},o,{color:i,component:l,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:h,size:m,type:v,variant:b}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,classes:i}=e;return kp({},i,zv({root:["root",a,`${a}${Om(t)}`,`size${Om(o)}`,`${a}Size${Om(o)}`,`color${Om(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${Om(o)}`],endIcon:["icon","endIcon",`iconSize${Om(o)}`]},bx,i))})(x),w=g&&rm.jsx(kx,{className:S.startIcon,ownerState:x,children:g}),E=p&&rm.jsx(Rx,{className:S.endIcon,ownerState:x,children:p}),C=r||"";return rm.jsxs(Cx,kp({ownerState:x,className:Ag(n.className,S.root,s,C),component:l,disabled:c,focusRipple:!d,focusVisibleClassName:Ag(S.focusVisible,f),ref:t,type:v},y,{classes:S,children:[w,a,E]}))}));var Ox={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 _x={green:"#009845",greenPale:"#0AAF54",red:"#DC423F",redPale:"#F05551",blue:"#3F8AB3",bluePale:"#469DCD",grey100:"#ffffff",grey98:"#FBFBFB",grey95:"#F2F2F2",grey90:"#E6E6E6",grey85:"#D9D9D9",grey55:"#8C8C8C",grey45:"#737373",grey30:"#4D4D4D",grey25:"#404040",grey20:"#333333",grey15:"#262626",grey10:"#1A1A1A",grey5:"#0E0E0E",grey0:"#000000"},Ix={mode:"light",palette:{primary:{main:_x.grey25,contrastText:_x.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:_x.grey25,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)",light:_x.grey100,dark:_x.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:_x.grey100,default:_x.grey100,lightest:_x.grey100,lighter:_x.grey98,darker:_x.grey95,darkest:_x.grey90},custom:{focusBorder:_x.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)",disabledBackground:_x.grey45,disabledContrastText:_x.grey100},selected:{main:_x.green,alternative:"#E4E4E4",excluded:"#BEBEBE",selectedExcluded:"#BEBEBE",possible:_x.grey100,selectedContrastText:_x.grey100,mainContrastText:_x.grey100,alternativeContrastText:_x.grey25,excludedContrastText:_x.grey25,selectedExcludedContrastText:_x.grey100,possibleContrastText:_x.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)"}}},Tx={mode:"dark",palette:{primary:{main:_x.grey20,contrastText:_x.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:_x.grey100,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)",light:_x.grey100,dark:_x.grey0},action:{active:_x.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:_x.grey25,lighter:_x.grey20,darker:_x.grey15,darkest:_x.grey10},custom:{focusBorder:_x.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)",disabledBackground:_x.grey45,disabledContrastText:_x.grey100},selected:{main:_x.green,alternative:_x.grey20,excluded:_x.grey10,selectedExcluded:_x.grey10,possible:_x.grey80,selectedContrastText:_x.grey100,mainContrastText:_x.grey100,alternativeContrastText:_x.grey100,excludedContrastText:_x.grey100,selectedExcludedContrastText:_x.grey100,possibleContrastText:_x.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)"}}},Px={},Mx=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(yx.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(yx.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(yx.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(yx.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function Nx(e){let t=Ix,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=Tx));const r=JSON.stringify(t);if(Px[r])return Px[r];const o={palette:l(l({type:t.mode},Ox.palette),t.palette),typography:l({},Ox.typography),shadows:Ox.shadows,props:l({},Ox.props),shape:l({},Ox.shape)};return Px[r]=Qb(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:a={},styleOverrides:i={}}=e,l=kp({},Rp(e,Yv),{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=Vm(e.spacing);const s=ym(e.breakpoints||{}),c=l.spacing;l.mixins=kp({gutters:(e={})=>kp({paddingLeft:c(2),paddingRight:c(2)},e,{[s.up("sm")]:kp({paddingLeft:c(3),paddingRight:c(3)},e[s.up("sm")])})},n);const{type:u,mode:d}=o,p=Rp(o,eb),f=d||u||"light";return l.palette=kp({text:{hint:"dark"===f?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:f,type:f},p),l}(l(l({},o),{},{overrides:Mx(o)}))),Px[r].name=n,Px[r]}zg.configure((e=>"njs-".concat("4acd","-").concat(e.replace("Mui",""))));var qx=V.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null,modelStore:{},selectionStore:{}});const zx={active:!0,select:!0,passive:!0,edit:!1};function Dx(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(zx).forEach((e=>{void 0!==r[e]?(t[e]=r[e],n[e]=!r[e]):(t[e]=zx[e],n[e]=!zx[e])})),e.constraints=n,e.interactions=t}var Ax=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};const t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=[],r={get:e=>t[e],set:(n,r)=>{if(void 0===n||"object"==typeof n)throw new Error("Invalid key: ".concat(JSON.stringify(n)));return t[n]=r,e({type:"SET",value:r}),r},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));t[e]=null},dispatch:e=>{n.forEach((n=>n(e?{}:t)))}};return[()=>{const[,e]=U.useState(t);return U.useEffect((()=>(n.push(e),()=>{const t=n.indexOf(e);n.splice(t,1)})),[e]),[r]},r]};const jx=U.forwardRef(((e,t)=>{let{initialContext:n,renderCallback:r,modelStore:o,selectionStore:a}=e;const[i,l]=U.useState(n),[s,c]=U.useState(),{theme:u}=U.useMemo((()=>({theme:Nx(s)})),[s]),[d,p]=U.useState([]);return U.useEffect((()=>{r&&r()}),[]),U.useImperativeHandle(t,(()=>({setComps(e){p([...e])},setMuiThemeName:c,setContext:e=>l((t=>JSON.stringify(t)!==JSON.stringify(e)?e:t))})),[]),i&&(i.modelStore=o,i.selectionStore=a),V.createElement(am,{injectFirst:!0},V.createElement(My,{theme:u},V.createElement(qx.Provider,{value:i},d)))}));function Fx(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.1.2"),i.setAttribute("data-app-id",n.id),document.body.appendChild(i),r&&Dx(r);const l=function(e){const[t,n]=Ax({}),[r,o]=Ax({}),[a,i]=Ax({}),[l,s]=Ax({}),[c,u]=Ax({}),[,d]=Ax({}),p=e=>{let{type:t,value:r}=e;const a=d.get(r.id);d.set(r.id,{});const l=()=>{o.clear(r.id),u.set(r.id,{}),u.dispatch(!0)},c=()=>{r.removeListener("changed",l),n.clear(r.id),o.clear(r.id),i.clear(r.id),s.clear(r.id),u.clear(r.id),d.clear(r.id)};return"SET"===t&&(a||(r.on("changed",l),r.once("closed",(()=>{c()})))),c},[f,h]=Ax({},p);return{subscribe:e=>{const t=p({type:"SET",value:e});return()=>{t(),h.clear(e.id)}},useModelStore:f,modelStore:h,useModelChangedStore:c,useRpcResultStore:t,rpcResultStore:n,useRpcRequestStore:r,rpcRequestStore:o,useRpcRequestModelStore:l,rpcRequestModelStore:s,useRpcRequestSessionModelStore:a,rpcRequestSessionModelStore:i,modelChangedStore:u,appId:e}}(n.id),s=function(e){const[t,n]=Ax({}),[r,o]=Ax({}),[a,i]=Ax({});return{useAppSelectionsStore:t,useAppModalStore:r,appSelectionsStore:n,appModalStore:o,useModalObjectStore:a,modalObjectStore:i,appId:e}}(n.id);pt.createRoot(i).render(V.createElement(jx,{ref:a,initialContext:r,renderCallback:t,modelStore:l,selectionStore:s}));const c={},u=[];return[{toggleFocusOfCells(e){Object.keys(c).forEach((t=>{c[t].current.toggleFocus(t===e)}))},cells:c,addCell(e,t){c[e]=t},removeCell(e){delete c[e]},add(e){(async()=>{await o,u.push(e),a.current.setComps(u)})()},remove(e){(async()=>{await o;const t=u.indexOf(e);-1!==t&&u.splice(t,1),a.current.setComps(u)})()},setMuiThemeName(e){(async()=>{await o,a.current.setMuiThemeName(e)})()},context(e){(async()=>{await o,e&&Dx(e),a.current.setContext(e)})()}},l,s,a,o]}function Bx(e){return Bg("MuiSvgIcon",e)}$g("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const $x=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Wx=Ty("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Om(n.color)}`],t[`fontSize${Om(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]}})),Hx=U.forwardRef((function(e,t){const n=ey({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:a="inherit",component:i="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=n,p=Rp(n,$x),f=U.isValidElement(r)&&"svg"===r.type,h=kp({},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 zv({root:["root","inherit"!==t&&`color${Om(t)}`,`fontSize${Om(n)}`]},Bx,r)})(h);return rm.jsxs(Wx,kp({as:i,className:Ag(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?rm.jsx("title",{children:u}):null]}))}));function Ux(e,t){function n(n,r){return rm.jsx(Hx,kp({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=Hx.muiName,U.memo(U.forwardRef(n))}Hx.muiName="SvgIcon";const Vx={configure:e=>{zg.configure(e)}};var Gx=Object.freeze({__proto__:null,capitalize:Om,createChainedFunction:cv,createSvgIcon:Ux,debounce:uv,deprecatedPropType:function(e,t){return()=>null},isMuiElement:dv,ownerDocument:pv,ownerWindow:fv,requirePropFactory:function(e,t){return()=>null},setRef:hv,unstable_ClassNameGenerator:Vx,unstable_useEnhancedEffect:iv,unstable_useId:vv,unsupportedProp:function(e,t,n,r,o){return null},useControlled:bv,useEventCallback:yv,useForkRef:xv,useIsFocusVisible:Mv});const Kx=e=>e.scrollTop;function Zx(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 Xx(e){return Bg("MuiPaper",e)}$g("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 Qx=["className","component","elevation","square","variant"],Jx=Ty("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 kp({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&&kp({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${lb("#fff",Ny(t.elevation))}, ${lb("#fff",Ny(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),Yx=U.forwardRef((function(e,t){const n=ey({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:a=1,square:i=!1,variant:l="elevation"}=n,s=Rp(n,Qx),c=kp({},n,{component:o,elevation:a,square:i,variant:l}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return zv({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Xx,o)})(c);return rm.jsx(Jx,kp({as:o,ownerState:c,className:Ag(u.root,r),ref:t},s))}));function eS(){return eS=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},eS.apply(this,arguments)}function tS(e){return"string"==typeof e}function nS(e,t,n){return void 0===e||tS(e)?t:eS({},t,{ownerState:eS({},t.ownerState,n)})}const rS={disableDefaultClasses:!1},oS=U.createContext(rS);function aS(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 iS(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 lS(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 sS=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function cS(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:a=!1}=e,i=iS(e,sS),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=Ag(null==n?void 0:n.className,a,null==o?void 0:o.className,null==r?void 0:r.className),t=eS({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),i=eS({},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=aS(eS({},o,r)),l=lS(r),s=lS(o),c=t(i),u=Ag(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=eS({},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=eS({},c,n,s,l);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}(eS({},i,{externalSlotProps:l}));return nS(n,eS({},s,{ref:xv(c,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o)}function uS(e){return Bg("MuiIconButton",e)}const dS=$g("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),pS=["edge","children","className","color","disabled","disableFocusRipple","size"],fS=Ty(vx,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${Om(n.color)}`],n.edge&&t[`edge${Om(n.edge)}`],t[`size${Om(n.size)}`]]}})((({theme:e,ownerState:t})=>kp({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})`:lb(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 kp({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&kp({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":kp({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:lb(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)},{[`&.${dS.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),hS=U.forwardRef((function(e,t){const n=ey({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:a,color:i="default",disabled:l=!1,disableFocusRipple:s=!1,size:c="medium"}=n,u=Rp(n,pS),d=kp({},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 zv({root:["root",n&&"disabled","default"!==r&&`color${Om(r)}`,o&&`edge${Om(o)}`,`size${Om(a)}`]},uS,t)})(d);return rm.jsx(fS,kp({className:Ag(p.root,a),centerRipple:!0,focusRipple:!s,disabled:l,ref:t},u,{ownerState:d,children:o}))}));function mS(e){return Bg("MuiTypography",e)}$g("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const gS=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],vS=Ty("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${Om(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>kp({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}))),bS={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},yS={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},xS=U.forwardRef((function(e,t){const n=ey({props:e,name:"MuiTypography"}),r=(e=>yS[e]||e)(n.color),o=Mg(kp({},n,{color:r})),{align:a="inherit",className:i,component:l,gutterBottom:s=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=bS}=o,f=Rp(o,gS),h=kp({},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]||bS[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e;return zv({root:["root",a,"inherit"!==e.align&&`align${Om(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},mS,i)})(h);return rm.jsx(vS,kp({as:m,ref:t,ownerState:h,className:Ag(g.root,i)},f))}));const SS="base";function wS(e,t){const n=Fg[t];return n?`${SS}--${n}`:function(e,t){return`${SS}-${e}-${t}`}(e,t)}const ES=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function CS(e){const t=[],n=[];return Array.from(e.querySelectorAll(ES)).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 kS(){return!0}function RS(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:a=CS,isEnabled:i=kS,open:l}=e,s=U.useRef(!1),c=U.useRef(null),u=U.useRef(null),d=U.useRef(null),p=U.useRef(null),f=U.useRef(!1),h=U.useRef(null),m=xv(t.ref,h),g=U.useRef(null);U.useEffect((()=>{l&&h.current&&(f.current=!n)}),[n,l]),U.useEffect((()=>{if(!l||!h.current)return;const e=pv(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),U.useEffect((()=>{if(!l||!h.current)return;const e=pv(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 rm.jsxs(U.Fragment,{children:[rm.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelStart"}),U.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),rm.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelEnd"})]})}const LS=U.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[a,i]=U.useState(null),l=xv(U.isValidElement(n)?n.ref:null,t);if(iv((()=>{o||i(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),iv((()=>{if(a&&!o)return hv(t,a),()=>{hv(t,null)}}),[t,a,o]),o){if(U.isValidElement(n)){const e={ref:l};return U.cloneElement(n,e)}return rm.jsx(U.Fragment,{children:n})}return rm.jsx(U.Fragment,{children:a?yp.createPortal(n,a):a})}));function OS(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function _S(e){return parseInt(fv(e).getComputedStyle(e).paddingRight,10)||0}function IS(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&&OS(e,o)}))}function TS(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function PS(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=pv(e);return t.body===e?fv(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Nv(pv(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${_S(r)+e}px`;const t=pv(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${_S(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=pv(r).body;else{const t=r.parentElement,n=fv(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 MS=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&&OS(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);IS(t,e.mount,e.modalRef,r,!0);const o=TS(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=TS(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=PS(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=TS(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&&OS(e.modalRef,t),IS(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&&OS(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function NS(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=MS,closeAfterTransition:a=!1,onTransitionEnter:i,onTransitionExited:l,children:s,onClose:c,open:u,rootRef:d}=e,p=U.useRef({}),f=U.useRef(null),h=U.useRef(null),m=xv(h,d),[g,v]=U.useState(!u),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},w=yv((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||pv(f.current).body;o.add(x(),e),h.current&&S()})),E=U.useCallback((()=>o.isTopModal(x())),[o]),C=yv((e=>{f.current=e,e&&(u&&E()?S():h.current&&OS(h.current,y))})),k=U.useCallback((()=>{o.remove(x(),y)}),[y,o]);U.useEffect((()=>()=>{k()}),[k]),U.useEffect((()=>{u?w():b&&a||k()}),[u,k,b,a,w]);const R=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&E()&&(n||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},L=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const n=aS(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=eS({},n,t);return eS({role:"presentation"},r,{onKeyDown:R(r),ref:m})},getBackdropProps:(e={})=>eS({"aria-hidden":!0},e,{onClick:L(e),open:u}),getTransitionProps:()=>({onEnter:cv((()=>{v(!1),i&&i()}),null==s?void 0:s.props.onEnter),onExited:cv((()=>{v(!0),l&&l(),a&&k()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:C,isTopModal:E,exited:g,hasTransition:b}}var qS="top",zS="bottom",DS="right",AS="left",jS="auto",FS=[qS,zS,DS,AS],BS="start",$S="end",WS="clippingParents",HS="viewport",US="popper",VS="reference",GS=FS.reduce((function(e,t){return e.concat([t+"-"+BS,t+"-"+$S])}),[]),KS=[].concat(FS,[jS]).reduce((function(e,t){return e.concat([t,t+"-"+BS,t+"-"+$S])}),[]),ZS=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function XS(e){return e?(e.nodeName||"").toLowerCase():null}function QS(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function JS(e){return e instanceof QS(e).Element||e instanceof Element}function YS(e){return e instanceof QS(e).HTMLElement||e instanceof HTMLElement}function ew(e){return"undefined"!=typeof ShadowRoot&&(e instanceof QS(e).ShadowRoot||e instanceof ShadowRoot)}var tw={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];YS(o)&&XS(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}),{});YS(r)&&XS(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function nw(e){return e.split("-")[0]}var rw=Math.max,ow=Math.min,aw=Math.round;function iw(){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 lw(){return!/^((?!chrome|android).)*safari/i.test(iw())}function sw(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&YS(e)&&(o=e.offsetWidth>0&&aw(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&aw(r.height)/e.offsetHeight||1);var i=(JS(e)?QS(e):window).visualViewport,l=!lw()&&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 cw(e){var t=sw(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 uw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ew(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function dw(e){return QS(e).getComputedStyle(e)}function pw(e){return["table","td","th"].indexOf(XS(e))>=0}function fw(e){return((JS(e)?e.ownerDocument:e.document)||window.document).documentElement}function hw(e){return"html"===XS(e)?e:e.assignedSlot||e.parentNode||(ew(e)?e.host:null)||fw(e)}function mw(e){return YS(e)&&"fixed"!==dw(e).position?e.offsetParent:null}function gw(e){for(var t=QS(e),n=mw(e);n&&pw(n)&&"static"===dw(n).position;)n=mw(n);return n&&("html"===XS(n)||"body"===XS(n)&&"static"===dw(n).position)?t:n||function(e){var t=/firefox/i.test(iw());if(/Trident/i.test(iw())&&YS(e)&&"fixed"===dw(e).position)return null;var n=hw(e);for(ew(n)&&(n=n.host);YS(n)&&["html","body"].indexOf(XS(n))<0;){var r=dw(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 vw(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function bw(e,t,n){return rw(e,ow(t,n))}function yw(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function xw(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Sw={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=nw(n.placement),s=vw(l),c=[AS,DS].indexOf(l)>=0?"height":"width";if(a&&i){var u=function(e,t){return yw("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:xw(e,FS))}(o.padding,n),d=cw(a),p="y"===s?qS:AS,f="y"===s?zS:DS,h=n.rects.reference[c]+n.rects.reference[s]-i[s]-n.rects.popper[c],m=i[s]-n.rects.reference[s],g=gw(a),v=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,b=h/2-m/2,y=u[p],x=v-d[c]-u[f],S=v/2-d[c]/2+b,w=bw(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)))&&uw(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ww(e){return e.split("-")[1]}var Ew={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Cw(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=i.x,f=void 0===p?0:p,h=i.y,m=void 0===h?0:h,g="function"==typeof u?u({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var v=i.hasOwnProperty("x"),b=i.hasOwnProperty("y"),y=AS,x=qS,S=window;if(c){var w=gw(n),E="clientHeight",C="clientWidth";if(w===QS(n)&&"static"!==dw(w=fw(n)).position&&"absolute"===l&&(E="scrollHeight",C="scrollWidth"),o===qS||(o===AS||o===DS)&&a===$S)x=zS,m-=(d&&w===S&&S.visualViewport?S.visualViewport.height:w[E])-r.height,m*=s?1:-1;if(o===AS||(o===qS||o===zS)&&a===$S)y=DS,f-=(d&&w===S&&S.visualViewport?S.visualViewport.width:w[C])-r.width,f*=s?1:-1}var k,R=Object.assign({position:l},c&&Ew),L=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:aw(n*o)/o||0,y:aw(r*o)/o||0}}({x:f,y:m},QS(n)):{x:f,y:m};return f=L.x,m=L.y,s?Object.assign({},R,((k={})[x]=b?"0":"",k[y]=v?"0":"",k.transform=(S.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",k)):Object.assign({},R,((t={})[x]=b?m+"px":"",t[y]=v?f+"px":"",t.transform="",t))}var kw={passive:!0};var Rw={left:"right",right:"left",bottom:"top",top:"bottom"};function Lw(e){return e.replace(/left|right|bottom|top/g,(function(e){return Rw[e]}))}var Ow={start:"end",end:"start"};function _w(e){return e.replace(/start|end/g,(function(e){return Ow[e]}))}function Iw(e){var t=QS(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Tw(e){return sw(fw(e)).left+Iw(e).scrollLeft}function Pw(e){var t=dw(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Mw(e){return["html","body","#document"].indexOf(XS(e))>=0?e.ownerDocument.body:YS(e)&&Pw(e)?e:Mw(hw(e))}function Nw(e,t){var n;void 0===t&&(t=[]);var r=Mw(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=QS(r),i=o?[a].concat(a.visualViewport||[],Pw(r)?r:[]):r,l=t.concat(i);return o?l:l.concat(Nw(hw(i)))}function qw(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function zw(e,t,n){return t===HS?qw(function(e,t){var n=QS(e),r=fw(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,l=0,s=0;if(o){a=o.width,i=o.height;var c=lw();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:a,height:i,x:l+Tw(e),y:s}}(e,n)):JS(t)?function(e,t){var n=sw(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):qw(function(e){var t,n=fw(e),r=Iw(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=rw(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=rw(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Tw(e),s=-r.scrollTop;return"rtl"===dw(o||n).direction&&(l+=rw(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:l,y:s}}(fw(e)))}function Dw(e,t,n,r){var o="clippingParents"===t?function(e){var t=Nw(hw(e)),n=["absolute","fixed"].indexOf(dw(e).position)>=0&&YS(e)?gw(e):e;return JS(n)?t.filter((function(e){return JS(e)&&uw(e,n)&&"body"!==XS(e)})):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],l=a.reduce((function(t,n){var o=zw(e,n,r);return t.top=rw(o.top,t.top),t.right=ow(o.right,t.right),t.bottom=ow(o.bottom,t.bottom),t.left=rw(o.left,t.left),t}),zw(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 Aw(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?nw(o):null,i=o?ww(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(a){case qS:t={x:l,y:n.y-r.height};break;case zS:t={x:l,y:n.y+n.height};break;case DS:t={x:n.x+n.width,y:s};break;case AS:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=a?vw(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case BS:t[c]=t[c]-(n[u]/2-r[u]/2);break;case $S:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function jw(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?WS:l,c=n.rootBoundary,u=void 0===c?HS:c,d=n.elementContext,p=void 0===d?US:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,v=yw("number"!=typeof g?g:xw(g,FS)),b=p===US?VS:US,y=e.rects.popper,x=e.elements[h?b:p],S=Dw(JS(x)?x:x.contextElement||fw(e.elements.popper),s,u,i),w=sw(e.elements.reference),E=Aw({reference:w,element:y,strategy:"absolute",placement:o}),C=qw(Object.assign({},y,E)),k=p===US?C:w,R={top:S.top-k.top+v.top,bottom:k.bottom-S.bottom+v.bottom,left:S.left-k.left+v.left,right:k.right-S.right+v.right},L=e.modifiersData.offset;if(p===US&&L){var O=L[o];Object.keys(R).forEach((function(e){var t=[DS,zS].indexOf(e)>=0?1:-1,n=[qS,zS].indexOf(e)>=0?"y":"x";R[e]+=O[n]*t}))}return R}function Fw(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?KS:s,u=ww(r),d=u?l?GS:GS.filter((function(e){return ww(e)===u})):FS,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]=jw(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[nw(n)],t}),{});return Object.keys(f).sort((function(e,t){return f[e]-f[t]}))}var Bw={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,l=void 0===i||i,s=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,v=nw(g),b=s||(v===g||!h?[Lw(g)]:function(e){if(nw(e)===jS)return[];var t=Lw(e);return[_w(e),t,_w(t)]}(g)),y=[g].concat(b).reduce((function(e,n){return e.concat(nw(n)===jS?Fw(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),x=t.rects.reference,S=t.rects.popper,w=new Map,E=!0,C=y[0],k=0;k<y.length;k++){var R=y[k],L=nw(R),O=ww(R)===BS,_=[qS,zS].indexOf(L)>=0,I=_?"width":"height",T=jw(t,{placement:R,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),P=_?O?DS:AS:O?zS:qS;x[I]>S[I]&&(P=Lw(P));var M=Lw(P),N=[];if(a&&N.push(T[L]<=0),l&&N.push(T[P]<=0,T[M]<=0),N.every((function(e){return e}))){C=R,E=!1;break}w.set(R,N)}if(E)for(var q=function(e){var t=y.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},z=h?3:1;z>0;z--){if("break"===q(z))break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function $w(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 Ww(e){return[qS,DS,zS,AS].some((function(t){return e[t]>=0}))}var Hw={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=KS.reduce((function(e,n){return e[n]=function(e,t,n){var r=nw(e),o=[AS,qS].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,[AS,DS].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 Uw={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=jw(t,{boundary:s,rootBoundary:c,padding:d,altBoundary:u}),v=nw(t.placement),b=ww(t.placement),y=!b,x=vw(v),S="x"===x?"y":"x",w=t.modifiersData.popperOffsets,E=t.rects.reference,C=t.rects.popper,k="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,R="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(w){if(a){var _,I="y"===x?qS:AS,T="y"===x?zS:DS,P="y"===x?"height":"width",M=w[x],N=M+g[I],q=M-g[T],z=f?-C[P]/2:0,D=b===BS?E[P]:C[P],A=b===BS?-C[P]:-E[P],j=t.elements.arrow,F=f&&j?cw(j):{width:0,height:0},B=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},$=B[I],W=B[T],H=bw(0,E[P],F[P]),U=y?E[P]/2-z-H-$-R.mainAxis:D-H-$-R.mainAxis,V=y?-E[P]/2+z+H+W+R.mainAxis:A+H+W+R.mainAxis,G=t.elements.arrow&&gw(t.elements.arrow),K=G?"y"===x?G.clientTop||0:G.clientLeft||0:0,Z=null!=(_=null==L?void 0:L[x])?_:0,X=M+V-Z,Q=bw(f?ow(N,M+U-Z-K):N,M,f?rw(q,X):q);w[x]=Q,O[x]=Q-M}if(l){var J,Y="x"===x?qS:AS,ee="x"===x?zS:DS,te=w[S],ne="y"===S?"height":"width",re=te+g[Y],oe=te-g[ee],ae=-1!==[qS,AS].indexOf(v),ie=null!=(J=null==L?void 0:L[S])?J:0,le=ae?re:te-E[ne]-C[ne]-ie+R.altAxis,se=ae?te+E[ne]+C[ne]-ie-R.altAxis:oe,ce=f&&ae?function(e,t,n){var r=bw(e,t,n);return r>n?n:r}(le,te,se):bw(f?le:re,te,f?se:oe);w[S]=ce,O[S]=ce-te}t.modifiersData[r]=O}},requiresIfExists:["offset"]};function Vw(e,t,n){void 0===n&&(n=!1);var r=YS(t),o=YS(t)&&function(e){var t=e.getBoundingClientRect(),n=aw(t.width)/e.offsetWidth||1,r=aw(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),a=fw(t),i=sw(e,o,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==XS(t)||Pw(a))&&(l=function(e){return e!==QS(e)&&YS(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Iw(e);var t}(t)),YS(t)?((s=sw(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):a&&(s.x=Tw(a))),{x:i.left+l.scrollLeft-s.x,y:i.top+l.scrollTop-s.y,width:i.width,height:i.height}}function Gw(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 Kw={placement:"bottom",modifiers:[],strategy:"absolute"};function Zw(){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 Xw(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,a=void 0===o?Kw:o;return function(e,t,n){void 0===n&&(n=a);var o,i,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Kw,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:JS(e)?Nw(e):e.contextElement?Nw(e.contextElement):[],popper:Nw(t)};var i,c,p=function(e){var t=Gw(e);return ZS.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(Zw(t,n)){l.rects={reference:Vw(t,gw(n),"fixed"===l.options.strategy),popper:cw(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(!Zw(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 Qw=Xw({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=QS(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",n.update,kw)})),l&&s.addEventListener("resize",n.update,kw),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",n.update,kw)})),l&&s.removeEventListener("resize",n.update,kw)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Aw({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,l=n.roundOffsets,s=void 0===l||l,c={placement:nw(t.placement),variation:ww(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,Cw(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,Cw(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:{}},tw,Hw,Bw,Uw,Sw,{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=jw(t,{elementContext:"reference"}),l=jw(t,{altBoundary:!0}),s=$w(i,r),c=$w(l,o,a),u=Ww(s),d=Ww(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 Jw="Popper";function Yw(e){return wS(Jw,e)}!function(e,t){const n={};t.forEach((t=>{n[t]=wS(e,t)}))}(Jw,["root"]);const eE=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],tE=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function nE(e){return"function"==typeof e?e():e}const rE=()=>zv({root:["root"]},function(e){const{disableDefaultClasses:t}=U.useContext(oS);return n=>t?"":e(n)}(Yw)),oE={},aE=U.forwardRef((function(e,t){var n;const{anchorEl:r,children:o,direction:a,disablePortal:i,modifiers:l,open:s,placement:c,popperOptions:u,popperRef:d,slotProps:p={},slots:f={},TransitionProps:h}=e,m=iS(e,eE),g=U.useRef(null),v=xv(g,t),b=U.useRef(null),y=xv(b,d),x=U.useRef(y);iv((()=>{x.current=y}),[y]),U.useImperativeHandle(d,(()=>b.current),[]);const S=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(c,a),[w,E]=U.useState(S),[C,k]=U.useState(nE(r));U.useEffect((()=>{b.current&&b.current.forceUpdate()})),U.useEffect((()=>{r&&k(nE(r))}),[r]),iv((()=>{if(!C||!s)return;let e=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{E(e.placement)}}];null!=l&&(e=e.concat(l)),u&&null!=u.modifiers&&(e=e.concat(u.modifiers));const t=Qw(C,g.current,eS({placement:S},u,{modifiers:e}));return x.current(t),()=>{t.destroy(),x.current(null)}}),[C,i,l,s,u,S]);const R={placement:w};null!==h&&(R.TransitionProps=h);const L=rE(),O=null!=(n=f.root)?n:"div",_=cS({elementType:O,externalSlotProps:p.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:v},ownerState:e,className:L.root});return rm.jsx(O,eS({},_,{children:"function"==typeof o?o(R):o}))})),iE=U.forwardRef((function(e,t){const{anchorEl:n,children:r,container:o,direction:a="ltr",disablePortal:i=!1,keepMounted:l=!1,modifiers:s,open:c,placement:u="bottom",popperOptions:d=oE,popperRef:p,style:f,transition:h=!1,slotProps:m={},slots:g={}}=e,v=iS(e,tE),[b,y]=U.useState(!0);if(!l&&!c&&(!h||b))return null;let x;if(o)x=o;else if(n){const e=nE(n);x=e&&void 0!==e.nodeType?pv(e).body:pv(null).body}const S=c||!l||h&&!b?void 0:"none",w=h?{in:c,onEnter:()=>{y(!1)},onExited:()=>{y(!0)}}:void 0;return rm.jsx(LS,{disablePortal:i,container:x,children:rm.jsx(aE,eS({anchorEl:n,direction:a,disablePortal:i,modifiers:s,ref:t,open:h?!b:c,placement:u,popperOptions:d,popperRef:p,slotProps:m,slots:g},v,{style:eS({position:"fixed",top:0,left:0,display:S},f),TransitionProps:w,children:r}))})})),lE=["onChange","maxRows","minRows","style","value"];function sE(e){return parseInt(e,10)||0}const cE={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};const uE=U.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:a,value:i}=e,l=iS(e,lE),{current:s}=U.useRef(null!=i),c=U.useRef(null),u=xv(t,c),d=U.useRef(null),p=U.useCallback((()=>{const t=c.current,n=fv(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0,overflowing:!1};const a=d.current;a.style.width=n.width,a.value=t.value||e.placeholder||"x","\n"===a.value.slice(-1)&&(a.value+=" ");const i=n.boxSizing,l=sE(n.paddingBottom)+sE(n.paddingTop),s=sE(n.borderBottomWidth)+sE(n.borderTopWidth),u=a.scrollHeight;a.value="x";const p=a.scrollHeight;let f=u;o&&(f=Math.max(Number(o)*p,f)),r&&(f=Math.min(Number(r)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===i?l+s:0),overflowing:Math.abs(f-u)<=1}}),[r,o,e.placeholder]),f=U.useCallback((()=>{const e=p();if(null==(t=e)||0===Object.keys(t).length||0===t.outerHeightStyle&&!t.overflowing)return;var t;const n=c.current;n.style.height=`${e.outerHeightStyle}px`,n.style.overflow=e.overflowing?"hidden":""}),[p]);iv((()=>{const e=()=>{f()};const t=uv(e),n=c.current,r=fv(n);let o;return r.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(n)),()=>{t.clear(),cancelAnimationFrame(undefined),r.removeEventListener("resize",t),o&&o.disconnect()}}),[p,f]),iv((()=>{f()}));return rm.jsxs(U.Fragment,{children:[rm.jsx("textarea",eS({value:i,onChange:e=>{s||f(),n&&n(e)},ref:u,rows:o,style:a},l)),rm.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:eS({},cE,a,{paddingTop:0,paddingBottom:0})})]})}));var dE={};Object.defineProperty(dE,"__esModule",{value:!0});var pE=dE.default=void 0,fE=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=mE(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(r,a,i):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}(U),hE=iy;function mE(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(mE=function(e){return e?n:t})(e)}pE=dE.default=function(e=null){const t=fE.useContext(hE.ThemeContext);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n};const gE=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],vE=Ty(iE,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),bE=U.forwardRef((function(e,t){var n;const r=pE(),o=ey({props:e,name:"MuiPopper"}),{anchorEl:a,component:i,components:l,componentsProps:s,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:v,slots:b,slotProps:y}=o,x=Rp(o,gE),S=null!=(n=null==b?void 0:b.root)?n:null==l?void 0:l.Root,w=kp({anchorEl:a,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:v},x);return rm.jsx(vE,kp({as:i,direction:null==r?void 0:r.direction,slots:{root:S},slotProps:null!=y?y:s},w,{ref:t}))}));function yE({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 xE=U.createContext(void 0);function SE(){return U.useContext(xE)}function wE(e){return rm.jsx(Ig,kp({},e,{defaultTheme:Jb,themeId:Cp}))}function EE(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function CE(e){return Bg("MuiInputBase",e)}const kE=$g("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),RE=["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"],LE=(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${Om(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},OE=(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]},_E=Ty("div",{name:"MuiInputBase",slot:"Root",overridesResolver:LE})((({theme:e,ownerState:t})=>kp({},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",[`&.${kE.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&kp({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),IE=Ty("input",{name:"MuiInputBase",slot:"Input",overridesResolver:OE})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=kp({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 kp({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] + .${kE.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},[`&.${kE.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"})})),TE=rm.jsx(wE,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),PE=U.forwardRef((function(e,t){var n;const r=ey({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:i,className:l,components:s={},componentsProps:c={},defaultValue:u,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:v={},inputRef:b,maxRows:y,minRows:x,multiline:S=!1,name:w,onBlur:E,onChange:C,onClick:k,onFocus:R,onKeyDown:L,onKeyUp:O,placeholder:_,readOnly:I,renderSuffix:T,rows:P,slotProps:M={},slots:N={},startAdornment:q,type:z="text",value:D}=r,A=Rp(r,RE),j=null!=v.value?v.value:D,{current:F}=U.useRef(null!=j),B=U.useRef(),$=U.useCallback((e=>{}),[]),W=xv(B,b,v.ref,$),[H,V]=U.useState(!1),G=SE(),K=yE({props:r,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=G?G.focused:H,U.useEffect((()=>{!G&&d&&H&&(V(!1),E&&E())}),[G,d,H,E]);const Z=G&&G.onFilled,X=G&&G.onEmpty,Q=U.useCallback((e=>{!function(e,t=!1){return e&&(EE(e.value)&&""!==e.value||t&&EE(e.defaultValue)&&""!==e.defaultValue)}(e)?X&&X():Z&&Z()}),[Z,X]);iv((()=>{F&&Q({value:j})}),[j,Q,F]);U.useEffect((()=>{Q(B.current)}),[]);let J=g,Y=v;S&&"input"===J&&(Y=kp(P?{type:void 0,minRows:P,maxRows:P}:{type:void 0,maxRows:y,minRows:x},Y),J=uE);U.useEffect((()=>{G&&G.setAdornedStart(Boolean(q))}),[G,q]);const ee=kp({},r,{color:K.color||"primary",disabled:K.disabled,endAdornment:f,error:K.error,focused:K.focused,formControl:G,fullWidth:h,hiddenLabel:K.hiddenLabel,multiline:S,size:K.size,startAdornment:q,type:z}),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 zv({root:["root",`color${Om(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",i&&"focused",l&&"formControl",p&&"medium"!==p&&`size${Om(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"]},CE,t)})(ee),ne=N.root||s.Root||_E,re=M.root||c.root||{},oe=N.input||s.Input||IE;return Y=kp({},Y,null!=(n=M.input)?n:c.input),rm.jsxs(U.Fragment,{children:[!p&&TE,rm.jsxs(ne,kp({},re,!tS(ne)&&{ownerState:kp({},ee,re.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),k&&k(e)}},A,{className:Ag(te.root,re.className,l,I&&"MuiInputBase-readOnly"),children:[q,rm.jsx(xE.Provider,{value:null,children:rm.jsx(oe,kp({ownerState:ee,"aria-invalid":K.error,"aria-describedby":o,autoComplete:a,autoFocus:i,defaultValue:u,disabled:K.disabled,id:m,onAnimationStart:e=>{Q("mui-auto-fill-cancel"===e.animationName?B.current:{value:"x"})},name:w,placeholder:_,readOnly:I,required:K.required,rows:P,value:j,onKeyDown:L,onKeyUp:O,type:z},Y,!tS(oe)&&{as:J,ownerState:kp({},ee,Y.ownerState)},{ref:W,className:Ag(te.input,Y.className,I&&"MuiInputBase-readOnly"),onBlur:e=>{E&&E(e),v.onBlur&&v.onBlur(e),G&&G.onBlur?G.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!F){const t=e.target||B.current;if(null==t)throw new Error(wp(1));Q({value:t.value})}v.onChange&&v.onChange(e,...t),C&&C(e,...t)},onFocus:e=>{K.disabled?e.stopPropagation():(R&&R(e),v.onFocus&&v.onFocus(e),G&&G.onFocus?G.onFocus(e):V(!0))}}))}),f,T?T(kp({},K,{startAdornment:q})):null]}))]})}));var ME=PE;function NE(e){return Bg("MuiOutlinedInput",e)}const qE=kp({},kE,$g("MuiOutlinedInput",["root","notchedOutline","input"])),zE=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],DE={entering:{opacity:1},entered:{opacity:1}},AE=U.forwardRef((function(e,t){const n=Yb(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:i,easing:l,in:s,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=r,TransitionComponent:v=Vy}=e,b=Rp(e,zE),y=U.useRef(null),x=xv(y,i.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},w=S(d),E=S(((e,t)=>{Kx(e);const r=Zx({style:m,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),C=S(u),k=S(h),R=S((e=>{const t=Zx({style:m,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),L=S(f);return rm.jsx(v,kp({appear:a,in:s,nodeRef:y,onEnter:E,onEntered:C,onEntering:w,onExit:R,onExited:L,onExiting:k,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>U.cloneElement(i,kp({style:kp({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},DE[e],m,i.props.style),ref:x},t))}))}));function jE(e){return Bg("MuiBackdrop",e)}$g("MuiBackdrop",["root","invisible"]);const FE=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],BE=Ty("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>kp({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"}))),$E=U.forwardRef((function(e,t){var n,r,o;const a=ey({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=AE,transitionDuration:g}=a,v=Rp(a,FE),b=kp({},a,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return zv({root:["root",n&&"invisible"]},jE,t)})(b),x=null!=(n=f.root)?n:u.root;return rm.jsx(m,kp({in:p,timeout:g},v,{children:rm.jsx(BE,kp({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:c.Root)?r:s,className:Ag(y.root,l,null==x?void 0:x.className),ownerState:kp({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:i}))}))}));function WE(e){return Bg("MuiBadge",e)}const HE=$g("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"]),UE=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],VE=ey,GE=Ty("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),KE=Ty("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Om(n.anchorOrigin.vertical)}${Om(n.anchorOrigin.horizontal)}${Om(n.overlap)}`],"default"!==n.color&&t[`color${Om(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%",[`&.${HE.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%",[`&.${HE.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%",[`&.${HE.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%",[`&.${HE.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%",[`&.${HE.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%",[`&.${HE.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%",[`&.${HE.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%",[`&.${HE.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})}}]}})),ZE=U.forwardRef((function(e,t){var n,r,o,a,i,l;const s=VE({props:e,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:u,component:d,components:p={},componentsProps:f={},children:h,overlap:m="rectangular",color:g="default",invisible:v=!1,max:b=99,badgeContent:y,slots:x,slotProps:S,showZero:w=!1,variant:E="standard"}=s,C=Rp(s,UE),{badgeContent:k,invisible:R,max:L,displayValue:O}=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,a=qv({badgeContent:t,max:r});let i=n;!1!==n||0!==t||o||(i=!0);const{badgeContent:l,max:s=r}=i?a:e;return{badgeContent:l,invisible:i,max:s,displayValue:l&&Number(l)>s?`${s}+`:l}}({max:b,invisible:v,badgeContent:y,showZero:w}),_=qv({anchorOrigin:c,color:g,overlap:m,variant:E,badgeContent:y}),I=R||null==k&&"dot"!==E,{color:T=g,overlap:P=m,anchorOrigin:M=c,variant:N=E}=I?_:s,q="dot"!==N?O:void 0,z=kp({},s,{badgeContent:k,invisible:I,max:L,displayValue:q,showZero:w,anchorOrigin:M,color:T,overlap:P,variant:N}),D=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:a,classes:i={}}=e;return zv({root:["root"],badge:["badge",a,r&&"invisible",`anchorOrigin${Om(n.vertical)}${Om(n.horizontal)}`,`anchorOrigin${Om(n.vertical)}${Om(n.horizontal)}${Om(o)}`,`overlap${Om(o)}`,"default"!==t&&`color${Om(t)}`]},WE,i)})(z),A=null!=(n=null!=(r=null==x?void 0:x.root)?r:p.Root)?n:GE,j=null!=(o=null!=(a=null==x?void 0:x.badge)?a:p.Badge)?o:KE,F=null!=(i=null==S?void 0:S.root)?i:f.root,B=null!=(l=null==S?void 0:S.badge)?l:f.badge,$=cS({elementType:A,externalSlotProps:F,externalForwardedProps:C,additionalProps:{ref:t,as:d},ownerState:z,className:Ag(null==F?void 0:F.className,D.root,u)}),W=cS({elementType:j,externalSlotProps:B,ownerState:z,className:Ag(D.badge,null==B?void 0:B.className)});return rm.jsxs(A,kp({},$,{children:[h,rm.jsx(j,kp({},W,{children:q}))]}))})),XE=$g("MuiBox",["root"]),QE=Qb(),JE=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,a=lm("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(wg),i=U.forwardRef((function(e,i){const l=_g(n),s=Mg(e),{className:c,component:u="div"}=s,d=dm(s,jg);return rm.jsx(a,um({as:u,ref:i,className:Ag(c,o?o(r):r),theme:t&&l[t]||l},d))}));return i}({themeId:Cp,defaultTheme:QE,defaultClassName:XE.root,generateClassName:zg.generate});function YE(e){return Bg("PrivateSwitchBase",e)}$g("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const eC=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],tC=Ty(vx)((({ownerState:e})=>kp({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),nC=Ty("input",{shouldForwardProp:Iy})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),rC=U.forwardRef((function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,className:a,defaultChecked:i,disabled:l,disableFocusRipple:s=!1,edge:c=!1,icon:u,id:d,inputProps:p,inputRef:f,name:h,onBlur:m,onChange:g,onFocus:v,readOnly:b,required:y=!1,tabIndex:x,type:S,value:w}=e,E=Rp(e,eC),[C,k]=bv({controlled:r,default:Boolean(i),name:"SwitchBase",state:"checked"}),R=SE();let L=l;R&&void 0===L&&(L=R.disabled);const O="checkbox"===S||"radio"===S,_=kp({},e,{checked:C,disabled:L,disableFocusRipple:s,edge:c}),I=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return zv({root:["root",n&&"checked",r&&"disabled",o&&`edge${Om(o)}`],input:["input"]},YE,t)})(_);return rm.jsxs(tC,kp({component:"span",className:Ag(I.root,a),centerRipple:!0,focusRipple:!s,disabled:L,tabIndex:null,role:void 0,onFocus:e=>{v&&v(e),R&&R.onFocus&&R.onFocus(e)},onBlur:e=>{m&&m(e),R&&R.onBlur&&R.onBlur(e)},ownerState:_,ref:t},E,{children:[rm.jsx(nC,kp({autoFocus:n,checked:r,defaultChecked:i,className:I.input,disabled:L,id:O?d:void 0,name:h,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;k(t),g&&g(e,t)},readOnly:b,ref:f,required:y,ownerState:_,tabIndex:x,type:S},"checkbox"===S&&void 0===w?{}:{value:w},p)),C?o:u]}))}));var oC=Ux(rm.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"),aC=Ux(rm.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"),iC=Ux(rm.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 lC(e){return Bg("MuiCheckbox",e)}const sC=$g("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),cC=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],uC=Ty(rC,{shouldForwardProp:e=>Iy(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Om(n.size)}`],"default"!==n.color&&t[`color${Om(n.color)}`]]}})((({theme:e,ownerState:t})=>kp({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})`:lb("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${sC.checked}, &.${sC.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${sC.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),dC=rm.jsx(aC,{}),pC=rm.jsx(oC,{}),fC=rm.jsx(iC,{}),hC=U.forwardRef((function(e,t){var n,r;const o=ey({props:e,name:"MuiCheckbox"}),{checkedIcon:a=dC,color:i="primary",icon:l=pC,indeterminate:s=!1,indeterminateIcon:c=fC,inputProps:u,size:d="medium",className:p}=o,f=Rp(o,cC),h=s?c:l,m=s?c:a,g=kp({},o,{color:i,indeterminate:s,size:d}),v=(e=>{const{classes:t,indeterminate:n,color:r,size:o}=e;return kp({},t,zv({root:["root",n&&"indeterminate",`color${Om(r)}`,`size${Om(o)}`]},lC,t))})(g);return rm.jsx(uC,kp({type:"checkbox",inputProps:kp({"data-indeterminate":s},u),icon:U.cloneElement(h,{fontSize:null!=(n=h.props.fontSize)?n:d}),checkedIcon:U.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:d}),ownerState:g,ref:t,className:Ag(v.root,p)},f,{classes:v}))}));function mC(e){return Bg("MuiCircularProgress",e)}$g("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const gC=["className","color","disableShrink","size","style","thickness","value","variant"];let vC,bC,yC,xC,SC=e=>e;const wC=44,EC=Th(vC||(vC=SC`
|
|
107
107
|
0% {
|
|
108
108
|
transform: rotate(0deg);
|
|
109
109
|
}
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
100% {
|
|
112
112
|
transform: rotate(360deg);
|
|
113
113
|
}
|
|
114
|
-
`)),
|
|
114
|
+
`)),CC=Th(bC||(bC=SC`
|
|
115
115
|
0% {
|
|
116
116
|
stroke-dasharray: 1px, 200px;
|
|
117
117
|
stroke-dashoffset: 0;
|
|
@@ -126,9 +126,9 @@
|
|
|
126
126
|
stroke-dasharray: 100px, 200px;
|
|
127
127
|
stroke-dashoffset: -125px;
|
|
128
128
|
}
|
|
129
|
-
`)),
|
|
129
|
+
`)),kC=Ty("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Om(n.color)}`]]}})((({ownerState:e,theme:t})=>kp({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&&Ih(yC||(yC=SC`
|
|
130
130
|
animation: ${0} 1.4s linear infinite;
|
|
131
|
-
`),
|
|
131
|
+
`),EC))),RC=Ty("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),LC=Ty("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Om(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})((({ownerState:e,theme:t})=>kp({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&&Ih(xC||(xC=SC`
|
|
132
132
|
animation: ${0} 1.4s ease-in-out infinite;
|
|
133
|
-
`),kC))),_C=V.forwardRef((function(e,t){const n=ty({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=Lp(n,vC),p=Rp({},n,{color:o,disableShrink:a,size:i,thickness:s,value:c,variant:u}),f=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e;return Dv({root:["root",n,`color${_m(r)}`],svg:["svg"],circle:["circle",`circle${_m(n)}`,o&&"circleDisableShrink"]},gC,t)})(p),h={},m={},g={};if("determinate"===u){const e=2*Math.PI*((EC-s)/2);h.strokeDasharray=e.toFixed(3),g["aria-valuenow"]=Math.round(c),h.strokeDashoffset=`${((100-c)/100*e).toFixed(3)}px`,m.transform="rotate(-90deg)"}return om.jsx(RC,Rp({className:jg(f.root,r),style:Rp({width:i,height:i},m,l),ownerState:p,ref:t,role:"progressbar"},g,d,{children:om.jsx(LC,{className:f.svg,ownerState:p,viewBox:"22 22 44 44",children:om.jsx(OC,{className:f.circle,style:h,ownerState:p,cx:EC,cy:EC,r:(EC-s)/2,fill:"none",strokeWidth:s})})}))}));function IC(e){return $g("MuiModal",e)}Wg("MuiModal",["root","hidden","backdrop"]);const TC=["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"],PC=Py("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})=>Rp({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),MC=Py(WE,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),NC=V.forwardRef((function(e,t){var n,r,o,a,i,l;const s=ty({name:"MuiModal",props:e}),{BackdropComponent:c=MC,BackdropProps:u,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:w=!1,disableScrollLock:E=!1,hideBackdrop:C=!1,keepMounted:k=!1,onBackdropClick:R,open:L,slotProps:O,slots:_}=s,I=Lp(s,TC),T=Rp({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:w,disableScrollLock:E,hideBackdrop:C,keepMounted:k}),{getRootProps:P,getBackdropProps:M,getTransitionProps:N,portalRef:q,isTopModal:z,exited:D,hasTransition:A}=qS(Rp({},T,{rootRef:t})),j=Rp({},T,{exited:D}),F=(e=>{const{open:t,exited:n,classes:r}=e;return Dv({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},IC,r)})(j),B={};if(void 0===f.props.tabIndex&&(B.tabIndex="-1"),A){const{onEnter:e,onExited:t}=N();B.onEnter=e,B.onExited=t}const $=null!=(n=null!=(r=null==_?void 0:_.root)?r:g.Root)?n:PC,W=null!=(o=null!=(a=null==_?void 0:_.backdrop)?a:g.Backdrop)?o:c,H=null!=(i=null==O?void 0:O.root)?i:v.root,U=null!=(l=null==O?void 0:O.backdrop)?l:v.backdrop,G=uS({elementType:$,externalSlotProps:H,externalForwardedProps:I,getSlotProps:P,additionalProps:{ref:t,as:m},ownerState:j,className:jg(d,null==H?void 0:H.className,null==F?void 0:F.root,!j.open&&j.exited&&(null==F?void 0:F.hidden))}),K=uS({elementType:W,externalSlotProps:U,additionalProps:u,getSlotProps:e=>M(Rp({},e,{onClick:t=>{R&&R(t),null!=e&&e.onClick&&e.onClick(t)}})),className:jg(null==U?void 0:U.className,null==u?void 0:u.className,null==F?void 0:F.backdrop),ownerState:j});return k||L||A&&!D?om.jsx(OS,{ref:q,container:h,disablePortal:S,children:om.jsxs($,Rp({},G,{children:[!C&&c?om.jsx(W,Rp({},K)):null,om.jsx(LS,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:w,isEnabled:z,open:L,children:V.cloneElement(f,B)})]}))}):null}));function qC(e){return $g("MuiDivider",e)}const zC=Wg("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),DC=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],AC=Py("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})=>Rp({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)`:sb(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})=>Rp({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Rp({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>Rp({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>Rp({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),jC=Py("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Rp({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)`}))),FC=V.forwardRef((function(e,t){const n=ty({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=Lp(n,DC),h=Rp({},n,{absolute:r,component:i,flexItem:l,light:s,orientation:c,role:u,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:a,orientation:i,textAlign:l,variant:s}=e;return Dv({root:["root",t&&"absolute",s,a&&"light","vertical"===i&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===i&&"withChildrenVertical","right"===l&&"vertical"!==i&&"textAlignRight","left"===l&&"vertical"!==i&&"textAlignLeft"],wrapper:["wrapper","vertical"===i&&"wrapperVertical"]},qC,r)})(h);return om.jsx(AC,Rp({as:i,className:jg(m.root,a),role:u,ref:t,ownerState:h},f,{children:o?om.jsx(jC,{className:m.wrapper,ownerState:h,children:o}):null}))}));FC.muiSkipListHighlight=!0;const BC=function(e={}){const{createStyledComponent:t=Xv,useThemeProps:n=Qv,componentName:r="MuiStack"}=e,o=t(Yv),a=V.forwardRef((function(e,t){const a=Ng(n(e)),{component:i="div",direction:l="column",spacing:s=0,divider:c,children:u,className:d,useFlexGap:p=!1}=a,f=pm(a,Kv),h={direction:l,spacing:s,useFlexGap:p},m=Dv({root:["root"]},(e=>$g(r,e)),{});return om.jsx(o,dm({as:i,ownerState:h,ref:t,className:jg(m.root,d)},f,{children:c?Jv(u,c):u}))}));return a}({createStyledComponent:Py("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>ty({props:e,name:"MuiStack"})});function $C(e){return $g("MuiFormControlLabel",e)}const WC=Wg("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),HC=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],UC=Py("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${WC.label}`]:t.label},t.root,t[`labelPlacement${_m(n.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>Rp({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${WC.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},{[`& .${WC.label}`]:{[`&.${WC.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),VC=Py("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${WC.error}`]:{color:(e.vars||e).palette.error.main}}))),GC=V.forwardRef((function(e,t){var n,r;const o=ty({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=Lp(o,HC),m=wE(),g=null!=(n=null!=s?s:l.props.disabled)?n:null==m?void 0:m.disabled,v=null!=p?p:l.props.required,b={disabled:g,required:v};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===l.props[e]&&void 0!==o[e]&&(b[e]=o[e])}));const y=xE({props:o,muiFormControl:m,states:["error"]}),x=Rp({},o,{disabled:g,labelPlacement:d,required:v,error:y.error}),S=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:a}=e;return Dv({root:["root",n&&"disabled",`labelPlacement${_m(r)}`,o&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]},$C,t)})(x),w=null!=(r=f.typography)?r:i.typography;let E=u;return null==E||E.type===SS||c||(E=om.jsx(SS,Rp({component:"span"},w,{className:jg(S.label,null==w?void 0:w.className),children:E}))),om.jsxs(UC,Rp({className:jg(S.root,a),ownerState:x,ref:t},h,{children:[V.cloneElement(l,b),v?om.jsxs(BC,{display:"block",children:[E,om.jsxs(VC,{ownerState:x,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]}):E]}))})),KC=V.createContext();function ZC(e){return $g("MuiGrid",e)}const XC=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],QC=Wg("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>`spacing-xs-${e}`)),...["column-reverse","column","row-reverse","row"].map((e=>`direction-xs-${e}`)),...["nowrap","wrap-reverse","wrap"].map((e=>`wrap-xs-${e}`)),...XC.map((e=>`grid-xs-${e}`)),...XC.map((e=>`grid-sm-${e}`)),...XC.map((e=>`grid-md-${e}`)),...XC.map((e=>`grid-lg-${e}`)),...XC.map((e=>`grid-xl-${e}`))]),JC=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function YC(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function ek({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 tk=Py("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})=>Rp({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},"wrap"!==e.wrap&&{flexWrap:e.wrap})),(function({theme:e,ownerState:t}){return km({theme:e},Om({values:t.direction,breakpoints:e.breakpoints.values}),(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${QC.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&0!==r){const t=Om({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=ek({breakpoints:e.breakpoints.values,values:t})),o=km({theme:e},t,((t,r)=>{var o;const a=e.spacing(t);return"0px"!==a?{marginTop:`-${YC(a)}`,[`& > .${QC.item}`]:{paddingTop:YC(a)}}:null!=(o=n)&&o.includes(r)?{}:{marginTop:0,[`& > .${QC.item}`]:{paddingTop:0}}}))}return o}),(function({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&0!==r){const t=Om({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=ek({breakpoints:e.breakpoints.values,values:t})),o=km({theme:e},t,((t,r)=>{var o;const a=e.spacing(t);return"0px"!==a?{width:`calc(100% + ${YC(a)})`,marginLeft:`-${YC(a)}`,[`& > .${QC.item}`]:{paddingLeft:YC(a)}}:null!=(o=n)&&o.includes(r)?{}:{width:"100%",marginLeft:0,[`& > .${QC.item}`]:{paddingLeft:0}}}))}return o}),(function({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce(((r,o)=>{let a={};if(t[o]&&(n=t[o]),!n)return r;if(!0===n)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===n)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=Om({values:t.columns,breakpoints:e.breakpoints.values}),l="object"==typeof i?i[o]:i;if(null==l)return r;const s=Math.round(n/l*1e8)/1e6+"%";let c={};if(t.container&&t.item&&0!==t.columnSpacing){const n=e.spacing(t.columnSpacing);if("0px"!==n){const e=`calc(${s} + ${YC(n)})`;c={flexBasis:e,maxWidth:e}}}a=Rp({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 nk=e=>{const{classes:t,container:n,direction:r,item:o,spacing:a,wrap:i,zeroMinWidth:l,breakpoints:s}=e;let c=[];n&&(c=function(e,t){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[`spacing-xs-${String(e)}`];const n=[];return t.forEach((t=>{const r=e[t];if(Number(r)>0){const e=`spacing-${t}-${String(r)}`;n.push(e)}})),n}(a,s));const u=[];s.forEach((t=>{const n=e[t];n&&u.push(`grid-${t}-${String(n)}`)}));return Dv({root:["root",n&&"container",o&&"item",l&&"zeroMinWidth",...c,"row"!==r&&`direction-xs-${String(r)}`,"wrap"!==i&&`wrap-xs-${String(i)}`,...u]},ZC,t)},rk=V.forwardRef((function(e,t){const n=ty({props:e,name:"MuiGrid"}),{breakpoints:r}=ey(),o=Ng(n),{className:a,columns:i,columnSpacing:l,component:s="div",container:c=!1,direction:u="row",item:d=!1,rowSpacing:p,spacing:f=0,wrap:h="wrap",zeroMinWidth:m=!1}=o,g=Lp(o,JC),v=p||f,b=l||f,y=V.useContext(KC),x=c?i||12:y,S={},w=Rp({},g);r.keys.forEach((e=>{null!=g[e]&&(S[e]=g[e],delete w[e])}));const E=Rp({},o,{columns:x,container:c,direction:u,item:d,rowSpacing:v,columnSpacing:b,wrap:h,zeroMinWidth:m,spacing:f},S,{breakpoints:r.keys}),C=nk(E);return om.jsx(KC.Provider,{value:x,children:om.jsx(tk,Rp({ownerState:E,className:jg(C.root,a),as:s,ref:t},w))})})),ok=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ak(e){return`scale(${e}, ${e**2})`}const ik={entering:{opacity:1,transform:ak(1)},entered:{opacity:1,transform:"none"}},lk="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),sk=V.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=Gy}=e,g=Lp(e,ok),v=kv(),b=V.useRef(),y=ey(),x=V.useRef(null),S=Sv(x,o.ref,t),w=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},E=w(c),C=w(((e,t)=>{Zx(e);const{duration:n,delay:r,easing:o}=Xx({style:f,timeout:h,easing:a},{mode:"enter"});let i;"auto"===h?(i=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=i):i=n,e.style.transition=[y.transitions.create("opacity",{duration:i,delay:r}),y.transitions.create("transform",{duration:lk?i:.666*i,delay:r,easing:o})].join(","),l&&l(e,t)})),k=w(s),R=w(p),L=w((e=>{const{duration:t,delay:n,easing:r}=Xx({style:f,timeout:h,easing:a},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:lk?o:.666*o,delay:lk?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=ak(.75),u&&u(e)})),O=w(d);return om.jsx(m,Rp({appear:r,in:i,nodeRef:x,onEnter:C,onEntered:k,onEntering:E,onExit:L,onExited:O,onExiting:R,addEndListener:e=>{"auto"===h&&v.start(b.current||0,e),n&&n(x.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>V.cloneElement(o,Rp({style:Rp({opacity:0,transform:ak(.75),visibility:"exited"!==e||i?void 0:"hidden"},ik[e],f,o.props.style),ref:S},t))}))}));function ck(e){return $g("MuiIcon",e)}sk.muiSupportAuto=!0,Wg("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const uk=["baseClassName","className","color","component","fontSize"],dk=Py("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${_m(n.color)}`],t[`fontSize${_m(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:e.typography.pxToRem(20),medium:e.typography.pxToRem(24),large:e.typography.pxToRem(36)}[t.fontSize],color:{primary:(e.vars||e).palette.primary.main,secondary:(e.vars||e).palette.secondary.main,info:(e.vars||e).palette.info.main,success:(e.vars||e).palette.success.main,warning:(e.vars||e).palette.warning.main,action:(e.vars||e).palette.action.active,error:(e.vars||e).palette.error.main,disabled:(e.vars||e).palette.action.disabled,inherit:void 0}[t.color]}))),pk=V.forwardRef((function(e,t){const n=ty({props:e,name:"MuiIcon"}),{baseClassName:r="material-icons",className:o,color:a="inherit",component:i="span",fontSize:l="medium"}=n,s=Lp(n,uk),c=Rp({},n,{baseClassName:r,color:a,component:i,fontSize:l}),u=(e=>{const{color:t,fontSize:n,classes:r}=e;return Dv({root:["root","inherit"!==t&&`color${_m(t)}`,`fontSize${_m(n)}`]},ck,r)})(c);return om.jsx(dk,Rp({as:i,className:jg(r,"notranslate",u.root,o),ownerState:c,"aria-hidden":!0,ref:t},s))}));function fk(e){return $g("MuiInputAdornment",e)}pk.muiName="Icon";const hk=Wg("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var mk;const gk=["children","className","component","disablePointerEvents","disableTypography","position","variant"],vk=Py("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${_m(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>Rp({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${hk.positionStart}&:not(.${hk.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),bk=V.forwardRef((function(e,t){const n=ty({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:a="div",disablePointerEvents:i=!1,disableTypography:l=!1,position:s,variant:c}=n,u=Lp(n,gk),d=wE()||{};let p=c;c&&d.variant,d&&!p&&(p=d.variant);const f=Rp({},n,{hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:i,position:s,variant:p}),h=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:a,variant:i}=e;return Dv({root:["root",n&&"disablePointerEvents",o&&`position${_m(o)}`,i,r&&"hiddenLabel",a&&`size${_m(a)}`]},fk,t)})(f);return om.jsx(SE.Provider,{value:null,children:om.jsx(vk,Rp({as:a,ownerState:f,className:jg(h.root,o),ref:t},u,{children:"string"!=typeof r||l?om.jsxs(V.Fragment,{children:["start"===s?mk||(mk=om.jsx("span",{className:"notranslate",children:""})):null,r]}):om.jsx(SS,{color:"text.secondary",children:r})}))})})),yk=V.createContext({});function xk(e){return $g("MuiList",e)}Wg("MuiList",["root","padding","dense","subheader"]);const Sk=["children","className","component","dense","disablePadding","subheader"],wk=Py("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})=>Rp({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),Ek=V.forwardRef((function(e,t){const n=ty({props:e,name:"MuiList"}),{children:r,className:o,component:a="ul",dense:i=!1,disablePadding:l=!1,subheader:s}=n,c=Lp(n,Sk),u=V.useMemo((()=>({dense:i})),[i]),d=Rp({},n,{component:a,dense:i,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Dv({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},xk,t)})(d);return om.jsx(yk.Provider,{value:u,children:om.jsxs(wk,Rp({as:a,className:jg(p.root,o),ref:t,ownerState:d},c,{children:[s,r]}))})}));function Ck(e){return $g("MuiListItem",e)}const kk=Wg("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Rk=Wg("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Lk(e){return $g("MuiListItemSecondaryAction",e)}Wg("MuiListItemSecondaryAction",["root","disableGutters"]);const Ok=["className"],_k=Py("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>Rp({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),Ik=V.forwardRef((function(e,t){const n=ty({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=Lp(n,Ok),a=Rp({},n,{disableGutters:V.useContext(yk).disableGutters}),i=(e=>{const{disableGutters:t,classes:n}=e;return Dv({root:["root",t&&"disableGutters"]},Lk,n)})(a);return om.jsx(_k,Rp({className:jg(i.root,r),ownerState:a,ref:t},o))}));Ik.muiName="ListItemSecondaryAction";const Tk=["className"],Pk=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Mk=Py("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})=>Rp({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&Rp({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Rk.root}`]:{paddingRight:48}},{[`&.${kk.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${kk.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:sb(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${kk.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:sb(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${kk.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"}},[`&.${kk.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:sb(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})`:sb(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),Nk=Py("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),qk=V.forwardRef((function(e,t){const n=ty({props:e,name:"MuiListItem"}),{alignItems:r="center",autoFocus:o=!1,button:a=!1,children:i,className:l,component:s,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:p}={},dense:f=!1,disabled:h=!1,disableGutters:m=!1,disablePadding:g=!1,divider:v=!1,focusVisibleClassName:b,secondaryAction:y,selected:x=!1,slotProps:S={},slots:w={}}=n,E=Lp(n.ContainerProps,Tk),C=Lp(n,Pk),k=V.useContext(yk),R=V.useMemo((()=>({dense:f||k.dense||!1,alignItems:r,disableGutters:m})),[r,k.dense,f,m]),L=V.useRef(null);lv((()=>{o&&L.current&&L.current.focus()}),[o]);const O=V.Children.toArray(i),_=O.length&&pv(O[O.length-1],["ListItemSecondaryAction"]),I=Rp({},n,{alignItems:r,autoFocus:o,button:a,dense:R.dense,disabled:h,disableGutters:m,disablePadding:g,divider:v,hasSecondaryAction:_,selected:x}),T=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:a,disableGutters:i,disablePadding:l,divider:s,hasSecondaryAction:c,selected:u}=e;return Dv({root:["root",o&&"dense",!i&&"gutters",!l&&"padding",s&&"divider",a&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},Ck,r)})(I),P=Sv(L,t),M=w.root||c.Root||Mk,N=S.root||u.root||{},q=Rp({className:jg(T.root,N.className,l),disabled:h},C);let z=s||"li";return a&&(q.component=s||"div",q.focusVisibleClassName=jg(kk.focusVisible,b),z=bx),_?(z=q.component||s?z:"div","li"===d&&("li"===z?z="div":"li"===q.component&&(q.component="div")),om.jsx(yk.Provider,{value:R,children:om.jsxs(Nk,Rp({as:d,className:jg(T.container,p),ref:P,ownerState:I},E,{children:[om.jsx(M,Rp({},N,!nS(M)&&{as:z,ownerState:Rp({},I,N.ownerState)},q,{children:O})),O.pop()]}))})):om.jsx(yk.Provider,{value:R,children:om.jsxs(M,Rp({},N,{as:z,ref:P},!nS(M)&&{ownerState:Rp({},I,N.ownerState)},q,{children:[O,y&&om.jsx(Ik,{children:y})]}))})}));function zk(e){return $g("MuiListItemIcon",e)}const Dk=Wg("MuiListItemIcon",["root","alignItemsFlexStart"]),Ak=["className"],jk=Py("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})=>Rp({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),Fk=V.forwardRef((function(e,t){const n=ty({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Lp(n,Ak),a=Rp({},n,{alignItems:V.useContext(yk).alignItems}),i=(e=>{const{alignItems:t,classes:n}=e;return Dv({root:["root","flex-start"===t&&"alignItemsFlexStart"]},zk,n)})(a);return om.jsx(jk,Rp({className:jg(i.root,r),ownerState:a,ref:t},o))})),Bk=Wg("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),$k=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Wk(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Hk(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Uk(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 Vk(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")&&Uk(l,a)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}const Gk=V.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=Lp(e,$k),p=V.useRef(null),f=V.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});lv((()=>{r&&p.current.focus()}),[r]),V.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${qv(fv(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const h=Sv(p,t);let m=-1;V.Children.forEach(a,((e,t)=>{V.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=V.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),V.cloneElement(e,t)}return e}));return om.jsx(Ek,Rp({role:"menu",ref:h,className:i,onKeyDown:e=>{const t=p.current,n=e.key,r=fv(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Vk(t,r,s,l,Wk);else if("ArrowUp"===n)e.preventDefault(),Vk(t,r,s,l,Hk);else if("Home"===n)e.preventDefault(),Vk(t,null,s,l,Wk);else if("End"===n)e.preventDefault(),Vk(t,null,s,l,Hk);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&&Uk(r,o);o.previousKeyMatched&&(s||Vk(t,r,!1,l,Wk,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1},d,{children:g}))}));function Kk(e){return $g("MuiPopover",e)}Wg("MuiPopover",["root","paper"]);const Zk=["onEntering"],Xk=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Qk=["slotProps"];function Jk(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Yk(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function eR(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function tR(e){return"function"==typeof e?e():e}const nR=Py(NC,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),rR=Py(eS,{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}),oR=V.forwardRef((function(e,t){var n,r,o;const a=ty({props:e,name:"MuiPopover"}),{action:i,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=sk,transitionDuration:w="auto",TransitionProps:{onEntering:E}={},disableScrollLock:C=!1}=a,k=Lp(a.TransitionProps,Zk),R=Lp(a,Xk),L=null!=(n=null==y?void 0:y.paper)?n:v,O=V.useRef(),_=Sv(O,L.ref),I=Rp({},a,{anchorOrigin:s,anchorReference:u,elevation:h,marginThreshold:m,externalPaperSlotProps:L,transformOrigin:x,TransitionComponent:S,transitionDuration:w,TransitionProps:k}),T=(e=>{const{classes:t}=e;return Dv({root:["root"],paper:["paper"]},Kk,t)})(I),P=V.useCallback((()=>{if("anchorPosition"===u)return c;const e=tR(l),t=(e&&1===e.nodeType?e:fv(O.current).body).getBoundingClientRect();return{top:t.top+Jk(t,s.vertical),left:t.left+Yk(t,s.horizontal)}}),[l,s.horizontal,s.vertical,c,u]),M=V.useCallback((e=>({vertical:Jk(e,x.vertical),horizontal:Yk(e,x.horizontal)})),[x.horizontal,x.vertical]),N=V.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=M(t);if("none"===u)return{top:null,left:null,transformOrigin:eR(n)};const r=P();let o=r.top-n.vertical,a=r.left-n.horizontal;const i=o+t.height,s=a+t.width,c=hv(tR(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:eR(n)}}),[l,u,P,M,m]),[q,z]=V.useState(g),D=V.useCallback((()=>{const e=O.current;if(!e)return;const t=N(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,z(!0)}),[N]);V.useEffect((()=>(C&&window.addEventListener("scroll",D),()=>window.removeEventListener("scroll",D))),[l,C,D]);V.useEffect((()=>{g&&D()})),V.useImperativeHandle(i,(()=>g?{updatePosition:()=>{D()}}:null),[g,D]),V.useEffect((()=>{if(!g)return;const e=dv((()=>{D()})),t=hv(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,D]);let A=w;"auto"!==w||S.muiSupportAuto||(A=void 0);const j=f||(l?fv(tR(l)).body:void 0),F=null!=(r=null==b?void 0:b.root)?r:nR,B=null!=(o=null==b?void 0:b.paper)?o:rR,$=uS({elementType:B,externalSlotProps:Rp({},L,{style:q?L.style:Rp({},L.style,{opacity:0})}),additionalProps:{elevation:h,ref:_},ownerState:I,className:jg(T.paper,null==L?void 0:L.className)}),W=uS({elementType:F,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:R,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:j,open:g},ownerState:I,className:jg(T.root,p)}),{slotProps:H}=W,U=Lp(W,Qk);return om.jsx(F,Rp({},U,!nS(F)&&{slotProps:H,disableScrollLock:C},{children:om.jsx(S,Rp({appear:!0,in:g,onEntering:(e,t)=>{E&&E(e,t),D()},onExited:()=>{z(!1)},timeout:A},k,{children:om.jsx(B,Rp({},$,{children:d}))}))}))}));function aR(e){return $g("MuiMenuItem",e)}const iR=Wg("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),lR=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],sR=Py(bx,{shouldForwardProp:e=>Ty(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})=>Rp({},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"}},[`&.${iR.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:sb(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${iR.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:sb(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${iR.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:sb(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})`:sb(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${iR.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${iR.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${zC.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${zC.inset}`]:{marginLeft:52},[`& .${Bk.root}`]:{marginTop:0,marginBottom:0},[`& .${Bk.inset}`]:{paddingLeft:36},[`& .${Dk.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Rp({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Dk.root} svg`]:{fontSize:"1.25rem"}})))),cR=V.forwardRef((function(e,t){const n=ty({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=Lp(n,lR),f=V.useContext(yk),h=V.useMemo((()=>({dense:a||f.dense||!1,disableGutters:l})),[f.dense,a,l]),m=V.useRef(null);lv((()=>{r&&m.current&&m.current.focus()}),[r]);const g=Rp({},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 Rp({},i,Dv({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},aR,i))})(n),b=Sv(m,t);let y;return n.disabled||(y=void 0!==u?u:-1),om.jsx(yk.Provider,{value:h,children:om.jsx(sR,Rp({ref:b,role:c,tabIndex:y,component:o,focusVisibleClassName:jg(v.focusVisible,s),className:jg(v.root,d)},p,{ownerState:g,classes:v}))})}));var uR;const dR=["children","classes","className","label","notched"],pR=Py("fieldset",{shouldForwardProp:Ty})({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%"}),fR=Py("legend",{shouldForwardProp:Ty})((({ownerState:e,theme:t})=>Rp({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&&Rp({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 hR=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],mR=Py(IE,{shouldForwardProp:e=>Ty(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:OE})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Rp({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${zE.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${zE.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${zE.focused} .${zE.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${zE.error} .${zE.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${zE.disabled} .${zE.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Rp({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),gR=Py((function(e){const{className:t,label:n,notched:r}=e,o=Lp(e,dR),a=null!=n&&""!==n,i=Rp({},e,{notched:r,withLabel:a});return om.jsx(pR,Rp({"aria-hidden":!0,className:t,ownerState:i},o,{children:om.jsx(fR,{ownerState:i,children:a?om.jsx("span",{children:n}):uR||(uR=om.jsx("span",{className:"notranslate",children:""}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),vR=Py(TE,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:_E})((({theme:e,ownerState:t})=>Rp({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}))),bR=V.forwardRef((function(e,t){var n,r,o,a,i;const l=ty({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=Lp(l,hR),v=(e=>{const{classes:t}=e;return Rp({},t,Dv({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},qE,t))})(l),b=wE(),y=xE({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=Rp({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:b,fullWidth:c,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:m}),S=null!=(n=null!=(r=h.root)?r:s.Root)?n:mR,w=null!=(o=null!=(a=h.input)?a:s.Input)?o:vR;return om.jsx(NE,Rp({slots:{root:S,input:w},renderSuffix:e=>om.jsx(gR,{ownerState:x,className:v.notchedOutline,label:null!=d&&""!==d&&y.required?i||(i=om.jsxs(V.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:Rp({},v,{notchedOutline:null})}))}));bR.muiName="Input";var yR=Vx(om.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),xR=Vx(om.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked");const SR=Py("span",{shouldForwardProp:Ty})({position:"relative",display:"flex"}),wR=Py(yR)({transform:"scale(1)"}),ER=Py(xR)((({theme:e,ownerState:t})=>Rp({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 CR(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=Rp({},e,{checked:t});return om.jsxs(SR,{className:n.root,ownerState:o,children:[om.jsx(wR,{fontSize:r,className:n.background,ownerState:o}),om.jsx(ER,{fontSize:r,className:n.dot,ownerState:o})]})}const kR=V.createContext(void 0);function RR(e){return $g("MuiRadio",e)}const LR=Wg("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),OR=["checked","checkedIcon","color","icon","name","onChange","size","className"],_R=Py(oC,{shouldForwardProp:e=>Ty(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"medium"!==n.size&&t[`size${_m(n.size)}`],t[`color${_m(n.color)}`]]}})((({theme:e,ownerState:t})=>Rp({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})`:sb("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${LR.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${LR.disabled}`]:{color:(e.vars||e).palette.action.disabled}})));const IR=om.jsx(CR,{checked:!0}),TR=om.jsx(CR,{}),PR=V.forwardRef((function(e,t){var n,r;const o=ty({props:e,name:"MuiRadio"}),{checked:a,checkedIcon:i=IR,color:l="primary",icon:s=TR,name:c,onChange:u,size:d="medium",className:p}=o,f=Lp(o,OR),h=Rp({},o,{color:l,size:d}),m=(e=>{const{classes:t,color:n,size:r}=e;return Rp({},t,Dv({root:["root",`color${_m(n)}`,"medium"!==r&&`size${_m(r)}`]},RR,t))})(h),g=V.useContext(kR);let v=a;const b=uv(u,g&&g.onChange);let y=c;return g&&(void 0===v&&(v=function(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}(g.value,o.value)),void 0===y&&(y=g.name)),om.jsx(_R,Rp({type:"radio",icon:V.cloneElement(s,{fontSize:null!=(n=TR.props.fontSize)?n:d}),checkedIcon:V.cloneElement(i,{fontSize:null!=(r=IR.props.fontSize)?r:d}),ownerState:h,classes:m,name:y,checked:v,onChange:b,ref:t,className:jg(m.root,p)},f))}));function MR(e){return $g("MuiTooltip",e)}const NR=Wg("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),qR=["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 zR=Py(yE,{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})=>Rp({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${NR.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${NR.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${NR.arrow}`]:Rp({},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"] .${NR.arrow}`]:Rp({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),DR=Py("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${_m(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return Rp({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:sb(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},{[`.${NR.popper}[data-popper-placement*="left"] &`]:Rp({transformOrigin:"right center"},t.isRtl?Rp({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):Rp({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${NR.popper}[data-popper-placement*="right"] &`]:Rp({transformOrigin:"left center"},t.isRtl?Rp({marginRight:"14px"},t.touch&&{marginRight:"24px"}):Rp({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${NR.popper}[data-popper-placement*="top"] &`]:Rp({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${NR.popper}[data-popper-placement*="bottom"] &`]:Rp({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n})),AR=Py("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:sb(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let jR=!1;const FR=new Cv;let BR={x:0,y:0};function $R(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const WR=V.forwardRef((function(e,t){var n,r,o,a,i,l,s,c,u,d,p,f,h,m,g,v,b,y,x;const S=ty({props:e,name:"MuiTooltip"}),{arrow:w=!1,children:E,components:C={},componentsProps:k={},describeChild:R=!1,disableFocusListener:L=!1,disableHoverListener:O=!1,disableInteractive:_=!1,disableTouchListener:I=!1,enterDelay:T=100,enterNextDelay:P=0,enterTouchDelay:M=700,followCursor:N=!1,id:q,leaveDelay:z=0,leaveTouchDelay:D=1500,onClose:A,onOpen:j,open:F,placement:B="bottom",PopperComponent:$,PopperProps:W={},slotProps:H={},slots:U={},title:G,TransitionComponent:K=sk,TransitionProps:Z}=S,X=Lp(S,qR),Q=V.isValidElement(E)?E:om.jsx("span",{children:E}),J=ey(),Y=(()=>{const e=V.useContext(Wv);return null!=e&&e})(),[ee,te]=V.useState(),[ne,re]=V.useState(null),oe=V.useRef(!1),ae=_||N,ie=kv(),le=kv(),se=kv(),ce=kv(),[ue,de]=yv({controlled:F,default:!1,name:"Tooltip",state:"open"});let pe=ue;const fe=bv(q),he=V.useRef(),me=xv((()=>{void 0!==he.current&&(document.body.style.WebkitUserSelect=he.current,he.current=void 0),ce.clear()}));V.useEffect((()=>me),[me]);const ge=e=>{FR.clear(),jR=!0,de(!0),j&&!pe&&j(e)},ve=xv((e=>{FR.start(800+z,(()=>{jR=!1})),de(!1),A&&pe&&A(e),ie.start(J.transitions.duration.shortest,(()=>{oe.current=!1}))})),be=e=>{oe.current&&"touchstart"!==e.type||(ee&&ee.removeAttribute("title"),le.clear(),se.clear(),T||jR&&P?le.start(jR?P:T,(()=>{ge(e)})):ge(e))},ye=e=>{le.clear(),se.start(z,(()=>{ve(e)}))},{isFocusVisibleRef:xe,onBlur:Se,onFocus:we,ref:Ee}=Nv(),[,Ce]=V.useState(!1),ke=e=>{Se(e),!1===xe.current&&(Ce(!1),ye(e))},Re=e=>{ee||te(e.currentTarget),we(e),!0===xe.current&&(Ce(!0),be(e))},Le=e=>{oe.current=!0;const t=Q.props;t.onTouchStart&&t.onTouchStart(e)},Oe=e=>{Le(e),se.clear(),ie.clear(),me(),he.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ce.start(M,(()=>{document.body.style.WebkitUserSelect=he.current,be(e)}))},_e=e=>{Q.props.onTouchEnd&&Q.props.onTouchEnd(e),me(),se.start(D,(()=>{ve(e)}))};V.useEffect((()=>{if(pe)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||ve(e)}}),[ve,pe]);const Ie=Sv(Q.ref,Ee,te,t);G||0===G||(pe=!1);const Te=V.useRef(),Pe={},Me="string"==typeof G;R?(Pe.title=pe||!Me||O?null:G,Pe["aria-describedby"]=pe?fe:null):(Pe["aria-label"]=Me?G:null,Pe["aria-labelledby"]=pe&&!Me?fe:null);const Ne=Rp({},Pe,X,Q.props,{className:jg(X.className,Q.props.className),onTouchStart:Le,ref:Ie},N?{onMouseMove:e=>{const t=Q.props;t.onMouseMove&&t.onMouseMove(e),BR={x:e.clientX,y:e.clientY},Te.current&&Te.current.update()}}:{}),qe={};I||(Ne.onTouchStart=Oe,Ne.onTouchEnd=_e),O||(Ne.onMouseOver=$R(be,Ne.onMouseOver),Ne.onMouseLeave=$R(ye,Ne.onMouseLeave),ae||(qe.onMouseOver=be,qe.onMouseLeave=ye)),L||(Ne.onFocus=$R(Re,Ne.onFocus),Ne.onBlur=$R(ke,Ne.onBlur),ae||(qe.onFocus=Re,qe.onBlur=ke));const ze=V.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(ne),options:{element:ne,padding:4}}];return null!=(e=W.popperOptions)&&e.modifiers&&(t=t.concat(W.popperOptions.modifiers)),Rp({},W.popperOptions,{modifiers:t})}),[ne,W]),De=Rp({},S,{isRtl:Y,arrow:w,disableInteractive:ae,placement:B,PopperComponentProp:$,touch:oe.current}),Ae=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e;return Dv({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${_m(a.split("-")[0])}`],arrow:["arrow"]},MR,t)})(De),je=null!=(n=null!=(r=U.popper)?r:C.Popper)?n:zR,Fe=null!=(o=null!=(a=null!=(i=U.transition)?i:C.Transition)?a:K)?o:sk,Be=null!=(l=null!=(s=U.tooltip)?s:C.Tooltip)?l:DR,$e=null!=(c=null!=(u=U.arrow)?u:C.Arrow)?c:AR,We=rS(je,Rp({},W,null!=(d=H.popper)?d:k.popper,{className:jg(Ae.popper,null==W?void 0:W.className,null==(p=null!=(f=H.popper)?f:k.popper)?void 0:p.className)}),De),He=rS(Fe,Rp({},Z,null!=(h=H.transition)?h:k.transition),De),Ue=rS(Be,Rp({},null!=(m=H.tooltip)?m:k.tooltip,{className:jg(Ae.tooltip,null==(g=null!=(v=H.tooltip)?v:k.tooltip)?void 0:g.className)}),De),Ve=rS($e,Rp({},null!=(b=H.arrow)?b:k.arrow,{className:jg(Ae.arrow,null==(y=null!=(x=H.arrow)?x:k.arrow)?void 0:y.className)}),De);return om.jsxs(V.Fragment,{children:[V.cloneElement(Q,Ne),om.jsx(je,Rp({as:null!=$?$:yE,placement:B,anchorEl:N?{getBoundingClientRect:()=>({top:BR.y,left:BR.x,right:BR.x,bottom:BR.y,width:0,height:0})}:ee,popperRef:Te,open:!!ee&&pe,id:fe,transition:!0},qe,We,{popperOptions:ze,children:({TransitionProps:e})=>om.jsx(Fe,Rp({timeout:J.transitions.duration.shorter},e,He,{children:om.jsxs(Be,Rp({},Ue,{children:[G,w?om.jsx($e,Rp({},Ve,{ref:re})):null]}))}))}))]})}));function HR(){const{useModelStore:e}=V.useContext(zx).modelStore;return e()}function UR(e,t){const n=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[r]=HR(),[o]=function(){const{useRpcRequestSessionModelStore:e}=V.useContext(zx).modelStore;return e()}(),[a,i]=V.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 V.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 VR={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function GR(e){return UR(VR,e)}const KR=e=>new Promise((t=>{setTimeout(t,e)})),ZR=(e,t)=>{const{rpcResultStore:n,key:r,method:o}=t;let i;switch(t.type){case"INVALID":i=a(a({},e),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":i={result:a({},t.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":i=a(a({},e),{},{invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1});break;default:throw new Error("Undefined action")}let l=n.get(r);return l||(l={}),l[o]=i,n.set(r,l),i};function XR(e,t){const n=e?"".concat(e.id):null,[r]=function(){const{useRpcResultStore:e}=V.useContext(zx).modelStore;return e()}(),[o,a]=V.useReducer(ZR,n?r.get(n):null),[i]=function(){const{useModelChangedStore:e}=V.useContext(zx).modelStore;return e()}(),[l]=function(){const{useRpcRequestStore:e}=V.useContext(zx).modelStore;return e()}();let s;n&&(s=l.get(n),s||(s={},l.set(n,s)));const c=async o=>{let i=s[t];if(!i||i&&i.rpcRetry){i={rpc:e[t](),rpcRetry:!1},s[t]=i,a({type:"INVALID",method:t,key:n,model:e,rpcResultStore:r,canCancel:!0})}try{await KR(0);const o=await i.rpc;a({type:"VALID",result:o,key:n,method:t,model:e,rpcResultStore:r})}catch(e){15!==e.code||o||(i.rpcRetry||(i.rpcRetry=!0),c(!0))}},u={cancel:async()=>{const o=e.session.getObjectApi({handle:-1});await o.cancelRequest(s[t].rpc.requestId),a({type:"CANCELLED",key:n,method:t,model:e,rpcResultStore:r})},retry:()=>{s[t].rpcRetry=!0,c()}};return V.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 QR(e){return XR(e,"getLayout")}function JR(e){return XR(e,"getAppLayout")}function YR(){const[e,t]=V.useState(),[n,r]=V.useState(),o=V.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 V.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 eL(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function tL(e){let{size:t,style:n={},viewBox:r="0 0 16 16",shapes:o=[]}=e;const i=a({fontSize:eL(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},n);return G.createElement("i",{style:i},G.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 G.createElement(n,s({key:t},r))}))))}var nL=e=>tL((e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M9.41421356,8 L11.8890873,5.52512627 C12.065864,5.34834957 12.0305087,4.95944084 11.8183766,4.74730881 L11.2526912,4.18162338 C11.0405592,3.96949135 10.6516504,3.93413601 10.4748737,4.1109127 L8,6.58578644 L5.52512627,4.1109127 C5.34834957,3.93413601 4.95944084,3.96949135 4.74730881,4.18162338 L4.25233406,4.67659813 C3.96949135,4.95944084 3.93413601,5.34834957 4.1109127,5.52512627 L6.58578644,8 L4.1109127,10.4748737 C3.93413601,10.6516504 3.96949135,11.0405592 4.18162338,11.2526912 L4.67659813,11.7476659 C4.95944084,12.0305087 5.34834957,12.065864 5.52512627,11.8890873 L8,9.41421356 L10.4748737,11.8890873 C10.6516504,12.065864 11.0405592,12.0305087 11.2526912,11.8183766 L11.8183766,11.2526912 C12.0305087,11.0405592 12.065864,10.6516504 11.8890873,10.4748737 L9.41421356,8 Z M8,0 C12.4,0 16,3.6 16,8 C16,12.4 12.4,16 8,16 C3.6,16 0,12.4 0,8 C0,3.6 3.6,0 8,0 Z"}}]}))(e));var rL=e=>tL((e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10ZM3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0v1.652ZM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9Zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0Z"}}]}))(e));const oL=e=>a(a({},e),{},{viewBox:"0 0 12 16",shapes:[{type:"path",attrs:{d:"M2.5,7 L11,7 C11.5522847,7 12,7.44771525 12,8 L12,15 C12,15.5522847 11.5522847,16 11,16 L1,16 C0.44771525,16 0,15.5522847 0,15 L0,8 C0,7.44771525 0.44771525,7 1,7 L1,4.98151367 C1,2.23029964 3.23857625,0 6,0 C8.4241995,0 10.4454541,1.71883353 10.9029715,4 L9.34209114,4 C8.9671727,2.54028848 7.9088888,1.5 6,1.5 C3.54860291,1.5 2.5,3.21561511 2.5,5.33193359 L2.5,7 Z"}}]});var aL=e=>tL(oL(e));var iL=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}}(),lL=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},sL=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=lL(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},lL(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),iL(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}(V.PureComponent);const cL=["S","XS"],uL=e=>e.reduce(((e,t)=>e.concat(t)));function dL(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[t]=e;return n=t.qState,!!cL.includes(n)&&t.qElemNumber;var n}));return t.filter((e=>!1!==e))}));return uL(t)}async function pL(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 fL="RowColumn",hL={row:"".concat(fL,"-row"),rowBorderBottom:"".concat(fL,"-rowBorderBottom"),column:"".concat(fL,"-column"),fieldRoot:"".concat(fL,"-fieldRoot"),cell:"".concat(fL,"-cell"),labelText:"".concat(fL,"-labelText"),labelDense:"".concat(fL,"-labelDense"),highlighted:"".concat(fL,"-highlighted"),checkboxLabel:"".concat(fL,"-checkboxLabel"),icon:"".concat(fL,"-icon"),S:"".concat(fL,"-S"),XS:"".concat(fL,"-XS"),A:"".concat(fL,"-A"),X:"".concat(fL,"-X"),frequencyCount:"".concat(fL,"-frequencyCount"),barContainer:"".concat(fL,"-barContainer"),bar:"".concat(fL,"-bar"),barSelected:"".concat(fL,"-barSelected"),barWithCheckbox:"".concat(fL,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(fL,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(fL,"-excludedTextWithCheckbox")},mL=".".concat(hL.fieldRoot),gL=e=>!(null!=e&&e.metaKey||null!=e&&e.ctrlKey);function vL(e){var t;let{selectionState:n,selections:r,checkboxes:o=!1,doc:a=document,loaderRef:i}=e;const l=V.useRef({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});V.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(),pL({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 uL(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=V.useCallback((e=>{if(n.selectDisabled())return;const t=+e.target.getAttribute("data-n"),r=!n.isSingleSelect&&gL(e.nativeEvent);l.current.elemNumbers=[t],l.current.toggle=r,r||n.clearItemStates(!0),n.updateItem(t),l.current.active=!1,s()}),[]),p=V.useCallback((e=>{if(0!==e.button||n.selectDisabled())return;const t=+e.currentTarget.getAttribute("data-n"),r=!n.isSingleSelect&&gL(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=V.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=V.useCallback((e=>{0===e.button&&l.current.active&&(l.current.active=!1,s())}),[]),m=V.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=V.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(mL))||void 0===t?void 0:t.getAttribute("data-n")),a=Number(null===(r=e.touches[1].target)||void 0===r||null===(r=r.closest(mL))||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=V.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()}),[]);V.useEffect((()=>(a.addEventListener("mouseup",h),()=>{a.removeEventListener("mouseup",h)})),[h]),V.useEffect((()=>{const e=()=>{n.clearItemStates(!1)},t=()=>{n.clearItemStates(!0),n.triggerStateChanged()};return r.on("clearItemStates",e),r.on("deactivated",e),r.on("cleared",t),()=>{r.removeListener("clearItemStates",e),r.removeListener("deactivated",e),r.removeListener("cleared",t)}}),[r]);const b={};return o?Object.assign(b,{onChange:d}):Object.assign(b,{onMouseUp:f,onMouseDown:p,onMouseEnter:m,onTouchStart:g,onTouchEnd:v}),{interactionEvents:b,select:async function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(null!==(e=n.selectDisabled)&&void 0!==e&&e.call(n))return!1;const i=!n.isSingleSelect&&gL(null==a?void 0:a.nativeEvent);i||n.clearItemStates(!0);const l=[];return n.updateItems(t,o,l),n.setSelectableValuesUpdating(),pL({selections:r,elemNumbers:o?l:t,isSingleSelect:n.isSingleSelect,toggle:i})}}}const bL=e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]});var yL=e=>tL(bL(e));const xL=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,SL=e=>{let{cell:t,checkboxes:n}=e;return((e=>e?"A"===e.qState:null)(t)||xL(t))&&n};const wL=e=>{let{column:t,histogram:n,cell:r,showGray:o}=e;if(!r)return[];const a=[t?hL.column:hL.row];n||a.push(hL.rowBorderBottom);const i=function(e){let t,{cell:n,showGray:r}=e;switch(n.qState){case"XS":t=r?hL.XS:hL.S;break;case"S":case"L":t=hL.S;break;case"A":t=!!r&&hL.A;break;case"X":case"XL":t=!!r&&hL.X;break;default:t=!1}return t}({cell:r,showGray:o});return i&&a.push(i),a},EL=9,CL=4,kL=7,RL=12+2*(kL+1),LL=80,OL=10,_L=150,IL=56,TL=20,PL="-",ML=32,NL=29,qL=20,zL=4,DL=e=>e.filter((e=>!!e)).join(" ").trim(),AL=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,"%")},jL=e=>e||PL,FL=["backgroundColor"],BL=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%"},$L=e=>{let{sizes:t,frequencyMode:n,isGridMode:r}=e;return r?"max-content":"P"===n?t.freqMinWidth:t.freqMaxWidth},WL=e=>{let{theme:t,checkboxes:n,styles:r,selectionState:o}=e;if(n)return"selected"===o?{["& .".concat(hL.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(hL.labelText)]:{color:l},["& .".concat(hL.icon)]:{color:l}}},HL={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},UL=Py("div",{shouldForwardProp:e=>!["checkboxes","isGridMode","isGridCol","dense","direction","sizes","frequencyMode","freqHitsValue","layout","styles"].includes(e)})((e=>{let{theme:t,checkboxes:n,isGridMode:r,isGridCol:o,dense:i,direction:l,sizes:s,frequencyMode:u,freqHitsValue:d,styles:p}=e;const f=c(p.content,FL),h=WL({theme:t,styles:p,checkboxes:n,selectionState:"selected"}),m=WL({theme:t,styles:p,checkboxes:n,selectionState:"excluded"}),g={height:"100%",transition:"width 0.2s",border:"".concat(1,"px solid"),borderColor:"#D9D9D9",backgroundColor:"#FAFAFA"},v={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(hL.row)]:a({flexWrap:"nowrap"},p.content),["& .".concat(hL.rowBorderBottom)]:{borderBottom:o?"none":"1px solid ".concat(t.palette.divider),borderLeft:o?"1px solid ".concat(t.palette.divider):"none"},["& .".concat(hL.column)]:a({flexWrap:"nowrap",borderRight:"1px solid ".concat(t.palette.divider)},p.content),["& .".concat(hL.cell)]:{zIndex:2,display:"flex",alignItems:"center",flexGrow:1,minWidth:n?"52px":"26px",flexBasis:n?"auto":"max-content",paddingLeft:"".concat(EL,"px"),paddingRight:0},["& .".concat(hL.labelText)]:a(a({lineHeight:"16px",userSelect:"none",paddingRight:"1px"},HL),f),["& .".concat(hL.labelDense)]:{fontSize:12},["& .".concat(hL.highlighted)]:{backgroundColor:"#FFC72A"},["& .".concat(hL.checkboxLabel)]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":a(a({},HL),{},{display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"})},["& .".concat(hL.icon)]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24,color:f.color},["& .".concat(hL.S)]:a(a({},h),{},{border:r?"none":void 0}),["& .".concat(hL.XS)]:a(a({},WL({theme:t,styles:p,checkboxes:n,selectionState:"selectedExcluded"})),{},{border:r?"none":void 0}),["& .".concat(hL.A)]:a(a({},WL({theme:t,styles:p,checkboxes:n,selectionState:"alternative"})),{},{border:r?"none":void 0}),["& .".concat(hL.X)]:a(a({},m),{},{border:r?"none":void 0}),["& .".concat(hL.X,", & .").concat(hL.XS)]:{border:r?"none":void 0,["& .".concat(hL.barSelected," .bar-filled")]:a({},g)},["& .".concat(hL.frequencyCount)]:a(a({zIndex:3,justifyContent:"flex-end"},HL),{},{flex:"0 0 ".concat(BL({sizes:s,frequencyMode:u,isGridMode:r,freqHitsValue:d})),minWidth:!r&&"P"!==u&&d?s.freqMinWidth:"max-content",maxWidth:$L({sizes:s,frequencyMode:u,isGridMode:r}),textAlign:"rtl"===l?"left":"right",paddingLeft:"rtl"!==l?"8px":0}),["&.".concat(hL.barContainer)]:{height:"100%",display:"flex",alignItems:"center"},["& .".concat(hL.bar)]:{height:i?"16px":"20px",position:"absolute",zIndex:1,alignSelf:"center",left:4,width:"calc(100% - ".concat(8,"px)"),display:"flex",alignItems:"center","& .bar-filled":a({},g)},["& .".concat(hL.barSelected)]:{"& .bar-filled":a({},v)},["& .".concat(hL.barWithCheckbox)]:{left:"rtl"===l?4:29,width:"calc(100% - ".concat(33,"px)")},["& .".concat(hL.barSelectedWithCheckbox)]:{"& .bar-filled":a(a({},v),{},{backgroundColor:p.selections.selected||"#BFE5D0",borderColor:p.selections.selected})},["& .".concat(hL.excludedTextWithCheckbox)]:{color:p.content.color,fontStyle:"italic"}}}));var VL=G.memo(UL);const GL="ListBoxCheckbox",KL={cbIcon:"".concat(GL,"-cbIcon"),cbIconChecked:"".concat(GL,"-cbIconChecked"),cbIconExcluded:"".concat(GL,"-cbIconExcluded"),cbIconAlternative:"".concat(GL,"-cbIconAlternative"),checkbox:"".concat(GL,"-checkbox"),dense:"".concat(GL,"-dense")},ZL=Py(mC,{shouldForwardProp:e=>"styles"!==e})((e=>{let{styles:t}=e;return{["& .".concat(KL.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(KL.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(KL.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:t.selections.excluded},["& .".concat(KL.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:t.selections.alternative},["&.".concat(KL.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(KL.dense)]:{padding:"4px 8px"}}})),XL=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return G.createElement("span",{className:e.cbIcon},n&&G.createElement("span",{className:t&&n?e.cbIconExcluded:""}))};function QL(e){let{onChange:t,checked:n,label:r,dense:o,excluded:a,styles:i,showGray:l=!0,dataN:s}=e;return G.createElement(ZL,{edge:"start",onChange:t,checked:n,disableRipple:!0,className:[KL.checkbox,o&&KL.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":r,"data-n":s},name:r,icon:XL(KL,l,a),checkedIcon:G.createElement("span",{className:KL.cbIconChecked}),styles:i})}const JL={radioButton:"".concat("ListBoxRadioButton","-radioButton")},YL=Py(PR,{shouldForwardProp:e=>!["dense","styles"].includes(e)})((e=>{let{checked:t,styles:n,dense:r}=e;return{["&.".concat(JL.radioButton)]:{right:"5px",color:t?n.selections.selected:n.content.color,padding:r?"0px 0px 0px 12px":void 0,backgroundColor:"transparent"}}}));function eO(e){let{onChange:t,checked:n,label:r,dense:o,dataN:a,styles:i}=e;return G.createElement(YL,{checked:n,onChange:t,value:r,name:r,className:JL.radioButton,inputProps:{"data-n":a},disableRipple:!0,size:o?"small":"medium",dense:o,styles:i})}function tO(e){let{label:t,dense:n,showGray:r=!0,checkboxes:o,cell:a,valueTextAlign:i}=e;return G.createElement(SS,{component:"span",variant:"body2",className:DL([hL.labelText,n&&hL.labelDense,r&&SL({cell:a,checkboxes:o})&&hL.excludedTextWithCheckbox]),align:i,dir:"auto"},G.createElement("span",null,t))}function nO(e){let{label:t,color:n,dense:r,showGray:o,checkboxes:a,cell:i,valueTextAlign:l}=e;return"string"==typeof t?G.createElement(tO,{label:t,color:n,dense:r,showGray:o,checkboxes:a,cell:i,valueTextAlign:l}):t}function rO(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=G.createElement(QL,{onChange:t,label:n,checked:o,dense:a,excluded:xL(i),isGridCol:l,showGray:s,dataN:r,styles:p}),h=G.createElement(eO,{onChange:t,label:n,checked:o,dense:a,dataN:r,styles:p});return G.createElement(GC,{control:c?h:f,className:hL.checkboxLabel,label:G.createElement(nO,{label:n,dense:a,showGray:s,checkboxes:u,cell:i,valueTextAlign:d}),key:r})}function oO(e){let{labels:t,dense:n,showGray:r,checkboxes:o}=e;const a=t.map(((e,t)=>{let[n,r]=e;return G.createElement("span",{id:t,className:r?hL.highlighted:""},n)}));return G.createElement(tO,{label:a,dense:n,showGray:r,checkboxes:o})}function aO(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=G.createElement(oO,{labels:n,dense:o,showGray:a,checkboxes:r});return r?G.createElement(rO,{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 iO=G.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?G.createElement(rO,{onChange:t,label:n,qElemNumber:r,isSelected:o,dense:a,cell:i,isGridCol:l,showGray:s,isSingleSelect:c,checkboxes:u,valueTextAlign:d,styles:p}):G.createElement(tO,{label:n,dense:a,showGray:!0,checkboxes:u,cell:i,valueTextAlign:d})}));function lO(e){let{qFrequency:t,histogram:n,checkboxes:r,isSelected:o,frequencyMax:a}=e;if(!(t&&n&&jL(t)!==PL))return;const i=AL({qFrequency:t,checkboxes:r,frequencyMax:a});return G.createElement(YE,{className:DL([hL.bar,r&&hL.barWithCheckbox,o&&(r?hL.barSelectedWithCheckbox:hL.barSelected)])},G.createElement(YE,{className:"bar-filled",width:i}))}function sO(e){let{cell:t,checkboxes:n,dense:r,showGray:o}=e;const a=jL(null==t?void 0:t.qFrequency);return G.createElement(rk,{item:!0,style:{display:"flex",alignItems:"center"},className:hL.frequencyCount,"aria-label":a,title:a},G.createElement(SS,{noWrap:!0,color:"inherit",variant:"body2",className:DL([r&&hL.labelDense,hL.labelText,o&&SL({cell:t,checkboxes:n})&&hL.excludedTextWithCheckbox])},a))}function cO(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 uO=Py(rk,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction","fillHeight"].includes(e)})((e=>{let{dataLayout:t,layoutOrder:n,itemPadding:r,cellPaddingRight:o,direction:i,fillHeight:l}=e;const s="padding".concat("rtl"===i?"Left":"Right");return{["&.".concat(hL.fieldRoot)]:a(a({},cO({dataLayout:t,layoutOrder:n,itemPadding:r,fillHeight:l})),{},{[s]:o?"8px":void 0})}}));const dO=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===dO.ARROW_UP||e===dO.ARROW_DOWN||e===dO.ARROW_LEFT||e===dO.ARROW_RIGHT}),pO=e=>+e.getAttribute("data-n"),fO=e=>{const t=null==e?void 0:e.querySelector(".search input");return null==t||t.focus(),t},hO=e=>{const t=null==e?void 0:e.querySelector(".value.last-focused, .value.selector, .value");return null==t||t.setAttribute("tabIndex",0),null==t||t.focus(),t},mO=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===dO.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 gO={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 vO(e){var t,n;let{index:r,rowIndex:o,columnIndex:i,style:l,data:s}=e;const{onChange:c,onClick:u,onMouseDown:d,onMouseUp:p,onMouseEnter:f,onTouchStart:h,onTouchEnd:m,pages:g,isLocked:v,column:b=!1,checkboxes:y=!1,textAlign:x,direction:S,layoutOptions:w={},freqIsAllowed:E,isSingleSelect:C,actions:k,frequencyMax:R="",histogram:L=!1,keyboard:O,showGray:_=!0,showTick:I=!0,columnCount:T=1,rowCount:P=1,dataOffset:M,deducedFrequencyMode:N,focusListItems:q,listCount:z,sizes:D,translator:A,showSearch:j,isModal:F,contentFontStyle:B,styles:$,fillHeight:W}=s,{dense:H=!1,dataLayout:U="singleColumn",layoutOrder:K}=w,{itemPadding:Z}=D;let X,Q;const J={max:null,currentIndex:null};if("number"==typeof o&&"number"==typeof i){"row"===K?(X=o*T+i,J.max=P,J.currentIndex=o):(X=i*P+o,J.max=T,J.currentIndex=i);const e=0;Q=a(a({},l),{},{height:W?"100%":l.height,left:e+(0===i?l.left:Number(l.left)+i*e),top:0===o?l.top:Number(l.top)+o*e})}else X=r,J.max=z,J.currentIndex=r,Q=a({},l);X+=M;const[Y,ee]=V.useState(null);V.useEffect((()=>{null!==Y&&(0===J.currentIndex&&q.first&&(Y.focus(),q.setFirst(!1)),J.currentIndex===J.max-1&&q.last&&(Y.focus(),q.setLast(!1)))}),[Y,q.first,q.last]);const te=V.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===dO.ARROW_LEFT||e===dO.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=mO({rowIndex:p,columnIndex:f,rowCount:u,columnCount:d,layoutOrder:h,keyCode:e,numCells:o}),r=null==t?void 0:t.parentElement.parentElement.children[n];return null==r?void 0:r.querySelector("[role]")}};let g=!1;const v=e=>{g=e};return e=>{let u;const{currentTarget:d,nativeEvent:p}=e,{keyCode:f,shiftKey:h=!1,ctrlKey:b=!1,metaKey:y=!1}=p;switch(f){case dO.TAB:{const e=d.closest(".listbox-container"),t=c();if(d.classList.add("last-focused"),h){fO(e)||(t?s.focusSelection():s.blur(!0));break}t?s.focusSelection():(d.blur(),s.blur());break}case dO.SHIFT:v(!0);break;case dO.SPACE:t([pO(d)],!1,e);break;case dO.ARROW_DOWN:case dO.ARROW_RIGHT:u=m(f,d,!0),h&&u&&(g&&(t([pO(d)],!0),v(!1)),t([pO(u)],!0));break;case dO.ARROW_UP:case dO.ARROW_LEFT:u=m(f,d,!1),h&&u&&(g&&(t([pO(d)],!0),v(!1)),t([pO(u)],!0));break;case dO.ENTER:if(o(),void 0===c)return;break;case dO.ESCAPE:if(!c())return;a();break;case dO.HOME:if(l.setFirst(!0),b){null==i||i("overflowStart");break}null==i||i("start");break;case dO.END:if(l.setLast(!0),b){null==i||i("overflowEnd");break}null==i||i("end");break;case dO.A:if(b||y){n();break}return;case dO.F:if(b||y){r();break}return;default:return}u&&u.focus(),e.preventDefault(),e.stopPropagation()}}(a(a({},k),{},{focusListItems:q,keyboard:O,isModal:F,rowCount:P,columnCount:T,rowIndex:o,columnIndex:i,layoutOrder:K})),[k,null==O?void 0:O.innerTabStops,P,T,o,i,K]),ne=V.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=V.useMemo((()=>wL({column:b,histogram:L,cell:ne,showGray:_})),[null==ne?void 0:ne.qState,L,H]),ae=V.useCallback((e=>{e.preventDefault()}),[y]),ie=V.useMemo((()=>ne&&function(e){let{direction:t,cell:n,textAlign:r}=e;const o=!["NaN",void 0].includes(null==n?void 0:n.qNum);let a;return a=!r||r.auto?o?"rtl"===t?"left":"right":{rtl:"right",ltr:"left"}[t]:(null==r?void 0:r.align)||"left",["left","center","right"].includes(a)?a:"left"}({direction:S,cell:ne,textAlign:x})),[S,ne,x]);if(!ne)return null;const le="grid"===U&&"column"===K,se=null!==(t=null==ne?void 0:ne.qText)&&void 0!==t?t:"";let ce;if(null!==(n=ne.qHighlightRanges)&&void 0!==n&&null!==(n=n.qRanges)&&void 0!==n&&n.length){const e=ne.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[];ce=function(e,t){if(!t.length)return[];const n=t.reduce(((n,r,o)=>{const a=0===o?0:t[o-1].qCharPos+t[o-1].qCharCount;n.push(...function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const{qCharPos:r,qCharCount:o}=t,a=[];return r>n&&a.push([e.slice(n,r),!1]),a.push([e.slice(r,r+o),!0]),a}(e,r,a));const i=o===t.length-1,l=t[o].qCharPos+t[o].qCharCount;return i&&l<e.length&&n.push([e.slice(l),!1]),n}),[]);return n}(se,e)}const ue={alignItems:"center",display:"flex",fontSize:"8px"},de="rtl"===S,pe={display:"flex",alignItems:"center",flexGrow:1,paddingLeft:de?8:y?0:void 0,paddingRight:y?0:de?8:0,justifyContent:ie,textAlign:ie},fe=0===r,he=re&&v,me=!y&&re&&!v,ge=!y&&I,ve=y||!I,be=function(e){let{translator:t,label:n,qState:r,isSelected:o,currentIndex:a,maxIndex:i,showSearch:l}=e;const s=gO[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:A,label:se,qState:ne.qState,currentIndex:J.currentIndex,maxIndex:J.max,showSearch:j}),ye=!de&&"right"===ie||de&&"left"===ie;return G.createElement(VL,{className:hL.barContainer,checkboxes:y,style:Q,styles:$,isGridCol:le,isGridMode:"grid"===U,dense:H,direction:S,sizes:D,frequencyMode:N,freqHitsValue:ye,contentFontStyle:B,"data-testid":"listbox.item"},G.createElement(uO,{role:"row","aria-label":be,"aria-selected":re,"aria-setsize":J.max,"aria-rowindex":J.currentIndex,ref:ee,container:!0,dataLayout:U,cellPaddingRight:ve,layoutOrder:K,itemPadding:Z,gap:0,className:DL(["value",...oe]),classes:{root:hL.fieldRoot},onClick:u,onMouseDown:d,onMouseUp:p,onMouseEnter:f,onKeyDown:te,onTouchStart:h,onTouchEnd:m,onContextMenu:ae,tabIndex:fe&&O.innerTabStops?0:-1,"data-n":null==ne?void 0:ne.qElemNumber,direction:S,fillHeight:W},(null==ne?void 0:ne.qFrequency)&&G.createElement(lO,{qFrequency:null==ne?void 0:ne.qFrequency,histogram:L,checkboxes:y,isSelected:re,frequencyMax:R}),G.createElement(rk,{item:!0,style:pe,className:DL([hL.cell,hL.selectedCell]),title:"".concat(se)},ce?G.createElement(aO,{onChange:c,labels:ce,checkboxes:y,dense:H,showGray:_,qElemNumber:ne.qElemNumber,isSelected:re,cell:ne,isGridCol:le,isSingleSelect:C,valueTextAlign:ie,styles:$}):G.createElement(iO,{onChange:c,label:se,qElemNumber:ne.qElemNumber,isSelected:re,dense:H,cell:ne,isGridCol:le,showGray:_,isSingleSelect:C,checkboxes:y,valueTextAlign:ie,styles:$})),E&&G.createElement(sO,{cell:ne,checkboxes:y,dense:H,showGray:_}),ge&&G.createElement(rk,{item:!0,className:hL.icon},he&&G.createElement(rL,{style:ue,size:"small"}),me&&G.createElement(yL,{style:ue,size:"small"}))))}var bO=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function yO(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||bO(r)&&bO(o)))return!1;var r,o;return!0}function xO(e,t){var n;void 0===t&&(t=yO);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 SO="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function wO(e){cancelAnimationFrame(e.id)}function EO(e,t){var n=SO();var r={id:requestAnimationFrame((function o(){SO()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var CO=-1;function kO(e){if(void 0===e&&(e=!1),-1===CO||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),CO=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return CO}var RO=null;function LO(e){if(void 0===e&&(e=!1),null===RO||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?RO="positive-descending":(t.scrollLeft=1,RO=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),RO}return RO}var OO=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function _O(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,Zy(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:Zy(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=xO((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=xO((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=xO((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(LO()){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&&wO(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=EO(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}jy(t,e),t.getDerivedStateFromProps=function(e,t){return IO(e,t),g(e),null};var v=t.prototype;return v.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},v.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,a=this.props,u=a.columnCount,d=a.height,p=a.rowCount,f=a.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,v=kO();void 0!==r&&(r=Math.max(0,Math.min(r,u-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var b=i(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?v:0,x=b>d?v:0;this.scrollTo({scrollLeft:void 0!==r?s(this.props,r,n,m,this._instanceProps,x):m,scrollTop:void 0!==o?c(this.props,o,n,g,this._instanceProps,y):g})},v.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},v.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(LO()){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&&wO(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?OO:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,v=e.style,b=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),w=S[0],E=S[1],C=this._getVerticalRangeToRender(),k=C[0],R=C[1],L=[];if(r>0&&g)for(var O=k;O<=R;O++)for(var _=w;_<=E;_++)L.push(V.createElement(t,{columnIndex:_,data:d,isScrolling:b?x:void 0,key:f({columnIndex:_,data:d,rowIndex:O}),rowIndex:O,style:this._getItemStyle(O,_)}));var I=i(this.props,this._instanceProps),T=l(this.props,this._instanceProps);return V.createElement(h||m||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:zy({position:"relative",height:a,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},V.createElement(c||u||"div",{children:L,ref:s,style:{height:I,pointerEvents:x?"none":void 0,width:T}}))},v._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var a=this._getHorizontalRangeToRender(),i=a[0],l=a[1],s=a[2],c=a[3],u=this._getVerticalRangeToRender(),d=u[0],p=u[1],f=u[2],h=u[3];this._callOnItemsRendered(i,l,d,p,s,c,f,h)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,v=m.scrollLeft,b=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(v,b,g,x,y)}},v._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,a=e.overscanColumnsCount,i=e.overscanCount,l=e.rowCount,s=this.state,c=s.horizontalScrollDirection,u=s.isScrolling,d=s.scrollLeft,p=n||a||i||1;if(0===t||0===l)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=u&&"backward"!==c?1:Math.max(1,p),g=u&&"forward"!==c?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},v._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,a=e.rowCount,i=this.state,l=i.isScrolling,s=i.verticalScrollDirection,c=i.scrollTop,u=r||o||n||1;if(0===t||0===a)return[0,0,0,0];var d=p(this.props,c,this._instanceProps),h=f(this.props,d,c,this._instanceProps),m=l&&"backward"!==s?1:Math.max(1,u),g=l&&"forward"!==s?1:Math.max(1,u);return[Math.max(0,d-m),Math.max(0,Math.min(a-1,h+g)),d,h]},t}(V.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var IO=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},TO=function(e,t){return e};function PO(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,Zy(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Zy(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=xO((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=xO((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=xO((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(LO()){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&&wO(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=EO(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}jy(t,e),t.getDerivedStateFromProps=function(e,t){return MO(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?kO():0:s.scrollHeight>s.clientHeight?kO():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(LO()){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&&wO(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?TO:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,v=e.useIsScrolling,b=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,w=this._getRangeToRender(),E=w[0],C=w[1],k=[];if(c>0)for(var R=E;R<=C;R++)k.push(V.createElement(t,{data:u,key:p(R,u),index:R,isScrolling:v?y:void 0,style:this._getItemStyle(R)}));var L=r(this.props,this._instanceProps);return V.createElement(h||m||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:zy({position:"relative",height:a,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},V.createElement(l||s||"div",{children:k,ref:i,style:{height:x?"100%":L,pointerEvents:y?"none":void 0,width:x?L:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var a=this.state,i=a.scrollDirection,l=a.scrollOffset,s=a.scrollUpdateWasRequested;this._callOnScroll(i,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,a=r.scrollDirection,s=r.scrollOffset;if(0===t)return[0,0,0,0];var c=i(this.props,s,this._instanceProps),u=l(this.props,c,s,this._instanceProps),d=o&&"backward"!==a?1:Math.max(1,n),p=o&&"forward"!==a?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+p)),c,u]},t}(V.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var MO=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},NO=_O({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}}),qO=PO({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 zO="#BBB",DO="#f1f1f1",AO={styledScrollbars:"".concat("ListBox","-styledScrollbars")};const jO=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStopIndex)||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex,FO=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStartIndex)||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex,BO=(e,t,n,r)=>e===t*n+r+n;function $O(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=jO(t,c),d=c?r.column:r.row,p=(c?o:a)>=d,f=BO(l,u,c?a:o,s),h=!!s&&FO(t,c),m=p&&!f&&u>=d-1||h||i.state.show;i.set(m)}const{StyledFixedSizeList:WO,StyledFixedSizeGrid:HO}=function(){const e=e=>({scrollbarColor:"".concat(zO," ").concat(DO),overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:DO},"&::-webkit-scrollbar-thumb":{backgroundColor:zO,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:Kh(qO,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(AO.styledScrollbars)]:e(n)}})),StyledFixedSizeGrid:Kh(NO,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(AO.styledScrollbars)]:e(n)}}))}}();const UO=(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)},VO=e=>{const t=V.useMemo((()=>"text"in e?e:{}),[e]);return V.useMemo((()=>UO(t.text,t.font||"12px Source Sans Pro")),[t.text,t.font])};function GO(e){if(!e)return"";const t="number"==typeof e?e:e.qListObject.qDimensionInfo.qApprMaxGlyphCount;return Array(t).fill("M").join("")}function KO(e){let{isGridMode:t,dense:n}=e;let r=n?qL:t?ML:NL;return t&&(r+=zL),r}function ZO(e){let{layout:t,width:n,height:r,listCount:o,count:a,freqIsAllowed:i,checkboxes:l,styles:s}=e;const{layoutOptions:c={}}=t||{},{layoutOrder:u,maxVisibleRows:d={},maxVisibleColumns:p,dense:f,dataLayout:h}=c,{fontSize:m="12px",fontFamily:g="Source sans pro"}=(null==s?void 0:s.content)||{},v="".concat(m," ").concat(g),b=VO({text:GO(t),font:v}),y=VO({text:GO(5),font:v}),x=VO({text:GO(8),font:v}),S=i?y:0,w=l?TL:0;let E=IL+S+w;!l&&E>=LL&&(E+=TL);let C,k,R,L,O=b+18+S+w;!l&&O>=LL&&(O+=TL),O=Math.min(_L,Math.max(O,E));const _=KO({isGridMode:"grid"===h,dense:f}),I=null!=r?r:8*_;if(u){let e=n;"row"===u?(C={overflowX:"hidden"},e+=2*zL,({rowCount:L,columnWidth:R,columnCount:k}=function(e){let{maxVisibleColumns:t,listCount:n,containerWidth:r,columnAutoWidth:o,itemMinWidth:a}=e;const i=(null==t?void 0:t.maxColumns)||3,l=r-OL;let s;const c=Math.min(n,Math.max(1,Math.round(l/Math.max(a,o))));s=!1!==(null==t?void 0:t.auto)?c:Math.min(n,i,c),s=Math.max(s,1);const u=l/s;return{rowCount:Math.ceil(n/s),columnWidth:u,columnCount:s}}({maxVisibleColumns:p,listCount:o,containerWidth:e,columnAutoWidth:O,itemMinWidth:E}))):(C={overflowY:"hidden"},({rowCount:L,columnWidth:R,columnCount:k}=function(e){let t,{maxVisibleRows:n,itemHeight:r,listCount:o,listHeight:a,columnAutoWidth:i,containerWidth:l,itemMinWidth:s}=e;const c=(null==n?void 0:n.maxRows)||3,u=Math.floor(a/r);t=!1!==n.auto?u:Math.min(o,c,u),t=Math.max(t,1);const d=Math.ceil(o/t);return{columnWidth:Math.max(i,l/d,s),columnCount:d,rowCount:t}}({maxVisibleRows:d,itemHeight:_,listCount:o,listHeight:I,columnAutoWidth:O,containerWidth:e,itemMinWidth:E})))}k=("singleColumn"===h?1:k)||1,L=("singleColumn"===h?a:L)||o;const T=c.dense?838e3:577e3;L=Math.min(L,T);const P=Math.floor(3355e4/R);k=Math.min(k,P)||1;const M=L*k,N=Math.min(o,M);return{columnCount:k,columnWidth:R,rowCount:L,overflowStyling:C,itemHeight:_,listHeight:I,listWidth:n,scrollBarWidth:OL,count:a,listCount:N,maxCount:{row:T,column:P},itemPadding:zL,textWidth:b,freqMinWidth:y,freqMaxWidth:x}}const XO=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[QO,JO]=jx({});function YO(e){const t="".concat(e.id),[n]=QO();return{setStoreValue:(e,r)=>n.set("".concat(t,"/").concat(e),r),getStoreValue:e=>n.get("".concat(t,"/").concat(e))}}const e_=Py(SS,{shouldForwardProp:e=>!["width","dense"].includes(e)})((e=>{let{width:t,dense:n}=e;return a({minWidth:"".concat(t,"px"),textAlign:"center",fontSize:"".concat(n?"12px":"14px")},n&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:t})}));function t_(e){let{width:t,text:n,dense:r,tooltip:o}=e;const{translator:a}=V.useContext(zx);return G.createElement(WR,{title:o?a.get(n):""},G.createElement(e_,{width:t,dense:r,component:"div",variant:"body1",py:"12px"},a.get(n)))}var n_={},r_={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(r_);var o_,a_=r_.exports,i_={},l_=r(Kx);var s_=a_;Object.defineProperty(n_,"__esModule",{value:!0});var c_=n_.default=void 0,u_=s_((o_||(o_=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=l_}(i_)),i_)),d_=om;c_=n_.default=(0,u_.default)((0,d_.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");const p_=Py(eS)((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}})),f_=Py("div")((()=>({paddingLeft:"6px",flexGrow:1}))),h_=Py("div")((e=>{let{dense:t}=e;return{display:"flex",alignItems:"".concat(t?"center":"flex-start")}})),m_=Py(c_)((()=>({fontSize:"14px"})));function g_(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 G.createElement(p_,{left:l,style:{maxWidth:i}},G.createElement(f_,null,G.createElement(t_,{text:t,dense:r,width:s,tooltip:c})),G.createElement(h_,{dense:r},a&&G.createElement(mS,{"aria-label":"close",onClick:()=>n()},G.createElement(m_,null))))}const v_=(e,t)=>e.qListObject.qDimensionInfo.qCardinal-t;const b_=80;function y_(e){let{itemWidth:t,layout:n,frequencyMode:r}=e;const o=t>b_,{frequencyEnabled:a=!1}=(null==n?void 0:n.qListObject)||{},i=!["N",void 0].includes(r);return!(!o||!i&&!a)}const x_=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,"))")},S_=(e,t)=>{const n=(e=>"fetch"===(null==e?void 0:e.frequencyMax))(t),[r,o]=V.useState(),[a,i]=V.useState(n);return V.useEffect((()=>{if(!n)return;(async()=>{const n=await(async(e,t)=>{const n=e.qListObject.qDimensionInfo,r=n.qGroupFieldDefs[n.qGroupPos],o=x_(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 w_=["isLoadingData"],E_=100,C_=Py("div")((()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}})));function k_(e){var t,n;let{model:r,app:o,constraints:i,layout:l,selections:u,selectionState:d,direction:p,checkboxes:f,height:h,width:m,frequencyMode:g,update:v,fetchStart:b,postProcessPages:y,calculatePagesHeight:x=!1,keyboard:S={},showGray:w=!0,scrollState:E,keyScroll:C={state:{},reset:()=>{}},currentScrollIndex:k={set:()=>{}},renderedCallback:R,onCtrlF:L,showSearch:O,isModal:_,styles:I}=e;const{translator:T}=V.useContext(zx),[P,M]=V.useState(!1),N=!(!l||!l.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:q=f,histogram:z}=null!=l?l:{},D=V.useRef(null),A=V.useRef({queue:[],validPages:!1,dataOffset:0}),j=V.useRef({pages:[]}),{frequencyMax:F,awaitingFrequencyMax:B}=S_(o,l),$=function(e){let{local:t,loaderRef:n,model:r,fetchStart:o,scrollTimeout:a,postProcessPages:i,listData:l}=e;const[s,c]=V.useState(!1),[u,d]=V.useState([]);let[p]=V.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:A,loaderRef:D,model:r,fetchStart:b,scrollTimeout:0,postProcessPages:y,listData:j}),W=c($,w_),{getStoreValue:H,setStoreValue:U}=YO(r),K=V.useCallback(W.loadMoreItems,[l]),[Z,X]=V.useState({show:!1,dismissed:!1}),[Q,J]=V.useState([]);null!=W&&W.pages&&d.update({setPages:J,pages:W.pages,isSingleSelect:N,layout:l});const Y=null==l?void 0:l.qListObject.qDimensionInfo.qCardinal;(null!=W&&W.pages.length&&!B||0===Y)&&(null==R||R());const ee=V.useCallback((e=>{if(null==Q||!Q.length||!A.current.validPages)return!1;A.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)}),[l,Q]),{interactionEvents:te,select:ne}=vL({selectionState:d,selections:u,checkboxes:q,doc:document,loaderRef:D}),{layoutOptions:re={}}=l||{};let oe=!0;re.dataLayout&&(oe="singleColumn"===re.dataLayout||"row"===(null==re?void 0:re.layoutOrder));const ae="grid"===(null==re?void 0:re.dataLayout),ie=e=>{const t=a({},oe?{rowIndex:e}:{columnIndex:e}),n=ae?t:e;D.current._listRef.scrollToItem(n)},le=()=>{if(A.current.queue=[],A.current.validPages=!1,D.current){D.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===C.state.scrollPosition;if(l&&l.qSelectionInfo.qInSelections||e)return void(e&&C.reset());A.current.dataOffset=0,ie(0)}};v&&v.call(null,le),V.useEffect((()=>{E&&!P&&D.current&&(D.current._listRef.scrollToItem(E.initScrollPos),M(!0))}),[D.current]),V.useEffect((()=>{le()}),[l,A.current.dataOffset]);let se=E_;const ce="grid"!==re.dataLayout,ue=null==l||null===(t=l.qListObject.qSize)||void 0===t?void 0:t.qcy,de=function(e){let{pages:t,minimumBatchSize:n,count:r,calculatePagesHeight:o=!1}=e;return(null!=t&&t.length&&o?XO({pages:t,minimumBatchSize:n,count:r}):r)||0}({pages:Q,minimumBatchSize:se,count:ue,calculatePagesHeight:x,layoutOptions:re,model:r});let pe=y_({itemWidth:m,layout:l,frequencyMode:g});const fe=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),he=ZO({layout:l,width:m,height:h,listCount:de,count:ue,freqIsAllowed:pe,checkboxes:q,styles:I});he.columnWidth&&(pe=y_({itemWidth:he.columnWidth,layout:l,frequencyMode:g}));const{listCount:me}=he;U("listCount",me);const ge=H("inputText"),ve=function(e){let{layout:t,searchInputText:n,listCount:r}=e;const{translator:o}=V.useContext(zx),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:l,searchInputText:ge,listCount:me}),be=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=v_(a,o.listCount),t=a.qListObject.qDimensionInfo.qCardinal,l=!0}return{scrollIndex:t,offset:s,triggerRerender:l}}({position:e,isRow:oe,sizes:he,layout:l,offset:A.current.dataOffset});A.current.dataOffset=n,r&&d.triggerStateChanged(),ie(t)};V.useEffect((()=>{const e=C.state;e.up?ie(k.state.start-e.up):e.down?ie(k.state.stop+e.down):e.scrollPosition&&be(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&C.reset()}),[C.state.up,C.state.down,C.state.scrollPosition]);const{textAlign:ye}=(null==l?void 0:l.qListObject.qDimensionInfo)||{},[xe,Se]=V.useState({first:!1,last:!1}),{List:we,Grid:Ee}=function(e){let{layout:t,width:n,checkboxes:r,local:o,isVertical:i,pages:l,selectionState:c,interactionEvents:u,deducedFrequencyMode:d,histogram:p,isSingleSelect:f,select:h,selectAll:m,onCtrlF:g,textAlign:v,selections:b,keyboard:y,showGray:x,scrollState:S,direction:w,sizes:E,listCount:C,overflowDisclaimer:k,setScrollPosition:R,focusListItems:L,setCurrentScrollIndex:O,constraints:_,frequencyMax:I,freqIsAllowed:T,translator:P,showSearch:M,isModal:N,styles:q}=e;const{layoutOptions:z={}}=t||{},{columnWidth:D,listHeight:A,itemHeight:j,rowCount:F,columnCount:B}=E||{},$=("grid"===z.dataLayout?D:n)>LL,W={direction:"rtl"===w?"rtl":"ltr",useIsScrolling:!0,className:AO.styledScrollbars},H=null==t?void 0:t.qListObject.qDimensionInfo.qLocked,U=A<=j,V=a(a({isLocked:H,column:!i,pages:l},H||c.selectDisabled()?{}:u),{},{checkboxes:r,layoutOptions:z,deducedFrequencyMode:d,freqIsAllowed:T,isSingleSelect:f,textAlign:v,sizes:E,actions:{select:h,confirm:()=>null==b?void 0:b.confirm.call(b),cancel:()=>null==b?void 0:b.cancel.call(b),setScrollPosition:R,selectAll:m,onCtrlF:g},frequencyMax:I,histogram:p,keyboard:y,showGray:x,showTick:$,dataOffset:o.current.dataOffset,focusListItems:L,direction:w,translator:P,showSearch:M,isModal:N,styles:q,fillHeight:U});return{List:e=>{let{onItemsRendered:r,ref:i}=e;return o.current.listRef=i,G.createElement(WO,s({},W,{dataTestid:"fixed-size-list",scrollDisabled:null==_?void 0:_.active,height:A,width:n,itemCount:C,itemData:a(a({},V),{},{listCount:C}),itemSize:j,onItemsRendered:e=>{var n;O({start:e.visibleStartIndex,stop:e.visibleStopIndex}),S&&S.setScrollPos(e.visibleStopIndex),$O({renderProps:e,layoutOptions:z,maxCount:E.maxCount,columnCount:B,rowCount:F,overflowDisclaimer:k,qCardinal:null==t||null===(n=t.qListObject)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.qCardinal,dataOffset:o.current.dataOffset}),r(a({},e))},ref:i}),vO)},Grid:e=>{let{onItemsRendered:r,ref:i}=e;const{overflowStyling:l,scrollBarWidth:c}=E,{layoutOrder:u}=z||{},d=Math.min(A,F*j+c);return o.current.listRef=i,G.createElement(HO,s({},W,{dataTestid:"fixed-size-grid",scrollDisabled:null==_?void 0:_.active,height:d,width:n,columnCount:B,columnWidth:D,rowCount:F,rowHeight:j,style:a({},l),itemData:a(a({},V),{},{column:void 0,columnCount:B,rowCount:F}),onItemsRendered:e=>{var n;const a="row"===u;O({start:a?e.visibleRowStartIndex:e.visibleColumnStartIndex,stop:a?e.visibleRowStopIndex:e.visibleColumnStopIndex});const i=function(e){const{renderProps:t,scrollState:n,layoutOrder:r,rowCount:o,columnCount:a}=e,{overscanRowStartIndex:i,overscanRowStopIndex:l,overscanColumnStartIndex:s,overscanColumnStopIndex:c,visibleStopIndex:u}=t;let d,p,f,h;return n&&n.setScrollPos(u),"column"===r?(d=s*o,p=i,f=c*o,h=l):(d=s,p=i*a,f=c,h=l*a),{visibleStartIndex:d+p,visibleStopIndex:f+h}}({renderProps:e,scrollState:S,layoutOrder:u,rowCount:F,columnCount:B});$O({renderProps:e,layoutOptions:z,maxCount:E.maxCount,columnCount:B,rowCount:F,overflowDisclaimer:k,qCardinal:null==t||null===(n=t.qListObject)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.qCardinal,dataOffset:o.current.dataOffset}),r(i)},ref:i}),vO)}}}({direction:p,layout:l,height:h,width:m,checkboxes:q,deducedFrequencyMode:fe,histogram:z,keyboard:S,showGray:w,interactionEvents:te,select:ne,selectAll:()=>{d.clearItemStates(!1),r.selectListObjectAll("/qListObjectDef")},onCtrlF:L,textAlign:ye,isVertical:ce,pages:Q,selectionState:d,isSingleSelect:N,selections:u,scrollState:E,local:A,sizes:he,listCount:me,overflowDisclaimer:{state:Z,set:e=>X((t=>a(a({},t),{},{show:e})))},setScrollPosition:be,focusListItems:{first:xe.first,setFirst:e=>Se((t=>a(a({},t),{},{first:e}))),last:xe.last,setLast:e=>Se((t=>a(a({},t),{},{last:e})))},setCurrentScrollIndex:k.set,constraints:i,frequencyMax:F,freqIsAllowed:pe,translator:T,showSearch:O,isModal:_,styles:I}),{columnWidth:Ce,listHeight:ke,itemHeight:Re}=he||{};return ce||(se=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:ke,itemHeight:Re})),G.createElement(C_,null,G.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},ve),!me&&Y>0&&G.createElement(t_,{width:m,text:"Listbox.NoMatchesForYourTerms"}),G.createElement(sL,{isItemLoaded:ee,itemCount:me||1,loadMoreItems:K.with({minimumBatchSize:se}),threshold:0,minimumBatchSize:se,ref:D,role:"grid"},ce?we:Ee),Z.show&&!Z.dismissed&&G.createElement(g_,{text:"Listbox.ItemsOverflow",dismiss:()=>X((e=>a(a({},e),{},{dismissed:!0}))),parentWidth:null==D||null===(n=D.current)||void 0===n||null===(n=n._listRef)||void 0===n||null===(n=n.props)||void 0===n?void 0:n.width,dense:null==re?void 0:re.dense}))}const R_=e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M15.4,9 C15.8,9 16,9.3 16,9.6 L16,15.4 C16,15.7 15.8,16 15.4,16 L9.6,16 C9.3,16 9,15.8 9,15.4 L9,9.6 C9,9.3 9.3,9 9.6,9 L15.4,9 Z M15,10 L10,10 L10,15 L15,15 L15,10 Z M6.5,0 C6.8,0 7,0.3 7,0.6 L7,6.4 C7,6.8 6.8,7 6.5,7 L0.6,7 C0.3,7 0,6.8 0,6.5 L0,0.6 C0,0.3 0.3,0 0.6,0 L6.5,0 Z M6,2.8 C6.3,2.5 6.3,2.1 6.1,1.8 C5.9,1.5 5.4,1.6 5.1,1.9 L3.1,3.9 L2.4,3.2 C2.1,2.9 1.7,2.9 1.4,3.1 C1.2,3.3 1.2,3.8 1.5,4.1 L2.7,5.3 C3,5.6 3.4,5.6 3.7,5.3 L3.8,5.3 L6,2.8 Z M6.5,9 C6.8,9 7,9.3 7,9.6 L7,15.4 C7,15.8 6.8,16 6.5,16 L0.6,16 C0.3,16 0,15.8 0,15.4 L0,9.6 C0,9.3 0.3,9 0.6,9 L6.5,9 Z M6,11.8 C6.3,11.5 6.3,11.1 6.1,10.8 C5.9,10.6 5.4,10.6 5.1,10.8 L3.1,12.8 L2.3,12 C2,11.7 1.6,11.7 1.3,12 C1.1,12.3 1.1,12.7 1.4,13 L2.6,14.2 C2.9,14.5 3.3,14.5 3.6,14.3 L3.7,14.2 L6,11.8 Z M15.4,0 C15.8,0 16,0.3 16,0.6 L16,6.4 C16,6.8 15.8,7 15.4,7 L9.6,7 C9.3,7 9,6.8 9,6.5 L9,0.6 C9,0.3 9.3,0 9.6,0 L15.4,0 Z M15,2.8 C15.3,2.5 15.3,2.1 15.1,1.8 C14.9,1.5 14.4,1.6 14.1,1.9 L12.1,3.9 L11.3,3.1 C11,2.8 10.6,2.8 10.3,3 C10,3.2 10.1,3.7 10.3,4 L11.5,5.2 C11.8,5.5 12.2,5.5 12.5,5.2 L15,2.8 Z"}}]}),L_=e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),O_=e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),__=e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]});var I_=e=>{let{layout:t,model:n,translator:r,selectionState:o,isDirectQuery:a=!1}=e;if(t.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];return[{key:"selectAll",type:"menu-icon-button",label:r.get("Selection.SelectAll"),getSvgIconShape:R_,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectAll("/qListObjectDef")}},{key:"selectPossible",type:"menu-icon-button",label:r.get("Selection.SelectPossible"),getSvgIconShape:O_,enabled:()=>["qOption"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectPossible("/qListObjectDef")}},!a&&{key:"selectAlternative",type:"menu-icon-button",label:r.get("Selection.SelectAlternative"),getSvgIconShape:L_,enabled:()=>["qAlternative"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectAlternative("/qListObjectDef")}},!a&&{key:"selectExcluded",type:"menu-icon-button",label:r.get("Selection.SelectExcluded"),getSvgIconShape:__,enabled:()=>["qAlternative","qExcluded"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectExcluded("/qListObjectDef")}}].filter(Boolean)};const T_=e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M2,6.5 L3,6.5 C3.55228475,6.5 4,6.94771525 4,7.5 L4,8.5 C4,9.05228475 3.55228475,9.5 3,9.5 L2,9.5 C1.44771525,9.5 1,9.05228475 1,8.5 L1,7.5 C1,6.94771525 1.44771525,6.5 2,6.5 Z M7.5,6.5 L8.5,6.5 C9.05228475,6.5 9.5,6.94771525 9.5,7.5 L9.5,8.5 C9.5,9.05228475 9.05228475,9.5 8.5,9.5 L7.5,9.5 C6.94771525,9.5 6.5,9.05228475 6.5,8.5 L6.5,7.5 C6.5,6.94771525 6.94771525,6.5 7.5,6.5 Z M13,6.5 L14,6.5 C14.5522847,6.5 15,6.94771525 15,7.5 L15,8.5 C15,9.05228475 14.5522847,9.5 14,9.5 L13,9.5 C12.4477153,9.5 12,9.05228475 12,8.5 L12,7.5 C12,6.94771525 12.4477153,6.5 13,6.5 Z"}}]});function P_(e){const t=ey(),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 M_={className:"njs-cell-action"},N_=G.forwardRef(((e,t)=>{let{ariaExpanded:n=!1,item:r,addAnchor:o=!1}=e;const a=ey(),{hidden:i,disabled:l,style:s,hasSvgIconShape:c}=P_(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 G.createElement(mS,{ref:o?null:t,title:r.label,onClick:r.action,onKeyDown:p,onKeyUp:f,disabled:l,style:s,className:[M_.className,h].join(" "),size:"large",disableRipple:!0,"aria-expanded":n,"aria-controls":"moreMenuList","data-testid":h},c&&tL(r.getSvgIconShape()),o&&G.createElement("div",{ref:t,style:{bottom:-u,right:0,position:"absolute",width:"100%",height:0}}))})),q_=e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M9.34535242,8 L13.3273238,11.9819714 C13.6988326,12.3534802 13.6988326,12.955815 13.3273238,13.3273238 C12.955815,13.6988326 12.3534802,13.6988326 11.9819714,13.3273238 L8,9.34535242 L4.01802863,13.3273238 C3.64651982,13.6988326 3.04418502,13.6988326 2.67267621,13.3273238 C2.3011674,12.955815 2.3011674,12.3534802 2.67267621,11.9819714 L6.65464758,8 L2.67267621,4.01802863 C2.3011674,3.64651982 2.3011674,3.04418502 2.67267621,2.67267621 C3.04418502,2.3011674 3.64651982,2.3011674 4.01802863,2.67267621 L8,6.65464758 L11.9819714,2.67267621 C12.3534802,2.3011674 12.955815,2.3011674 13.3273238,2.67267621 C13.6988326,3.04418502 13.6988326,3.64651982 13.3273238,4.01802863 L9.34535242,8 Z"}}]}),z_=e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M9.1661442,6.1661442 C10.7210031,4.61128527 13.2789969,4.61128527 14.8338558,6.1661442 C16.3887147,7.72100313 16.3887147,10.2789969 14.8338558,11.8338558 C13.2789969,13.3887147 10.7210031,13.3887147 9.1661442,11.8338558 C7.61128527,10.2789969 7.61128527,7.77115987 9.1661442,6.1661442 Z M14.1316614,7.72100313 C14.3322884,7.52037618 14.3824451,7.169279 14.1316614,6.9184953 C13.8808777,6.6677116 13.5297806,6.71786834 13.3291536,6.9184953 L12.0250784,8.22257053 L10.7210031,6.9184953 C10.5203762,6.6677116 10.1191223,6.6677116 9.9184953,6.9184953 C9.6677116,7.11912226 9.6677116,7.52037618 9.9184953,7.72100313 L11.2225705,9.02507837 L9.9184953,10.3291536 C9.6677116,10.5297806 9.6677116,10.8808777 9.9184953,11.1316614 C10.169279,11.3824451 10.5203762,11.3824451 10.7210031,11.1316614 L12.0250784,9.82758621 L13.3291536,11.1316614 C13.5297806,11.3824451 13.8808777,11.3824451 14.1316614,11.1316614 C14.3322884,10.9310345 14.3824451,10.5297806 14.1316614,10.3291536 L12.8275862,9.02507837 L14.1316614,7.72100313 Z"}}]});var D_=e=>tL(z_(e));const A_="njs-action-toolbar-more",j_={icon:"".concat("More","-icon")},F_=Py(oR)((e=>{let{theme:t}=e;return{pointerEvents:"none",["& .".concat(j_.icon," *")]:{color:t.palette.text.primary}}}));function B_(e){let{item:t,autoFocus:n,onActionClick:r=(()=>{})}=e;const{hidden:o,disabled:a,hasSvgIconShape:i}=P_(t);return o?null:G.createElement(cR,{autoFocus:n,title:t.label,onClick:()=>{t.action(),r()},disabled:a,tabindex:"0"},i&&G.createElement(Fk,{className:j_.icon},tL(t.getSvgIconShape())),G.createElement(SS,{noWrap:!0},t.label))}const $_=G.forwardRef(((e,t)=>{let{actions:n=[],show:r=!0,alignTo:o,popoverProps:i={},popoverPaperStyle:l={},onCloseOrActionClick:c=(()=>{})}=e;const u=n.length>0,d=n.findIndex((e=>!e.disabled));return u&&G.createElement(F_,s({},i,{onClose:c,ref:t,open:r,anchorEl:o.current,getContentAnchorEl:null,container:o.current,disablePortal:!0,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:A_},paper:{style:a({pointerEvents:"auto",maxWidth:"250px"},l)}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}),G.createElement(Gk,{id:"moreMenuList"},n.map(((e,t)=>G.createElement(B_,{key:t,item:e,autoFocus:t===d,onActionClick:c})))))})),W_=e=>{const t=e.closest("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");return Array.from(n).indexOf(e)},H_=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 U_="ActionsToolbar",V_={item:"".concat(U_,"-item"),itemSpacing:"".concat(U_,"-itemSpacing")},G_=Py(oR)((e=>{let{theme:t}=e;return{["& .".concat(V_.itemSpacing)]:{padding:t.spacing(0,.25)}}})),K_={className:"njs-action-toolbar-popover"},Z_=G.forwardRef(((e,t)=>{let{className:n,ariaExpanded:r=!1,actions:o=[],addAnchor:a=!1,isRtl:i=!1}=e;return o.length>0?G.createElement(rk,{item:!0,container:!0,gap:0,flexDirection:i?"row-reverse":"row",wrap:"nowrap",className:n},o.map(((e,n)=>G.createElement(rk,{item:!0,key:e.key,className:"".concat(V_.itemSpacing," ").concat(V_.item)},G.createElement(N_,{ariaExpanded:r,key:e.key,item:e,ref:0===n?t:null,addAnchor:a}))))):null})),X_={pointerEvents:"none"},Q_={vertical:"bottom",horizontal:"right"};function J_(e){var t,n;let{show:r=!0,actions:o=[],maxItems:i=3,selections:l={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},extraItems:s,more:c={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{}},popover:u={show:!1,anchorEl:null},focusHandler:d=null,actionsRefMock:p=null,isRtl:f,autoConfirm:h=!1,layout:m}=e;const g=function(e){let{api:t,layout:n,onConfirm:r=(()=>{}),onCancel:o=(()=>{}),onKeyDeactivate:a=(()=>{})}=e;const{translator:i}=V.useContext(zx);return[{key:"clear",type:"icon-button",label:i.get("Selection.Clear"),enabled:()=>t.canClear(n),action:()=>t.clear(),getSvgIconShape:z_},{key:"cancel",type:"icon-button",label:i.get("Selection.Cancel"),enabled:()=>t.canCancel(n),action:()=>{o(),t.cancel()},keyboardAction:()=>{a(),o(),t.cancel()},getSvgIconShape:q_},{key:"confirm",type:"icon-button",label:i.get("Selection.Confirm"),enabled:()=>t.canConfirm(n),action:()=>{r(),t.confirm()},keyboardAction:()=>{a(),r(),t.confirm()},getSvgIconShape:bL}]}(a(a({},l),{},{layout:m})),{translator:v,keyboardNavigation:b}=V.useContext(zx),[y,x]=V.useState(!1),S={vertical:12,horizontal:(null!==(t=null===(n=u.anchorEl)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)-7},w=V.useRef(),E=V.useRef(),C=ey(),k=V.useMemo((()=>({margin:C.spacing(.5,0)}))),R=e=>{const t=w.current||p;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]},L=V.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 dO.ARROW_LEFT:case dO.ARROW_DOWN:case dO.ARROW_RIGHT:case dO.ARROW_UP:if(i.classList.contains("njs-cell-action")){const e=W_(i);let t=[dO.ARROW_LEFT,dO.ARROW_DOWN].includes(s);t=a?!t:t,H_(t?e-1:e+1)}e.stopPropagation(),e.preventDefault();break;case dO.SPACE:e.preventDefault();break;case dO.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 dO.ESCAPE:o&&(o.onCancel(),o.api.cancel(),e.preventDefault(),e.stopPropagation())}}}({keyboardNavigation:b,focusHandler:d,getEnabledButton:R,selections:l,isRtl:f})),[b,d,R,l,f]);if(V.useEffect((()=>()=>{x(!1)}),[u.show,r,l.show]),V.useEffect((()=>{if(!d)return;d.on("focus_toolbar_first",(()=>{const e=R(!1);null==e||e.focus()})),d.on("focus_toolbar_last",(()=>{const e=R(!0);null==e||e.focus()}))}),[]),h)return;let O=c.enabled,_=c.actions;const I=c.alignTo||E,T=o.filter((e=>!e.hidden));if(T.length>i){const e=T.splice(-(T.length-i)-1);O=!0,_=[...e,...c.actions]}if(!l.show&&0===T.length)return null;const P={key:"more",label:v.get("Menu.More"),getSvgIconShape:T_,hidden:!1,active:y,enabled:()=>O,action:()=>x(!y)},M=T.length>0,N=_.length>0,q=M&&l.show||N&&l.show,z=G.createElement(rk,{ref:w,onKeyDown:L,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:f?"row-reverse":"row"}},(null==s?void 0:s.length)&&G.createElement(Z_,{className:"actions-toolbar-extra-actions",actions:s,isRtl:f}),M&&G.createElement(Z_,{actions:T}),N&&G.createElement(Z_,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:E,ariaExpanded:y,actions:[P],addAnchor:!0}),q&&G.createElement(rk,{item:!0,className:V_.itemSpacing,style:k},G.createElement(FC,{orientation:"vertical"})),l.show&&G.createElement(Z_,{className:"actions-toolbar-default-actions",actions:g,isRtl:f}),y&&G.createElement($_,{show:y,actions:_,alignTo:I,popoverProps:c.popoverProps,popoverPaperStyle:c.popoverPaperStyle,onCloseOrActionClick:()=>{x(!1)}}));return u.show?G.createElement(G_,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:u.show,anchorEl:u.anchorEl,anchorOrigin:S,transformOrigin:Q_,hideBackdrop:!0,style:X_,onMouseDown:e=>{e.stopPropagation()},slotProps:{paper:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:K_.className,style:{pointerEvents:"auto",padding:C.spacing(.5,.25)}}}},z):r&&z}var Y_=e=>tL((e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014l-4.128-4.026ZM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0Zm-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6.034 6.034 0 0 1-1.413 1.415Z"}}]}))(e));const eI="/qListObjectDef",tI="**",nI=e=>null==e?void 0:e.substring(0,64e3),rI=Py(bR,{shouldForwardProp:e=>!["styles","dense","isRtl"].includes(e)})((e=>{let{theme:t,styles:n,dense:r,isRtl:o}=e,i={};return r&&(i={fontSize:12,paddingLeft:t.spacing(1),"& input":{paddingTop:"5px",paddingBottom:"5px"}}),a({display:"flex",border:"none",fontSize:14,borderRadius:0,backgroundColor:n.search.backgroundColor,backdropFilter:n.background.backgroundImage?n.search.backdropFilter:void 0,paddingLeft:"".concat(EL,"px"),flexDirection:o?"row-reverse":"row","& fieldset":{borderColor:"".concat(n.search.borderColor),borderWidth:"1px 0 1px 0",borderRadius:0},"&.Mui-focused fieldset":{borderColor:"".concat(n.search.highlightBorderColor," !important")},"& .MuiInputBase-root":a({},n.search),"& *":{color:n.search.color},"& input":{color:n.search.color,textAlign:o?"right":"left"}},i)}));function oI(e){let{selections:t,selectionState:n,model:r,keyboard:o,dense:a=!1,visible:i=!0,autoFocus:l=!0,wildCardSearch:s=!1,searchEnabled:c,direction:u,hide:d,styles:p}=e;const{translator:f}=V.useContext(zx),[h,m]=V.useState(""),[g,v]=V.useState(!1),b=V.useRef(),{getStoreValue:y,setStoreValue:x}=YO(r),S="rtl"===u,w=async()=>{if(!(!n.selectDisabled()&&!t.isModal()))try{await r.abortListObjectSearch(eI)}finally{m("")}};V.useEffect((()=>{i||w()}),[i]),V.useEffect((()=>(t.on("deactivated",w),()=>{t.removeListener&&t.removeListener("deactivated",w)})),[]),V.useEffect((()=>{if(g&&b.current){const e=h.length-1;b.current.setSelectionRange(e,e),v(!1)}}),[g,b.current]),V.useEffect((()=>{x("inputText",h)}),[h]);const E=async()=>{let e;const o=nI(h),a=await r.searchListObjectFor(eI,o);return n.selectDisabled()?a:(a&&o.length&&y("listCount")>0&&(e=r.acceptListObjectSearch(eI,!0),t.selectionsMade=!0,n.clearItemStates(!1),m("")),e)};function C(e){const t=(null==e?void 0:e.querySelector(".last-focused"))||(null==e?void 0:e.querySelector('[role="row"]:first-child'));null==t||t.setAttribute("tabIndex",0),null==t||t.focus()}return i&&!1!==c?G.createElement(rI,{styles:p,dense:a,isRtl:S,startAdornment:G.createElement(bk,{position:"start"},G.createElement(Y_,{size:a?"small":"normal"})),className:"search",inputRef:b,size:"small",fullWidth:!0,placeholder:f.get("Listbox.Search"),value:h,onFocus:()=>{s&&(m(tI),v(!0))},onChange:async e=>{const t=nI(e.target.value);return m(t),t.length?r.searchListObjectFor(eI,t):w()},onKeyDown:async e=>{const{currentTarget:n}=e,r=n.closest(".listbox-container");switch(e.key){case"Enter":E();break;case"Escape":C(r),t.isActive()&&t.cancel();break;case"Tab":e.shiftKey?o.focusSelection():(C(r),null==r||r.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")})));break;case"f":case"F":if(!e.ctrlKey&&!e.metaKey)return;d&&(d(),C(r));break;default:return}e.preventDefault(),e.stopPropagation()},autoFocus:l,inputProps:{tabIndex:o.innerTabStops?0:-1,"data-testid":"search-input-field","aria-label":f.get("Listbox.Search.ScreenReaderInstructions")}}):null}function aI(e){if(!e.session)return[];const{selectionStore:t}=V.useContext(zx),[n]=t.useAppSelectionsStore(),r=e?e.id:null;let o=n.get(r);return V.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 iI(e){return Object.keys(te.prototype).forEach((t=>{e[t]=te.prototype[t]})),te.init(e),e}const lI=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 iI(l),l},sI=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 cI(e,t,n,r){const o=Array.isArray(n)?n:[n],[a]=aI(e),[i]=QR(t),{appModalStore:l}=V.useContext(zx).selectionStore,s=l.get(e.id),[c,u]=V.useState();return V.useEffect((()=>{a&&t&&!c&&u(lI({appSelections:a,appModal:s,model:t}))}),[a,t]),V.useEffect((()=>{if(!c)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=sI({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]),V.useEffect((()=>{c&&c.setLayout(i)}),[c,i]),[c]}function uI(){const e=a(a({itemStates:{},ignoreSelectionState:!1,selectedInEngine:[],enginePages:[],setPages:void 0,lastRowCount:void 0,lastApprMaxGlyphCount:void 0,selectDisabled:void 0},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),{},{update(t){var n,r;let{setPages:o,pages:a,isSingleSelect:i,selectDisabled:l,layout:s}=t;this.setPages=o;const c=this.lastRowCount===s.qListObject.qSize.qcy,u=this.lastApprMaxGlyphCount===s.qListObject.qDimensionInfo.qApprMaxGlyphCount;c&&u||(this.lastRowCount=s.qListObject.qSize.qcy,this.lastApprMaxGlyphCount=s.qListObject.qDimensionInfo.qApprMaxGlyphCount,this.clearItemStates(!1)),e.enginePages!==a&&void 0!==a&&(e.enginePages=null!=a?a:[],e.selectedInEngine=dL(a),e.selectableValuesUpdating=!1,e.triggerStateChanged()),e.isSingleSelect=i,e.selectDisabled=l||e.selectDisabled,e.isDimCalculated=null!==(n=null==s||null===(r=s.qListObject)||void 0===r||null===(r=r.qDimensionInfo)||void 0===r?void 0:r.qIsCalculated)&&void 0!==n&&n},allowedToSelect:()=>!e.selectDisabled()&&!(e.isDimCalculated&&e.selectableValuesUpdating),setSelectableValuesUpdating(){e.selectableValuesUpdating=!0},useClientItemState:t=>e.ignoreSelectionState||t in e.itemStates,isSelected:t=>e.useClientItemState(t)?!!e.itemStates[t]:e.selectedInEngine.includes(t),getState(t){const{qElemNumber:n,qState:r}=t;return e.useClientItemState(n)?e.itemStates[n]?"XS"===r?"XS":"S":"S"===r||"XS"===r?"A":r:r},updateItemNoEvents(t,n,r){const o=e.isSelected(t);o&&!n?e.itemStates[t]=!1:o||(null==r||r.push(t),e.itemStates[t]=!0)},triggerStateChanged(){if(this.setPages){const t=e.applySelectionsOnPages(e.enginePages);this.setPages(t)}},applySelectionsOnPages(t){const n=t.map((t=>{const n=t.qMatrix.map((t=>{const[n]=t,r=e.getState(n);return[a(a({},n),{},{qState:r}),...t.slice(1)]}));return a(a({},t),{},{qMatrix:n})}));return n},updateItem(t,n,r){e.updateItemNoEvents(t,n,r),e.triggerStateChanged()},updateItems(t,n,r){t.forEach((t=>{e.updateItemNoEvents(t,n,r)})),e.triggerStateChanged()},clearItemStates(t){e.itemStates={},e.ignoreSelectionState=t}});return e}const dI=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 pI(e){const t=(null==e?void 0:e.qListObject.qDimensionInfo.qStateCounts)||{};return dI(t,"qSelected",0)+dI(t,"qSelectedExcluded",0)+dI(t,"qLocked",0)+dI(t,"qLockedExcluded",0)>0}const fI={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}},hI=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,mI=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,gI=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,vI=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,bI=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,yI=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,{floor:xI}=Math,{round:SI}=Math;class wI{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let r,o,a,i,l,s,c,u,d,p,f,h,m=0,g=0,v=0,b=1;if(this._invalid=!1,t[0]instanceof wI)m=t[0]._r,g=t[0]._g,v=t[0]._b,b=t[0]._a,this._invalid=t[0]._invalid;else if(t.length<3)if("string"==typeof t[0])if(h=t[0],f=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(h))m=parseInt(f[1],10),g=parseInt(f[2],10),v=parseInt(f[3],10);else if(f=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(h))m=parseInt(f[1],10),g=parseInt(f[2],10),v=parseInt(f[3],10),b=parseFloat(f[4]);else if(f=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(h))b=parseInt(f[1],10)/255,m=parseInt(f[2],10),g=parseInt(f[3],10),v=parseInt(f[4],10);else if(f=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(h))m=parseInt(f[1],16),g=parseInt(f[2],16),v=parseInt(f[3],16),b=1;else if(f=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(h))m=parseInt(f[1]+f[1],16),g=parseInt(f[2]+f[2],16),v=parseInt(f[3]+f[3],16),b=1;else if(f=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(h)){switch(r=parseFloat(f[1]),o=parseFloat(f[3]),i=parseFloat(f[5]),r%=360,o/=100,i/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,i=i<0?0:i>1?1:i,s=i<=.5?2*i*o:(2-2*i)*o,c=r/60,u=s*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[s,u,0];break;case 1:d=[u,s,0];break;case 2:d=[0,s,u];break;case 3:d=[0,u,s];break;case 4:d=[u,0,s];break;case 5:d=[s,0,u];break;default:d=[0,0,0]}p=i-.5*s,m=d[0]+p,g=d[1]+p,v=d[2]+p,m=SI(255*m),g=SI(255*g),v=SI(255*v),b=1}else if(f=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(h)){switch(r=parseFloat(f[1]),o=parseFloat(f[3]),i=parseFloat(f[5]),b=parseFloat(f[7]),r%=360,o/=100,i/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,i=i<0?0:i>1?1:i,s=i<=.5?2*i*o:(2-2*i)*o,c=r/60,u=s*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[s,u,0];break;case 1:d=[u,s,0];break;case 2:d=[0,s,u];break;case 3:d=[0,u,s];break;case 4:d=[u,0,s];break;case 5:d=[s,0,u];break;default:d=[0,0,0]}p=i-.5*s,m=d[0]+p,g=d[1]+p,v=d[2]+p,m=SI(255*m),g=SI(255*g),v=SI(255*v)}else if(f=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(h)){switch(r=parseFloat(f[1]),o=parseFloat(f[3]),l=parseFloat(f[5]),r%=360,o/=100,l/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,l=l<0?0:l>1?1:l,s=l*o,c=r/60,u=s*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[s,u,0];break;case 1:d=[u,s,0];break;case 2:d=[0,s,u];break;case 3:d=[0,u,s];break;case 4:d=[u,0,s];break;case 5:d=[s,0,u];break;default:d=[0,0,0]}p=l-s,m=d[0]+p,g=d[1]+p,v=d[2]+p,m=SI(255*m),g=SI(255*g),v=SI(255*v),b=1}else fI[h.toLowerCase()]?(a=h.toLowerCase(),m=fI[a].r,g=fI[a].g,v=fI[a].b,b="number"==typeof fI[a].a?fI[a].a:1):this._invalid=!0;else"number"==typeof t[0]&&t[0]>=0&&"argb"===t[1]?(b=(4278190080&t[0])>>>24,b/=255,m=(16711680&t[0])>>16,g=(65280&t[0])>>8,v=255&t[0]):"number"==typeof t[0]&&t[0]>=0?(m=(16711680&t[0])>>16,g=(65280&t[0])>>8,v=255&t[0]):this._invalid=!0;else t.length>=3?(m=t[0],g=t[1],v=t[2],b=arguments.length>=4?t[3]:1):this._invalid=!0;Number.isNaN(+m+g+v+b)&&(this._invalid=!0),this._r=xI(m),this._g=xI(g),this._b=xI(v),this._a=b,this._spaces={}}isInvalid(){return this._invalid}setAlpha(e){this._a=e,this._spaces={}}getAlpha(){return this._a}toRGB(){return this._spaces.rgb||(this._spaces.rgb=wI.toRGB(this)),this._spaces.rgb}toRGBA(){return this._spaces.rgba||(this._spaces.rgba=wI.toRGBA(this)),this._spaces.rgba}toString(){return this._spaces.rgb||(this._spaces.rgb=wI.toRGB(this)),this._spaces.rgb}toHex(){return this._spaces.hex||(this._spaces.hex=wI.toHex(this)),this._spaces.hex}toHSL(e){return this._spaces.hsl||(this._spaces.hsl=wI.toHSL(this,e)),this._spaces.hsl}toHSLA(e){return this._spaces.hsla||(this._spaces.hsla=wI.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=wI.toHSVComponents(this)),this._spaces.hsvComp}toNumber(){return this._spaces.num||(this._spaces.num=wI.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 wI||(e=new wI(e)),this._r===e._r&&this._g===e._g&&this._b===e._b&&this._a===e._a}blend(e,t){const n=xI(this._r+(e._r-this._r)*t),r=xI(this._g+(e._g-this._g)*t),o=xI(this._b+(e._b-this._b)*t),a=xI(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 wI(r)}static toRGB(e){if(e instanceof wI)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=wI.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 wI)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=wI.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 wI?(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=wI.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 wI(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 wI(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 wI(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 wI)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=wI.toNumber(e)))>>16,o=(65280&e)>>8,a=255&e;return(r+(((16711680&(t=wI.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 wI(r,o,a,i)}static isCSSColor(e){return!(arguments.length>1||"string"!=typeof e)&&(hI.test(e)||mI.test(e)||gI.test(e)||vI.test(e)||bI.test(e)||yI.test(e)||fI[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 wI(...t).isDark(...t)}static useDarkLabel(e,t){return e._a>.5?!e.isDark():!t}}const EI=/,(?![^(]*\))/,CI=/\s(?![^(]*\))/,kI=/^[0-9]+[a-zA-Z%]+?$/,RI=["none","inset","initial","inherit"],LI=e=>{if(!e)return;const t=e.split(CI).filter((e=>!RI.includes(e.toLowerCase()))).at(-1),n=!t||(e=>"0"===e||kI.test(e))(t)||RI.includes(t.toLowerCase())?void 0:t;return n},OI=e=>e?e.split(EI).map((e=>e.trim())):[];function _I(e,t,n,r){return n&&r?n.getStyle("object.".concat(r),e,t):n?n.getStyle("",e,t):void 0}const II=!0;function TI(e,t,n,r,o){return e&&r?"none"!==e.color?r.getColorPickerColor(e,II):void 0:_I(t,n,r,o)}const PI={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},MI={"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 NI(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 qI(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=NI(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=MI[e.bgImage.position]),n}(e),a=function(e){var t;let n=PI.originalSize;const r=null==e||null===(t=e.bgImage)||void 0===t?void 0:t.sizing;return r&&(n=PI[r]),n}(e);return r?{url:r,pos:o,size:a}:void 0}}function zI(e,t,n){const r=null==e?void 0:e.bgColor;return r&&t&&(r.useExpression||r.useColorExpression)?t.validateColor(r.colorExpression):TI(null==r?void 0:r.color,"","backgroundColor",t,n)}function DI(e,t,n){var r,o;const a=_I("shadow","boxShadow",t,n);return((e,t,n)=>{if(e&&RI.includes(e.toLowerCase()))return e.toLowerCase();const r=OI(e);if(1!==r.length)return e;let o=n;if(!o){const n=OI(t);if(1!==n.length)return e;o=LI(n[0])}if(!o)return e;const a=LI(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,TI(null==e||null===(o=e.shadow)||void 0===o?void 0:o.boxShadowColor,"shadow","boxShadowColor",t,n))}function AI(e,t,n,r){var o;const a=(null==e||null===(o=e.title)||void 0===o?void 0:o[t])||{},i=function(e,t){return e&&Array.isArray(e)?e:"main"===t?["bold"]:[]}(a.fontStyle,t);return{fontFamily:a.fontFamily||n.getStyle("object.".concat(r),"title.".concat(t),"fontFamily"),fontSize:a.fontSize||n.getStyle("object.".concat(r),"title.".concat(t),"fontSize"),color:a.color&&"none"!==a.color.color?n.getColorPickerColor(a.color,!0):n.getStyle("object.".concat(r),t,"color"),fontWeight:i.includes("bold")?"bold":"normal",fontStyle:i.includes("italic")?"italic":"normal",textDecoration:i.includes("underline")?"underline":"initial"}}const jI="#FFF",FI="#000",BI=1.5,$I=3,WI=(e,t)=>{let n=!1;const r=new wI(e),o=new wI(t);if(!(o.isInvalid()||r.isInvalid()||o.getAlpha()<1||r.getAlpha()<1)){try{n=wI.getContrast(r,o)}catch(e){n=void 0}return n}};function HI(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:FI,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:jI;const o=new wI(r),a=new wI(e),i=new wI(t);if(a.isInvalid()||i.isInvalid()||a.getAlpha()<1||i.getAlpha()<1)return t;const l=WI(o,a),s=WI(i,a),c=l>s||l>$I;let u;return u=t&&s>BI&&!c?t:c?r:n,u}const UI=["theme","selections"];function VI(e){var t,n,r,o,a,i,l,s;let{app:c,themeApi:u,theme:d,components:p=[],checkboxes:f=!1}=e;const h=function(){const e={};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((t=>{const n=null==t?void 0:t.key;UI.includes(n)&&(e[n]=t)})),e}(p),m=(e,t)=>u.getStyle("object.listBox",e,t),g=e=>(null==e?void 0:e.index)>0||null!=e&&e.color?u.getColorPickerColor(e,!1):void 0,v=function(e){var t,n,r,o,a,i,l,s,c,u,d,p,f,h,m;let{getColorPickerColor:g,theme:v,getListboxStyle:b,overrides:y,checkboxes:x}=e;const S=g(null===(t=y.theme)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.fontColor)||b("content","color")||(null===(n=v.palette)||void 0===n?void 0:n.text.primary),w=!x&&(null===(r=null===(o=y.theme)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.useContrastColor)||void 0===r||r),E=(null===(a=y.selections)||void 0===a?void 0:a.colors)||{},C=g(E.selected)||(null===(i=v.palette)||void 0===i?void 0:i.selected.main)||"#009845",k=g(E.alternative)||(null===(l=v.palette)||void 0===l?void 0:l.selected.alternative)||"#E4E4E4",R=g(E.excluded)||(null===(s=v.palette)||void 0===s?void 0:s.selected.excluded)||"#A9A9A9",L=g(E.selectedExcluded)||(null===(c=v.palette)||void 0===c?void 0:c.selected.selectedExcluded)||"#A9A9A9",O=g(E.possible)||b("","backgroundColor")||(null===(u=v.palette)||void 0===u?void 0:u.selected.possible)||"#FFFFFF";let _=S||(null===(d=v.palette)||void 0===d?void 0:d.selected.selectedContrastText),I=S||(null===(p=v.palette)||void 0===p?void 0:p.selected.alternativeContrastText),T=S||(null===(f=v.palette)||void 0===f?void 0:f.selected.excludedContrastText),P=S||(null===(h=v.palette)||void 0===h?void 0:h.selected.selectedExcludedContrastText),M=S||(null===(m=v.palette)||void 0===m?void 0:m.selected.possibleContrastText);return w&&(_=HI(C,S),I=HI(k,S),T=HI(R,S),P=HI(L,S),M=HI(O,S)),{selected:C,alternative:k,excluded:R,selectedExcluded:L,possible:O,selectedContrast:_,alternativeContrast:I,excludedContrast:T,selectedExcludedContrast:P,possibleContrast:M}}({getColorPickerColor:g,theme:d,getListboxStyle:m,overrides:h,checkboxes:f}),b=h.theme||{},y=g(null===(t=b.header)||void 0===t?void 0:t.fontColor)||m("title.main","color"),x=function(e){let t,{themeApi:n,themeOverrides:r}=e;const o=null==r?void 0:r.background;return o?(t=null!=o&&o.useExpression?zI({bgColor:o},n,"listBox"):n.getColorPickerColor(null==o?void 0:o.color,!1),t):t}({themeApi:u,themeOverrides:b}),S=null!==(n=b.background)&&void 0!==n&&n.image?qI({bgImage:b.background.image},c):void 0,w=x||m("","backgroundColor")||d.palette.background.default,E=function(e,t){const n=new wI(t("","backgroundColor"));return n.setAlpha(.7),n.isInvalid()?e:n.toRGBA()}(w,m),C=function(e){return HI("#fff",e("content","color"))}(m),k=(null===(r=b.header)||void 0===r?void 0:r.fontStyle)||{},R=(null===(o=b.content)||void 0===o?void 0:o.fontStyle)||{},L=(e,t,n)=>!0===e&&t||!1===e&&n||void 0;return{background:{backgroundColor:w,backgroundImage:null==S||!S.url||null!=S&&S.url.startsWith("url(")?void 0:"url('".concat(S.url,"')"),backgroundRepeat:"no-repeat",backgroundSize:null==S?void 0:S.size,backgroundPosition:null==S?void 0:S.pos},header:{color:y,fontSize:(null===(a=b.header)||void 0===a?void 0:a.fontSize)||m("title.main","fontSize"),fontFamily:(null===(i=b.header)||void 0===i?void 0:i.fontFamily)||m("title.main","fontFamily"),fontWeight:L(k.bold,"bold","normal")||m("title.main","fontWeight")||"bold",textDecoration:k.underline?"underline":"initial",fontStyle:L(k.italic,"italic","normal")||m("title.main","fontStyle")||"initial"},content:{backgroundColor:f?void 0:v.possible,color:v.possibleContrast||m("content","color"),fontSize:(null===(l=b.content)||void 0===l?void 0:l.fontSize)||m("content","fontSize"),fontFamily:(null===(s=b.content)||void 0===s?void 0:s.fontFamily)||m("content","fontFamily"),fontWeight:L(R.bold,"bold","normal")||m("content","fontWeight")||"normal",textDecoration:R.underline?"underline":"initial",fontStyle:L(R.italic,"italic","normal")||m("content","fontStyle")||"initial"},search:{color:C,borderColor:d.palette.divider,highlightBorderColor:d.palette.custom.focusBorder,backgroundColor:E,backdropFilter:"blur(8px)"},selections:v}}function GI(e){let{alignTo:t,anchorOrigin:n={vertical:"bottom",horizontal:"center"},transformOrigin:r={vertical:"top",horizontal:"center"},show:o,close:a,app:i,fieldName:l,stateName:s="$",autoFocus:c,components:u,checkboxes:d,selectDisabled:p=(()=>!1)}=e;const f=Boolean(null==l?void 0:l.qLibraryId),h=o&&Boolean(t.current),[m,g]=V.useState(0),v=ey(),b=V.useRef(),[y]=UR({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:s,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],qFieldDefs:f?void 0:[l]},qLibraryId:f?l.qLibraryId:void 0}},i,l,s),x=V.useCallback((()=>{y.lock("/qListObjectDef")}),[y]),S=V.useCallback((()=>{y.unlock("/qListObjectDef")}),[y]),{translator:w,themeApi:E}=V.useContext(zx),C=V.useRef(),k=V.useRef(),[R]=cI(i,y,k),[L]=QR(y),[O]=V.useState((()=>uI({selectDisabled:p}))),{checkboxes:_=d}=L||{},I=VI({themeApi:E,theme:v,components:u,checkboxes:_});if(V.useEffect((()=>{R&&h&&(R.isModal(y)||R.goModal("/qListObjectDef"))}),[R,h]),!y||!L||!w)return null;const T=!0===L.qListObject.qDimensionInfo.qLocked,P=(e,t)=>{const n="escapeKeyDown"!==t;R.noModal(n),a()},M=I_({layout:L,model:y,translator:w,selectionState:O}),N=pI(L);return G.createElement(oR,{open:h,onClose:P,anchorEl:t.current,anchorOrigin:n,transformOrigin:r,slotProps:{paper:{style:{minWidth:"250px"}}},onKeyDown:e=>"Enter"===e.key?P():void 0},G.createElement(rk,{container:!0,direction:"column",gap:0,ref:k},G.createElement(rk,{item:!0,container:!0,style:{padding:v.spacing(1)}},G.createElement(rk,{item:!0},T?G.createElement(mS,{onClick:S,disabled:!T,size:"large"},G.createElement(rL,{title:w.get("Listbox.Unlock")})):G.createElement(mS,{onClick:x,disabled:!N,size:"large"},G.createElement(aL,{title:w.get("Listbox.Lock")}))),G.createElement(rk,{item:!0,xs:!0}),G.createElement(rk,{item:!0},G.createElement(J_,{layout:L,more:{enabled:!T,actions:M,alignTo:C,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:R,onConfirm:P,onCancel:()=>P(0,"escapeKeyDown")}}))),G.createElement(rk,{item:!0,xs:!0},G.createElement("div",{ref:C}),G.createElement(rk,{item:!0,ref:b},G.createElement(oI,{styles:I,visible:!0,model:y,listCount:m,selections:R,selectionState:O,keyboard:{enabled:!1},autoFocus:null==c||c})),G.createElement(k_,{model:y,app:i,layout:L,selections:R,selectionState:O,direction:"ltr",onSetListCount:e=>g(e),onCtrlF:()=>{const e=b.current.querySelector("input");null==e||e.focus()},styles:I}))))}function KI(e){let{field:t,api:n,stateIx:r=0,skipHandleShowListBoxPopover:o=!1,moreAlignTo:a=null,onClose:i=(()=>{})}=e;const{translator:l}=V.useContext(zx),s=a||V.useRef(),c=ey(),[u,d]=V.useState(!1),p=e=>{e.currentTarget.contains(e.target)&&d(!u)},f=()=>{d(!1),i()},h=t.selections[r];void 0===h.qTotal&&(h.qTotal=0);const m=h.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},g=(m.qSelected+m.qLocked)/h.qTotal,v=m.qAlternative/h.qTotal,b=(m.qExcluded+m.qLockedExcluded+m.qSelectedExcluded)/h.qTotal,y=m.qSelected+m.qSelectedExcluded+m.qLocked+m.qLockedExcluded,x=0===y&&0===h.qTotal;let S="";h.qTotal===y&&h.qTotal>1?S=l.get("CurrentSelections.All"):y>1&&h.qTotal?S=l.get("CurrentSelections.Of",[y,h.qTotal]):h.qSelectedFieldSelectionInfo&&(S=h.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==t.states[r]&&(S="".concat(t.states[r],": ").concat(S));const w=[{color:c.palette.selected.main,ratio:g},{color:c.palette.selected.alternative,ratio:v},{color:c.palette.selected.excluded,ratio:b}];w.forEach(((e,t)=>{e.offset=t?w[t-1].offset+w[t-1].ratio:0}));let E=null,C=null,k=null,R=null;return a||(E=G.createElement(rk,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:h.qLocked?"0.3":""}},G.createElement(SS,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},h.qField),G.createElement(SS,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},S)),h.qLocked?C=G.createElement(rk,{item:!0},G.createElement(mS,{size:"large"},G.createElement(rL,null))):h.qOneAndOnlyOne||(C=G.createElement(rk,{item:!0},G.createElement(mS,{title:l.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),n.clearField(h.qField,t.states[r])},size:"large"},G.createElement(nL,null)))),k=G.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===x&&w.map((e=>G.createElement("div",{key:e.color,style:{position:"absolute",background:e.color,height:"100%",top:0,width:"".concat(100*e.ratio,"%"),left:"".concat(100*e.offset,"%")}})))),R=G.createElement(rk,{container:!0,gap:1,ref:s,sx:{backgroundColor:c.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:c.palette.action.hover}},onClick:!1===o&&p||null},E,C,k,u&&G.createElement(GI,{alignTo:s,show:u,close:f,app:n.model,fieldName:h.qField,stateName:t.states[r]}))),a?G.createElement(GI,{alignTo:s,show:!0,close:f,app:n.model,fieldName:h.qField,stateName:t.states[r]}):R}var ZI=e=>tL((e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M8,9 L12.5,4.5 L14,6 L9.5,10.5 L8,12 L2,6 L3.5,4.5 L8,9 Z"}}]}))(e));const XI={item:"".concat("MultiState","-item")},QI=Py(rk)((e=>{let{theme:t}=e;return{["&.".concat(XI.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"}}}));function JI(e){let{field:t,api:n,moreAlignTo:r=null,onClose:o=(()=>{})}=e;const[a,i]=V.useState(!!r),[l,s]=V.useState(-1),[c,u]=V.useState(r?r.current:null),d=r||V.useRef(),{translator:p}=V.useContext(zx),f=p.get("Selection.ClearAllStates"),h=()=>{s(-1),o()};let m=null;r||(m=G.createElement(G.Fragment,null,G.createElement(rk,{item:!0,xs:!0,zeroMinWidth:!0},G.createElement(XE,{style:{padding:"0px 8px"},color:"secondary",badgeContent:t.states.length},G.createElement(SS,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},t.name))),G.createElement(rk,{item:!0},G.createElement("div",{style:{width:"12px"}})),G.createElement(rk,{item:!0},G.createElement(mS,{size:"large"},G.createElement(ZI,null)))));const g=G.createElement(Ek,{dense:!0},G.createElement(qk,{title:f,onClick:()=>{t.states.forEach((e=>n.clearField(t.name,e)))}},G.createElement(Ox,{variant:"contained",fullWidth:!0},f)),t.states.map(((e,r)=>G.createElement(qk,{key:r,title:t.name,onClick:e=>((e,t)=>{e.stopPropagation(),i(!1),s(t)})(e,r)},G.createElement(YE,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},G.createElement(KI,{field:t,api:n,stateIx:r,skipHandleShowListBoxPopover:!0})))))),v=G.createElement(oR,{open:a,onClose:()=>{i(!1),o()},anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},g),b=r?v:G.createElement(QI,{container:!0,gap:0,className:XI.item,onClick:e=>{e.currentTarget.contains(e.target)&&(u(e.currentTarget),d.current=e.currentTarget,i(!a))}},m,a&&v,l>-1&&G.createElement(GI,{alignTo:d,show:l>-1,close:h,app:n.model,fieldName:t.selections[l].qField,stateName:t.states[l]}));return r&&l>-1?G.createElement(GI,{alignTo:d,show:l>-1,close:h,app:n.model,fieldName:t.selections[l].qField,stateName:t.states[l]}):b}const YI="More",eT={item:"".concat(YI,"-item"),badge:"".concat(YI,"-badge")},tT=Py(rk)((e=>{let{theme:t}=e;return{["&.".concat(eT.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(eT.badge)]:{padding:t.spacing(0,1)}}}));function nT(e){let{items:t=[],api:n}=e;const r=ey(),[o,a]=V.useState(!1),[i,l]=V.useState(-1),[s,c]=V.useState(null),u=V.useRef(),d=()=>{l(-1)};let p=null;return i>-1&&(p=t[i].states.length>1?G.createElement(JI,{field:t[i],api:n,moreAlignTo:u,onClose:d}):G.createElement(KI,{field:t[i],api:n,skipHandleShowListBoxPopover:!0,moreAlignTo:u,onClose:d})),G.createElement(tT,{container:!0,gap:0,className:eT.item,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),u.current=e.currentTarget,a(!o))}},G.createElement(rk,{item:!0},G.createElement(YE,{borderRadius:r.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:r.palette.selected.main,color:r.palette.selected.mainContrastText}},G.createElement(SS,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",t.length))),G.createElement(rk,{item:!0},G.createElement(mS,{size:"large"},G.createElement(ZI,null))),o&&G.createElement(oR,{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"}}},G.createElement(Ek,{dense:!0},t.map(((e,t)=>G.createElement(qk,{key:t,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),a(!1),l(t)})(e,t)},G.createElement(YE,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?G.createElement(JI,{field:e,api:n}):G.createElement(KI,{field:e,api:n}))))))),p)}const rT=120,oT=72;function aT(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"$";e.qSelections.forEach((e=>{const r=e.qField,o=t[r]=t[r]||{name:r,states:[],selections:[]};-1===o.states.indexOf(n)&&(o.states.push(n),o.selections.push(e))}))}function iT(e){let{api:t,app:n}=e;const r=ey(),[o]=GR(n),[a]=QR(o),[i,l]=V.useState({items:[],more:[]}),{modalObjectStore:s}=V.useContext(zx).selectionStore,[c,u]=YR(),[d,p]=V.useState(0);return V.useEffect((()=>{if(!u)return;const{width:e}=u,t=Math.floor(e)-oT,n=Math.floor(t/rT);p(n)}),[u]),V.useEffect((()=>{if(!(n&&o&&a&&d))return;const e=function(e){if(!e)return[];const t={};return e.qSelectionObject&&aT(e.qSelectionObject,t),e.alternateStates&&e.alternateStates.forEach((e=>aT(e.qSelectionObject,t,e.stateName))),Object.keys(t).map((e=>t[e])).filter((e=>!e.selections.some((e=>e.qIsHidden))))}(a);l((t=>{const r=e;if((()=>{const{model:e}=s.get(n.id)||{};return"njsListbox"===(null==e?void 0:e.genericType)})()&&r.length+1===t.items.length){const e=t.items.filter((e=>!1===r.some((t=>e.name===t.name))))[0],{qField:n}=e.selections[0];e.selections=[{qField:n}];const o=t.items.indexOf(e);r.splice(o,0,e)}let o=[];return d<r.length&&(o=r.splice(d-r.length)),{items:r,more:o}}))}),[n,o,a,t.isInModal(),d]),G.createElement(rk,{ref:c,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},i.items.map((e=>G.createElement(rk,{item:!0,key:"".concat(e.states.join("::"),"::").concat(e.name),style:{position:"relative",maxWidth:"240px",minWidth:"".concat(rT,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},e.states.length>1?G.createElement(JI,{field:e,api:t}):G.createElement(KI,{field:e,api:t})))),i.more.length>0&&G.createElement(rk,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(oT,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},G.createElement(nT,{items:i.more,api:t})))}var lT=e=>tL((e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 Z M16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,-5.07265313e-17 13.5,0 L15,0 C15.5522847,1.01453063e-16 16,0.44771525 16,1 L16,2.5 Z M10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 C6,0.223857625 6.22385763,-5.07265313e-17 6.5,0 L9.5,0 C9.77614237,5.07265313e-17 10,0.223857625 10,0.5 Z M1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 5.18696197e-13,2.77614237 5.18696197e-13,2.5 L5.18696197e-13,1 C5.18696197e-13,0.44771525 0.44771525,-1.01453063e-16 1,0 L2.5,0 C2.77614237,5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 5.18696197e-13,15.5522847 5.18696197e-13,15 L5.18696197e-13,13.5 C5.18696197e-13,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M4,7 C7.49095643,7 10,10.1337595 10,12.1872632 C10,12.1872632 8.16051135,9.86624054 4,10 L4,12 C4,12 2.66666667,10.8333333 -1.0658141e-14,8.5 C-2.59348099e-13,8.5 1.33333333,7.33333333 4,5 C4,5 4,5.66666667 4,7 Z"}}]}))(e));var sT=e=>tL((e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M12,7 C12,5.66666667 12,5 12,5 C14.6666667,7.33333333 16,8.5 16,8.5 C13.3333333,10.8333333 12,12 12,12 L12,10 C7.83948865,9.86624054 6,12.1872632 6,12.1872632 C6,10.1337595 8.50904357,7 12,7 Z"}}]}))(e));const cT=(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 uT(e){let{api:t,app:n}=e;const{translator:r}=V.useContext(zx),[o]=function(e){const[t]=GR(e),[n]=QR(t),[r]=JR(e),[o,a]=V.useState(null);return V.useEffect((()=>{r&&t&&n&&cT(t,n,r)}),[r,t,n]),V.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 G.createElement(rk,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},G.createElement(rk,{item:!0},G.createElement(mS,{style:{marginRight:"8px"},disabled:!o||!o.canGoBack,title:r.get("Navigate.Back"),onClick:()=>t.back(),size:"large"},G.createElement(lT,null))),G.createElement(rk,{item:!0},G.createElement(mS,{style:{marginRight:"8px"},disabled:!o||!o.canGoForward,title:r.get("Navigate.Forward"),onClick:()=>t.forward(),size:"large"},G.createElement(sT,null))),G.createElement(rk,{item:!0},G.createElement(mS,{disabled:!o||!o.canClear,title:r.get("Selection.ClearAll"),onClick:()=>t.clear(),size:"large"},G.createElement(D_,null))))}const dT=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function pT(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function fT(){return dT.map(pT).join("")}function hT(e){let{app:t}=e;const n=ey(),[r]=aI(t);return r?G.createElement(rk,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:n.palette.background.paper,minHeight:"40px"}},G.createElement(rk,{item:!0,style:{borderRight:"1px solid ".concat(n.palette.divider)}},G.createElement(uT,{api:r,app:t})),G.createElement(rk,{item:!0,xs:!0,style:{backgroundColor:n.palette.background.darker,overflow:"hidden"}},G.createElement(iT,{api:r,app:t}))):null}let mT;mT="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;let gT=null,vT=null;const bT=mT.clearTimeout,yT=mT.setTimeout,xT=mT.cancelAnimationFrame||mT.mozCancelAnimationFrame||mT.webkitCancelAnimationFrame,ST=mT.requestAnimationFrame||mT.mozRequestAnimationFrame||mT.webkitRequestAnimationFrame;function wT(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__&&gT(this.__resizeRAF__),this.__resizeRAF__=vT((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=mT.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==xT||null==ST?(gT=bT,vT=function(e){return yT(e,20)}):(gT=function([e,t]){xT(e),bT(t)},vT=function(e){const t=ST((function(){bT(n),e()})),n=yT((function(){xT(t),e()}),20);return[t,n]});class ET extends V.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=wT(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),V.createElement(c,{ref:this._setRef,style:{...m,...s},...u},!v&&e(g))}}function CT(e){null==e||e.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")}))}function kT(e){return(null==e?void 0:e.closest(".njs-cell"))||(null==e?void 0:e.closest(".qv-gridcell"))}function RT(e){let{keyboard:t,hovering:n,updateKeyScroll:r,containerRef:o,currentScrollIndex:a,isModal:i,constraints:l}=e;return{handleKeyDown:e=>{const{keyCode:n,shiftKey:r=!1}=e.nativeEvent,a=()=>{e.stopPropagation(),e.preventDefault()};if(!t.enabled)return;const l=e.currentTarget.closest(".listbox-container"),s=i();switch(n){case dO.TAB:if(s)r?hO(l)||fO(l):fO(l)||hO(l);else{if(!r)break;t.blur(!0)}a();break;case dO.ENTER:case dO.SPACE:if(!e.target.classList.contains("listbox-container"))break;t.focus(),a();break;case dO.ESCAPE:(e=>{const{currentTarget:n,target:r}=e,a=r.classList.contains("listbox-container"),i=kT(n.closest(".listbox-container")),l=1===(null==i?void 0:i.querySelectorAll(".listbox-container").length);if(a||l)t.blur(!0);else{CT(o.current),n.classList.add("last-focused"),t.blur();const e=n.closest(".listbox-container");e.setAttribute("tabIndex",-1),null==e||e.focus()}})(e)}},handleOnMouseEnter:()=>{n.current=!0},handleOnMouseLeave:()=>{n.current&&(n.current=!1)},globalKeyDown:e=>{if(!n.current||(()=>{const e=(null==l?void 0:l.select)||(null==l?void 0:l.active),t=i();return e||t})())return;const{keyCode:t,ctrlKey:o=!1,shiftKey:s=!1}=e;switch(t){case dO.ARROW_UP:r({up:1});break;case dO.ARROW_DOWN:r({down:1});break;case dO.PAGE_UP:r({up:a.stop-a.start});break;case dO.PAGE_DOWN:r({down:a.stop-a.start});break;case dO.HOME:r({scrollPosition:o&&s?"overflowStart":"start"});break;case dO.END:r({scrollPosition:o&&s?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const LT=Py("div")((()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"})));function OT(e){let{text:t}=e;const{translator:n}=V.useContext(zx);return G.createElement(LT,null,n.get(t))}const _T={fontSize:"12px"},IT=Py(bx)((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(kL,"px")}}})),TT=Py(rk,{shouldForwardProp:e=>!["styles","isRtl"].includes(e)})((e=>{let{styles:t,isRtl:n}=e;return a(a({flexDirection:n?"row-reverse":"row",wrap:"nowrap",minHeight:32,alignContent:"center"},t.header),{},{"& *":{color:t.header.color}})})),PT=Py(SS)((e=>{let{styles:t}=e;return a(a({},t.header),{},{display:"block",alignItems:"center",paddingRight:"1px"})}));function MT(e){let{translator:t,toggleLock:n,keyboard:r,isLoading:o}=e;const a=t.get("SelectionToolbar.ClickToUnlock");return G.createElement(IT,{title:a,tabIndex:r.enabled?0:-1,onClick:n,"data-testid":"listbox-unlock-button",id:"listbox-unlock-button",isLoading:o},o?G.createElement(_C,{size:16,variant:"indeterminate",color:"primary"}):G.createElement(rL,{disableRipple:!0,style:_T}),!o&&G.createElement(SS,{fontSize:"14px"},a))}var NT=e=>tL((e=>a(a({},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 qT=e=>tL((e=>a(a({},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 zT=e=>tL((e=>a(a({},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 DT="H",AT="C";var jT={createDimensionIconData:e=>{let{dimInfo:t,app:n,selections:r,isPopover:o,active:a}=e;switch(t.qGrouping){case DT:return{icon:qT,tooltip:"Listbox.DrillDown",onClick:void 0};case AT:{const e=n&&a;return{icon:e?zT:NT,tooltip:"Listbox.Cyclic",onClick:e?()=>{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))}:void 0}}default:return}}};const FT=Py(Ox)((()=>({borderRadius:4,width:24,height:24,minWidth:22,padding:0})));function BT(e){let{iconData:t,translator:n,iconStyle:r,disabled:o}=e;if(!t)return;const{icon:i,tooltip:l,onClick:s}=t,c=i,u=n.get(l);return s?G.createElement(FT,{variant:"outlined",onClick:s,tabIndex:-1,title:u,size:"large",disableRipple:!0,disabled:o},G.createElement(c,{style:r})):G.createElement(c,{title:u,size:"large",style:a(a({},r),{},{padding:"".concat(kL,"px")})})}const $T=500;let WT=0;function HT(e){var t,n,r;let{layout:o,translator:i,styles:l,isRtl:c,showLock:u,showSearchIcon:d,constraints:p,onShowSearch:f,classes:h,containerRect:m,isPopover:g,showToolbar:v,showDetachedToolbarOnly:b,containerRef:y,model:x,selectionState:S,isDirectQuery:w,selections:E,keyboard:C,autoConfirm:k,app:R,isInSelection:L}=e;const[O,_]=V.useState(b),[I,T]=V.useState(null==o||null===(t=o.qListObject)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.qLocked),[P,M]=V.useState(!1);V.useEffect((()=>{var e;T(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 N=V.useRef(null),q=jT.createDimensionIconData({dimInfo:null==o||null===(r=o.qListObject)||void 0===r?void 0:r.qDimensionInfo,app:R,selections:E,isPopover:g,active:!(null!=p&&p.active)}),z=u&&I,D=!u&&I,A=d||D||q,j=EL-(A?kL:0),F=c?EL-(A?kL:0):CL,B=(d?RL:0)+(D?RL:0)+(q?RL:0),$=function(e){let{isLocked:t,setLocked:n,settingLockedState:r,model:o,setSettingLockedState:a}=e;return()=>{const e=new Date;if(e-WT<$T)return Promise.resolve();if(r)return()=>{};a(!0),WT=e;const i=t?o.unlock:o.lock;return n(!t),i.call(o,"/qListObjectDef").catch((()=>{n(t)})).finally((()=>{setTimeout((()=>{a(!1)}),0)}))}}({isLocked:I,setLocked:T,settingLockedState:P,setSettingLockedState:M,model:x}),W=I_({layout:o,model:x,translator:i,selectionState:S,isDirectQuery:w}),H=I||!u?void 0:[{key:"lock",type:void 0,label:i.get("SelectionToolbar.ClickToLock"),getSvgIconShape:oL,enabled:()=>!P&&!S.selectDisabled()&&pI(o),action:$}],U=null!=p&&p.active?G.createElement(Y_,{title:i.get("Listbox.Search"),size:"large",style:a(a({},_T),{},{padding:"".concat(kL,"px")})}):G.createElement(mS,{onClick:f,tabIndex:-1,title:i.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},G.createElement(Y_,{style:_T}));V.useEffect((()=>{if(!N.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:N,iconsWidth:B,paddingLeft:j,paddingRight:F});_(b||e)}),[B,j,F,N.current,b,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}=e;return{autoConfirm:c,isDetached:t,show:n&&!t,popover:{show:n&&t,anchorEl:r.current},extraItems:i,more:{enabled:!o,actions:a,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:n,api:l,onConfirm:()=>{null==s||s.focus()},onCancel:()=>{null==s||s.focus()}}}}({isDetached:!g&&O,showToolbar:v,containerRef:y,isLocked:I,extraItems:H,listboxSelectionToolbarItems:W,selections:E,keyboard:C,autoConfirm:k}),Z=G.createElement(J_,s({isRtl:c,layout:o},K));if(b)return Z;const X=D?G.createElement(rL,{size:"large",style:a(a({},_T),{},{padding:"".concat(kL,"px")})}):void 0;return G.createElement(TT,{item:!0,container:!0,styles:l,isRtl:c,marginY:1,paddingLeft:"".concat(j,"px"),paddingRight:"".concat(F,"px"),className:"header-container"},z&&G.createElement(MT,{isLoading:P,translator:i,toggleLock:$,keyboard:C}),A&&G.createElement(rk,{item:!0,container:!0,alignItems:"center",width:B,className:"header-action-container"},X||d&&U,G.createElement(BT,{iconData:q,iconStyle:_T,disabled:L&&g,translator:i})),G.createElement(rk,{item:!0,xs:!0,minWidth:0,justifyContent:c?"flex-end":"flex-start",className:h.listBoxHeader},G.createElement(PT,{variant:"h6",noWrap:!0,ref:N,title:o.title,styles:l},o.title)),G.createElement(rk,{item:!0,display:"flex"},Z))}const UT="ListBoxInline",VT={listBoxHeader:"".concat(UT,"-listBoxHeader"),screenReaderOnly:"".concat(UT,"-screenReaderOnly"),listboxWrapper:"".concat(UT,"-listboxWrapper")},GT=Py(rk,{shouldForwardProp:e=>!["containerPadding","isGridMode","styles"].includes(e)})((e=>{let{theme:t,containerPadding:n,isGridMode:r,styles:o}=e;return a(a({},o.background),{},{["& .".concat(VT.listBoxHeader)]:{alignSelf:"center",display:"flex"},["& .".concat(VT.screenReaderOnly)]:{position:"absolute",height:0,width:0,overflow:"hidden"},["& .".concat(VT.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 KT=G.memo((function(e){var t,n,r,o;let{options:i,layout:l}=e;const{app:s,direction:c,frequencyMode:u,checkboxes:d,search:p=!0,focusSearch:f=!1,rangeSelect:h=!0,model:m,selections:g,update:v,fetchStart:b,postProcessPages:y,calculatePagesHeight:x,showGray:S=!0,scrollState:w,renderedCallback:E,toolbar:C=!0,isPopover:k=!1,showLock:R=!1,components:L,selectDisabled:O=(()=>!1)}=i,_=ey(),{translator:I,keyboardNavigation:T,themeApi:P,constraints:M}=V.useContext(zx),{checkboxes:N=d}=l||{},q=VI({app:s,themeApi:P,theme:_,components:L,checkboxes:N}),z=function(e){let{appLayout:t}=e;return!(null==t||!t.qIsDirectQueryMode)}({appLayout:null==s?void 0:s.layout}),D=V.useRef(),[A,j]=YR(),[F,B]=(()=>{const[e,t]=V.useState({}),n=V.useCallback((e=>{t({current:e})}),[t]);return[e,n]})(),[$,W]=V.useState(!1),[H,U]=V.useState(!1),K=V.useRef(!1),[Z,X]=V.useState({down:0,up:0,scrollPosition:""}),Q=e=>X((t=>a(a({},t),e))),[J,Y]=V.useState({start:0,stop:0}),[ee]=aI(s),[te]=V.useState((()=>uI({selectDisabled:O}))),ne=function(e){let{containerRef:t,enabled:n}=e;const[r,o]=V.useState(!1),a={enabled:n,active:r,innerTabStops:!n||r,blur(e){var r;if(!n)return;o(!1);const a=kT(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)})),CT(t.current),e&&a&&(a.setAttribute("tabIndex",0),a.focus())},focus(){if(!n)return;o(!0);const e=t.current,r=null==e?void 0:e.querySelector(".search input"),a=null==e?void 0:e.querySelector(".value.last-focused"),i=null==e?void 0:e.querySelector(".value.selector, .value"),l=null==e?void 0:e.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),s=null==e?void 0:e.querySelector("#listbox-unlock-button"),c=r||a||i||s||l;null==c||c.setAttribute("tabIndex",0),null==c||c.focus()},focusSelection(){const e=document.querySelector("#listbox-unlock-button"),t=document.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),n=e||t;null==n||n.setAttribute("tabIndex",0),null==n||n.focus()}};return a}({containerRef:D,enabled:T}),re=V.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:s,appSelections:ee})),[s,ee]),oe=null==l?void 0:l.qListObject.qDimensionInfo.qError,ae=oe&&M.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",[ie,le]=V.useState(!1),{handleKeyDown:se,handleOnMouseEnter:ce,handleOnMouseLeave:ue,globalKeyDown:de}=V.useMemo((()=>RT({keyboard:ne,hovering:K,updateKeyScroll:Q,containerRef:D,currentScrollIndex:J,app:s,appSelections:ee,constraints:M,isModal:re})),[ne,K,Q,D,J,s,ee,M,re]);V.useEffect((()=>(document.addEventListener("keydown",de),()=>{document.removeEventListener("keydown",de)})),[de]),V.useEffect((()=>{!0===p&&U(!0);const e=()=>{W(!0),le(!0)},t=()=>{W(!1),le(!1),"toggle"===p&&U(!1)};return k&&(g.isActive()||(g.on("activated",e),g.on("deactivated",t)),W(k)),C&&g&&(g.isModal()||(g.on("activated",e),g.on("deactivated",t)),W(g.isActive())),()=>{g&&g.removeListener&&(g.removeListener("activated",e),g.removeListener("deactivated",t))}}),[C,g,k]),V.useEffect((()=>{if(F&&F.current&&(p&&f||"toggle"===p&&H)){const e=F.current.querySelector("input");e&&e.focus()}}),[F&&F.current,H,p,f]);const{wildCardSearch:pe,searchEnabled:fe,autoConfirm:he=!1,layoutOptions:me={}}=null!=l?l:{},ge=null==l||null===(t=l.qListObject)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.qLocked,ve=!1!==fe&&"toggle"===p&&!ge,be=(null==l||null===(n=l.title)||void 0===n?void 0:n.length)&&!1!==(null==l?void 0:l.showTitle),ye=C&&!be&&!k,xe=C&&be||k,Se="rtl"===c;if(!m||!l||!I)return null;const we=!0===p||"toggle"===p&&H&&!1!==fe,Ee=null!==(r=me.dense)&&void 0!==r&&r,Ce=()=>{U(!H)},ke=()=>{if("toggle"===p)Ce();else{const e=F.current.querySelector("input");null==e||e.focus()}},Re=we&&"toggle"===p,Le="grid"===(null==me?void 0:me.dataLayout),Oe=function(e){let t,{isGridMode:n,dense:r,height:o,layoutOrder:a}=e;if(n){let e;e=KO({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:Le,dense:Ee,height:null===(o=D.current)||void 0===o?void 0:o.clientHeight,layoutOrder:me.layoutOrder});oe&&(null==E||E());const _e=xe?qL+OL:0,Ie=G.createElement(HT,{app:s,showSearchIcon:ve,onShowSearch:Ce,isPopover:k,showToolbar:$,isDirectQuery:z,autoConfirm:he,showDetachedToolbarOnly:ye,layout:l,translator:I,styles:q,isRtl:Se,showLock:R,constraints:M,classes:VT,containerRect:j,containerRef:D,model:m,selectionState:te,selections:g,keyboard:ne,isInSelection:ie});return G.createElement(G.Fragment,null,ye&&Ie,G.createElement(GT,{className:"listbox-container",container:!0,tabIndex:ne.enabled?-1:void 0,direction:"column",gap:0,containerPadding:Oe,styles:q,style:{height:"100%",flexFlow:"column nowrap"},onKeyDown:se,onMouseEnter:ce,onMouseLeave:ue,ref:e=>{D.current=e,A(e)},isGridMode:Le,"aria-label":ne.active?I.get("Listbox.ScreenReaderInstructions"):""},xe&&Ie,G.createElement(rk,{item:!0,container:!0,direction:"column",height:"100%",minHeight:_e,role:"region","aria-label":I.get("Listbox.ResultFilterLabel")},G.createElement(rk,{item:!0,ref:B},G.createElement(oI,{selections:g,selectionState:te,model:m,dense:Ee,keyboard:ne,visible:we,search:p,autoFocus:Re,wildCardSearch:pe,searchEnabled:fe,direction:c,hide:ve&&Ce,styles:q})),G.createElement(rk,{item:!0,xs:!0,className:VT.listboxWrapper},oe?G.createElement(OT,{text:ae}):G.createElement(ET,null,(e=>{let{height:t,width:n}=e;return G.createElement(k_,{model:m,app:s,constraints:M,layout:l,selections:g,selectionState:te,direction:c,frequencyMode:u,rangeSelect:h,checkboxes:N,height:t,width:n,update:v,fetchStart:b,postProcessPages:y,calculatePagesHeight:x,keyboard:ne,showGray:S,scrollState:w,keyScroll:{state:Z,reset:()=>X({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:J,set:Y},renderedCallback:E,onCtrlF:ke,isModal:re,styles:q})}))))))}));function ZT(e){let{options:t={}}=e;const{model:n}=t,[r]=QR(n);return G.createElement(KT,{options:t,layout:r})}function XT(e){let{app:t,qId:n,options:r={}}=e;const[o,a]=V.useState(),[i]=HR(),{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 V.useEffect((()=>{Promise.resolve(l||async function(e){return i.get(e)||await t.getObject(e)}(n)).then((e=>{!function(e){i.get(e.id)||(i.set(e.id,e),e.once("closed",(()=>{i.clear(e.id)})))}(e),a(e)}))}),[]),o}const QT={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 JT(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 YT=["__DO_NOT_USE__"],eP=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{__DO_NOT_USE__:t={}}=e,n={update:void 0,fetchStart:void 0,showGray:!0,focusSearch:!1,sessionModel:void 0,selectionsApi:void 0,selectDisabled:void 0,postProcessPages:void 0,calculatePagesHeight:!1};return a(a(a({},c(e,YT)),n),t)};function tP(e){let{app:t,fieldIdentifier:n,qId:r,stateName:o,element:i,options:l,renderedCallback:s}=e;const{isExistingObject:c,hasExternalSelectionsApi:u}=function(e){let{qId:t,options:n}=e;return{isExistingObject:!(!t&&!n.sessionModel),hasExternalSelectionsApi:!!n.selectionsApi}}({qId:r,options:l});c||Object.assign(l,{frequencyMode:JT(l.frequencyMode)});const[d,p]=V.useState(0);V.useEffect((()=>{if(d)throw new Error("Source or selection Api can not change after a listbox has been mounted");p(d+1)}),[c,u]);const f=c?XT({app:t,qId:r,options:l}):function(e){var t;let{app:n,fieldIdentifier:r,stateName:o,options:a={}}=e;const[i,l]=V.useState(""),[s,c]=V.useState(!0),[u,d]=V.useState(),[p,f]=V.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"),V.useEffect((()=>{const e=m||"N"!==g;r.qLibraryId&&e?async function(){try{const e=await n.getDimension(r.qLibraryId),t=await e.getLayout();f(t.qDim.title),"N"===t.qDim.qGrouping?l(t.qDim.qFieldDefs?t.qDim.qFieldDefs[0]:""):l({multiFieldDim:!0}),c(!1)}catch(e){throw c(!1),l({failedToFetchFieldDef:!0}),new Error("Disabling frequency count and histogram: ".concat(e&&e.message))}}():(c(!1),f(r))}),[]);const{dense:v,checkboxes:b,listLayout:y,properties:x={}}=a,S={dense:v};"horizontal"===y&&(S.dataLayout="grid",S.layoutOrder="column",S.maxVisibleColumns={auto:!0},S.maxVisibleRows={auto:!1,maxRows:1});const w=V.useRef();w.current||(w.current=fT());const E=Ue(!0,{},QT,{qInfo:{qId:w.current},qListObjectDef:{qStateName:o,qFrequencyMode:m&&"N"===g?"V":g},histogram:m,checkboxes:b,layoutOptions:S,title:h});let C;if(Ue(!0,E,x),r.qLibraryId?(E.qListObjectDef.qLibraryId=r.qLibraryId,C=r.qLibraryId):(E.qListObjectDef.qDef.qFieldDefs=[r],C=r),"P"!==g&&m)if(null!=i&&i.multiFieldDim)E.frequencyMax="fetch";else{const e=r.qLibraryId?i:C;E.frequencyMax={qValueExpression:x_(e)}}const[k]=UR(E,s?null:n,C,o);return V.useEffect((()=>{k&&d(k)}),[k]),u}({app:t,fieldIdentifier:n,stateName:o,options:l}),h=V.useRef(i),m=u?l.selectionsApi:cI(t,f,[h,".njs-action-toolbar-more",".njs-action-toolbar-popover"],l)[0],g=V.useMemo((()=>a(a({},l),{},{selections:m,model:f,app:t,renderedCallback:s})),[l,m,f,t]);return m&&f?G.createElement(ZT,{options:g}):null}const nP={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function rP(e){let{app:t,fieldIdentifier:n,stateName:r,element:o,options:a={}}=e;const[i,l]=V.useState(!!a.show);return G.createElement(GI,{show:i,app:t,alignTo:{current:o},anchorOrigin:a.anchorOrigin,transformOrigin:a.transformOrigin,close:()=>{l(!1),a.onPopoverClose&&a.onPopoverClose()},fieldName:n,stateName:r,autoFocus:a.autoFocus,components:a.components})}function oP(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function aP(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 iP=e=>({qDef:{qFieldDefs:[e]}}),lP=e=>({qDef:{qDef:e}});function sP(e){let{dc:t,def:n,properties:r}=e;t.qDimensions=t.qDimensions||[],t.qMeasures=t.qMeasures||[],t.qInterColumnSortOrder=t.qInterColumnSortOrder||[],t.qInitialDataFetch=t.qInitialDataFetch||[],t.qColumnOrder=t.qColumnOrder||[],t.qExpansionState=t.qExpansionState||[];const o=r,i={dimensions:()=>t.qDimensions,measures:()=>t.qMeasures,addDimension(e){const r="string"==typeof e?iP(e):a(a({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||fT(),r.qDef.qSortCriterias=r.qDef.qSortCriterias||[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],r.qOtherTotalSpec=r.qOtherTotalSpec||{},r.qAttributeExpressions=r.qAttributeExpressions||[],r.qAttributeDimensions=r.qAttributeDimensions||[],t.qDimensions.length<i.maxDimensions()?(t.qDimensions.push(r),oP(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 aP(t.qInterColumnSortOrder,e),n.dimensions.removed(r,o,e),r},addMeasure(e){const r="string"==typeof e?lP(e):a(a({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||fT(),r.qSortBy=r.qSortBy||{qSortByLoadOrder:1,qSortByNumeric:-1},r.qAttributeDimensions=r.qAttributeDimensions||[],r.qAttributeExpressions=r.qAttributeExpressions||[],t.qMeasures.length<i.maxMeasures()?(t.qMeasures.push(r),oP(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];aP(t.qInterColumnSortOrder,t.qDimensions.length+e),n.measures.removed(r,o,e)},maxDimensions:()=>n.dimensions.max(t.qMeasures.length),maxMeasures:()=>n.measures.max(t.qDimensions.length),canAddDimension:()=>t.qDimensions.length<i.maxDimensions(),canAddMeasure:()=>t.qMeasures.length<i.maxMeasures()};return i}const cP=e=>({qDef:{qFieldDefs:[e]}});function uP(e){let{dc:t,def:n,properties:r}=e;t.qInitialDataFetch=t.qInitialDataFetch||[];const o=r,i={dimensions:()=>t.qLibraryId||t.qDef&&t.qDef.qFieldDefs&&0!==t.qDef.qFieldDefs.length?[t]:[],measures:()=>[],addDimension(e){const r="string"==typeof e?cP(e):a(a({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||fT(),r.qDef.qSortCriterias=t.qDef.qSortCriterias||[{qSortByState:1,qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],Object.keys(r).forEach((e=>{t[e]=r[e]})),n.dimensions.added(r,o),r},removeDimension(e){const r=t;return delete t.qDef,delete t.qLibraryId,n.dimensions.removed(r,o,e),r},addMeasure(){},removeMeasure(){},maxDimensions:()=>1,maxMeasures:()=>0,canAddDimension:()=>0===i.dimensions().length,canAddMeasure:()=>!1};return i}const dP=e=>({qDef:{qFieldDefs:[e]}}),pP=e=>{let t;return t="string"==typeof e?Ue(!0,{},QT,{qListObjectDef:dP(e)}):e.qListObjectDef?Ue(!0,{},QT,e):Ue(!0,{},QT,{qListObjectDef:e}),t};function fP(e){let{children:t,halo:n}=e;const r={async addDimension(e){const r=pP(e),o=r.qListObjectDef;if(o.qDef.cId=o.qDef.cId||fT(),!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 hP(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 mP(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")?uP:e.match("/qChildListDef")?fP:sP}(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"===hP(t)?await d.addMeasure(t):await d.addDimension(t)}}var gP={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 vP={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 bP=2**53-1;function yP(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function xP(e,t){const n=Ue(!0,{},t,e);return gP.getValue(n,"qOtherTotalSpec.qOtherCounted")||gP.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),gP.getValue(n,"qOtherTotalSpec.qOtherLimit")||gP.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function SP(e,t){return Ue(!0,{},t,e)}function wP(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var EP={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===gP.getValue(e,t)&&gP.setValue(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:yP,importCommonProperties:function(e,t,n){const r="masterobject"===gP.getValue(t,"properties.qInfo.qType")?"masterobject":gP.getValue(n,"qInfo.qType");gP.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:xP,createDefaultMeasure:SP,resolveValue:wP,getHypercubePath:function(e){const t=gP.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?(vP.indexAdded(n.qInterColumnSortOrder,a),++a):(--a,vP.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?gP.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||yP(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=wP(a.max,r.dimensions.length,bP),l=wP(a.min,r.dimensions.length,0);return{maxDimensions:wP(o.max,i,bP),minDimensions:wP(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(xP(i.dimensions[l],a)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(xP(i.dimensions[l],a));else if(i.dimensions.length)for(l=0;l<i.dimensions.length;++l)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(xP(i.dimensions[l],a));if(i.excludedDimensions.length)for(l=0;l<i.excludedDimensions.length;++l)o.qDimensions.length<r?o.qDimensions.push(xP(i.excludedDimensions[l],a)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(xP(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(SP(i.measures[l],a)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(SP(i.measures[l],a));else if(i.measures.length)for(l=0;l<i.measures.length;++l)o.qLayoutExclude.qHyperCubeDef.qMeasures.push(SP(i.measures[l],a));if(i.excludedMeasures.length)for(l=0;l<i.excludedMeasures.length;++l)o.qMeasures.length<r?o.qMeasures.push(SP(i.excludedMeasures[l],a)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(SP(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=gP.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=gP.getValue(t,r||"").qHyperCubeDef,o=[...e.qMeasures];e.qMeasures=[],o.forEach((r=>{e.qMeasures.push(r),n.measures.added(r,t)}))}}};var CP={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=gP.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();vP.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&&(EP.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!gP.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=EP.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:a}),s=gP.getValue(n,a||"").qHyperCubeDef,c=gP.getValue(l,a||"").qHyperCubeDef,{maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f}=EP.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:h=EP.getDefaultDimension(),defaultMeasure:m=EP.getDefaultMeasure()}=o;return c.qDimensions.length=0,c.qMeasures.length=0,EP.shouldInitLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f})&&EP.initLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f,newHyperCubeDef:c}),EP.addDefaultDimensions({exportFormat:t,maxDimensions:u,minDimensions:d,newHyperCubeDef:c,defaultDimension:h}),EP.addDefaultMeasures({exportFormat:t,maxMeasures:p,minMeasures:f,newHyperCubeDef:c,defaultMeasure:m}),EP.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:c}),EP.copyPropertyIfExist("qMaxStackedCells",s,c),EP.copyPropertyIfExist("qNoOfLeftDims",s,c),EP.copyPropertyOrSetDefault("qInitialDataFetch",s,c,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),EP.copyPropertyOrSetDefault("qMode",s,c,"S"),EP.copyPropertyOrSetDefault("qReductionMode",s,c,"N"),EP.copyPropertyOrSetDefault("qSortbyYValue",s,c),EP.copyPropertyOrSetDefault("qIndentMode",s,c),EP.copyPropertyOrSetDefault("qShowTotalsAbove",s,c),EP.importCommonProperties(l,t,n),EP.updateDimensionsOnAdded({newProperties:l,dataDefinition:r,hypercubePath:a}),EP.updateMeasuresOnAdded({newProperties:l,dataDefinition:r,hypercubePath:a}),i.qProperty=l,i}(e)};const kP=e=>gP.getValue(e,"data.targets.0.propertyPath"),RP=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return CP.exportProperties})(kP(e))},LP=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return CP.importProperties})(kP(e))},OP=async e=>{let{halo:t,model:n,cellRef:r,newType:o,properties:i,viewDataMode:l=!1}=e;const s=i?{qProperty:i}:await n.getFullPropertyTree(),c=r.current.getQae(),u=RP(c);if(!u)throw new Error("Source chart does not support conversion");const d=await(async e=>{let{halo:t,name:n,version:r}=e;const{types:o}=t;return await o.get({name:n,version:r}).supernova()})({halo:t,name:o}),p=d.qae,f=LP(p);if(!f)throw new Error("Target chart does not support conversion");return f({exportFormat:u({propertyTree:s,hypercubePath:EP.getHypercubePath(c),viewDataMode:l}),initialProperties:a({qInfo:{qType:o},visualization:o},gP.getValue(p,"properties.initial",{})),dataDefinition:gP.getValue(p,"data.targets.0.",{}),hypercubePath:EP.getHypercubePath(p),viewDataMode:l})},_P={hypercube:CP};var IP=e=>tL((e=>a(a({},e),{},{shapes:[{type:"path",attrs:{d:"M8.86225926,1.6 L15.7815749,13.5 C16.2829746,14.3 15.8818548,15 14.9793354,15 L1.04042422,15 C0.0853772072,15 -0.232971797,14.3650794 0.172002787,13.6135407 L7.05722041,1.6 C7.55862009,0.8 8.36085958,0.8 8.86225926,1.6 Z M7.962,2.007 C7.95987183,2.02476599 7.95607967,2.03712023 7.94920396,2.05249845 L1.1033193,14 L14.915544,14 L7.99777452,2.10265906 L7.97779697,2.06138411 L7.96394459,2.01964415 L7.962,2.007 Z M7.5,11 L8.5,11 C8.76666667,11 8.95432099,11.1580247 8.99272977,11.4038409 L9,11.5 L9,12.5 C9,12.7666667 8.84197531,12.954321 8.59615912,12.9927298 L8.5,13 L7.5,13 C7.23333333,13 7.04567901,12.8419753 7.00727023,12.5961591 L7,12.5 L7,11.5 C7,11.2333333 7.15802469,11.045679 7.40384088,11.0072702 L7.5,11 L8.5,11 L7.5,11 Z M7.5,5 L8.5,5 C8.76666667,5 8.95432099,5.15802469 8.99272977,5.40384088 L9,5.5 L9,9.5 C9,9.76666667 8.84197531,9.95432099 8.59615912,9.99272977 L8.5,10 L7.5,10 C7.23333333,10 7.04567901,9.84197531 7.00727023,9.59615912 L7,9.5 L7,5.5 C7,5.23333333 7.15802469,5.04567901 7.40384088,5.00727023 L7.5,5 L8.5,5 L7.5,5 Z"}}]}))(e));function TP(e){let{d:t}=e;const n=ey();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=G.createElement(SS,{style:{lineHeight:"30px",paddingRight:n.spacing(1)}},G.createElement(pk,null,t.missing||t.error?G.createElement(IP,{style:a}):G.createElement(yL,{style:a})));return G.createElement(rk,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},G.createElement(rk,{item:!0},i),G.createElement(rk,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},G.createElement(SS,{noWrap:!0,component:"p"},G.createElement(SS,{component:"span",variant:"subtitle2",color:r},t.description),G.createElement(SS,{component:"span"}," "),G.createElement(SS,{component:"span",variant:"subtitle2",color:t.error?"error":"inherit",style:{fontWeight:400}},t.label))))}function PP(e){let{data:t}=e;const n=ey();return G.createElement(rk,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},t.map(((e,t)=>{const r=e.descriptions.map(((e,t)=>G.createElement(TP,{d:e,key:t})));return r.length>0&&G.createElement(rk,{container:!0,item:!0,key:t,direction:"column",style:{paddingBottom:n.spacing(2)}},G.createElement(SS,{noWrap:!0,key:t,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),r)})))}function MP(e){let{title:t="Error",message:n="",data:r=[]}=e;return G.createElement(rk,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},G.createElement(rk,{item:!0},G.createElement(IP,{style:{fontSize:"38px"}})),G.createElement(rk,{item:!0},G.createElement(SS,{variant:"h6",align:"center","data-tid":"error-title"},t)),G.createElement(rk,{item:!0},G.createElement(SS,{variant:"subtitle1",align:"center","data-tid":"error-message"},n)),G.createElement(PP,{data:r}))}const NP=["size"],qP="Progress",zP={root:"".concat(qP,"-root"),front:"".concat(qP,"-front"),back:"".concat(qP,"-back")},DP=Py("div")((e=>{let{theme:t}=e;return{["&.".concat(zP.root)]:{position:"relative",display:"inline-block"},["& .".concat(zP.front)]:{color:t.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(zP.back)]:{color:t.palette.divider}}})),AP={small:16,medium:32,large:64,xlarge:128};function jP(e){let{size:t="medium"}=e,n=c(e,NP);const r=AP[t];return G.createElement(DP,{className:zP.root},G.createElement(_C,s({variant:"determinate",value:100,className:zP.back,size:r,thickness:3},n)),G.createElement(_C,s({variant:"indeterminate",disableShrink:!0,className:zP.front,size:r,thickness:3},n)))}const FP=["cancel","translator"],BP=["retry","translator"],$P={stripes:"".concat("LongRunningQuery","-stripes")},WP=Py(rk)((()=>({["& .".concat($P.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 HP(e){let{cancel:t,translator:n}=e,r=c(e,FP);return G.createElement(G.Fragment,null,G.createElement(WP,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},G.createElement(rk,{item:!0},G.createElement(jP,null)),G.createElement(rk,{item:!0},G.createElement(SS,{variant:"h6",align:"center","data-tid":"update-active"},n.get("Object.Update.Active")))),G.createElement(rk,s({item:!0},r),G.createElement(Ox,{variant:"contained",onClick:t},n.get("Cancel"))))}function UP(e){let{retry:t,translator:n}=e,r=c(e,BP);return G.createElement(G.Fragment,null,G.createElement(rk,{item:!0},G.createElement(IP,{style:{fontSize:"38px"}})),G.createElement(rk,{item:!0},G.createElement(SS,{variant:"h6",align:"center","data-tid":"update-cancelled"},n.get("Object.Update.Cancelled"))),G.createElement(rk,{item:!0},G.createElement(Ox,s({variant:"contained",onClick:t},r),n.get("Retry"))))}function VP(e){let{canCancel:t,canRetry:n,api:r}=e;const{translator:o}=V.useContext(zx);return G.createElement(rk,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:$P.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t&&G.createElement(HP,{cancel:r.cancel,translator:o,className:$P.cancel}),n&&G.createElement(UP,{retry:r.retry,translator:o,className:$P.retry}))}function GP(){return G.createElement(rk,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},G.createElement(jP,{size:"large"}))}const KP="Header",ZP={containerStyle:"".concat(KP,"-containerStyle"),containerTitleStyle:"".concat(KP,"-containerTitleStyle")},XP=Py(rk)((e=>{let{theme:t}=e;return{["&.".concat(ZP.containerStyle)]:{flexGrow:0},["&.".concat(ZP.containerTitleStyle)]:{paddingBottom:t.spacing(1)}}})),QP="njs-cell-title",JP="njs-cell-sub-title";function YP(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]=V.useState([]),[p,f]=YR(),[h,m]=V.useState(!1);V.useEffect((()=>{n&&n.component&&n.component.isHooked&&n.component.observeActions((e=>{d([...e,...n&&n.selectionToolbar&&n.selectionToolbar.items||[]])}))}),[n]),V.useEffect((()=>{if(!f)return;const{width:e}=f;m(e<221)}),[f]);const g=l||s,v=[ZP.containerStyle,...g?[ZP.containerTitleStyle]:[]],b=(o||c)&&(h||!g),y=g&&!b&&!h,x=G.createElement(J_,{show:y,selections:{show:c,api:n.component.selections,onKeyDeactivate:a.refocusContent},actions:u,popover:{show:b,anchorEl:r},focusHandler:a,layout:t});return G.createElement(XP,{ref:p,item:!0,container:!0,wrap:"nowrap",className:v.join(" ")},G.createElement(rk,{item:!0,zeroMinWidth:!0,xs:!0},G.createElement(rk,{container:!0,wrap:"nowrap",direction:"column"},l&&G.createElement(SS,{variant:"h6",noWrap:!0,className:QP,style:i.main},t.title),s&&G.createElement(SS,{variant:"body2",noWrap:!0,className:JP,style:i.subTitle},t.subtitle))),G.createElement(rk,{item:!0},x))}const eM={itemStyle:"".concat("Footer","-itemStyle")},tM=Py(rk)((e=>{let{theme:t}=e;return{["& .".concat(eM.itemStyle)]:{minWidth:0,paddingTop:t.spacing(1)}}})),nM="njs-cell-footer";function rM(e){let{layout:t,titleStyles:n={}}=e;return t&&t.showTitles&&t.footnote?G.createElement(tM,{container:!0},G.createElement(rk,{item:!0,className:eM.itemStyle},G.createElement(SS,{noWrap:!0,variant:"body2",className:nM,style:n.footer},t.footnote))):null}class oM{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 aM="njs-viz";function iM(e){let{sn:t,snOptions:n,snPlugins:r,layout:o,appLayout:i,halo:l}=e;const{component:s}=t,{theme:c,language:u,constraints:d,interactions:p,keyboardNavigation:f}=V.useContext(zx),[h]=V.useState((()=>new oM)),[m,g]=V.useState(!1),[v,b]=V.useState(0),[y,x,S]=YR(),[w,E]=V.useState(null),C=V.useCallback((e=>{e&&E(e)}),[]);return V.useEffect((()=>{if(w)return s.created({options:n}),s.mounted(w),g(!0),()=>{h.stop(),s.willUnmount()}}),[w,s]),V.useEffect((()=>{m&&w&&x&&(!s.isHooked&&o&&o.qSelectionInfo&&o.qSelectionInfo.qInSelections||h.schedule((()=>{const e=[];return d.passive||e.push("passive"),d.active||e.push("interact"),d.select||e.push("select"),d.edit||e.push("edit"),l.app&&l.app.session&&e.push("fetch"),Promise.resolve(s.render({layout:o,options:n,plugins:r,embed:l.public.nebbie,context:a({constraints:d,interactions:p,theme:l.public.theme,appLayout:i,keyboardNavigation:f},s.isHooked?{}:{logicalSize:t.logicalSize({layout:o}),localeInfo:(i||{}).qLocaleInfo,permissions:e})})).then((e=>{!1!==e&&(0===v&&"function"==typeof n.onInitialRender&&n.onInitialRender.call(null),b(v+1))}))})))}),[x,n,r,w,S,o,i,c,u,d,p,m,f]),G.createElement("div",{ref:y,"data-render-count":v,style:{position:"relative",height:"100%"},className:aM},G.createElement("div",{ref:C,style:{position:"absolute",width:"100%",height:"100%"}}))}const lM=(e,t,n,r)=>{const o=V.useMemo((()=>{if(e&&t){const r=e.components?e.components.find((e=>"general"===e.key)):null,o={main:AI(r,"main",t,e.visualization),footer:AI(r,"footer",t,e.visualization),subTitle:AI(r,"subTitle",t,e.visualization)},a=zI(r,t,e.visualization),i=qI(r,n),l=function(e,t,n){const r=TI(null==e?void 0:e.borderColor,"","borderColor",t,n),o=(null==e?void 0:e.borderWidth)||_I("","borderWidth",t,n);return o&&r?"".concat(o," solid ").concat(r):void 0}(r,t,e.visualization),s=function(e,t,n){return(null==e?void 0:e.borderRadius)||_I("","borderRadius",t,n)}(r,t,e.visualization);return{titleStyles:o,bgColor:a,bgImage:i,border:l,borderRadius:s,boxShadow:DI(r,t,e.visualization)}}return{}}),[e,t,n,r]);return o},sM="njs-cell",cM=(e,t)=>{switch(t.type){case"LOADING":return a(a({},e),{},{loading:!0});case"LOADED":return a(a({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization});case"RENDER":return a(a({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null});case"LONG_RUNNING_QUERY":return a(a({},e),{},{longRunningQuery:!0});case"ERROR":return a(a({},e),{},{loading:!1,longRunningQuery:!1,error:t.error});default:throw new Error("Unhandled type: ".concat(t.type))}};function uM(e){let{delay:t=750}=e;const[n,r]=V.useState(!1);return V.useEffect((()=>{const e=setTimeout((()=>r(!0)),t);return()=>clearTimeout(e)}),[]),n?G.createElement(GP,null):null}const dM=e=>!e.qError||7005===e.qError.qErrorCode,pM=(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}})),fM=e=>e&&(Array.isArray(e)?e:[e])||[],hM=(e,t,n,r)=>{const o=r.dimensions.min(),a=r.measures.min(),i=r.resolveLayout(t);return{reqDimErrors:pM(o,fM(i.qDimensionInfo||i.qItems),(e=>r.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:pM(a,fM(i.qMeasureInfo),(e=>r.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},mM=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=fM(f.qDimensionInfo||f.qItems).filter(dM),m=fM(f.qMeasureInfo).filter(dM);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=hM(e,t,n,i);u.push(...o.reqDimErrors),d.push(...o.reqMeasErrors)}}const f=u.filter((e=>!(e.missing||e.error))).length,h=e.get("Visualization.Incomplete.Dimensions",[f,i]),m=d.filter((e=>!(e.missing||e.error))).length,g=e.get("Visualization.Incomplete.Measures",[m,l]),v=[{title:h,descriptions:[...u]},{title:g,descriptions:[...d]}],b=s?c:v;return[s||a,{title:s?c[0].title:e.get("Visualization.Incomplete"),data:b}]},gM=V.forwardRef(((e,t)=>{let{halo:n,model:r,initialSnOptions:o,initialSnPlugins:i,initialError:l,onMount:s,currentId:c,emitter:u}=e;const{app:d,types:p}=n,{nebbie:f}=n.public,{theme:h,translator:m,language:g,keyboardNavigation:v,disableCellPadding:b=!1}=V.useContext(zx),y=ey(),[x,S,w]=YR(),[E,C]=V.useReducer(cM,{loading:!1,loaded:!1,longRunningQuery:!1,error:(k=l)?{title:k.message}:null,sn:null,visualization:null});var k;const[R,L]=V.useState(r),[O,{validating:_,canCancel:I,canRetry:T},P]=QR(R),[M]=JR(d),[N,q,z]=YR(),[D,A]=V.useState(o),[j,F]=V.useState(i),B="njs-cell-".concat(c),[$]=cI(d,R,["#".concat(B),".njs-action-toolbar-popover"]),[W,H]=V.useState(!1),U=V.useRef({enter:null,leave:null}),{titleStyles:K,bgColor:Z,bgImage:X,border:Q,borderRadius:J,boxShadow:Y}=lM(O,n.public.theme,n.app,h),ee=V.useRef({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});V.useEffect((()=>{iI(ee.current)}),[]),ee.current.blurCallback=e=>{n.root.toggleFocusOfCells(),e&&z&&z.focus()},ee.current.refocusContent=()=>{E.sn.component&&"function"==typeof E.sn.component.focus&&E.sn.component.focus()};V.useEffect((()=>{if(l)return void s();if(!M||!O)return;if(E.visualization===O.visualization&&E.sn)return void(async e=>{const[t,n]=await mM(m,O,e.generator.qae.data,R);C(t?{type:"ERROR",error:n}:{type:"RENDER"}),(e=>{let{sn:t,layout:n,model:r}=e;const o=t&&t.component&&t.component.selections;if(o&&o.id&&r.id&&o.id===r.id){if(n&&n.qSelectionInfo&&n.qSelectionInfo.qInSelections&&!o.isModal()){const{targets:e}=t.generator.qae.data,n=e[0].propertyPath;o.goModal(n)}n.qSelectionInfo&&n.qSelectionInfo.qInSelections||o.isModal()&&o.noModal()}})({sn:E.sn,layout:O,model:R})})(E.sn);const e=p.getSupportedVersion(O.visualization,O.version);return(async(e,t)=>{C({type:"LOADING"}),await(async e=>{let{dispatch:t,types:n,visualization:r,version:o,model:a,app:i,selections:l,nebbie:s,focusHandler:c,emitter:u,onMount:d}=e;try{const e=await(async e=>{let{types:t,name:n,version:r}=e;return await t.get({name:n,version:r}).supernova()})({types:n,name:r,version:o}),p=e.create({model:a,app:i,selections:l,nebbie:s,focusHandler:c,emitter:u});p&&(t({type:"LOADED",sn:p,visualization:r}),d())}catch(e){t(o?{type:"ERROR",error:{title:e.message}}:{type:"ERROR",error:{title:"Could not find a version of '".concat(r,"' that supports current object version. Did you forget to register ").concat(r,"?")}}),d()}})({dispatch:C,types:p,visualization:e,version:t,model:R,app:d,selections:$,nebbie:f,focusHandler:ee.current,emitter:u,onMount:s})})(O.visualization,e),()=>{}}),[p,E.sn,R,$,O,M,g]),V.useEffect((()=>{if(!_)return;const e=setTimeout((()=>C({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[_]),V.useImperativeHandle(t,(()=>({getQae:()=>E.sn.generator.qae,toggleFocus(e){"function"==typeof E.sn.component.focus&&(e?E.sn.component.focus():E.sn.component.blur())},setSnOptions:A,setSnPlugins:F,setModel:L,getImperativeHandle(){var e;return null!==(e=E.sn)&&void 0!==e&&e.component&&"function"==typeof E.sn.component.getImperativeHandle?E.sn.component.getImperativeHandle():{}},async takeSnapshot(){const{width:e,height:t}=S;let n=JSON.parse(JSON.stringify(O));return"function"==typeof E.sn.component.setSnapshotData&&(n=await E.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:m.language(),theme:y.name,appLayout:M,size:{width:Math.round(e),height:Math.round(t)}},layout:n}},async exportImage(){if("function"!=typeof n.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const e=await this.takeSnapshot();return n.config.snapshot.capture(e)}})),[E.sn,q,S,O,y.name,M]);let te=null;return E.loading&&!E.longRunningQuery?te=G.createElement(uM,null):E.error?te=G.createElement(MP,E.error):E.loaded&&(te=G.createElement(iM,{key:O.visualization,sn:E.sn,halo:n,snOptions:D,snPlugins:j,layout:O,appLayout:M})),G.createElement(eS,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:Z||"unset",backgroundImage:X&&X.url?"url(".concat(X.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:X&&X.size,backgroundPosition:X&&X.pos,border:Q,borderRadius:J,boxShadow:Y,boxSizing:"border-box"},elevation:0,square:!0,className:sM,ref:x,id:B,onMouseEnter:()=>{U.current.leave&&clearTimeout(U.current.leave),U.enter||(U.current.enter=setTimeout((()=>{H(!0),U.current.enter=null}),250))},onMouseLeave:()=>{U.current.enter&&clearTimeout(U.current.enter),U.current.leave||(U.current.leave=setTimeout((()=>{H(!1),U.current.leave=null}),750))}},G.createElement(rk,{container:!0,direction:"column",gap:0,style:a(a({position:"relative",width:"100%",height:"100%"},b?{}:{padding:y.spacing(1)}),E.longRunningQuery?{opacity:"0.3"}:{})},w&&O&&E.sn&&G.createElement(YP,{layout:O,sn:E.sn,anchorEl:w,hovering:W,focusHandler:ee.current,titleStyles:K}," "),G.createElement(rk,{tabIndex:v?0:-1,onKeyDown:v?e=>{["Enter"," ","Spacebar"].includes(e.key)&&n.root.toggleFocusOfCells(c)}:null,item:!0,xs:!0,style:{height:"100%"},ref:N},te),w&&O&&E.sn&&G.createElement(rM,{layout:O,titleStyles:K})),E.longRunningQuery&&G.createElement(VP,{canCancel:I,canRetry:T,api:P}))}));function vM(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function bM(){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 vM(e)&&vM(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(...bM("".concat(e).concat(o,"/"),t[o],n[o]))})),r}function yM(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 xM=e=>{var t;return!(!e||e.qHasSoftPatches||e.qExtendsId||!(((null===(t=e.qMeta)||void 0===t?void 0:t.privileges)||[]).indexOf("update")>-1))},SM=(e,t)=>e.__snInterceptor?e.__snInterceptor.setProperties.call(e,t):e.setProperties(t),wM=Ue.bind(null,!0),EM={},{isArray:CM}=Array;function kM(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function RM(e){return void 0===e}function LM(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function OM(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]=RM(e[r||t])?a:e[t],e=e[r||t]})),e}function _M(e,t){let n=!0;if(kM(e)&&kM(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{_M(e[r],t[r])||(n=!1)})),n);if(CM(e)&&CM(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!_M(e[n],t[n]))return!1;return!0}return e===t}EM.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const a=function(e){return e?wM({},{val:e}).val:e}(t[o]),i=e[o],l="".concat(n,"/").concat(o);_M(a,i)||LM(t,o)||(RM(i)?r.push({op:"add",path:l,value:a}):kM(a)&&kM(i)?r=r.concat(EM.generate(i,a,l)):CM(a)&&CM(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]&&RM(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(_M(t,o))return r;if(!RM(t[0])&&RM(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(EM.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=>{RM(t[o])&&!LM(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},EM.apply=function(e,t){t.forEach((t=>{let n=OM(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(CM(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(CM(o)&&CM(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(kM(o)&&kM(t.value))i=o,Object.keys(i).forEach((e=>{Object.getOwnPropertyDescriptor(i,e).configurable&&!LM(i,e)&&delete i[e]})),wM(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=OM(e,t.from);CM(n)?n.splice(+r,0,o.splice(+a,1)[0]):(n[r]=o[a],delete o[a])}else"remove"===t.op&&(CM(n)?n.splice(+r,1):delete n[r]);var i}))},EM.clone=function(e){return wM({},e)},EM.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},EM.updateObject=function(e,t){Object.keys(e).length?EM.apply(e,EM.generate(e,t)):wM(e,t)};const IM=e=>t=>{const n=(r=a(a({},t),{},{action(){"function"==typeof t.action&&t.action.call(n,e),n.emit("changed")},enabled:()=>"function"!=typeof t.enabled||t.enabled.call(n,e),active:"function"==typeof t.active?function(){return t.active.call(n,e)}:void 0}),Object.keys(te.prototype).forEach((e=>{r[e]=te.prototype[e]})),te.init(r),r);var r;return n};let TM,PM;function MM(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 NM(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 qM(e){DM(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 zM(e){if(e.__hooks.obsolete)return Promise.resolve();PM=-1,TM=e,TM.__hooks.initiated&&TM.__hooks.list.length;try{TM.fn.call(null)}catch(e){console.error(e)}TM.__hooks.initiated=!0;const t=TM.__hooks;return BM(TM),PM=void 0,TM=void 0,t.chain.promise||(t.chain.promise=new Promise((e=>{t.chain.resolve=e}))),function(e){DM(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame((()=>{!function(e){DM(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 DM(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 AM(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 jM(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 FM(e){return e.__hooks.imperativeHandle}function BM(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function $M(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,BM(e))}function WM(e){if(void 0===TM)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=TM.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function HM(e){WM(++PM);return TM.context[e]}function UM(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function VM(e){return{__hooked:!0,fn:e,initiate:NM,run:zM,teardown:qM,runSnaps:AM,runMenu:jM,focus:JM,blur:YM,observeActions:$M,getImperativeHandle:FM,updateRectOnNextRun:UM}}function GM(e){const t=WM(++PM);if(!t.value){t.component=TM;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,zM(r)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function KM(e,t){const n=WM(++PM);MM(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===TM.__hooks.pendingEffects.indexOf(n)&&TM.__hooks.pendingEffects.push(n))}function ZM(e,t){const n=WM(++PM);MM(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],TM.__hooks.pendingLayoutEffects.push(n))}function XM(e,t){const n=WM(++PM);return MM(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function QM(){return HM("element")}function JM(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 YM(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 eN={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},tN=Object.keys(eN),nN=e=>(Object.keys(te.prototype).forEach((t=>{e[t]=te.prototype[t]})),te.init(e),e);function rN(e,t){const n=a({},eN);nN(n);const r={emit(){n.emit(...arguments)}};Object.keys(e.component||{}).forEach((t=>{-1!==tN.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=IM(n);return((t.definition.selectionToolbar||{}).items||[]).forEach((e=>{const t=a(e);r[e.key]=t,o.push(t)})),(t.definition.actions||[]).forEach((e=>{const t=a(e);r[e.key]=t})),{actions:r,selectionToolbarItems:o,destroy(){o.length=0}}}({sn:e,component:r}),i=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(r,{model:t.model,app:t.app,global:i,selections:t.selections,actions:o.actions}),Object.assign(n,{actions:o.actions,model:t.model,app:t.app,selections:t.selections}),[n,o]}function oN(e,t,n){"function"==typeof e.component&&(e.component=VM(e.component));const[r,o]=e.component&&e.component.__hooked?function(e,t,n){const r=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):void 0;let o=!1;const i={},l=["appLayout","constraints","interactions"],s={},c={};t.model&&t.model.session||(s.select=!0,s.edit=!0,c.select=!1,c.edit=!1);const u={context:{model:t.model,app:t.app,global:r,selections:t.selections,nebbie:t.nebbie,element:void 0,emitter:t.emitter,deviceType:n.deviceType,theme:void 0,translator:n.translator,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,focusHandler:t.focusHandler,constraints:s,interactions:c,options:{},plugins:[]},fn:e.component.fn,created(){},mounted(n){this.context.element=n,e.component.initiate(u,{explicitResize:!!t.explicitResize})},render(t){let n=!o||!1;if(t){if(t.layout&&t.layout!==this.context.layout&&(n=!0,this.context.layout=t.layout),t.context&&t.context.theme&&(this.context.theme=t.context.theme),t.context&&!!t.context.keyboardNavigation!=!!this.context.keyboardNavigation&&(this.context.keyboardNavigation=!!t.context.keyboardNavigation,n=!0),t.context&&t.context.focusHandler&&(this.context.focusHandler=t.context.focusHandler),t.options){const e={};let r=!1;Object.keys(t.options).forEach((n=>{e[n]=t.options[n],this.context.options[n]!==t.options[n]&&(r=!0)})),r&&(this.context.options=e,n=!0)}if(t.plugins){let e=this.context.plugins.length!==t.plugins.length;t.plugins.forEach(((t,n)=>{this.context.plugins[n]!==t&&(e=!0)})),e&&(this.context.plugins=[...t.plugins],n=!0)}l.forEach((e=>{const r=t.context;if(r&&Object.prototype.hasOwnProperty.call(r,e)){let t=JSON.stringify(r[e]);"constraints"===e&&(t=JSON.stringify(a(a({},r[e]),s))),"interactions"===e&&(t=JSON.stringify(a(a({},r[e]),c))),t!==i[e]&&(n=!0,i[e]=t,this.context[e]=JSON.parse(t))}}))}else n=!0;return this.context.theme&&this.context.theme.name()!==i.themeName&&(n=!0,i.themeName=this.context.theme.name()),this.context.translator.language()!==i.language&&(n=!0,i.language=u.context.translator.language()),n?(o=!0,this.currentResult=e.component.run(this),this.currentResult):this.currentResult||Promise.resolve()},resize(){return e.component.updateRectOnNextRun(this),this.render()},willUnmount(){e.component.teardown(this)},setSnapshotData(t){return e.component.runSnaps(this,t)},onContextMenu(t,n,r){return e.component.runMenu(this,t,n,r)},focus(){e.component.focus(this)},blur(){e.component.blur(this)},getImperativeHandle(){return e.component.getImperativeHandle(this)},destroy(){},observeActions(t){e.component.observeActions(this,t)},isHooked:!0};return l.forEach((e=>{i[e]=JSON.stringify(u.context[e])})),i.themeName=u.context.theme?u.context.theme.name():void 0,i.language=u.context.translator?u.context.translator.language():void 0,Object.assign(u,{selections:t.selections}),[u,null]}(e,t,n):rN(e,t),i=[];return t.model.__snInterceptor&&t.model.__snInterceptor.teardown(),e.qae.properties.onChange&&(t.model.__snInterceptor={setProperties:t.model.setProperties,applyPatches:t.model.applyPatches,teardown:void 0},t.model.setProperties=function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];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=EM.clone(o),i=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));EM.apply(o,i);try{e.qae.properties.onChange.call({model:t.model},o)}catch(e){}const l=EM.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)},i.push(t.model.__snInterceptor.teardown)),{generator:e,component:r,selectionToolbar:{items:o?o.selectionToolbarItems:[]},destroy(){i.forEach((e=>e()))},logicalSize:e.definition.logicalSize||(()=>!1)}}const aN=()=>{};function iN(e,t){return void 0===e?()=>t:()=>e}function lN(e){const t=e||{};return{min:"function"==typeof t.min?t.min:iN(t.min,0),max:"function"==typeof t.max?t.max:iN(t.max,1e3),added:t.added||t.add||aN,description:t.description||aN,moved:t.moved||t.move||aN,removed:t.removed||t.remove||aN,replaced:t.replaced||t.replace||aN,isDefined:()=>!!e}}const sN=(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 cN(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=>sN(e,n,{}),dimensions:lN(e.dimensions),measures:lN(e.measures)}}function uN(){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(cN)},exportProperties:t.exportProperties,importProperties:t.importProperties}}function dN(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:uN(n.qae),component:n.component||{},create:e=>oN(r,e,t),definition:{}};return Object.keys(n).forEach((e=>{r[e]||(r.definition[e]=n[e])})),r}const pN=(e,t,n)=>{if(!e)return Promise.resolve();let r=EM.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()},fN=()=>{};function hN(){let e,{model:t,halo:n,initialError:r,onDestroy:o=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=fN,l=null,s=null,c=null,u=null;const d=new Promise((e=>{c=e})),p=new Promise((e=>{u=e})),f=e=>()=>{e&&e(),u()};let h={},m=[];const g=new te,v={id:t.id,model:t,async destroy(){await o(),i(),i=fN},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(xM(o)&&!r){const r=await OP({halo:n,model:t,cellRef:l,newType:e});return await SM(t,r.qProperty),r}const a=await t.getEffectiveProperties(),i=await OP({halo:n,model:t,cellRef:l,newType:e,properties:a}),s=i.qProperty;return await pN(t,a,s),i}return await OP({halo:n,model:t,cellRef:l,newType:e})},async toggleDataView(r){let o;if(e||!1===r)e&&!0!==r&&(o=t,await n.app.destroySessionObject(e),e=void 0);else{let r=n.config.context.dataViewType;const a=await t.getEffectiveProperties();if(!n.types.getSupportedVersion(r)){if(!n.types.getSupportedVersion("table"))throw new Error("No data view type registered");r="table"}const i=await OP({halo:n,model:t,cellRef:l,newType:r,properties:a,viewDataMode:!0});o=await n.app.createSessionObject(i.qProperty),e=o.id}o&&l.current.setModel(o)},addListener(e,t){g.addListener(e,t)},removeListener(e,t){g.removeListener(e,t)},getImperativeHandle:async()=>(await p,l.current.getImperativeHandle()),takeSnapshot:async()=>(await p,l.current.takeSnapshot()),__DO_NOT_USE__:{mount(e){if(s)throw new Error("Already mounted");if(!(e instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return s=e,[i,l]=function(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:a,onMount:i,emitter:l,initialError:s}=e;const{root:c}=t,u=G.createRef(),d=fT(),p=Sp.createPortal(G.createElement(gM,{ref:u,halo:t,model:r,currentId:d,initialSnOptions:o,initialSnPlugins:a,initialError:s,onMount:i,emitter:l}),n,d),f=()=>{c.remove(p),r.removeListener("closed",f)};return r.on("closed",f),c.add(p),c.addCell(d,u),[f,u]}({halo:n,element:e,model:t,initialSnOptions:h,initialSnPlugins:m,initialError:r,onMount:c,emitter:g}),d},async applyProperties(e){const n=bM("/",e,await t.getEffectiveProperties());if(n.length)return t.applyPatches(n,!0)},options(e){(async e=>{const t=e.onInitialRender;s?(async()=>{await d,l.current.setSnOptions(a(a(a({},h),e),{onInitialRender:f(t)}))})():h=a(a(a({},h),e),{onInitialRender:f(t)})})(e)},plugins(e){(async e=>{yM(e),s?(async()=>{await d,l.current.setSnPlugins(e)})():m=e})(e)},exportImage:()=>l.current.exportImage(),takeSnapshot:()=>l.current.takeSnapshot(),getModel:()=>t,convert:{async toType(e){const r=await t.getEffectiveProperties(),o=await OP({halo:n,model:t,cellRef:l,newType:e,properties:r}),a=o.qProperty;return await pN(t,r,a),o},async revert(){await t.clearSoftPatches()}}}};return v}async function mN(e,t,n,r){const o=hN({model:e,halo:n,initialError:r,onDestroy:arguments.length>4&&void 0!==arguments[4]?arguments[4]:async()=>{}});return t.options&&o.__DO_NOT_USE__.options(t.options),t.plugins&&o.__DO_NOT_USE__.plugins(t.plugins),t.element&&await o.__DO_NOT_USE__.mount(t.element),o}async function gN(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 mP({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 vN={className:"njs-sheet"};function bN(e,t,n){return e.bounds?e.bounds:{y:e.row/n*100,x:e.col/t*100,width:e.colspan/t*100,height:e.rowspan/n*100}}function yN(e){let{model:t,halo:n,initialSnOptions:r,initialSnPlugins:o,initialError:a,onMount:i}=e;const{root:l}=n,[s]=QR(t),{theme:c,modelStore:u}=V.useContext(zx),[d,p]=V.useState([]),[f,h]=V.useState(void 0),[m,g]=V.useState(void 0),[v,b]=V.useState("");V.useEffect((()=>{if(s){const e=JSON.stringify(s.cells);if(e===v)return;b(e);const t=async()=>{d.forEach((e=>{l.removeCell(e.currentId)}));const e=s.cells,{columns:t,rows:r}=s,o=await Promise.all(e.map((async e=>{let o;const a=new Promise((e=>{o=e})),i=d.find((t=>t.id===e.name));if(i)return i.bounds=bN(e,t,r),delete i.mountedPromise,i;const l=await async function(e,t,n){let{id:r,options:o,plugins:a,element:i}=e;const{modelStore:l,rpcRequestModelStore:s}=n,c="".concat(r);let u=s.get(c);u||(u=t.app.getObject(r),s.set(c,u));const d=await u;return l.set(c,d),mN(d,{options:o,plugins:a,element:i},t)}({id:e.name},n,u);return{model:l.model,id:e.name,bounds:bN(e,t,r),cellRef:G.createRef(),currentId:fT(),mounted:o,mountedPromise:a}})));o.forEach((e=>l.addCell(e.currentId,e.cellRef))),p(o)};t()}}),[s]);const y=V.useMemo((()=>d?d.map((e=>function(e,t,n,r,o,a){const{x:i,y:l,width:s,height:c}=e.bounds;return G.createElement("div",{style:{left:"".concat(i,"%"),top:"".concat(l,"%"),width:"".concat(s,"%"),height:"".concat(c,"%"),position:"absolute"}},G.createElement(gM,{ref:e.cellRef,halo:t,model:e.model,currentId:e.currentId,initialSnOptions:n,initialSnPlugins:r,initialError:o,onMount:a}))}(e,n,r,o,a,e.mounted))):[]),[d]);V.useEffect((()=>{const e=null!=s&&s.components?s.components.find((e=>"general"===e.key)):null;h(zI(e,n.public.theme)),g(qI(e,n.app))}),[s,n.public.theme,n.app,c]);const x=!s||Number.isNaN(s.height)?"100%":"".concat(Number(s.height),"%"),S=d.map((e=>e.mountedPromise)),w=S.filter((e=>!!e));return w.length&&Promise.all(S).then((()=>{i()})),G.createElement("div",{className:vN.className,style:{width:"100%",height:x,position:"relative",backgroundColor:f,backgroundImage:m&&m.url?"url(".concat(m.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:m&&m.size,backgroundPosition:m&&m.pos}},y)}const xN=()=>{};function SN(){let{model:e,halo:t,initialError:n,onDestroy:r=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=xN,i=null,l=null,s=null;const c=new Promise((e=>{s=e}));let u={},d=[];const p={id:e.id,model:e,async destroy(){await r(),o(),o=xN},__DO_NOT_USE__:{mount(r){if(l)throw new Error("Already mounted");if(!(r instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return l=r,[o,i]=function(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:a,onMount:i,initialError:l}=e;const{root:s}=t,c=G.createRef(),u=Sp.createPortal(G.createElement(yN,{ref:c,halo:t,model:r,initialSnOptions:o,initialSnPlugins:a,initialError:l,onMount:i}),n,r.id),d=()=>{s.remove(u),r.removeListener("closed",d)};return r.on("closed",d),s.add(u),[d,c]}({halo:t,element:r,model:e,initialSnOptions:u,initialSnPlugins:d,initialError:n,onMount:s}),c},async applyProperties(t){const n=bM("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{l?(async()=>{await c,i.current.setSnOptions(a(a({},u),e))})():u=a(a({},u),e)})(e)},plugins(e){(async e=>{yM(e),l?(async()=>{await c,i.current.setSnPlugins(e)})():d=e})(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return p}async function wN(e,t,n){let{id:r,options:o,plugins:a,element:i}=e;const{modelStore:l,rpcRequestModelStore:s}=n,c="".concat(r);let u=s.get(c);u||(u=t.app.getObject(r),s.set(c,u));const d=await u;return l.set(c,d),"sheet"===d.genericType?async function(e,t,n,r){const o=SN({model:e,halo:n,initialError:r,onDestroy:arguments.length>4&&void 0!==arguments[4]?arguments[4]:async()=>{}});return t.options&&o.__DO_NOT_USE__.options(t.options),t.plugins&&o.__DO_NOT_USE__.plugins(t.plugins),t.element&&await o.__DO_NOT_USE__.mount(t.element),o}(d,{options:o,plugins:a,element:i},t):mN(d,{options:o,plugins:a,element:i},t)}function EN(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}var CN=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}};const kN=Object.freeze({loose:!0}),RN=Object.freeze({});var LN=e=>e?"object"!=typeof e?kN:e:RN,ON={exports:{}};var _N={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const IN="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error("SEMVER",...t)}:()=>{};var TN=IN;!function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=_N,a=TN,i=(t=e.exports={}).re=[],l=t.safeRe=[],s=t.src=[],c=t.t={};let u=0;const d="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",o],[d,r]],f=(e,t,n)=>{const r=(e=>{for(const[t,n]of p)e=e.split("".concat(t,"*")).join("".concat(t,"{0,").concat(n,"}")).split("".concat(t,"+")).join("".concat(t,"{1,").concat(n,"}"));return e})(t),o=u++;a(e,o,t),c[e]=o,s[o]=t,i[o]=new RegExp(t,n?"g":void 0),l[o]=new RegExp(r,n?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","\\d+"),f("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-]".concat(d,"*")),f("MAINVERSION","(".concat(s[c.NUMERICIDENTIFIER],")\\.")+"(".concat(s[c.NUMERICIDENTIFIER],")\\.")+"(".concat(s[c.NUMERICIDENTIFIER],")")),f("MAINVERSIONLOOSE","(".concat(s[c.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(s[c.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(s[c.NUMERICIDENTIFIERLOOSE],")")),f("PRERELEASEIDENTIFIER","(?:".concat(s[c.NUMERICIDENTIFIER],"|").concat(s[c.NONNUMERICIDENTIFIER],")")),f("PRERELEASEIDENTIFIERLOOSE","(?:".concat(s[c.NUMERICIDENTIFIERLOOSE],"|").concat(s[c.NONNUMERICIDENTIFIER],")")),f("PRERELEASE","(?:-(".concat(s[c.PRERELEASEIDENTIFIER],"(?:\\.").concat(s[c.PRERELEASEIDENTIFIER],")*))")),f("PRERELEASELOOSE","(?:-?(".concat(s[c.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(s[c.PRERELEASEIDENTIFIERLOOSE],")*))")),f("BUILDIDENTIFIER","".concat(d,"+")),f("BUILD","(?:\\+(".concat(s[c.BUILDIDENTIFIER],"(?:\\.").concat(s[c.BUILDIDENTIFIER],")*))")),f("FULLPLAIN","v?".concat(s[c.MAINVERSION]).concat(s[c.PRERELEASE],"?").concat(s[c.BUILD],"?")),f("FULL","^".concat(s[c.FULLPLAIN],"$")),f("LOOSEPLAIN","[v=\\s]*".concat(s[c.MAINVERSIONLOOSE]).concat(s[c.PRERELEASELOOSE],"?").concat(s[c.BUILD],"?")),f("LOOSE","^".concat(s[c.LOOSEPLAIN],"$")),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE","".concat(s[c.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),f("XRANGEIDENTIFIER","".concat(s[c.NUMERICIDENTIFIER],"|x|X|\\*")),f("XRANGEPLAIN","[v=\\s]*(".concat(s[c.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(s[c.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(s[c.XRANGEIDENTIFIER],")")+"(?:".concat(s[c.PRERELEASE],")?").concat(s[c.BUILD],"?")+")?)?"),f("XRANGEPLAINLOOSE","[v=\\s]*(".concat(s[c.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(s[c.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(s[c.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(s[c.PRERELEASELOOSE],")?").concat(s[c.BUILD],"?")+")?)?"),f("XRANGE","^".concat(s[c.GTLT],"\\s*").concat(s[c.XRANGEPLAIN],"$")),f("XRANGELOOSE","^".concat(s[c.GTLT],"\\s*").concat(s[c.XRANGEPLAINLOOSE],"$")),f("COERCEPLAIN","".concat("(^|[^\\d])(\\d{1,").concat(n,"})")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:\\.(\\d{1,".concat(n,"}))?")),f("COERCE","".concat(s[c.COERCEPLAIN],"(?:$|[^\\d])")),f("COERCEFULL",s[c.COERCEPLAIN]+"(?:".concat(s[c.PRERELEASE],")?")+"(?:".concat(s[c.BUILD],")?")+"(?:$|[^\\d])"),f("COERCERTL",s[c.COERCE],!0),f("COERCERTLFULL",s[c.COERCEFULL],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM","(\\s*)".concat(s[c.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",f("TILDE","^".concat(s[c.LONETILDE]).concat(s[c.XRANGEPLAIN],"$")),f("TILDELOOSE","^".concat(s[c.LONETILDE]).concat(s[c.XRANGEPLAINLOOSE],"$")),f("LONECARET","(?:\\^)"),f("CARETTRIM","(\\s*)".concat(s[c.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",f("CARET","^".concat(s[c.LONECARET]).concat(s[c.XRANGEPLAIN],"$")),f("CARETLOOSE","^".concat(s[c.LONECARET]).concat(s[c.XRANGEPLAINLOOSE],"$")),f("COMPARATORLOOSE","^".concat(s[c.GTLT],"\\s*(").concat(s[c.LOOSEPLAIN],")$|^$")),f("COMPARATOR","^".concat(s[c.GTLT],"\\s*(").concat(s[c.FULLPLAIN],")$|^$")),f("COMPARATORTRIM","(\\s*)".concat(s[c.GTLT],"\\s*(").concat(s[c.LOOSEPLAIN],"|").concat(s[c.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE","^\\s*(".concat(s[c.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(s[c.XRANGEPLAIN],")")+"\\s*$"),f("HYPHENRANGELOOSE","^\\s*(".concat(s[c.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(s[c.XRANGEPLAINLOOSE],")")+"\\s*$"),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(ON,ON.exports);var PN=ON.exports;const MN=/^[0-9]+$/,NN=(e,t)=>{const n=MN.test(e),r=MN.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1};var qN={compareIdentifiers:NN,rcompareIdentifiers:(e,t)=>NN(t,e)};const zN=TN,{MAX_LENGTH:DN,MAX_SAFE_INTEGER:AN}=_N,{safeRe:jN,t:FN}=PN,BN=LN,{compareIdentifiers:$N}=qN;var WN=class e{constructor(t,n){if(n=BN(n),t instanceof e){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError('Invalid version. Must be a string. Got type "'.concat(typeof t,'".'));if(t.length>DN)throw new TypeError("version is longer than ".concat(DN," characters"));zN("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?jN[FN.LOOSE]:jN[FN.FULL]);if(!r)throw new TypeError("Invalid Version: ".concat(t));if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>AN||this.major<0)throw new TypeError("Invalid major version");if(this.minor>AN||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>AN||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<AN)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}toString(){return this.version}compare(t){if(zN("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if("string"==typeof t&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),$N(this.major,t.major)||$N(this.minor,t.minor)||$N(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const e=this.prerelease[n],r=t.prerelease[n];if(zN("prerelease compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return $N(e,r)}while(++n)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let n=0;do{const e=this.build[n],r=t.build[n];if(zN("build compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return $N(e,r)}while(++n)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===$N(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error("invalid increment argument: ".concat(e))}return this.raw=this.format(),this.build.length&&(this.raw+="+".concat(this.build.join("."))),this}};const HN=WN;var UN=(e,t,n)=>new HN(e,n).compare(new HN(t,n));const VN=UN;var GN=(e,t,n)=>0===VN(e,t,n);const KN=UN;var ZN=(e,t,n)=>0!==KN(e,t,n);const XN=UN;var QN=(e,t,n)=>XN(e,t,n)>0;const JN=UN;var YN=(e,t,n)=>JN(e,t,n)>=0;const eq=UN;var tq=(e,t,n)=>eq(e,t,n)<0;const nq=UN;var rq=(e,t,n)=>nq(e,t,n)<=0;const oq=GN,aq=ZN,iq=QN,lq=YN,sq=tq,cq=rq;var uq,dq,pq,fq,hq=(e,t,n,r)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return oq(e,n,r);case"!=":return aq(e,n,r);case">":return iq(e,n,r);case">=":return lq(e,n,r);case"<":return sq(e,n,r);case"<=":return cq(e,n,r);default:throw new TypeError("Invalid operator: ".concat(t))}};function mq(){if(fq)return pq;fq=1;class e{constructor(t,o){if(o=n(o),t instanceof e)return t.loose===!!o.loose&&t.includePrerelease===!!o.includePrerelease?t:new e(t.raw,o);if(t instanceof r)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=o,this.loose=!!o.loose,this.includePrerelease=!!o.includePrerelease,this.raw=t.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError("Invalid SemVer Range: ".concat(this.raw));if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!f(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&h(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const n=((this.options.includePrerelease&&d)|(this.options.loose&&p))+":"+e,a=t.get(n);if(a)return a;const h=this.options.loose,m=h?i[l.HYPHENRANGELOOSE]:i[l.HYPHENRANGE];e=e.replace(m,R(this.options.includePrerelease)),o("hyphen replace",e),e=e.replace(i[l.COMPARATORTRIM],s),o("comparator trim",e),e=e.replace(i[l.TILDETRIM],c),o("tilde trim",e),e=e.replace(i[l.CARETTRIM],u),o("caret trim",e);let v=e.split(" ").map((e=>g(e,this.options))).join(" ").split(/\s+/).map((e=>k(e,this.options)));h&&(v=v.filter((e=>(o("loose invalid filter",e,this.options),!!e.match(i[l.COMPARATORLOOSE]))))),o("range list",v);const b=new Map,y=v.map((e=>new r(e,this.options)));for(const e of y){if(f(e))return[e];b.set(e.value,e)}b.size>1&&b.has("")&&b.delete("");const x=[...b.values()];return t.set(n,x),x}intersects(t,n){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some((e=>m(e,n)&&t.set.some((t=>m(t,n)&&e.every((e=>t.every((t=>e.intersects(t,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(L(this.set[t],e,this.options))return!0;return!1}}pq=e;const t=new CN,n=LN,r=function(){if(dq)return uq;dq=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(">")))}}uq=t;const n=LN,{safeRe:r,t:o}=PN,a=hq,i=TN,l=WN,s=mq();return uq}(),o=TN,a=WN,{safeRe:i,t:l,comparatorTrimReplace:s,tildeTrimReplace:c,caretTrimReplace:u}=PN,{FLAG_INCLUDE_PRERELEASE:d,FLAG_LOOSE:p}=_N,f=e=>"<0.0.0-0"===e.value,h=e=>""===e.value,m=(e,t)=>{let n=!0;const r=e.slice();let o=r.pop();for(;n&&r.length;)n=r.every((e=>o.intersects(e,t))),o=r.pop();return n},g=(e,t)=>(o("comp",e,t),e=x(e,t),o("caret",e),e=b(e,t),o("tildes",e),e=w(e,t),o("xrange",e),e=C(e,t),o("stars",e),e),v=e=>!e||"x"===e.toLowerCase()||"*"===e,b=(e,t)=>e.trim().split(/\s+/).map((e=>y(e,t))).join(" "),y=(e,t)=>{const n=t.loose?i[l.TILDELOOSE]:i[l.TILDE];return e.replace(n,((t,n,r,a,i)=>{let l;return o("tilde",e,t,n,r,a,i),v(n)?l="":v(r)?l=">=".concat(n,".0.0 <").concat(+n+1,".0.0-0"):v(a)?l=">=".concat(n,".").concat(r,".0 <").concat(n,".").concat(+r+1,".0-0"):i?(o("replaceTilde pr",i),l=">=".concat(n,".").concat(r,".").concat(a,"-").concat(i," <").concat(n,".").concat(+r+1,".0-0")):l=">=".concat(n,".").concat(r,".").concat(a," <").concat(n,".").concat(+r+1,".0-0"),o("tilde return",l),l}))},x=(e,t)=>e.trim().split(/\s+/).map((e=>S(e,t))).join(" "),S=(e,t)=>{o("caret",e,t);const n=t.loose?i[l.CARETLOOSE]:i[l.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,a,i,l)=>{let s;return o("caret",e,t,n,a,i,l),v(n)?s="":v(a)?s=">=".concat(n,".0.0").concat(r," <").concat(+n+1,".0.0-0"):v(i)?s="0"===n?">=".concat(n,".").concat(a,".0").concat(r," <").concat(n,".").concat(+a+1,".0-0"):">=".concat(n,".").concat(a,".0").concat(r," <").concat(+n+1,".0.0-0"):l?(o("replaceCaret pr",l),s="0"===n?"0"===a?">=".concat(n,".").concat(a,".").concat(i,"-").concat(l," <").concat(n,".").concat(a,".").concat(+i+1,"-0"):">=".concat(n,".").concat(a,".").concat(i,"-").concat(l," <").concat(n,".").concat(+a+1,".0-0"):">=".concat(n,".").concat(a,".").concat(i,"-").concat(l," <").concat(+n+1,".0.0-0")):(o("no pr"),s="0"===n?"0"===a?">=".concat(n,".").concat(a,".").concat(i).concat(r," <").concat(n,".").concat(a,".").concat(+i+1,"-0"):">=".concat(n,".").concat(a,".").concat(i).concat(r," <").concat(n,".").concat(+a+1,".0-0"):">=".concat(n,".").concat(a,".").concat(i," <").concat(+n+1,".0.0-0")),o("caret return",s),s}))},w=(e,t)=>(o("replaceXRanges",e,t),e.split(/\s+/).map((e=>E(e,t))).join(" ")),E=(e,t)=>{e=e.trim();const n=t.loose?i[l.XRANGELOOSE]:i[l.XRANGE];return e.replace(n,((n,r,a,i,l,s)=>{o("xRange",e,n,r,a,i,l,s);const c=v(a),u=c||v(i),d=u||v(l),p=d;return"="===r&&p&&(r=""),s=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&p?(u&&(i=0),l=0,">"===r?(r=">=",u?(a=+a+1,i=0,l=0):(i=+i+1,l=0)):"<="===r&&(r="<",u?a=+a+1:i=+i+1),"<"===r&&(s="-0"),n="".concat(r+a,".").concat(i,".").concat(l).concat(s)):u?n=">=".concat(a,".0.0").concat(s," <").concat(+a+1,".0.0-0"):d&&(n=">=".concat(a,".").concat(i,".0").concat(s," <").concat(a,".").concat(+i+1,".0-0")),o("xRange return",n),n}))},C=(e,t)=>(o("replaceStars",e,t),e.trim().replace(i[l.STAR],"")),k=(e,t)=>(o("replaceGTE0",e,t),e.trim().replace(i[t.includePrerelease?l.GTE0PRE:l.GTE0],"")),R=e=>(t,n,r,o,a,i,l,s,c,u,d,p)=>(n=v(r)?"":v(o)?">=".concat(r,".0.0").concat(e?"-0":""):v(a)?">=".concat(r,".").concat(o,".0").concat(e?"-0":""):i?">=".concat(n):">=".concat(n).concat(e?"-0":""),s=v(c)?"":v(u)?"<".concat(+c+1,".0.0-0"):v(d)?"<".concat(c,".").concat(+u+1,".0-0"):p?"<=".concat(c,".").concat(u,".").concat(d,"-").concat(p):e?"<".concat(c,".").concat(u,".").concat(+d+1,"-0"):"<=".concat(s),"".concat(n," ").concat(s).trim()),L=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(o(e[n].semver),e[n].semver!==r.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return pq}const gq=mq();var vq=(e,t,n)=>{try{t=new gq(t,n)}catch(e){return!1}return t.test(e)},bq=n(vq);const yq={};function xq(e,t){let n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{meta:i}=o,l={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&i&&i.deps&&i.deps.properties)||bq(e,i.deps.properties),supernova:()=>async function(e,t,n,r){let{config:o}=n;const a="".concat(e,"__").concat(t);if(!yq[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);yq[a]=l.then((e=>{if(!e)throw new Error("load() of visualization '".concat(n,"' resolved to an invalid object"));return e})).catch((e=>{throw new Error("Failed to load visualization: '".concat(n,"'"))}))}return yq[a]}(l.name,l.version,t,o.load).then((e=>(n=n||dN(e,t.public.galaxy),r=JSON.stringify(n.qae.properties.initial),n))),initialProperties(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.supernova().then((()=>{const n=a({qInfo:{qType:l.name},visualization:l.name,version:l.version,showTitles:!0},JSON.parse(r));return t?(Ue(!0,n,e),n):a(a({},n),e)}))}};return l}function Sq(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]=xq({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 wq(e){let{halo:t,parent:n}=e;const r={},o=n||{get:()=>{}};return{register:(e,n)=>{r[e.name]||(r[e.name]=Sq(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(yq).forEach((t=>{t.split("__")[0]===e&&(yq[t]=void 0)}))}(e)}}}const Eq={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()))},Cq={context:{},load:()=>{},types:[],themes:[],anything:{},flags:{KPI_REACTCOLORPICKER:!0,IM_1869_HIDE_DIM_MEA_LINE:!0,IM_1579_HIDE_DIM_MEA:!0,CLIENT_IM_3365:!0},snapshot:Eq};Cq.context={theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1,dataViewType:"sn-table"};const kq=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a(a({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),e)},Rq=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 Lq=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=Q(t.context.language);function r(e,o){if(o)return r.createConfiguration(o)(e);let i=a(a({},t.context),{},{translator:n.translator});const[l,s]=Bx({app:e,context:i}),c=function(){let{themes:e=[],loadTheme:t,root:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=ct();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),ut(dt,{__timedOut:!0})]);e.__timedOut||(i="dark"===e.type?"dark":"light",r.internalAPI.setTheme(e,o),n.setMuiThemeName(i))}catch(e){}else r.internalAPI.setTheme({type:i},o),n.setMuiThemeName(i)},externalAPI:r.externalAPI}}({themes:t.themes,loadTheme:t.loadTheme,root:l});i.themeApi=c.externalAPI;const u={galaxy:{translator:n.translator,flags:EN(t.flags),deviceType:pt(t.context.deviceType),anything:t.anything},theme:c.externalAPI,translator:n.translator,nebbie:null},d={app:e,root:l,config:t,public:u,context:i,types:null},p=wq({halo:d});t.types.forEach((e=>p.register({name:e.name,version:e.version},{meta:e.meta,load:e.load})));let f=c.setTheme(t.context.theme),h=null,m=null;const g={render:async e=>(await f,e.id?wN(e,d,s):async function(e,t,n){let{type:r,version:o,fields:a,properties:i,options:l,plugins:s,element:c,extendProperties:u}=e,d={};const p=[],{modelStore:f,subscribe:h}=n;let m;try{const e=t.types.get({name:r,version:o});d=await e.initialProperties(i,u);const n=await e.supernova();a&&await mP({sn:n,properties:d,fields:a,children:p},t),i&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},d)}catch(e){m=e,d={qInfo:{qType:r},visualization:r}}const g=await t.app.createSessionObject(d);p.length>0&&await g.setFullPropertyTree({qProperty:d,qChildren:p}),f.set(g.id,g);const v=h(g);return mN(g,{options:l,plugins:s,element:c},t,m,(async()=>{await t.app.destroySessionObject(g.id),v()}))}(e,d,s)),create:async e=>gN(e,d,!1,s),generateProperties:async e=>gN(e,d,!0,s),context:async e=>{let t;["theme","language","constraints","interactions","keyboardNavigation"].forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==i[n]&&(t||(t={}),t[n]=e[n])})),t&&(i=a(a(a({},i),t),{},{translator:n.translator}),t.theme&&(f=c.setTheme(t.theme),await f),t.language&&d.public.translator.language(t.language),l.context(i))},selections:async()=>(h||(h={mount(t){m||(m=function(e){let{element:t,app:n}=e;return Sp.createPortal(G.createElement(hT,{app:n}),t,fT())}({element:t,app:e}),l.add(m))},unmount(){m&&(l.remove(m),m=null)}}),h),field:async t=>{let n;const r="string"==typeof t?t:t.qLibraryId;if(t.qId)n=t.qId;else if(!r)throw new Error("Field identifier or object id must be provided");const o={fieldName:r,async mount(i){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!i)throw new Error("Element for ".concat(r||n," not provided"));if(this._instance)throw new Error("Field or object ".concat(r||n," already mounted"));const c=()=>o.emit("selectionActivated"),u=()=>o.emit("selectionDeactivated");return new Promise((r=>{this._instance=function(e){let{element:t,app:n,fieldIdentifier:r,qId:o,stateName:a="$",options:i={},renderedCallback:l}=e;return Sp.createPortal(G.createElement(tP,{app:n,element:t,fieldIdentifier:r,qId:o,stateName:a,options:i,renderedCallback:l}),t,fT())}({element:i,app:e,fieldIdentifier:t,qId:n,options:eP(a({onSelectionActivated:c,onSelectionDeactivated:u},s)),stateName:s.stateName||"$",renderedCallback:r}),l.add(this._instance)}))},unmount(){this._instance&&(l.remove(this._instance),this._instance=null)}};return iI(o),o},getRegisteredTypes:p.getList,__DO_NOT_USE__:{types:p,popover(t,n,r){g._popoverInstance&&(l.remove(g._popoverInstance),g._popoverInstance=null);const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=a({},nP);return Ue(!0,t,e),t}(a({onPopoverClose:()=>g.emit("fieldPopoverClose")},r));g._popoverInstance=G.createElement(rP,{element:t,key:fT(),app:e,fieldIdentifier:n,options:o,stateName:r.stateName||"$"}),l.add(g._popoverInstance)}}};return d.public.nebbie=g,d.types=p,iI(g),g}return r.createConfiguration=n=>e(((e,t)=>({context:kq(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:a({},t.snapshot||e.snapshot),types:Rq(e.types,t.types),themes:Rq(e.themes,t.themes),flags:kq(e.flags,t.flags),anything:kq(e.anything,t.anything)}))(t,n)),r.config=t,r}(Cq);function Oq(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}const _q=globalThis.crypto||{getRandomValues:()=>123456};function Iq(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^_q.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 Tq=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},Pq=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=Tq(e,{defaultValue:t,args:a});return n?new Promise((e=>{setTimeout((()=>e(l)),r)})):l}},Mq=["id","session"],Nq=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function qq(e){return!Nq.includes(e)}function zq(e){const t=Tq(e.getLayout);return t.qInfo&&t.qInfo.qId}function Dq(e,t){return e.reduce(((e,n)=>a(a({},e),function(e,t){let n=zq(e);const{delay:r}=t,{id:o,session:i}=e,l=c(e,Mq);if(o&&n&&o!==n)throw new Error("Generic object has multiple IDs, qInfo.qId: ".concat(n,", id: ").concat(o));return n=n||o||"object - ".concat(+Date.now()),{[n]:a(a({id:n,session:Tq(i,{defaultValue:!0}),on:()=>{},once:()=>{}},Object.entries(l).reduce(((e,t)=>{let[n,o]=t;return a(a({},e),{},{[n]:Pq(o,{async:qq(n),delay:r})})}),{})),{},{genericType:e.type})}}(n,t))),{})}function Aq(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!zq(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function jq(){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(Aq);const n=Dq(e,t);return async e=>Promise.resolve(n[e])}function Fq(){return()=>Promise.resolve({id:"app-layout"})}const Bq={fromGenericObjects(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new Oq,r=new Iq(n),o=new jq(e,t),a=new Fq,i={id:"app - ".concat(+Date.now()),session:n,createSessionObject:r,destroySessionObject:async()=>{},getObject:o,getAppLayout:a};return Promise.resolve(i)}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}},$q={generator:dN,hook:VM,theme:ct,locale:Z};e.EnigmaMocker=Bq,e.__DO_NOT_USE__=$q,e.conversion=_P,e.embed=Lq,e.onContextMenu=function(e){const t=WM(++PM);t.value||(t.value=1,TM.__hooks.menus.push(t)),t.fn=e},e.onTakeSnapshot=function(e){const t=WM(++PM);t.value||(t.value=1,TM.__hooks.snaps.push(t)),t.fn=e},e.useAction=function(e,t){const[n]=GM({action(){n._config.action.call(null)}});return n.component||(n.component=TM,TM.__hooks.actions.list.push(n)),XM((()=>{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=HM("app");return e&&e.session?e:void 0},e.useAppLayout=function(){return HM("appLayout")},e.useConstraints=function(){return HM("constraints")},e.useDeviceType=function(){return HM("deviceType")},e.useEffect=KM,e.useElement=QM,e.useEmbed=function(){return HM("nebbie")},e.useEmitter=function(){return HM("emitter")},e.useGlobal=function(){const e=HM("global");return e&&e.session?e:void 0},e.useImperativeHandle=function(e,t){const n=WM(++PM);if(n.imperative||(n.imperative=!0),MM(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],TM.__hooks.imperativeHandle=r}},e.useInteractionState=function(){return HM("interactions")},e.useKeyboard=function(){const e=HM("keyboardNavigation"),t=HM("focusHandler");if(!TM.__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&&(YM(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(TM);TM.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),JM(this))}.bind(TM);TM.__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(TM);TM.__hooks.accessibility.focusSelectionFunction=r}const n=TM.__hooks.accessibility.focusFunction,r=TM.__hooks.accessibility.exitFunction,o=TM.__hooks.accessibility.focusSelectionFunction,[a,i]=GM({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return TM.__hooks.accessibility.setter=i,TM.__hooks.accessibility.enabled=e,KM((()=>i({active:!1,enabled:e,blur:r,focus:n,focusSelection:o})),[e]),a},e.useLayout=function(){return HM("layout")},e.useMemo=XM,e.useModel=function(){const e=HM("model");return e&&e.session?e:void 0},e.useOptions=function(){return HM("options")},e.usePlugins=function(){return HM("plugins")},e.usePromise=function(e,t){const[n,r]=GM((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=WM(++PM);return o.component||(o.component=TM),ZM((()=>{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=QM(),t=TM.__hooks.resizer,[n,r]=GM((()=>{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()),ZM((()=>{if(t.initiated)return;t.initiated=!0;const n=()=>{const{left:n,top:r,width:o,height:a}=e.getBoundingClientRect(),i=t.current;i.width===o&&i.height===a&&i.left===n&&i.top===r||t.setters.forEach((e=>e({left:n,top:r,width:o,height:a})))};if(t.resize=()=>{n()},t.explicitResize)return()=>{t.resize=void 0};if("function"==typeof ResizeObserver){let r=new ResizeObserver(n);return r.observe(e),()=>{r.unobserve(e),r.disconnect(e),r=null,t.resize=void 0}}}),[e]),n},e.useRenderState=function(){WM(++PM);const e=TM.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}},e.useSelections=function(){return HM("selections")},e.useStaleLayout=function(){const e=HM("layout"),[t]=GM({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current},e.useState=GM,e.useTheme=function(){return HM("theme")},e.useTranslator=function(){return HM("translator")}}));
|
|
133
|
+
`),CC))),OC=U.forwardRef((function(e,t){const n=ey({props:e,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:a=!1,size:i=40,style:l,thickness:s=3.6,value:c=0,variant:u="indeterminate"}=n,d=Rp(n,gC),p=kp({},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 zv({root:["root",n,`color${Om(r)}`],svg:["svg"],circle:["circle",`circle${Om(n)}`,o&&"circleDisableShrink"]},mC,t)})(p),h={},m={},g={};if("determinate"===u){const e=2*Math.PI*((wC-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 rm.jsx(kC,kp({className:Ag(f.root,r),style:kp({width:i,height:i},m,l),ownerState:p,ref:t,role:"progressbar"},g,d,{children:rm.jsx(RC,{className:f.svg,ownerState:p,viewBox:"22 22 44 44",children:rm.jsx(LC,{className:f.circle,style:h,ownerState:p,cx:wC,cy:wC,r:(wC-s)/2,fill:"none",strokeWidth:s})})}))}));function _C(e){return Bg("MuiModal",e)}$g("MuiModal",["root","hidden","backdrop"]);const IC=["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"],TC=Ty("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})=>kp({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),PC=Ty($E,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),MC=U.forwardRef((function(e,t){var n,r,o,a,i,l;const s=ey({name:"MuiModal",props:e}),{BackdropComponent:c=PC,BackdropProps:u,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:w=!1,disableScrollLock:E=!1,hideBackdrop:C=!1,keepMounted:k=!1,onBackdropClick:R,open:L,slotProps:O,slots:_}=s,I=Rp(s,IC),T=kp({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:w,disableScrollLock:E,hideBackdrop:C,keepMounted:k}),{getRootProps:P,getBackdropProps:M,getTransitionProps:N,portalRef:q,isTopModal:z,exited:D,hasTransition:A}=NS(kp({},T,{rootRef:t})),j=kp({},T,{exited:D}),F=(e=>{const{open:t,exited:n,classes:r}=e;return zv({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},_C,r)})(j),B={};if(void 0===f.props.tabIndex&&(B.tabIndex="-1"),A){const{onEnter:e,onExited:t}=N();B.onEnter=e,B.onExited=t}const $=null!=(n=null!=(r=null==_?void 0:_.root)?r:g.Root)?n:TC,W=null!=(o=null!=(a=null==_?void 0:_.backdrop)?a:g.Backdrop)?o:c,H=null!=(i=null==O?void 0:O.root)?i:v.root,V=null!=(l=null==O?void 0:O.backdrop)?l:v.backdrop,G=cS({elementType:$,externalSlotProps:H,externalForwardedProps:I,getSlotProps:P,additionalProps:{ref:t,as:m},ownerState:j,className:Ag(d,null==H?void 0:H.className,null==F?void 0:F.root,!j.open&&j.exited&&(null==F?void 0:F.hidden))}),K=cS({elementType:W,externalSlotProps:V,additionalProps:u,getSlotProps:e=>M(kp({},e,{onClick:t=>{R&&R(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Ag(null==V?void 0:V.className,null==u?void 0:u.className,null==F?void 0:F.backdrop),ownerState:j});return k||L||A&&!D?rm.jsx(LS,{ref:q,container:h,disablePortal:S,children:rm.jsxs($,kp({},G,{children:[!C&&c?rm.jsx(W,kp({},K)):null,rm.jsx(RS,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:w,isEnabled:z,open:L,children:U.cloneElement(f,B)})]}))}):null}));function NC(e){return Bg("MuiDivider",e)}const qC=$g("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),zC=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],DC=Ty("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})=>kp({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)`:lb(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})=>kp({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>kp({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>kp({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>kp({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),AC=Ty("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>kp({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)`}))),jC=U.forwardRef((function(e,t){const n=ey({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:a,component:i=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:c="horizontal",role:u=("hr"!==i?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=Rp(n,zC),h=kp({},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 zv({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"]},NC,r)})(h);return rm.jsx(DC,kp({as:i,className:Ag(m.root,a),role:u,ref:t,ownerState:h},f,{children:o?rm.jsx(AC,{className:m.wrapper,ownerState:h,children:o}):null}))}));jC.muiSkipListHighlight=!0;const FC=function(e={}){const{createStyledComponent:t=Zv,useThemeProps:n=Xv,componentName:r="MuiStack"}=e,o=t(Jv),a=U.forwardRef((function(e,t){const a=Mg(n(e)),{component:i="div",direction:l="column",spacing:s=0,divider:c,children:u,className:d,useFlexGap:p=!1}=a,f=dm(a,Gv),h={direction:l,spacing:s,useFlexGap:p},m=zv({root:["root"]},(e=>Bg(r,e)),{});return rm.jsx(o,um({as:i,ownerState:h,ref:t,className:Ag(m.root,d)},f,{children:c?Qv(u,c):u}))}));return a}({createStyledComponent:Ty("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>ey({props:e,name:"MuiStack"})});function BC(e){return Bg("MuiFormControlLabel",e)}const $C=$g("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),WC=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],HC=Ty("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${$C.label}`]:t.label},t.root,t[`labelPlacement${Om(n.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>kp({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${$C.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},{[`& .${$C.label}`]:{[`&.${$C.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),UC=Ty("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${$C.error}`]:{color:(e.vars||e).palette.error.main}}))),VC=U.forwardRef((function(e,t){var n,r;const o=ey({props:e,name:"MuiFormControlLabel"}),{className:a,componentsProps:i={},control:l,disabled:s,disableTypography:c,label:u,labelPlacement:d="end",required:p,slotProps:f={}}=o,h=Rp(o,WC),m=SE(),g=null!=(n=null!=s?s:l.props.disabled)?n:null==m?void 0:m.disabled,v=null!=p?p:l.props.required,b={disabled:g,required:v};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===l.props[e]&&void 0!==o[e]&&(b[e]=o[e])}));const y=yE({props:o,muiFormControl:m,states:["error"]}),x=kp({},o,{disabled:g,labelPlacement:d,required:v,error:y.error}),S=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:a}=e;return zv({root:["root",n&&"disabled",`labelPlacement${Om(r)}`,o&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]},BC,t)})(x),w=null!=(r=f.typography)?r:i.typography;let E=u;return null==E||E.type===xS||c||(E=rm.jsx(xS,kp({component:"span"},w,{className:Ag(S.label,null==w?void 0:w.className),children:E}))),rm.jsxs(HC,kp({className:Ag(S.root,a),ownerState:x,ref:t},h,{children:[U.cloneElement(l,b),v?rm.jsxs(FC,{display:"block",children:[E,rm.jsxs(UC,{ownerState:x,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]}):E]}))})),GC=U.createContext();function KC(e){return Bg("MuiGrid",e)}const ZC=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],XC=$g("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}`)),...ZC.map((e=>`grid-xs-${e}`)),...ZC.map((e=>`grid-sm-${e}`)),...ZC.map((e=>`grid-md-${e}`)),...ZC.map((e=>`grid-lg-${e}`)),...ZC.map((e=>`grid-xl-${e}`))]),QC=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function JC(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function YC({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 ek=Ty("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})=>kp({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 Cm({theme:e},Lm({values:t.direction,breakpoints:e.breakpoints.values}),(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${XC.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&0!==r){const t=Lm({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=YC({breakpoints:e.breakpoints.values,values:t})),o=Cm({theme:e},t,((t,r)=>{var o;const a=e.spacing(t);return"0px"!==a?{marginTop:`-${JC(a)}`,[`& > .${XC.item}`]:{paddingTop:JC(a)}}:null!=(o=n)&&o.includes(r)?{}:{marginTop:0,[`& > .${XC.item}`]:{paddingTop:0}}}))}return o}),(function({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&0!==r){const t=Lm({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=YC({breakpoints:e.breakpoints.values,values:t})),o=Cm({theme:e},t,((t,r)=>{var o;const a=e.spacing(t);return"0px"!==a?{width:`calc(100% + ${JC(a)})`,marginLeft:`-${JC(a)}`,[`& > .${XC.item}`]:{paddingLeft:JC(a)}}:null!=(o=n)&&o.includes(r)?{}:{width:"100%",marginLeft:0,[`& > .${XC.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=Lm({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} + ${JC(n)})`;c={flexBasis:e,maxWidth:e}}}a=kp({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 tk=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 zv({root:["root",n&&"container",o&&"item",l&&"zeroMinWidth",...c,"row"!==r&&`direction-xs-${String(r)}`,"wrap"!==i&&`wrap-xs-${String(i)}`,...u]},KC,t)},nk=U.forwardRef((function(e,t){const n=ey({props:e,name:"MuiGrid"}),{breakpoints:r}=Yb(),o=Mg(n),{className:a,columns:i,columnSpacing:l,component:s="div",container:c=!1,direction:u="row",item:d=!1,rowSpacing:p,spacing:f=0,wrap:h="wrap",zeroMinWidth:m=!1}=o,g=Rp(o,QC),v=p||f,b=l||f,y=U.useContext(GC),x=c?i||12:y,S={},w=kp({},g);r.keys.forEach((e=>{null!=g[e]&&(S[e]=g[e],delete w[e])}));const E=kp({},o,{columns:x,container:c,direction:u,item:d,rowSpacing:v,columnSpacing:b,wrap:h,zeroMinWidth:m,spacing:f},S,{breakpoints:r.keys}),C=tk(E);return rm.jsx(GC.Provider,{value:x,children:rm.jsx(ek,kp({ownerState:E,className:Ag(C.root,a),as:s,ref:t},w))})})),rk=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ok(e){return`scale(${e}, ${e**2})`}const ak={entering:{opacity:1,transform:ok(1)},entered:{opacity:1,transform:"none"}},ik="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),lk=U.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:a,in:i,onEnter:l,onEntered:s,onEntering:c,onExit:u,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=Vy}=e,g=Rp(e,rk),v=Cv(),b=U.useRef(),y=Yb(),x=U.useRef(null),S=xv(x,o.ref,t),w=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},E=w(c),C=w(((e,t)=>{Kx(e);const{duration:n,delay:r,easing:o}=Zx({style:f,timeout:h,easing:a},{mode:"enter"});let i;"auto"===h?(i=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=i):i=n,e.style.transition=[y.transitions.create("opacity",{duration:i,delay:r}),y.transitions.create("transform",{duration:ik?i:.666*i,delay:r,easing:o})].join(","),l&&l(e,t)})),k=w(s),R=w(p),L=w((e=>{const{duration:t,delay:n,easing:r}=Zx({style:f,timeout:h,easing:a},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:ik?o:.666*o,delay:ik?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=ok(.75),u&&u(e)})),O=w(d);return rm.jsx(m,kp({appear:r,in:i,nodeRef:x,onEnter:C,onEntered:k,onEntering:E,onExit:L,onExited:O,onExiting:R,addEndListener:e=>{"auto"===h&&v.start(b.current||0,e),n&&n(x.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>U.cloneElement(o,kp({style:kp({opacity:0,transform:ok(.75),visibility:"exited"!==e||i?void 0:"hidden"},ak[e],f,o.props.style),ref:S},t))}))}));function sk(e){return Bg("MuiIcon",e)}lk.muiSupportAuto=!0,$g("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ck=["baseClassName","className","color","component","fontSize"],uk=Ty("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Om(n.color)}`],t[`fontSize${Om(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]}))),dk=U.forwardRef((function(e,t){const n=ey({props:e,name:"MuiIcon"}),{baseClassName:r="material-icons",className:o,color:a="inherit",component:i="span",fontSize:l="medium"}=n,s=Rp(n,ck),c=kp({},n,{baseClassName:r,color:a,component:i,fontSize:l}),u=(e=>{const{color:t,fontSize:n,classes:r}=e;return zv({root:["root","inherit"!==t&&`color${Om(t)}`,`fontSize${Om(n)}`]},sk,r)})(c);return rm.jsx(uk,kp({as:i,className:Ag(r,"notranslate",u.root,o),ownerState:c,"aria-hidden":!0,ref:t},s))}));function pk(e){return Bg("MuiInputAdornment",e)}dk.muiName="Icon";const fk=$g("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var hk;const mk=["children","className","component","disablePointerEvents","disableTypography","position","variant"],gk=Ty("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Om(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>kp({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${fk.positionStart}&:not(.${fk.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),vk=U.forwardRef((function(e,t){const n=ey({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:a="div",disablePointerEvents:i=!1,disableTypography:l=!1,position:s,variant:c}=n,u=Rp(n,mk),d=SE()||{};let p=c;c&&d.variant,d&&!p&&(p=d.variant);const f=kp({},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 zv({root:["root",n&&"disablePointerEvents",o&&`position${Om(o)}`,i,r&&"hiddenLabel",a&&`size${Om(a)}`]},pk,t)})(f);return rm.jsx(xE.Provider,{value:null,children:rm.jsx(gk,kp({as:a,ownerState:f,className:Ag(h.root,o),ref:t},u,{children:"string"!=typeof r||l?rm.jsxs(U.Fragment,{children:["start"===s?hk||(hk=rm.jsx("span",{className:"notranslate",children:""})):null,r]}):rm.jsx(xS,{color:"text.secondary",children:r})}))})})),bk=U.createContext({});function yk(e){return Bg("MuiList",e)}$g("MuiList",["root","padding","dense","subheader"]);const xk=["children","className","component","dense","disablePadding","subheader"],Sk=Ty("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})=>kp({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),wk=U.forwardRef((function(e,t){const n=ey({props:e,name:"MuiList"}),{children:r,className:o,component:a="ul",dense:i=!1,disablePadding:l=!1,subheader:s}=n,c=Rp(n,xk),u=U.useMemo((()=>({dense:i})),[i]),d=kp({},n,{component:a,dense:i,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return zv({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},yk,t)})(d);return rm.jsx(bk.Provider,{value:u,children:rm.jsxs(Sk,kp({as:a,className:Ag(p.root,o),ref:t,ownerState:d},c,{children:[s,r]}))})}));function Ek(e){return Bg("MuiListItem",e)}const Ck=$g("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),kk=$g("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Rk(e){return Bg("MuiListItemSecondaryAction",e)}$g("MuiListItemSecondaryAction",["root","disableGutters"]);const Lk=["className"],Ok=Ty("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>kp({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),_k=U.forwardRef((function(e,t){const n=ey({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=Rp(n,Lk),a=kp({},n,{disableGutters:U.useContext(bk).disableGutters}),i=(e=>{const{disableGutters:t,classes:n}=e;return zv({root:["root",t&&"disableGutters"]},Rk,n)})(a);return rm.jsx(Ok,kp({className:Ag(i.root,r),ownerState:a,ref:t},o))}));_k.muiName="ListItemSecondaryAction";const Ik=["className"],Tk=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Pk=Ty("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})=>kp({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&kp({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${kk.root}`]:{paddingRight:48}},{[`&.${Ck.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ck.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:lb(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ck.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:lb(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ck.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"}},[`&.${Ck.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:lb(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})`:lb(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),Mk=Ty("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),Nk=U.forwardRef((function(e,t){const n=ey({props:e,name:"MuiListItem"}),{alignItems:r="center",autoFocus:o=!1,button:a=!1,children:i,className:l,component:s,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:p}={},dense:f=!1,disabled:h=!1,disableGutters:m=!1,disablePadding:g=!1,divider:v=!1,focusVisibleClassName:b,secondaryAction:y,selected:x=!1,slotProps:S={},slots:w={}}=n,E=Rp(n.ContainerProps,Ik),C=Rp(n,Tk),k=U.useContext(bk),R=U.useMemo((()=>({dense:f||k.dense||!1,alignItems:r,disableGutters:m})),[r,k.dense,f,m]),L=U.useRef(null);iv((()=>{o&&L.current&&L.current.focus()}),[o]);const O=U.Children.toArray(i),_=O.length&&dv(O[O.length-1],["ListItemSecondaryAction"]),I=kp({},n,{alignItems:r,autoFocus:o,button:a,dense:R.dense,disabled:h,disableGutters:m,disablePadding:g,divider:v,hasSecondaryAction:_,selected:x}),T=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:a,disableGutters:i,disablePadding:l,divider:s,hasSecondaryAction:c,selected:u}=e;return zv({root:["root",o&&"dense",!i&&"gutters",!l&&"padding",s&&"divider",a&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},Ek,r)})(I),P=xv(L,t),M=w.root||c.Root||Pk,N=S.root||u.root||{},q=kp({className:Ag(T.root,N.className,l),disabled:h},C);let z=s||"li";return a&&(q.component=s||"div",q.focusVisibleClassName=Ag(Ck.focusVisible,b),z=vx),_?(z=q.component||s?z:"div","li"===d&&("li"===z?z="div":"li"===q.component&&(q.component="div")),rm.jsx(bk.Provider,{value:R,children:rm.jsxs(Mk,kp({as:d,className:Ag(T.container,p),ref:P,ownerState:I},E,{children:[rm.jsx(M,kp({},N,!tS(M)&&{as:z,ownerState:kp({},I,N.ownerState)},q,{children:O})),O.pop()]}))})):rm.jsx(bk.Provider,{value:R,children:rm.jsxs(M,kp({},N,{as:z,ref:P},!tS(M)&&{ownerState:kp({},I,N.ownerState)},q,{children:[O,y&&rm.jsx(_k,{children:y})]}))})}));function qk(e){return Bg("MuiListItemIcon",e)}const zk=$g("MuiListItemIcon",["root","alignItemsFlexStart"]),Dk=["className"],Ak=Ty("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})=>kp({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),jk=U.forwardRef((function(e,t){const n=ey({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Rp(n,Dk),a=kp({},n,{alignItems:U.useContext(bk).alignItems}),i=(e=>{const{alignItems:t,classes:n}=e;return zv({root:["root","flex-start"===t&&"alignItemsFlexStart"]},qk,n)})(a);return rm.jsx(Ak,kp({className:Ag(i.root,r),ownerState:a,ref:t},o))})),Fk=$g("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Bk=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function $k(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Wk(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Hk(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 Uk(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")&&Hk(l,a)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}const Vk=U.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:a,className:i,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:c,variant:u="selectedMenu"}=e,d=Rp(e,Bk),p=U.useRef(null),f=U.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});iv((()=>{r&&p.current.focus()}),[r]),U.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${Nv(pv(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const h=xv(p,t);let m=-1;U.Children.forEach(a,((e,t)=>{U.isValidElement(e)?(e.props.disabled||("selectedMenu"===u&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=a.length&&(m=-1))):m===t&&(m+=1,m>=a.length&&(m=-1))}));const g=U.Children.map(a,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===u&&(t.tabIndex=0),U.cloneElement(e,t)}return e}));return rm.jsx(wk,kp({role:"menu",ref:h,className:i,onKeyDown:e=>{const t=p.current,n=e.key,r=pv(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Uk(t,r,s,l,$k);else if("ArrowUp"===n)e.preventDefault(),Uk(t,r,s,l,Wk);else if("Home"===n)e.preventDefault(),Uk(t,null,s,l,$k);else if("End"===n)e.preventDefault(),Uk(t,null,s,l,Wk);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&&Hk(r,o);o.previousKeyMatched&&(s||Uk(t,r,!1,l,$k,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1},d,{children:g}))}));function Gk(e){return Bg("MuiPopover",e)}$g("MuiPopover",["root","paper"]);const Kk=["onEntering"],Zk=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Xk=["slotProps"];function Qk(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Jk(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Yk(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function eR(e){return"function"==typeof e?e():e}const tR=Ty(MC,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),nR=Ty(Yx,{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}),rR=U.forwardRef((function(e,t){var n,r,o;const a=ey({props:e,name:"MuiPopover"}),{action:i,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=lk,transitionDuration:w="auto",TransitionProps:{onEntering:E}={},disableScrollLock:C=!1}=a,k=Rp(a.TransitionProps,Kk),R=Rp(a,Zk),L=null!=(n=null==y?void 0:y.paper)?n:v,O=U.useRef(),_=xv(O,L.ref),I=kp({},a,{anchorOrigin:s,anchorReference:u,elevation:h,marginThreshold:m,externalPaperSlotProps:L,transformOrigin:x,TransitionComponent:S,transitionDuration:w,TransitionProps:k}),T=(e=>{const{classes:t}=e;return zv({root:["root"],paper:["paper"]},Gk,t)})(I),P=U.useCallback((()=>{if("anchorPosition"===u)return c;const e=eR(l),t=(e&&1===e.nodeType?e:pv(O.current).body).getBoundingClientRect();return{top:t.top+Qk(t,s.vertical),left:t.left+Jk(t,s.horizontal)}}),[l,s.horizontal,s.vertical,c,u]),M=U.useCallback((e=>({vertical:Qk(e,x.vertical),horizontal:Jk(e,x.horizontal)})),[x.horizontal,x.vertical]),N=U.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=M(t);if("none"===u)return{top:null,left:null,transformOrigin:Yk(n)};const r=P();let o=r.top-n.vertical,a=r.left-n.horizontal;const i=o+t.height,s=a+t.width,c=fv(eR(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:Yk(n)}}),[l,u,P,M,m]),[q,z]=U.useState(g),D=U.useCallback((()=>{const e=O.current;if(!e)return;const t=N(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,z(!0)}),[N]);U.useEffect((()=>(C&&window.addEventListener("scroll",D),()=>window.removeEventListener("scroll",D))),[l,C,D]);U.useEffect((()=>{g&&D()})),U.useImperativeHandle(i,(()=>g?{updatePosition:()=>{D()}}:null),[g,D]),U.useEffect((()=>{if(!g)return;const e=uv((()=>{D()})),t=fv(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,D]);let A=w;"auto"!==w||S.muiSupportAuto||(A=void 0);const j=f||(l?pv(eR(l)).body:void 0),F=null!=(r=null==b?void 0:b.root)?r:tR,B=null!=(o=null==b?void 0:b.paper)?o:nR,$=cS({elementType:B,externalSlotProps:kp({},L,{style:q?L.style:kp({},L.style,{opacity:0})}),additionalProps:{elevation:h,ref:_},ownerState:I,className:Ag(T.paper,null==L?void 0:L.className)}),W=cS({elementType:F,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:R,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:j,open:g},ownerState:I,className:Ag(T.root,p)}),{slotProps:H}=W,V=Rp(W,Xk);return rm.jsx(F,kp({},V,!tS(F)&&{slotProps:H,disableScrollLock:C},{children:rm.jsx(S,kp({appear:!0,in:g,onEntering:(e,t)=>{E&&E(e,t),D()},onExited:()=>{z(!1)},timeout:A},k,{children:rm.jsx(B,kp({},$,{children:d}))}))}))}));function oR(e){return Bg("MuiMenuItem",e)}const aR=$g("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),iR=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],lR=Ty(vx,{shouldForwardProp:e=>Iy(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})=>kp({},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"}},[`&.${aR.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:lb(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${aR.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:lb(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${aR.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:lb(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})`:lb(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${aR.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${aR.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${qC.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${qC.inset}`]:{marginLeft:52},[`& .${Fk.root}`]:{marginTop:0,marginBottom:0},[`& .${Fk.inset}`]:{paddingLeft:36},[`& .${zk.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&kp({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${zk.root} svg`]:{fontSize:"1.25rem"}})))),sR=U.forwardRef((function(e,t){const n=ey({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:a=!1,divider:i=!1,disableGutters:l=!1,focusVisibleClassName:s,role:c="menuitem",tabIndex:u,className:d}=n,p=Rp(n,iR),f=U.useContext(bk),h=U.useMemo((()=>({dense:a||f.dense||!1,disableGutters:l})),[f.dense,a,l]),m=U.useRef(null);iv((()=>{r&&m.current&&m.current.focus()}),[r]);const g=kp({},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 kp({},i,zv({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},oR,i))})(n),b=xv(m,t);let y;return n.disabled||(y=void 0!==u?u:-1),rm.jsx(bk.Provider,{value:h,children:rm.jsx(lR,kp({ref:b,role:c,tabIndex:y,component:o,focusVisibleClassName:Ag(v.focusVisible,s),className:Ag(v.root,d)},p,{ownerState:g,classes:v}))})}));var cR;const uR=["children","classes","className","label","notched"],dR=Ty("fieldset",{shouldForwardProp:Iy})({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%"}),pR=Ty("legend",{shouldForwardProp:Iy})((({ownerState:e,theme:t})=>kp({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&&kp({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 fR=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],hR=Ty(_E,{shouldForwardProp:e=>Iy(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:LE})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return kp({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${qE.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${qE.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${qE.focused} .${qE.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${qE.error} .${qE.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${qE.disabled} .${qE.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&kp({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),mR=Ty((function(e){const{className:t,label:n,notched:r}=e,o=Rp(e,uR),a=null!=n&&""!==n,i=kp({},e,{notched:r,withLabel:a});return rm.jsx(dR,kp({"aria-hidden":!0,className:t,ownerState:i},o,{children:rm.jsx(pR,{ownerState:i,children:a?rm.jsx("span",{children:n}):cR||(cR=rm.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}})),gR=Ty(IE,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:OE})((({theme:e,ownerState:t})=>kp({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}))),vR=U.forwardRef((function(e,t){var n,r,o,a,i;const l=ey({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:c=!1,inputComponent:u="input",label:d,multiline:p=!1,notched:f,slots:h={},type:m="text"}=l,g=Rp(l,fR),v=(e=>{const{classes:t}=e;return kp({},t,zv({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},NE,t))})(l),b=SE(),y=yE({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=kp({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:b,fullWidth:c,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:m}),S=null!=(n=null!=(r=h.root)?r:s.Root)?n:hR,w=null!=(o=null!=(a=h.input)?a:s.Input)?o:gR;return rm.jsx(ME,kp({slots:{root:S,input:w},renderSuffix:e=>rm.jsx(mR,{ownerState:x,className:v.notchedOutline,label:null!=d&&""!==d&&y.required?i||(i=rm.jsxs(U.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:u,multiline:p,ref:t,type:m},g,{classes:kp({},v,{notchedOutline:null})}))}));vR.muiName="Input";var bR=Ux(rm.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"),yR=Ux(rm.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 xR=Ty("span",{shouldForwardProp:Iy})({position:"relative",display:"flex"}),SR=Ty(bR)({transform:"scale(1)"}),wR=Ty(yR)((({theme:e,ownerState:t})=>kp({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 ER(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=kp({},e,{checked:t});return rm.jsxs(xR,{className:n.root,ownerState:o,children:[rm.jsx(SR,{fontSize:r,className:n.background,ownerState:o}),rm.jsx(wR,{fontSize:r,className:n.dot,ownerState:o})]})}const CR=U.createContext(void 0);function kR(e){return Bg("MuiRadio",e)}const RR=$g("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),LR=["checked","checkedIcon","color","icon","name","onChange","size","className"],OR=Ty(rC,{shouldForwardProp:e=>Iy(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"medium"!==n.size&&t[`size${Om(n.size)}`],t[`color${Om(n.color)}`]]}})((({theme:e,ownerState:t})=>kp({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})`:lb("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${RR.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${RR.disabled}`]:{color:(e.vars||e).palette.action.disabled}})));const _R=rm.jsx(ER,{checked:!0}),IR=rm.jsx(ER,{}),TR=U.forwardRef((function(e,t){var n,r;const o=ey({props:e,name:"MuiRadio"}),{checked:a,checkedIcon:i=_R,color:l="primary",icon:s=IR,name:c,onChange:u,size:d="medium",className:p}=o,f=Rp(o,LR),h=kp({},o,{color:l,size:d}),m=(e=>{const{classes:t,color:n,size:r}=e;return kp({},t,zv({root:["root",`color${Om(n)}`,"medium"!==r&&`size${Om(r)}`]},kR,t))})(h),g=U.useContext(CR);let v=a;const b=cv(u,g&&g.onChange);let y=c;return g&&(void 0===v&&(v=function(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}(g.value,o.value)),void 0===y&&(y=g.name)),rm.jsx(OR,kp({type:"radio",icon:U.cloneElement(s,{fontSize:null!=(n=IR.props.fontSize)?n:d}),checkedIcon:U.cloneElement(i,{fontSize:null!=(r=_R.props.fontSize)?r:d}),ownerState:h,classes:m,name:y,checked:v,onChange:b,ref:t,className:Ag(m.root,p)},f))}));function PR(e){return Bg("MuiTooltip",e)}const MR=$g("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),NR=["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 qR=Ty(bE,{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})=>kp({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${MR.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${MR.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${MR.arrow}`]:kp({},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"] .${MR.arrow}`]:kp({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),zR=Ty("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${Om(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return kp({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:lb(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},{[`.${MR.popper}[data-popper-placement*="left"] &`]:kp({transformOrigin:"right center"},t.isRtl?kp({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):kp({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${MR.popper}[data-popper-placement*="right"] &`]:kp({transformOrigin:"left center"},t.isRtl?kp({marginRight:"14px"},t.touch&&{marginRight:"24px"}):kp({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${MR.popper}[data-popper-placement*="top"] &`]:kp({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${MR.popper}[data-popper-placement*="bottom"] &`]:kp({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n})),DR=Ty("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:lb(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let AR=!1;const jR=new Ev;let FR={x:0,y:0};function BR(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const $R=U.forwardRef((function(e,t){var n,r,o,a,i,l,s,c,u,d,p,f,h,m,g,v,b,y,x;const S=ey({props:e,name:"MuiTooltip"}),{arrow:w=!1,children:E,components:C={},componentsProps:k={},describeChild:R=!1,disableFocusListener:L=!1,disableHoverListener:O=!1,disableInteractive:_=!1,disableTouchListener:I=!1,enterDelay:T=100,enterNextDelay:P=0,enterTouchDelay:M=700,followCursor:N=!1,id:q,leaveDelay:z=0,leaveTouchDelay:D=1500,onClose:A,onOpen:j,open:F,placement:B="bottom",PopperComponent:$,PopperProps:W={},slotProps:H={},slots:V={},title:G,TransitionComponent:K=lk,TransitionProps:Z}=S,X=Rp(S,NR),Q=U.isValidElement(E)?E:rm.jsx("span",{children:E}),J=Yb(),Y=(()=>{const e=U.useContext($v);return null!=e&&e})(),[ee,te]=U.useState(),[ne,re]=U.useState(null),oe=U.useRef(!1),ae=_||N,ie=Cv(),le=Cv(),se=Cv(),ce=Cv(),[ue,de]=bv({controlled:F,default:!1,name:"Tooltip",state:"open"});let pe=ue;const fe=vv(q),he=U.useRef(),me=yv((()=>{void 0!==he.current&&(document.body.style.WebkitUserSelect=he.current,he.current=void 0),ce.clear()}));U.useEffect((()=>me),[me]);const ge=e=>{jR.clear(),AR=!0,de(!0),j&&!pe&&j(e)},ve=yv((e=>{jR.start(800+z,(()=>{AR=!1})),de(!1),A&&pe&&A(e),ie.start(J.transitions.duration.shortest,(()=>{oe.current=!1}))})),be=e=>{oe.current&&"touchstart"!==e.type||(ee&&ee.removeAttribute("title"),le.clear(),se.clear(),T||AR&&P?le.start(AR?P:T,(()=>{ge(e)})):ge(e))},ye=e=>{le.clear(),se.start(z,(()=>{ve(e)}))},{isFocusVisibleRef:xe,onBlur:Se,onFocus:we,ref:Ee}=Mv(),[,Ce]=U.useState(!1),ke=e=>{Se(e),!1===xe.current&&(Ce(!1),ye(e))},Re=e=>{ee||te(e.currentTarget),we(e),!0===xe.current&&(Ce(!0),be(e))},Le=e=>{oe.current=!0;const t=Q.props;t.onTouchStart&&t.onTouchStart(e)},Oe=e=>{Le(e),se.clear(),ie.clear(),me(),he.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ce.start(M,(()=>{document.body.style.WebkitUserSelect=he.current,be(e)}))},_e=e=>{Q.props.onTouchEnd&&Q.props.onTouchEnd(e),me(),se.start(D,(()=>{ve(e)}))};U.useEffect((()=>{if(pe)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||ve(e)}}),[ve,pe]);const Ie=xv(Q.ref,Ee,te,t);G||0===G||(pe=!1);const Te=U.useRef(),Pe={},Me="string"==typeof G;R?(Pe.title=pe||!Me||O?null:G,Pe["aria-describedby"]=pe?fe:null):(Pe["aria-label"]=Me?G:null,Pe["aria-labelledby"]=pe&&!Me?fe:null);const Ne=kp({},Pe,X,Q.props,{className:Ag(X.className,Q.props.className),onTouchStart:Le,ref:Ie},N?{onMouseMove:e=>{const t=Q.props;t.onMouseMove&&t.onMouseMove(e),FR={x:e.clientX,y:e.clientY},Te.current&&Te.current.update()}}:{}),qe={};I||(Ne.onTouchStart=Oe,Ne.onTouchEnd=_e),O||(Ne.onMouseOver=BR(be,Ne.onMouseOver),Ne.onMouseLeave=BR(ye,Ne.onMouseLeave),ae||(qe.onMouseOver=be,qe.onMouseLeave=ye)),L||(Ne.onFocus=BR(Re,Ne.onFocus),Ne.onBlur=BR(ke,Ne.onBlur),ae||(qe.onFocus=Re,qe.onBlur=ke));const ze=U.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(ne),options:{element:ne,padding:4}}];return null!=(e=W.popperOptions)&&e.modifiers&&(t=t.concat(W.popperOptions.modifiers)),kp({},W.popperOptions,{modifiers:t})}),[ne,W]),De=kp({},S,{isRtl:Y,arrow:w,disableInteractive:ae,placement:B,PopperComponentProp:$,touch:oe.current}),Ae=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e;return zv({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Om(a.split("-")[0])}`],arrow:["arrow"]},PR,t)})(De),je=null!=(n=null!=(r=V.popper)?r:C.Popper)?n:qR,Fe=null!=(o=null!=(a=null!=(i=V.transition)?i:C.Transition)?a:K)?o:lk,Be=null!=(l=null!=(s=V.tooltip)?s:C.Tooltip)?l:zR,$e=null!=(c=null!=(u=V.arrow)?u:C.Arrow)?c:DR,We=nS(je,kp({},W,null!=(d=H.popper)?d:k.popper,{className:Ag(Ae.popper,null==W?void 0:W.className,null==(p=null!=(f=H.popper)?f:k.popper)?void 0:p.className)}),De),He=nS(Fe,kp({},Z,null!=(h=H.transition)?h:k.transition),De),Ue=nS(Be,kp({},null!=(m=H.tooltip)?m:k.tooltip,{className:Ag(Ae.tooltip,null==(g=null!=(v=H.tooltip)?v:k.tooltip)?void 0:g.className)}),De),Ve=nS($e,kp({},null!=(b=H.arrow)?b:k.arrow,{className:Ag(Ae.arrow,null==(y=null!=(x=H.arrow)?x:k.arrow)?void 0:y.className)}),De);return rm.jsxs(U.Fragment,{children:[U.cloneElement(Q,Ne),rm.jsx(je,kp({as:null!=$?$:bE,placement:B,anchorEl:N?{getBoundingClientRect:()=>({top:FR.y,left:FR.x,right:FR.x,bottom:FR.y,width:0,height:0})}:ee,popperRef:Te,open:!!ee&&pe,id:fe,transition:!0},qe,We,{popperOptions:ze,children:({TransitionProps:e})=>rm.jsx(Fe,kp({timeout:J.transitions.duration.shorter},e,He,{children:rm.jsxs(Be,kp({},Ue,{children:[G,w?rm.jsx($e,kp({},Ve,{ref:re})):null]}))}))}))]})}));function WR(){const{useModelStore:e}=U.useContext(qx).modelStore;return e()}function HR(e,t){const n=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[r]=WR(),[o]=function(){const{useRpcRequestSessionModelStore:e}=U.useContext(qx).modelStore;return e()}(),[a,i]=U.useState();for(var l=arguments.length,s=new Array(l>2?l-2:0),c=2;c<l;c++)s[c-2]=arguments[c];return U.useEffect((()=>{if(!t)return;(async()=>{let a=o.get(n);a||(a=t.createSessionObject(e),o.set(n,a));const l=await a;r.set(n,l),i(l)})()}),[t,...s]),[a]}const UR={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function VR(e){return HR(UR,e)}const GR=e=>new Promise((t=>{setTimeout(t,e)})),KR=(e,t)=>{const{rpcResultStore:n,key:r,method:o}=t;let a;switch(t.type){case"INVALID":a=l(l({},e),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":a={result:l({},t.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":a=l(l({},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 ZR(e,t){const n=e?"".concat(e.id):null,[r]=function(){const{useRpcResultStore:e}=U.useContext(qx).modelStore;return e()}(),[o,a]=U.useReducer(KR,n?r.get(n):null),[i]=function(){const{useModelChangedStore:e}=U.useContext(qx).modelStore;return e()}(),[l]=function(){const{useRpcRequestStore:e}=U.useContext(qx).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 GR(0);const o=await i.rpc;a({type:"VALID",result:o,key:n,method:t,model:e,rpcResultStore:r})}catch(e){15!==e.code||o||(i.rpcRetry||(i.rpcRetry=!0),c(!0))}},u={cancel:async()=>{const o=e.session.getObjectApi({handle:-1});await o.cancelRequest(s[t].rpc.requestId),a({type:"CANCELLED",key:n,method:t,model:e,rpcResultStore:r})},retry:()=>{s[t].rpcRetry=!0,c()}};return U.useEffect((()=>{e&&c()}),[e,i.get(e&&e.id),n,t]),[o&&o.result,{validating:o&&o.validating,canCancel:o&&o.canCancel,canRetry:o&&o.canRetry},u]}function XR(e){return ZR(e,"getLayout")}function QR(e){return ZR(e,"getAppLayout")}function JR(){const[e,t]=U.useState(),[n,r]=U.useState(),o=U.useCallback((e=>{e&&t(e)}),[]),a=()=>{const{left:t,top:n,width:o,height:a}=e.getBoundingClientRect();r({left:t,top:n,width:o,height:a})};return U.useLayoutEffect((()=>{if(e){if("function"==typeof ResizeObserver){let t=new ResizeObserver(a);return t.observe(e),()=>{t.unobserve(e),t.disconnect(e),t=null}}return a(),window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a)}}}),[e]),[o,n,e]}function YR(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function eL(e){let{size:t,style:n={},viewBox:r="0 0 16 16",shapes:o=[]}=e;const i=l({fontSize:YR(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},n);return V.createElement("i",{style:i},V.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},o.map(((e,t)=>{let{type:n,attrs:r}=e;return V.createElement(n,a({key:t},r))}))))}var tL=e=>eL((e=>l(l({},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 nL=e=>eL((e=>l(l({},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 rL=e=>l(l({},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 oL=e=>eL(rL(e));var aL=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}}(),iL=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},lL=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=iL(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},iL(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),aL(t,[{key:"resetloadMoreItemsCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._memoizedUnloadedRanges=[],e&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){return(0,this.props.children)({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(e,t){var n=this.props,r=n.isItemLoaded,o=n.itemCount,a=n.minimumBatchSize,i=void 0===a?10:a,l=n.threshold,s=void 0===l?15:l,c=function(e){for(var t=e.isItemLoaded,n=e.itemCount,r=e.minimumBatchSize,o=e.startIndex,a=e.stopIndex,i=[],l=null,s=null,c=o;c<=a;c++)t(c)?null!==s&&(i.push(l,s),l=s=null):(s=c,null===l&&(l=c));if(null!==s){for(var u=Math.min(Math.max(s,l+r-1),n-1),d=s+1;d<=u&&!t(d);d++)s=d;i.push(l,s)}if(i.length)for(;i[1]-i[0]+1<r&&i[0]>0;){var p=i[0]-1;if(t(p))break;i[0]=p}return i}({isItemLoaded:r,itemCount:o,minimumBatchSize:i,startIndex:Math.max(0,e-s),stopIndex:Math.min(o-1,t+s)});(this._memoizedUnloadedRanges.length!==c.length||this._memoizedUnloadedRanges.some((function(e,t){return c[t]!==e})))&&(this._memoizedUnloadedRanges=c,this._loadUnloadedRanges(c))}},{key:"_loadUnloadedRanges",value:function(e){for(var t=this,n=this.props.loadMoreItems||this.props.loadMoreRows,r=function(r){var o=e[r],a=e[r+1],i=n(o,a);null!=i&&i.then((function(){if(function(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,r=e.startIndex,o=e.stopIndex;return!(r>n||o<t)}({lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:o,stopIndex:a})){if(null==t._listRef)return;"function"==typeof t._listRef.resetAfterIndex?t._listRef.resetAfterIndex(o,!0):("function"==typeof t._listRef._getItemStyleCache&&t._listRef._getItemStyleCache(-1),t._listRef.forceUpdate())}}))},o=0;o<e.length;o+=2)r(o)}}]),t}(U.PureComponent);const sL=["S","XS"],cL=e=>e.reduce(((e,t)=>e.concat(t)));function uL(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[t]=e;return n=t.qState,!!sL.includes(n)&&t.qElemNumber;var n}));return t.filter((e=>!1!==e))}));return cL(t)}async function dL(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 pL="RowColumn",fL={row:"".concat(pL,"-row"),rowBorderBottom:"".concat(pL,"-rowBorderBottom"),column:"".concat(pL,"-column"),fieldRoot:"".concat(pL,"-fieldRoot"),cell:"".concat(pL,"-cell"),labelText:"".concat(pL,"-labelText"),labelDense:"".concat(pL,"-labelDense"),highlighted:"".concat(pL,"-highlighted"),checkboxLabel:"".concat(pL,"-checkboxLabel"),icon:"".concat(pL,"-icon"),S:"".concat(pL,"-S"),XS:"".concat(pL,"-XS"),A:"".concat(pL,"-A"),X:"".concat(pL,"-X"),frequencyCount:"".concat(pL,"-frequencyCount"),barContainer:"".concat(pL,"-barContainer"),bar:"".concat(pL,"-bar"),barSelected:"".concat(pL,"-barSelected"),barWithCheckbox:"".concat(pL,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(pL,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(pL,"-excludedTextWithCheckbox")},hL=".".concat(fL.fieldRoot),mL=e=>!(null!=e&&e.metaKey||null!=e&&e.ctrlKey);function gL(e){var t;let{selectionState:n,selections:r,checkboxes:o=!1,doc:a=document,loaderRef:i}=e;const l=U.useRef({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});U.useEffect((()=>{var e;if(null===(e=i.current)||void 0===e||null===(e=e._listRef)||void 0===e||!e._outerRef)return;const t=e=>e.preventDefault(),n=e=>e.preventDefault(),r=e=>e.preventDefault(),o=i.current._listRef._outerRef;return o.addEventListener("gesturestart",t),o.addEventListener("gesturechange",n),o.addEventListener("gestureend",r),()=>{o.removeEventListener("gesturestart",t),o.removeEventListener("gesturechange",n),o.removeEventListener("gestureend",r)}}),[null===(t=i.current)||void 0===t||null===(t=t._listRef)||void 0===t?void 0:t._outerRef]);const s=async()=>{var e;return(null===(e=n.selectDisabled)||void 0===e||!e.call(n))&&(n.setSelectableValuesUpdating(),dL({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 cL(t)}(n.enginePages);return function(e,t){if(!e)return[];if(e.length<=1)return e;const{min:n,max:r}=function(e,t){let n=1/0,r=-1/0;return e.forEach((e=>{const o=t.indexOf(e);n=o<n?o:n,r=o>r?o:r})),{min:n,max:r}}(e,t);return t.slice(n,r+1)}([e,t],r)},u=e=>{const{startElemNumber:t}=l.current;if(t===e)return;const r=c(l.current.startElemNumber,e);n.updateItems(r,!0,l.current.elemNumbers)},d=U.useCallback((e=>{if(n.selectDisabled())return;const t=+e.target.getAttribute("data-n"),r=!n.isSingleSelect&&mL(e.nativeEvent);l.current.elemNumbers=[t],l.current.toggle=r,r||n.clearItemStates(!0),n.updateItem(t),l.current.active=!1,s()}),[]),p=U.useCallback((e=>{if(0!==e.button||n.selectDisabled())return;const t=+e.currentTarget.getAttribute("data-n"),r=!n.isSingleSelect&&mL(e);l.current.isRange=!1,l.current.startElemNumber=t,l.current.elemNumbers=[t],l.current.toggle=r,l.current.active=!0,r||n.clearItemStates(!0),n.updateItem(t),n.isSingleSelect&&(l.current.active=!1,s()),((e,t)=>{(e.ctrlKey||e.metaKey)&&(t.focus(),e.preventDefault())})(e,e.currentTarget)}),[]),f=U.useCallback((e=>{if(0===e.button&&l.current.active){if(l.current.active=!1,l.current.isRange){const t=+e.currentTarget.getAttribute("data-n");u(t)}s()}}),[]),h=U.useCallback((e=>{0===e.button&&l.current.active&&(l.current.active=!1,s())}),[]),m=U.useCallback((e=>{if(!l.current.active)return;l.current.isRange||(l.current.isRange=!0,n.isSelected(l.current.startElemNumber)||(n.updateItem(l.current.startElemNumber,!0),l.current.elemNumbers=[]));const t=+e.currentTarget.getAttribute("data-n");u(t)}),[]),g=U.useCallback((e=>{var t,r;if(l.current.active||l.current.isRange||n.isSingleSelect||e.touches.length<=1)return;if(e.touches.length>2)return void s();const o=Number(null===(t=e.touches[0].target)||void 0===t||null===(t=t.closest(hL))||void 0===t?void 0:t.getAttribute("data-n")),a=Number(null===(r=e.touches[1].target)||void 0===r||null===(r=r.closest(hL))||void 0===r?void 0:r.getAttribute("data-n"));if(Number.isNaN(o)||Number.isNaN(o))return void s();l.current.active=!0;c(o,a).length<7&&(l.current.touchRangeSmall=!0),l.current.elemNumbers=[],l.current.touchElemNumbers=[o,a]}),[]),v=U.useCallback((()=>{if(2!==l.current.touchElemNumbers.length)return;if(l.current.touchRangeSmall)return l.current.touchRangeSmall=!1,l.current.touchElemNumbers=[],void(l.current.active=!1);const[e,t]=l.current.touchElemNumbers;l.current.startElemNumber=e,u(t),l.current.touchElemNumbers=[],l.current.active=!1,l.current.toggle=!0,s()}),[]);U.useEffect((()=>(a.addEventListener("mouseup",h),()=>{a.removeEventListener("mouseup",h)})),[h]),U.useEffect((()=>{const e=()=>{n.clearItemStates(!1)},t=()=>{n.clearItemStates(!0),n.triggerStateChanged()};return r.on("clearItemStates",e),r.on("deactivated",e),r.on("cleared",t),()=>{r.removeListener("clearItemStates",e),r.removeListener("deactivated",e),r.removeListener("cleared",t)}}),[r]);const b={};return o?Object.assign(b,{onChange:d}):Object.assign(b,{onMouseUp:f,onMouseDown:p,onMouseEnter:m,onTouchStart:g,onTouchEnd:v}),{interactionEvents:b,select:async function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(null!==(e=n.selectDisabled)&&void 0!==e&&e.call(n))return!1;const i=!n.isSingleSelect&&mL(null==a?void 0:a.nativeEvent);i||n.clearItemStates(!0);const l=[];return n.updateItems(t,o,l),n.setSelectableValuesUpdating(),dL({selections:r,elemNumbers:o?l:t,isSingleSelect:n.isSingleSelect,toggle:i})}}}const vL=e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]});var bL=e=>eL(vL(e));const yL=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,xL=e=>{let{cell:t,checkboxes:n}=e;return((e=>e?"A"===e.qState:null)(t)||yL(t))&&n};const SL=e=>{let{column:t,histogram:n,cell:r,showGray:o}=e;if(!r)return[];const a=[t?fL.column:fL.row];n||a.push(fL.rowBorderBottom);const i=function(e){let t,{cell:n,showGray:r}=e;switch(n.qState){case"XS":t=r?fL.XS:fL.S;break;case"S":case"L":t=fL.S;break;case"A":t=!!r&&fL.A;break;case"X":case"XL":t=!!r&&fL.X;break;default:t=!1}return t}({cell:r,showGray:o});return i&&a.push(i),a},wL=9,EL=4,CL=7,kL=12+2*(CL+1),RL=80,LL=10,OL=150,_L=56,IL=20,TL="-",PL=32,ML=29,NL=20,qL=4,zL=e=>e.filter((e=>!!e)).join(" ").trim(),DL=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,"%")},AL=e=>e||TL,jL=["backgroundColor"],FL=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%"},BL=e=>{let{sizes:t,frequencyMode:n,isGridMode:r}=e;return r?"max-content":"P"===n?t.freqMinWidth:t.freqMaxWidth},$L=e=>{let{theme:t,checkboxes:n,styles:r,selectionState:o}=e;if(n)return"selected"===o?{["& .".concat(fL.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(fL.labelText)]:{color:l},["& .".concat(fL.icon)]:{color:l}}},WL={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},HL=Ty("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:c,frequencyMode:u,freqHitsValue:d,styles:p}=e;const f=s(p.content,jL),h=$L({theme:t,styles:p,checkboxes:n,selectionState:"selected"}),m=$L({theme:t,styles:p,checkboxes:n,selectionState:"excluded"}),g={height:"100%",transition:"width 0.2s",border:"".concat(1,"px solid"),borderColor:"#D9D9D9",backgroundColor:"#FAFAFA"},v={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(fL.row)]:l({flexWrap:"nowrap"},p.content),["& .".concat(fL.rowBorderBottom)]:{borderBottom:o?"none":"1px solid ".concat(t.palette.divider),borderLeft:o?"1px solid ".concat(t.palette.divider):"none"},["& .".concat(fL.column)]:l({flexWrap:"nowrap",borderRight:"1px solid ".concat(t.palette.divider)},p.content),["& .".concat(fL.cell)]:{zIndex:2,display:"flex",alignItems:"center",flexGrow:1,minWidth:n?"52px":"26px",flexBasis:n?"auto":"max-content",paddingLeft:"".concat(wL,"px"),paddingRight:0},["& .".concat(fL.labelText)]:l(l({lineHeight:"16px",userSelect:"none",paddingRight:"1px"},WL),f),["& .".concat(fL.labelDense)]:{fontSize:12},["& .".concat(fL.highlighted)]:{backgroundColor:"#FFC72A"},["& .".concat(fL.checkboxLabel)]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":l(l({},WL),{},{display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"})},["& .".concat(fL.icon)]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24,color:f.color},["& .".concat(fL.S)]:l(l({},h),{},{border:r?"none":void 0}),["& .".concat(fL.XS)]:l(l({},$L({theme:t,styles:p,checkboxes:n,selectionState:"selectedExcluded"})),{},{border:r?"none":void 0}),["& .".concat(fL.A)]:l(l({},$L({theme:t,styles:p,checkboxes:n,selectionState:"alternative"})),{},{border:r?"none":void 0}),["& .".concat(fL.X)]:l(l({},m),{},{border:r?"none":void 0}),["& .".concat(fL.X,", & .").concat(fL.XS)]:{border:r?"none":void 0,["& .".concat(fL.barSelected," .bar-filled")]:l({},g)},["& .".concat(fL.frequencyCount)]:l(l({zIndex:3,justifyContent:"flex-end"},WL),{},{flex:"0 0 ".concat(FL({sizes:c,frequencyMode:u,isGridMode:r,freqHitsValue:d})),minWidth:!r&&"P"!==u&&d?c.freqMinWidth:"max-content",maxWidth:BL({sizes:c,frequencyMode:u,isGridMode:r}),textAlign:"rtl"===i?"left":"right",paddingLeft:"rtl"!==i?"8px":0}),["&.".concat(fL.barContainer)]:{height:"100%",display:"flex",alignItems:"center"},["& .".concat(fL.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":l({},g)},["& .".concat(fL.barSelected)]:{"& .bar-filled":l({},v)},["& .".concat(fL.barWithCheckbox)]:{left:"rtl"===i?4:29,width:"calc(100% - ".concat(33,"px)")},["& .".concat(fL.barSelectedWithCheckbox)]:{"& .bar-filled":l(l({},v),{},{backgroundColor:p.selections.selected||"#BFE5D0",borderColor:p.selections.selected})},["& .".concat(fL.excludedTextWithCheckbox)]:{color:p.content.color,fontStyle:"italic"}}}));var UL=V.memo(HL);const VL="ListBoxCheckbox",GL={cbIcon:"".concat(VL,"-cbIcon"),cbIconChecked:"".concat(VL,"-cbIconChecked"),cbIconExcluded:"".concat(VL,"-cbIconExcluded"),cbIconAlternative:"".concat(VL,"-cbIconAlternative"),checkbox:"".concat(VL,"-checkbox"),dense:"".concat(VL,"-dense")},KL=Ty(hC,{shouldForwardProp:e=>"styles"!==e})((e=>{let{styles:t}=e;return{["& .".concat(GL.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(GL.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(GL.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:t.selections.excluded},["& .".concat(GL.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:t.selections.alternative},["&.".concat(GL.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(GL.dense)]:{padding:"4px 8px"}}})),ZL=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 XL(e){let{onChange:t,checked:n,label:r,dense:o,excluded:a,styles:i,showGray:l=!0,dataN:s}=e;return V.createElement(KL,{edge:"start",onChange:t,checked:n,disableRipple:!0,className:[GL.checkbox,o&&GL.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":r,"data-n":s},name:r,icon:ZL(GL,l,a),checkedIcon:V.createElement("span",{className:GL.cbIconChecked}),styles:i})}const QL={radioButton:"".concat("ListBoxRadioButton","-radioButton")},JL=Ty(TR,{shouldForwardProp:e=>!["dense","styles"].includes(e)})((e=>{let{checked:t,styles:n,dense:r}=e;return{["&.".concat(QL.radioButton)]:{right:"5px",color:t?n.selections.selected:n.content.color,padding:r?"0px 0px 0px 12px":void 0,backgroundColor:"transparent"}}}));function YL(e){let{onChange:t,checked:n,label:r,dense:o,dataN:a,styles:i}=e;return V.createElement(JL,{checked:n,onChange:t,value:r,name:r,className:QL.radioButton,inputProps:{"data-n":a},disableRipple:!0,size:o?"small":"medium",dense:o,styles:i})}function eO(e){let{label:t,dense:n,showGray:r=!0,checkboxes:o,cell:a,valueTextAlign:i}=e;return V.createElement(xS,{component:"span",variant:"body2",className:zL([fL.labelText,n&&fL.labelDense,r&&xL({cell:a,checkboxes:o})&&fL.excludedTextWithCheckbox]),align:i,dir:"auto"},V.createElement("span",null,t))}function tO(e){let{label:t,color:n,dense:r,showGray:o,checkboxes:a,cell:i,valueTextAlign:l}=e;return"string"==typeof t?V.createElement(eO,{label:t,color:n,dense:r,showGray:o,checkboxes:a,cell:i,valueTextAlign:l}):t}function nO(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(XL,{onChange:t,label:n,checked:o,dense:a,excluded:yL(i),isGridCol:l,showGray:s,dataN:r,styles:p}),h=V.createElement(YL,{onChange:t,label:n,checked:o,dense:a,dataN:r,styles:p});return V.createElement(VC,{control:c?h:f,className:fL.checkboxLabel,label:V.createElement(tO,{label:n,dense:a,showGray:s,checkboxes:u,cell:i,valueTextAlign:d}),key:r})}function rO(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?fL.highlighted:""},n)}));return V.createElement(eO,{label:a,dense:n,showGray:r,checkboxes:o})}function oO(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(rO,{labels:n,dense:o,showGray:a,checkboxes:r});return r?V.createElement(nO,{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 aO=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(nO,{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(eO,{label:n,dense:a,showGray:!0,checkboxes:u,cell:i,valueTextAlign:d})}));function iO(e){let{qFrequency:t,histogram:n,checkboxes:r,isSelected:o,frequencyMax:a}=e;if(!(t&&n&&AL(t)!==TL))return;const i=DL({qFrequency:t,checkboxes:r,frequencyMax:a});return V.createElement(JE,{className:zL([fL.bar,r&&fL.barWithCheckbox,o&&(r?fL.barSelectedWithCheckbox:fL.barSelected)])},V.createElement(JE,{className:"bar-filled",width:i}))}function lO(e){let{cell:t,checkboxes:n,dense:r,showGray:o}=e;const a=AL(null==t?void 0:t.qFrequency);return V.createElement(nk,{item:!0,style:{display:"flex",alignItems:"center"},className:fL.frequencyCount,"aria-label":a,title:a},V.createElement(xS,{noWrap:!0,color:"inherit",variant:"body2",className:zL([r&&fL.labelDense,fL.labelText,o&&xL({cell:t,checkboxes:n})&&fL.excludedTextWithCheckbox])},a))}function sO(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 cO=Ty(nk,{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 s="padding".concat("rtl"===a?"Left":"Right");return{["&.".concat(fL.fieldRoot)]:l(l({},sO({dataLayout:t,layoutOrder:n,itemPadding:r,fillHeight:i})),{},{[s]:o?"8px":void 0})}}));const uO=Object.freeze({ENTER:13,ESCAPE:27,SPACE:32,TAB:9,BACKSPACE:8,DELETE:46,ALT:18,CTRL:17,SHIFT:16,ARROW_UP:38,ARROW_DOWN:40,ARROW_LEFT:37,ARROW_RIGHT:39,PAGE_DOWN:34,PAGE_UP:33,HOME:36,END:35,F10:121,A:65,F:70,ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,SUBTRACTION:189,DECIMAL:190,NUMPAD_DECIMAL:110,isArrow:e=>e===uO.ARROW_UP||e===uO.ARROW_DOWN||e===uO.ARROW_LEFT||e===uO.ARROW_RIGHT}),dO=e=>+e.getAttribute("data-n"),pO=e=>{const t=null==e?void 0:e.querySelector(".search input");return null==t||t.focus(),t},fO=e=>{const t=null==e?void 0:e.querySelector(".value.last-focused, .value.selector, .value");return null==t||t.setAttribute("tabIndex",0),null==t||t.focus(),t},hO=e=>{let{rowIndex:t,columnIndex:n,rowCount:r,columnCount:o,layoutOrder:a,keyCode:i,numCells:l}=e;const s=e=>{let t;return"row"===a?(t=l%o,e<t?r:r-1):(t=l%r,e<o-1?r:t)};let c=t,u=n;if(i===uO.ARROW_DOWN)if(t>=s(n)-1){if(n===o-1)return-1;c=0,u=n+1}else c=t+1;else if(0===t){if(0===n)return-1;c=s(n-1)-1,u=n-1}else c=t-1;if("row"===a)return c*o+u;const d=l%r;return 0===d||c<d?c*o+u:(c-d)*(o-1)+u+d*o};const mO={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 gO(e){var t,n;let{index:r,rowIndex:o,columnIndex:a,style:i,data:s}=e;const{onChange:c,onClick:u,onMouseDown:d,onMouseUp:p,onMouseEnter:f,onTouchStart:h,onTouchEnd:m,pages:g,isLocked:v,column:b=!1,checkboxes:y=!1,textAlign:x,direction:S,layoutOptions:w={},freqIsAllowed:E,isSingleSelect:C,actions:k,frequencyMax:R="",histogram:L=!1,keyboard:O,showGray:_=!0,showTick:I=!0,columnCount:T=1,rowCount:P=1,dataOffset:M,deducedFrequencyMode:N,focusListItems:q,listCount:z,sizes:D,translator:A,showSearch:j,isModal:F,contentFontStyle:B,styles:$,fillHeight:W}=s,{dense:H=!1,dataLayout:G="singleColumn",layoutOrder:K}=w,{itemPadding:Z}=D;let X,Q;const J={max:null,currentIndex:null};if("number"==typeof o&&"number"==typeof a){"row"===K?(X=o*T+a,J.max=P,J.currentIndex=o):(X=a*P+o,J.max=T,J.currentIndex=a);const e=0;Q=l(l({},i),{},{height:W?"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,J.max=z,J.currentIndex=r,Q=l({},i);X+=M;const[Y,ee]=U.useState(null);U.useEffect((()=>{null!==Y&&(0===J.currentIndex&&q.first&&(Y.focus(),q.setFirst(!1)),J.currentIndex===J.max-1&&q.last&&(Y.focus(),q.setLast(!1)))}),[Y,q.first,q.last]);const te=U.useCallback(function(e){let{select:t,selectAll:n,onCtrlF:r,confirm:o,cancel:a,setScrollPosition:i,focusListItems:l,keyboard:s,isModal:c,rowCount:u,columnCount:d,rowIndex:p,columnIndex:f,layoutOrder:h}=e;const m=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e===uO.ARROW_LEFT||e===uO.ARROW_RIGHT||"number"!=typeof p||"number"!=typeof f){const e=null==t?void 0:t.parentElement[n?"nextElementSibling":"previousElementSibling"];return null==e?void 0:e.querySelector("[role]")}const r=null==t?void 0:t.parentElement.parentElement,o=null==r?void 0:r.childElementCount;if(o){const n=hO({rowIndex:p,columnIndex:f,rowCount:u,columnCount:d,layoutOrder:h,keyCode:e,numCells:o}),r=null==t?void 0:t.parentElement.parentElement.children[n];return null==r?void 0:r.querySelector("[role]")}};let g=!1;const v=e=>{g=e};return e=>{let u;const{currentTarget:d,nativeEvent:p}=e,{keyCode:f,shiftKey:h=!1,ctrlKey:b=!1,metaKey:y=!1}=p;switch(f){case uO.TAB:{const e=d.closest(".listbox-container"),t=c();if(d.classList.add("last-focused"),h){pO(e)||(t?s.focusSelection():s.blur(!0));break}t?s.focusSelection():(d.blur(),s.blur());break}case uO.SHIFT:v(!0);break;case uO.SPACE:t([dO(d)],!1,e);break;case uO.ARROW_DOWN:case uO.ARROW_RIGHT:u=m(f,d,!0),h&&u&&(g&&(t([dO(d)],!0),v(!1)),t([dO(u)],!0));break;case uO.ARROW_UP:case uO.ARROW_LEFT:u=m(f,d,!1),h&&u&&(g&&(t([dO(d)],!0),v(!1)),t([dO(u)],!0));break;case uO.ENTER:if(o(),void 0===c)return;break;case uO.ESCAPE:if(!c())return;a();break;case uO.HOME:if(l.setFirst(!0),b){null==i||i("overflowStart");break}null==i||i("start");break;case uO.END:if(l.setLast(!0),b){null==i||i("overflowEnd");break}null==i||i("end");break;case uO.A:if(b||y){n();break}return;case uO.F:if(b||y){r();break}return;default:return}u&&u.focus(),e.preventDefault(),e.stopPropagation()}}(l(l({},k),{},{focusListItems:q,keyboard:O,isModal:F,rowCount:P,columnCount:T,rowIndex:o,columnIndex:a,layoutOrder:K})),[k,null==O?void 0:O.innerTabStops,P,T,o,a,K]),ne=U.useMemo((()=>function(e){let t,{pages:n,cellIndex:r}=e;const o=n.filter((e=>e.qArea.qTop<=r&&r<e.qArea.qTop+e.qArea.qHeight))[0];if(o){const e=o.qArea;r>=e.qTop&&r<e.qTop+e.qHeight&&([t]=o.qMatrix[r-e.qTop])}return t}({pages:g,cellIndex:X})),[g,X]),re="S"===(null==ne?void 0:ne.qState)||"XS"===(null==ne?void 0:ne.qState)||"L"===(null==ne?void 0:ne.qState)||"XL"===(null==ne?void 0:ne.qState),oe=U.useMemo((()=>SL({column:b,histogram:L,cell:ne,showGray:_})),[null==ne?void 0:ne.qState,L,H]),ae=U.useCallback((e=>{e.preventDefault()}),[y]),ie=U.useMemo((()=>ne&&function(e){let{direction:t,cell:n,textAlign:r}=e;const o=!["NaN",void 0].includes(null==n?void 0:n.qNum);let a;return a=!r||r.auto?o?"rtl"===t?"left":"right":{rtl:"right",ltr:"left"}[t]:(null==r?void 0:r.align)||"left",["left","center","right"].includes(a)?a:"left"}({direction:S,cell:ne,textAlign:x})),[S,ne,x]);if(!ne)return null;const le="grid"===G&&"column"===K,se=null!==(t=null==ne?void 0:ne.qText)&&void 0!==t?t:"";let ce;if(null!==(n=ne.qHighlightRanges)&&void 0!==n&&null!==(n=n.qRanges)&&void 0!==n&&n.length){const e=ne.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[];ce=function(e,t){if(!t.length)return[];const n=t.reduce(((n,r,o)=>{const a=0===o?0:t[o-1].qCharPos+t[o-1].qCharCount;n.push(...function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const{qCharPos:r,qCharCount:o}=t,a=[];return r>n&&a.push([e.slice(n,r),!1]),a.push([e.slice(r,r+o),!0]),a}(e,r,a));const i=o===t.length-1,l=t[o].qCharPos+t[o].qCharCount;return i&&l<e.length&&n.push([e.slice(l),!1]),n}),[]);return n}(se,e)}const ue={alignItems:"center",display:"flex",fontSize:"8px"},de="rtl"===S,pe={display:"flex",alignItems:"center",flexGrow:1,paddingLeft:de?8:y?0:void 0,paddingRight:y?0:de?8:0,justifyContent:ie,textAlign:ie},fe=0===r,he=re&&v,me=!y&&re&&!v,ge=!y&&I,ve=y||!I,be=function(e){let{translator:t,label:n,qState:r,isSelected:o,currentIndex:a,maxIndex:i,showSearch:l}=e;const s=mO[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:A,label:se,qState:ne.qState,currentIndex:J.currentIndex,maxIndex:J.max,showSearch:j}),ye=!de&&"right"===ie||de&&"left"===ie;return V.createElement(UL,{className:fL.barContainer,checkboxes:y,style:Q,styles:$,isGridCol:le,isGridMode:"grid"===G,dense:H,direction:S,sizes:D,frequencyMode:N,freqHitsValue:ye,contentFontStyle:B,"data-testid":"listbox.item"},V.createElement(cO,{role:"row","aria-label":be,"aria-selected":re,"aria-setsize":J.max,"aria-rowindex":J.currentIndex,ref:ee,container:!0,dataLayout:G,cellPaddingRight:ve,layoutOrder:K,itemPadding:Z,gap:0,className:zL(["value",...oe]),classes:{root:fL.fieldRoot},onClick:u,onMouseDown:d,onMouseUp:p,onMouseEnter:f,onKeyDown:te,onTouchStart:h,onTouchEnd:m,onContextMenu:ae,tabIndex:fe&&O.innerTabStops?0:-1,"data-n":null==ne?void 0:ne.qElemNumber,direction:S,fillHeight:W},(null==ne?void 0:ne.qFrequency)&&V.createElement(iO,{qFrequency:null==ne?void 0:ne.qFrequency,histogram:L,checkboxes:y,isSelected:re,frequencyMax:R}),V.createElement(nk,{item:!0,style:pe,className:zL([fL.cell,fL.selectedCell]),title:"".concat(se)},ce?V.createElement(oO,{onChange:c,labels:ce,checkboxes:y,dense:H,showGray:_,qElemNumber:ne.qElemNumber,isSelected:re,cell:ne,isGridCol:le,isSingleSelect:C,valueTextAlign:ie,styles:$}):V.createElement(aO,{onChange:c,label:se,qElemNumber:ne.qElemNumber,isSelected:re,dense:H,cell:ne,isGridCol:le,showGray:_,isSingleSelect:C,checkboxes:y,valueTextAlign:ie,styles:$})),E&&V.createElement(lO,{cell:ne,checkboxes:y,dense:H,showGray:_}),ge&&V.createElement(nk,{item:!0,className:fL.icon},he&&V.createElement(nL,{style:ue,size:"small"}),me&&V.createElement(bL,{style:ue,size:"small"}))))}var vO=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function bO(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||vO(r)&&vO(o)))return!1;var r,o;return!0}function yO(e,t){var n;void 0===t&&(t=bO);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 xO="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function SO(e){cancelAnimationFrame(e.id)}function wO(e,t){var n=xO();var r={id:requestAnimationFrame((function o(){xO()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var EO=-1;function CO(e){if(void 0===e&&(e=!1),-1===EO||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),EO=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return EO}var kO=null;function RO(e){if(void 0===e&&(e=!1),null===kO||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?kO="positive-descending":(t.scrollLeft=1,kO=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),kO}return kO}var LO=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function OO(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,Ky(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:Ky(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=yO((function(e,t,n,o,a,i,l,s){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:a,visibleColumnStopIndex:i,visibleRowStartIndex:l,visibleRowStopIndex:s})})),r._callOnScroll=void 0,r._callOnScroll=yO((function(e,t,n,o,a){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:a})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,i=r.props,l=i.columnWidth,s=i.direction,c=i.rowHeight,p=r._getItemStyleCache(m&&l,m&&s,m&&c),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=n(r.props,t,r._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(r.props,e,r._instanceProps),height:u(r.props,e,r._instanceProps),width:a(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=yO((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,a=t.scrollLeft,i=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===a&&e.scrollTop===i)return null;var t=r.props.direction,c=a;if("rtl"===t)switch(RO()){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&&SO(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=wO(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}Ay(t,e),t.getDerivedStateFromProps=function(e,t){return _O(e,t),g(e),null};var v=t.prototype;return v.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},v.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,a=this.props,u=a.columnCount,d=a.height,p=a.rowCount,f=a.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,v=CO();void 0!==r&&(r=Math.max(0,Math.min(r,u-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var b=i(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?v:0,x=b>d?v:0;this.scrollTo({scrollLeft:void 0!==r?s(this.props,r,n,m,this._instanceProps,x):m,scrollTop:void 0!==o?c(this.props,o,n,g,this._instanceProps,y):g})},v.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},v.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(RO()){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&&SO(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?LO:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,v=e.style,b=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),w=S[0],E=S[1],C=this._getVerticalRangeToRender(),k=C[0],R=C[1],L=[];if(r>0&&g)for(var O=k;O<=R;O++)for(var _=w;_<=E;_++)L.push(U.createElement(t,{columnIndex:_,data:d,isScrolling:b?x:void 0,key:f({columnIndex:_,data:d,rowIndex:O}),rowIndex:O,style:this._getItemStyle(O,_)}));var I=i(this.props,this._instanceProps),T=l(this.props,this._instanceProps);return U.createElement(h||m||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:qy({position:"relative",height:a,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},U.createElement(c||u||"div",{children:L,ref:s,style:{height:I,pointerEvents:x?"none":void 0,width:T}}))},v._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var a=this._getHorizontalRangeToRender(),i=a[0],l=a[1],s=a[2],c=a[3],u=this._getVerticalRangeToRender(),d=u[0],p=u[1],f=u[2],h=u[3];this._callOnItemsRendered(i,l,d,p,s,c,f,h)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,v=m.scrollLeft,b=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(v,b,g,x,y)}},v._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,a=e.overscanColumnsCount,i=e.overscanCount,l=e.rowCount,s=this.state,c=s.horizontalScrollDirection,u=s.isScrolling,d=s.scrollLeft,p=n||a||i||1;if(0===t||0===l)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=u&&"backward"!==c?1:Math.max(1,p),g=u&&"forward"!==c?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},v._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,a=e.rowCount,i=this.state,l=i.isScrolling,s=i.verticalScrollDirection,c=i.scrollTop,u=r||o||n||1;if(0===t||0===a)return[0,0,0,0];var d=p(this.props,c,this._instanceProps),h=f(this.props,d,c,this._instanceProps),m=l&&"backward"!==s?1:Math.max(1,u),g=l&&"forward"!==s?1:Math.max(1,u);return[Math.max(0,d-m),Math.max(0,Math.min(a-1,h+g)),d,h]},t}(U.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var _O=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},IO=function(e,t){return e};function TO(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,Ky(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Ky(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=yO((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=yO((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,a=r.props,i=a.direction,l=a.itemSize,s=a.layout,u=r._getItemStyleCache(c&&l,c&&s,c&&i);if(u.hasOwnProperty(e))t=u[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===i||"horizontal"===s,h="rtl"===i,m=f?d:0;u[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=yO((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,a=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,i=o;if("rtl"===t)switch(RO()){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&&SO(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=wO(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}Ay(t,e),t.getDerivedStateFromProps=function(e,t){return PO(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?CO():0:s.scrollHeight>s.clientHeight?CO():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(RO()){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&&SO(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?IO:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,v=e.useIsScrolling,b=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,w=this._getRangeToRender(),E=w[0],C=w[1],k=[];if(c>0)for(var R=E;R<=C;R++)k.push(U.createElement(t,{data:u,key:p(R,u),index:R,isScrolling:v?y:void 0,style:this._getItemStyle(R)}));var L=r(this.props,this._instanceProps);return U.createElement(h||m||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:qy({position:"relative",height:a,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},U.createElement(l||s||"div",{children:k,ref:i,style:{height:x?"100%":L,pointerEvents:y?"none":void 0,width:x?L:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var a=this.state,i=a.scrollDirection,l=a.scrollOffset,s=a.scrollUpdateWasRequested;this._callOnScroll(i,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,a=r.scrollDirection,s=r.scrollOffset;if(0===t)return[0,0,0,0];var c=i(this.props,s,this._instanceProps),u=l(this.props,c,s,this._instanceProps),d=o&&"backward"!==a?1:Math.max(1,n),p=o&&"forward"!==a?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+p)),c,u]},t}(U.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var PO=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},MO=OO({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}}),NO=TO({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 qO="#BBB",zO="#f1f1f1",DO={styledScrollbars:"".concat("ListBox","-styledScrollbars")};const AO=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStopIndex)||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex,jO=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStartIndex)||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex,FO=(e,t,n,r)=>e===t*n+r+n;function BO(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=AO(t,c),d=c?r.column:r.row,p=(c?o:a)>=d,f=FO(l,u,c?a:o,s),h=!!s&&jO(t,c),m=p&&!f&&u>=d-1||h||i.state.show;i.set(m)}const{StyledFixedSizeList:$O,StyledFixedSizeGrid:WO}=function(){const e=e=>({scrollbarColor:"".concat(qO," ").concat(zO),overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:zO},"&::-webkit-scrollbar-thumb":{backgroundColor:qO,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:Gh(NO,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(DO.styledScrollbars)]:e(n)}})),StyledFixedSizeGrid:Gh(MO,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(DO.styledScrollbars)]:e(n)}}))}}();const HO=(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)},UO=e=>{const t=U.useMemo((()=>"text"in e?e:{}),[e]);return U.useMemo((()=>HO(t.text,t.font||"12px Source Sans Pro")),[t.text,t.font])};function VO(e){if(!e)return"";const t="number"==typeof e?e:e.qListObject.qDimensionInfo.qApprMaxGlyphCount;return Array(t).fill("M").join("")}function GO(e){let{isGridMode:t,dense:n}=e;let r=n?NL:t?PL:ML;return t&&(r+=qL),r}function KO(e){let{layout:t,width:n,height:r,listCount:o,count:a,freqIsAllowed:i,checkboxes:l,styles:s}=e;const{layoutOptions:c={}}=t||{},{layoutOrder:u,maxVisibleRows:d={},maxVisibleColumns:p,dense:f,dataLayout:h}=c,{fontSize:m="12px",fontFamily:g="Source sans pro"}=(null==s?void 0:s.content)||{},v="".concat(m," ").concat(g),b=UO({text:VO(t),font:v}),y=UO({text:VO(5),font:v}),x=UO({text:VO(8),font:v}),S=i?y:0,w=l?IL:0;let E=_L+S+w;!l&&E>=RL&&(E+=IL);let C,k,R,L,O=b+18+S+w;!l&&O>=RL&&(O+=IL),O=Math.min(OL,Math.max(O,E));const _=GO({isGridMode:"grid"===h,dense:f}),I=null!=r?r:8*_;if(u){let e=n;"row"===u?(C={overflowX:"hidden"},e+=2*qL,({rowCount:L,columnWidth:R,columnCount:k}=function(e){let{maxVisibleColumns:t,listCount:n,containerWidth:r,columnAutoWidth:o,itemMinWidth:a}=e;const i=(null==t?void 0:t.maxColumns)||3,l=r-LL;let s;const c=Math.min(n,Math.max(1,Math.round(l/Math.max(a,o))));s=!1!==(null==t?void 0:t.auto)?c:Math.min(n,i,c),s=Math.max(s,1);const u=l/s;return{rowCount:Math.ceil(n/s),columnWidth:u,columnCount:s}}({maxVisibleColumns:p,listCount:o,containerWidth:e,columnAutoWidth:O,itemMinWidth:E}))):(C={overflowY:"hidden"},({rowCount:L,columnWidth:R,columnCount:k}=function(e){let t,{maxVisibleRows:n,itemHeight:r,listCount:o,listHeight:a,columnAutoWidth:i,containerWidth:l,itemMinWidth:s}=e;const c=(null==n?void 0:n.maxRows)||3,u=Math.floor(a/r);t=!1!==n.auto?u:Math.min(o,c,u),t=Math.max(t,1);const d=Math.ceil(o/t);return{columnWidth:Math.max(i,l/d,s),columnCount:d,rowCount:t}}({maxVisibleRows:d,itemHeight:_,listCount:o,listHeight:I,columnAutoWidth:O,containerWidth:e,itemMinWidth:E})))}k=("singleColumn"===h?1:k)||1,L=("singleColumn"===h?a:L)||o;const T=c.dense?838e3:577e3;L=Math.min(L,T);const P=Math.floor(3355e4/R);k=Math.min(k,P)||1;const M=L*k,N=Math.min(o,M);return{columnCount:k,columnWidth:R,rowCount:L,overflowStyling:C,itemHeight:_,listHeight:I,listWidth:n,scrollBarWidth:LL,count:a,listCount:N,maxCount:{row:T,column:P},itemPadding:qL,textWidth:b,freqMinWidth:y,freqMaxWidth:x}}const ZO=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[XO,QO]=Ax({});function JO(e){const t="".concat(e.id),[n]=XO();return{setStoreValue:(e,r)=>n.set("".concat(t,"/").concat(e),r),getStoreValue:e=>n.get("".concat(t,"/").concat(e))}}const YO=Ty(xS,{shouldForwardProp:e=>!["width","dense"].includes(e)})((e=>{let{width:t,dense:n}=e;return l({minWidth:"".concat(t,"px"),textAlign:"center",fontSize:"".concat(n?"12px":"14px")},n&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:t})}));function e_(e){let{width:t,text:n,dense:r,tooltip:o}=e;const{translator:a}=U.useContext(qx);return V.createElement($R,{title:o?a.get(n):""},V.createElement(YO,{width:t,dense:r,component:"div",variant:"body1",py:"12px"},a.get(n)))}var t_={},n_={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(n_);var r_,o_=n_.exports,a_={},i_=r(Gx);var l_=o_;Object.defineProperty(t_,"__esModule",{value:!0});var s_=t_.default=void 0,c_=l_((r_||(r_=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=i_}(a_)),a_)),u_=rm;s_=t_.default=(0,c_.default)((0,u_.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");const d_=Ty(Yx)((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}})),p_=Ty("div")((()=>({paddingLeft:"6px",flexGrow:1}))),f_=Ty("div")((e=>{let{dense:t}=e;return{display:"flex",alignItems:"".concat(t?"center":"flex-start")}})),h_=Ty(s_)((()=>({fontSize:"14px"})));function m_(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(d_,{left:l,style:{maxWidth:i}},V.createElement(p_,null,V.createElement(e_,{text:t,dense:r,width:s,tooltip:c})),V.createElement(f_,{dense:r},a&&V.createElement(hS,{"aria-label":"close",onClick:()=>n()},V.createElement(h_,null))))}const g_=(e,t)=>e.qListObject.qDimensionInfo.qCardinal-t;const v_=80;function b_(e){let{itemWidth:t,layout:n,frequencyMode:r}=e;const o=t>v_,{frequencyEnabled:a=!1}=(null==n?void 0:n.qListObject)||{},i=!["N",void 0].includes(r);return!(!o||!i&&!a)}const y_=e=>{const t=(e=>e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)?e:"[".concat(e.replace(/\]/g,"]]"),"]"):e)(e);return"Max(AGGR(Count(".concat(t,"), ").concat(t,"))")},x_=(e,t)=>{const n=(e=>"fetch"===(null==e?void 0:e.frequencyMax))(t),[r,o]=U.useState(),[a,i]=U.useState(n);return U.useEffect((()=>{if(!n)return;(async()=>{const n=await(async(e,t)=>{const n=e.qListObject.qDimensionInfo,r=n.qGroupFieldDefs[n.qGroupPos],o=y_(r);return(await t.evaluateEx(o)).qNumber})(t,e);o(n),i(!1)})()}),[n&&t]),{frequencyMax:n?r:null==t?void 0:t.frequencyMax,awaitingFrequencyMax:a}};const S_=["isLoadingData"],w_=100,E_=Ty("div")((()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}})));function C_(e){var t,n;let{model:r,app:o,constraints:i,layout:c,selections:u,selectionState:d,direction:p,checkboxes:f,height:h,width:m,frequencyMode:g,update:v,fetchStart:b,postProcessPages:y,calculatePagesHeight:x=!1,keyboard:S={},showGray:w=!0,scrollState:E,keyScroll:C={state:{},reset:()=>{}},currentScrollIndex:k={set:()=>{}},renderedCallback:R,onCtrlF:L,showSearch:O,isModal:_,styles:I}=e;const{translator:T}=U.useContext(qx),[P,M]=U.useState(!1),N=!(!c||!c.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:q=f,histogram:z}=null!=c?c:{},D=U.useRef(null),A=U.useRef({queue:[],validPages:!1,dataOffset:0}),j=U.useRef({pages:[]}),{frequencyMax:F,awaitingFrequencyMax:B}=x_(o,c),$=function(e){let{local:t,loaderRef:n,model:r,fetchStart:o,scrollTimeout:a,postProcessPages:i,listData:l}=e;const[s,c]=U.useState(!1),[u,d]=U.useState([]);let[p]=U.useState(0);const f=(e,s)=>{const u=t.current.dataOffset;t.current.queue.push({start:e+u,stop:s+u});const f=!!n.current&&n.current._listRef&&n.current._listRef.state.isScrolling;return t.current.queue.length>10&&t.current.queue.shift(),clearTimeout(t.current.timeout),c(!0),new Promise((e=>{t.current.timeout=setTimeout((()=>{const n=t.current.queue.slice(-1)[0],a=r.getListObjectData("/qListObjectDef",[{qTop:n.start>p?n.start-p:0,qHeight:p,qLeft:0,qWidth:1},{qTop:n.start,qHeight:p,qLeft:0,qWidth:1}]).then((n=>{const r=i?i(n):n;t.current.validPages=!0,l.current.pages=r,d(r),c(!1),e()}));o&&o(a)}),f?a:0)}))};return{loadMoreItems:{with(e){let{minimumBatchSize:t}=e;return t&&(p=t),f}},pages:u,isLoading:s}}({local:A,loaderRef:D,model:r,fetchStart:b,scrollTimeout:0,postProcessPages:y,listData:j}),W=s($,S_),{getStoreValue:H,setStoreValue:G}=JO(r),K=U.useCallback(W.loadMoreItems,[c]),[Z,X]=U.useState({show:!1,dismissed:!1}),[Q,J]=U.useState([]);null!=W&&W.pages&&d.update({setPages:J,pages:W.pages,isSingleSelect:N,layout:c});const Y=null==c?void 0:c.qListObject.qDimensionInfo.qCardinal;(null!=W&&W.pages.length&&!B||0===Y)&&(null==R||R());const ee=U.useCallback((e=>{if(null==Q||!Q.length||!A.current.validPages)return!1;A.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)}),[c,Q]),{interactionEvents:te,select:ne}=gL({selectionState:d,selections:u,checkboxes:q,doc:document,loaderRef:D}),{layoutOptions:re={}}=c||{};let oe=!0;re.dataLayout&&(oe="singleColumn"===re.dataLayout||"row"===(null==re?void 0:re.layoutOrder));const ae="grid"===(null==re?void 0:re.dataLayout),ie=e=>{const t=l({},oe?{rowIndex:e}:{columnIndex:e}),n=ae?t:e;D.current._listRef.scrollToItem(n)},le=()=>{if(A.current.queue=[],A.current.validPages=!1,D.current){D.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===C.state.scrollPosition;if(c&&c.qSelectionInfo.qInSelections||e)return void(e&&C.reset());A.current.dataOffset=0,ie(0)}};v&&v.call(null,le),U.useEffect((()=>{E&&!P&&D.current&&(D.current._listRef.scrollToItem(E.initScrollPos),M(!0))}),[D.current]),U.useEffect((()=>{le()}),[c,A.current.dataOffset]);let se=w_;const ce="grid"!==re.dataLayout,ue=null==c||null===(t=c.qListObject.qSize)||void 0===t?void 0:t.qcy,de=function(e){let{pages:t,minimumBatchSize:n,count:r,calculatePagesHeight:o=!1}=e;return(null!=t&&t.length&&o?ZO({pages:t,minimumBatchSize:n,count:r}):r)||0}({pages:Q,minimumBatchSize:se,count:ue,calculatePagesHeight:x,layoutOptions:re,model:r});let pe=b_({itemWidth:m,layout:c,frequencyMode:g});const fe=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),he=KO({layout:c,width:m,height:h,listCount:de,count:ue,freqIsAllowed:pe,checkboxes:q,styles:I});he.columnWidth&&(pe=b_({itemWidth:he.columnWidth,layout:c,frequencyMode:g}));const{listCount:me}=he;G("listCount",me);const ge=H("inputText"),ve=function(e){let{layout:t,searchInputText:n,listCount:r}=e;const{translator:o}=U.useContext(qx),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:c,searchInputText:ge,listCount:me}),be=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=g_(a,o.listCount),t=a.qListObject.qDimensionInfo.qCardinal,l=!0}return{scrollIndex:t,offset:s,triggerRerender:l}}({position:e,isRow:oe,sizes:he,layout:c,offset:A.current.dataOffset});A.current.dataOffset=n,r&&d.triggerStateChanged(),ie(t)};U.useEffect((()=>{const e=C.state;e.up?ie(k.state.start-e.up):e.down?ie(k.state.stop+e.down):e.scrollPosition&&be(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&C.reset()}),[C.state.up,C.state.down,C.state.scrollPosition]);const{textAlign:ye}=(null==c?void 0:c.qListObject.qDimensionInfo)||{},[xe,Se]=U.useState({first:!1,last:!1}),{List:we,Grid:Ee}=function(e){let{layout:t,width:n,checkboxes:r,local:o,isVertical:i,pages:s,selectionState:c,interactionEvents:u,deducedFrequencyMode:d,histogram:p,isSingleSelect:f,select:h,selectAll:m,onCtrlF:g,textAlign:v,selections:b,keyboard:y,showGray:x,scrollState:S,direction:w,sizes:E,listCount:C,overflowDisclaimer:k,setScrollPosition:R,focusListItems:L,setCurrentScrollIndex:O,constraints:_,frequencyMax:I,freqIsAllowed:T,translator:P,showSearch:M,isModal:N,styles:q}=e;const{layoutOptions:z={}}=t||{},{columnWidth:D,listHeight:A,itemHeight:j,rowCount:F,columnCount:B}=E||{},$=("grid"===z.dataLayout?D:n)>RL,W={direction:"rtl"===w?"rtl":"ltr",useIsScrolling:!0,className:DO.styledScrollbars},H=null==t?void 0:t.qListObject.qDimensionInfo.qLocked,U=A<=j,G=l(l({isLocked:H,column:!i,pages:s},H||c.selectDisabled()?{}:u),{},{checkboxes:r,layoutOptions:z,deducedFrequencyMode:d,freqIsAllowed:T,isSingleSelect:f,textAlign:v,sizes:E,actions:{select:h,confirm:()=>null==b?void 0:b.confirm.call(b),cancel:()=>null==b?void 0:b.cancel.call(b),setScrollPosition:R,selectAll:m,onCtrlF:g},frequencyMax:I,histogram:p,keyboard:y,showGray:x,showTick:$,dataOffset:o.current.dataOffset,focusListItems:L,direction:w,translator:P,showSearch:M,isModal:N,styles:q,fillHeight:U});return{List:e=>{let{onItemsRendered:r,ref:i}=e;return o.current.listRef=i,V.createElement($O,a({},W,{dataTestid:"fixed-size-list",scrollDisabled:null==_?void 0:_.active,height:A,width:n,itemCount:C,itemData:l(l({},G),{},{listCount:C}),itemSize:j,onItemsRendered:e=>{var n;O({start:e.visibleStartIndex,stop:e.visibleStopIndex}),S&&S.setScrollPos(e.visibleStopIndex),BO({renderProps:e,layoutOptions:z,maxCount:E.maxCount,columnCount:B,rowCount:F,overflowDisclaimer:k,qCardinal:null==t||null===(n=t.qListObject)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.qCardinal,dataOffset:o.current.dataOffset}),r(l({},e))},ref:i}),gO)},Grid:e=>{let{onItemsRendered:r,ref:i}=e;const{overflowStyling:s,scrollBarWidth:c}=E,{layoutOrder:u}=z||{},d=Math.min(A,F*j+c);return o.current.listRef=i,V.createElement(WO,a({},W,{dataTestid:"fixed-size-grid",scrollDisabled:null==_?void 0:_.active,height:d,width:n,columnCount:B,columnWidth:D,rowCount:F,rowHeight:j,style:l({},s),itemData:l(l({},G),{},{column:void 0,columnCount:B,rowCount:F}),onItemsRendered:e=>{var n;const a="row"===u;O({start:a?e.visibleRowStartIndex:e.visibleColumnStartIndex,stop:a?e.visibleRowStopIndex:e.visibleColumnStopIndex});const i=function(e){const{renderProps:t,scrollState:n,layoutOrder:r,rowCount:o,columnCount:a}=e,{overscanRowStartIndex:i,overscanRowStopIndex:l,overscanColumnStartIndex:s,overscanColumnStopIndex:c,visibleStopIndex:u}=t;let d,p,f,h;return n&&n.setScrollPos(u),"column"===r?(d=s*o,p=i,f=c*o,h=l):(d=s,p=i*a,f=c,h=l*a),{visibleStartIndex:d+p,visibleStopIndex:f+h}}({renderProps:e,scrollState:S,layoutOrder:u,rowCount:F,columnCount:B});BO({renderProps:e,layoutOptions:z,maxCount:E.maxCount,columnCount:B,rowCount:F,overflowDisclaimer:k,qCardinal:null==t||null===(n=t.qListObject)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.qCardinal,dataOffset:o.current.dataOffset}),r(i)},ref:i}),gO)}}}({direction:p,layout:c,height:h,width:m,checkboxes:q,deducedFrequencyMode:fe,histogram:z,keyboard:S,showGray:w,interactionEvents:te,select:ne,selectAll:()=>{d.clearItemStates(!1),r.selectListObjectAll("/qListObjectDef")},onCtrlF:L,textAlign:ye,isVertical:ce,pages:Q,selectionState:d,isSingleSelect:N,selections:u,scrollState:E,local:A,sizes:he,listCount:me,overflowDisclaimer:{state:Z,set:e=>X((t=>l(l({},t),{},{show:e})))},setScrollPosition:be,focusListItems:{first:xe.first,setFirst:e=>Se((t=>l(l({},t),{},{first:e}))),last:xe.last,setLast:e=>Se((t=>l(l({},t),{},{last:e})))},setCurrentScrollIndex:k.set,constraints:i,frequencyMax:F,freqIsAllowed:pe,translator:T,showSearch:O,isModal:_,styles:I}),{columnWidth:Ce,listHeight:ke,itemHeight:Re}=he||{};return ce||(se=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:ke,itemHeight:Re})),V.createElement(E_,null,V.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},ve),!me&&Y>0&&V.createElement(e_,{width:m,text:"Listbox.NoMatchesForYourTerms"}),V.createElement(lL,{isItemLoaded:ee,itemCount:me||1,loadMoreItems:K.with({minimumBatchSize:se}),threshold:0,minimumBatchSize:se,ref:D,role:"grid"},ce?we:Ee),Z.show&&!Z.dismissed&&V.createElement(m_,{text:"Listbox.ItemsOverflow",dismiss:()=>X((e=>l(l({},e),{},{dismissed:!0}))),parentWidth:null==D||null===(n=D.current)||void 0===n||null===(n=n._listRef)||void 0===n||null===(n=n.props)||void 0===n?void 0:n.width,dense:null==re?void 0:re.dense}))}const k_=e=>l(l({},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"}}]}),R_=e=>l(l({},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"}}]}),L_=e=>l(l({},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"}}]}),O_=e=>l(l({},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 __=e=>{let{layout:t,model:n,translator:r,selectionState:o,isDirectQuery:a=!1}=e;if(t.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];return[{key:"selectAll",type:"menu-icon-button",label:r.get("Selection.SelectAll"),getSvgIconShape:k_,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectAll("/qListObjectDef")}},{key:"selectPossible",type:"menu-icon-button",label:r.get("Selection.SelectPossible"),getSvgIconShape:L_,enabled:()=>["qOption"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectPossible("/qListObjectDef")}},!a&&{key:"selectAlternative",type:"menu-icon-button",label:r.get("Selection.SelectAlternative"),getSvgIconShape:R_,enabled:()=>["qAlternative"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectAlternative("/qListObjectDef")}},!a&&{key:"selectExcluded",type:"menu-icon-button",label:r.get("Selection.SelectExcluded"),getSvgIconShape:O_,enabled:()=>["qAlternative","qExcluded"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectExcluded("/qListObjectDef")}}].filter(Boolean)};const I_=e=>l(l({},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 T_(e){const t=Yb(),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 P_={className:"njs-cell-action"},M_=V.forwardRef(((e,t)=>{let{ariaExpanded:n=!1,item:r,addAnchor:o=!1}=e;const a=Yb(),{hidden:i,disabled:l,style:s,hasSvgIconShape:c}=T_(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(hS,{ref:o?null:t,title:r.label,onClick:r.action,onKeyDown:p,onKeyUp:f,disabled:l,style:s,className:[P_.className,h].join(" "),size:"large",disableRipple:!0,"aria-expanded":n,"aria-controls":"moreMenuList","data-testid":h},c&&eL(r.getSvgIconShape()),o&&V.createElement("div",{ref:t,style:{bottom:-u,right:0,position:"absolute",width:"100%",height:0}}))})),N_=e=>l(l({},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"}}]}),q_=e=>l(l({},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 z_=e=>eL(q_(e));const D_="njs-action-toolbar-more",A_={icon:"".concat("More","-icon")},j_=Ty(rR)((e=>{let{theme:t}=e;return{pointerEvents:"none",["& .".concat(A_.icon," *")]:{color:t.palette.text.primary}}}));function F_(e){let{item:t,autoFocus:n,onActionClick:r=(()=>{})}=e;const{hidden:o,disabled:a,hasSvgIconShape:i}=T_(t);return o?null:V.createElement(sR,{autoFocus:n,title:t.label,onClick:()=>{t.action(),r()},disabled:a,tabindex:"0"},i&&V.createElement(jk,{className:A_.icon},eL(t.getSvgIconShape())),V.createElement(xS,{noWrap:!0},t.label))}const B_=V.forwardRef(((e,t)=>{let{actions:n=[],show:r=!0,alignTo:o,popoverProps:i={},popoverPaperStyle:s={},onCloseOrActionClick:c=(()=>{})}=e;const u=n.length>0,d=n.findIndex((e=>!e.disabled));return u&&V.createElement(j_,a({},i,{onClose:c,ref:t,open:r,anchorEl:o.current,getContentAnchorEl:null,container:o.current,disablePortal:!0,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:D_},paper:{style:l({pointerEvents:"auto",maxWidth:"250px"},s)}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}),V.createElement(Vk,{id:"moreMenuList"},n.map(((e,t)=>V.createElement(F_,{key:t,item:e,autoFocus:t===d,onActionClick:c})))))})),$_=e=>{const t=e.closest("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");return Array.from(n).indexOf(e)},W_=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 H_="ActionsToolbar",U_={item:"".concat(H_,"-item"),itemSpacing:"".concat(H_,"-itemSpacing")},V_=Ty(rR)((e=>{let{theme:t}=e;return{["& .".concat(U_.itemSpacing)]:{padding:t.spacing(0,.25)}}})),G_={className:"njs-action-toolbar-popover"},K_=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(nk,{item:!0,container:!0,gap:0,flexDirection:i?"row-reverse":"row",wrap:"nowrap",className:n},o.map(((e,n)=>V.createElement(nk,{item:!0,key:e.key,className:"".concat(U_.itemSpacing," ").concat(U_.item)},V.createElement(M_,{ariaExpanded:r,key:e.key,item:e,ref:0===n?t:null,addAnchor:a}))))):null})),Z_={pointerEvents:"none"},X_={vertical:"bottom",horizontal:"right"};function Q_(e){var t,n;let{show:r=!0,actions:o=[],maxItems:a=3,selections:i={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},extraItems:s,more:c={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{}},popover:u={show:!1,anchorEl:null},focusHandler:d=null,actionsRefMock:p=null,isRtl:f,autoConfirm:h=!1,layout:m}=e;const g=function(e){let{api:t,layout:n,onConfirm:r=(()=>{}),onCancel:o=(()=>{}),onKeyDeactivate:a=(()=>{})}=e;const{translator:i}=U.useContext(qx);return[{key:"clear",type:"icon-button",label:i.get("Selection.Clear"),enabled:()=>t.canClear(n),action:()=>t.clear(),getSvgIconShape:q_},{key:"cancel",type:"icon-button",label:i.get("Selection.Cancel"),enabled:()=>t.canCancel(n),action:()=>{o(),t.cancel()},keyboardAction:()=>{a(),o(),t.cancel()},getSvgIconShape:N_},{key:"confirm",type:"icon-button",label:i.get("Selection.Confirm"),enabled:()=>t.canConfirm(n),action:()=>{r(),t.confirm()},keyboardAction:()=>{a(),r(),t.confirm()},getSvgIconShape:vL}]}(l(l({},i),{},{layout:m})),{translator:v,keyboardNavigation:b}=U.useContext(qx),[y,x]=U.useState(!1),S={vertical:12,horizontal:(null!==(t=null===(n=u.anchorEl)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)-7},w=U.useRef(),E=U.useRef(),C=Yb(),k=U.useMemo((()=>({margin:C.spacing(.5,0)}))),R=e=>{const t=w.current||p;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]},L=U.useMemo((()=>function(e){let{keyboardNavigation:t,focusHandler:n,getEnabledButton:r,selections:o,isRtl:a}=e;return e=>{const{target:i,nativeEvent:l}=e,{keyCode:s}=l;switch(s){case uO.ARROW_LEFT:case uO.ARROW_DOWN:case uO.ARROW_RIGHT:case uO.ARROW_UP:if(i.classList.contains("njs-cell-action")){const e=$_(i);let t=[uO.ARROW_LEFT,uO.ARROW_DOWN].includes(s);t=a?!t:t,W_(t?e-1:e+1)}e.stopPropagation(),e.preventDefault();break;case uO.SPACE:e.preventDefault();break;case uO.TAB:t&&null!=n&&n.refocusContent&&(e.shiftKey&&r(!1)===e.target||!e.shiftKey&&r(!0)===e.target)&&(e.preventDefault(),e.stopPropagation(),n.refocusContent());break;case uO.ESCAPE:o&&(o.onCancel(),o.api.cancel(),e.preventDefault(),e.stopPropagation())}}}({keyboardNavigation:b,focusHandler:d,getEnabledButton:R,selections:i,isRtl:f})),[b,d,R,i,f]);if(U.useEffect((()=>()=>{x(!1)}),[u.show,r,i.show]),U.useEffect((()=>{if(!d)return;d.on("focus_toolbar_first",(()=>{const e=R(!1);null==e||e.focus()})),d.on("focus_toolbar_last",(()=>{const e=R(!0);null==e||e.focus()}))}),[]),h)return;let O=c.enabled,_=c.actions;const I=c.alignTo||E,T=o.filter((e=>!e.hidden));if(T.length>a){const e=T.splice(-(T.length-a)-1);O=!0,_=[...e,...c.actions]}if(!i.show&&0===T.length)return null;const P={key:"more",label:v.get("Menu.More"),getSvgIconShape:I_,hidden:!1,active:y,enabled:()=>O,action:()=>x(!y)},M=T.length>0,N=_.length>0,q=M&&i.show||N&&i.show,z=V.createElement(nk,{ref:w,onKeyDown:L,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:f?"row-reverse":"row"}},(null==s?void 0:s.length)&&V.createElement(K_,{className:"actions-toolbar-extra-actions",actions:s,isRtl:f}),M&&V.createElement(K_,{actions:T}),N&&V.createElement(K_,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:E,ariaExpanded:y,actions:[P],addAnchor:!0}),q&&V.createElement(nk,{item:!0,className:U_.itemSpacing,style:k},V.createElement(jC,{orientation:"vertical"})),i.show&&V.createElement(K_,{className:"actions-toolbar-default-actions",actions:g,isRtl:f}),y&&V.createElement(B_,{show:y,actions:_,alignTo:I,popoverProps:c.popoverProps,popoverPaperStyle:c.popoverPaperStyle,onCloseOrActionClick:()=>{x(!1)}}));return u.show?V.createElement(V_,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:u.show,anchorEl:u.anchorEl,anchorOrigin:S,transformOrigin:X_,hideBackdrop:!0,style:Z_,onMouseDown:e=>{e.stopPropagation()},slotProps:{paper:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:G_.className,style:{pointerEvents:"auto",padding:C.spacing(.5,.25)}}}},z):r&&z}var J_=e=>eL((e=>l(l({},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 Y_="/qListObjectDef",eI="**",tI=e=>null==e?void 0:e.substring(0,64e3),nI=Ty(vR,{shouldForwardProp:e=>!["styles","dense","isRtl"].includes(e)})((e=>{let{theme:t,styles:n,dense:r,isRtl:o}=e,a={};return r&&(a={fontSize:12,paddingLeft:t.spacing(1),"& input":{paddingTop:"5px",paddingBottom:"5px"}}),l({display:"flex",border:"none",fontSize:14,borderRadius:0,backgroundColor:n.search.backgroundColor,backdropFilter:n.background.backgroundImage?n.search.backdropFilter:void 0,paddingLeft:"".concat(wL,"px"),flexDirection:o?"row-reverse":"row","& fieldset":{borderColor:"".concat(n.search.borderColor),borderWidth:"1px 0 1px 0",borderRadius:0},"&.Mui-focused fieldset":{borderColor:"".concat(n.search.highlightBorderColor," !important")},"& .MuiInputBase-root":l({},n.search),"& *":{color:n.search.color},"& input":{color:n.search.color,textAlign:o?"right":"left"}},a)}));function rI(e){let{selections:t,selectionState:n,model:r,keyboard:o,dense:a=!1,visible:i=!0,autoFocus:l=!0,wildCardSearch:s=!1,searchEnabled:c,direction:u,hide:d,styles:p}=e;const{translator:f}=U.useContext(qx),[h,m]=U.useState(""),[g,v]=U.useState(!1),b=U.useRef(),{getStoreValue:y,setStoreValue:x}=JO(r),S="rtl"===u,w=async()=>{try{await r.abortListObjectSearch(Y_)}finally{m("")}};U.useEffect((()=>i?()=>w():()=>{}),[i]),U.useEffect((()=>(t.on("deactivated",w),()=>{t.removeListener&&t.removeListener("deactivated",w)})),[]),U.useEffect((()=>{if(g&&b.current){const e=h.length-1;b.current.setSelectionRange(e,e),v(!1)}}),[g,b.current]),U.useEffect((()=>{x("inputText",h)}),[h]);const E=async()=>{let e;const o=tI(h),a=await r.searchListObjectFor(Y_,o);return n.selectDisabled()?a:(a&&o.length&&y("listCount")>0&&(e=r.acceptListObjectSearch(Y_,!0),t.selectionsMade=!0,n.clearItemStates(!1),m("")),e)};function C(e){const t=(null==e?void 0:e.querySelector(".last-focused"))||(null==e?void 0:e.querySelector('[role="row"]:first-child'));null==t||t.setAttribute("tabIndex",0),null==t||t.focus()}return i&&!1!==c?V.createElement(nI,{styles:p,dense:a,isRtl:S,startAdornment:V.createElement(vk,{position:"start"},V.createElement(J_,{size:a?"small":"normal"})),className:"search",inputRef:b,size:"small",fullWidth:!0,placeholder:f.get("Listbox.Search"),value:h,onFocus:()=>{s&&(m(eI),v(!0))},onChange:async e=>{const t=tI(e.target.value);return m(t),t.length?r.searchListObjectFor(Y_,t):w()},onKeyDown:async e=>{const{currentTarget:n}=e,r=n.closest(".listbox-container");switch(e.key){case"Enter":E();break;case"Escape":C(r),t.cancel();break;case"Tab":e.shiftKey?o.focusSelection():(C(r),null==r||r.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")})));break;case"f":case"F":if(!e.ctrlKey&&!e.metaKey)return;d&&(d(),C(r));break;default:return}e.preventDefault(),e.stopPropagation()},autoFocus:l,inputProps:{tabIndex:o.innerTabStops?0:-1,"data-testid":"search-input-field","aria-label":f.get("Listbox.Search.ScreenReaderInstructions")}}):null}function oI(e){if(!e.session)return[];const{selectionStore:t}=U.useContext(qx),[n]=t.useAppSelectionsStore(),r=e?e.id:null;let o=n.get(r);return U.useEffect((()=>{e&&!o&&(o=function(e){let{app:t,selectionStore:n}=e;const r="".concat(t.id),{modalObjectStore:o,appModalStore:a}=n,i=async function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const{model:t,objectSelections:n}=o.get(r)||{};t&&(await t.endSelections(e),o.clear(r),n.emit("deactivated"))},l={begin:async e=>{var n;let{model:a,paths:l,accept:s=!0,objectSelections:c}=e;if(c===(null===(n=o.get(r))||void 0===n?void 0:n.objectSelections))return;i(s),o.set(r,{model:a,objectSelections:c});const u=Array.isArray(l)?l:[l],d=async e=>{try{await a.beginSelections(u),o.set(r,{model:a,objectSelections:c})}catch(n){6003!==n.code||e?o.clear(r):(await t.abortModal(s),d(!0))}};await d()},end:i};a.set(r,l);const s={model:t,isInModal:()=>!!o.get(r),isModal(e){var t;return e?(null===(t=o.get(r))||void 0===t?void 0:t.objectSelections)===e:!!o.get(r)},forward:()=>l.end().then((()=>t.forward())),back:()=>l.end().then((()=>t.back())),clear:()=>l.end().then((()=>t.clearAll())),clearField(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$";return l.end().then((()=>t.getField(e,n).then((e=>e.clear()))))}};return s}({app:e,selectionStore:t}),n.set(r,o),n.dispatch(!0))}),[e]),[o]}function aI(e){return Object.keys(ee.prototype).forEach((t=>{e[t]=ee.prototype[t]})),ee.init(e),e}const iI=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 aI(l),l},lI=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 sI(e,t,n,r){const o=Array.isArray(n)?n:[n],[a]=oI(e),[i]=XR(t),{appModalStore:l}=U.useContext(qx).selectionStore,s=l.get(e.id),[c,u]=U.useState();return U.useEffect((()=>{a&&t&&!c&&u(iI({appSelections:a,appModal:s,model:t}))}),[a,t]),U.useEffect((()=>{if(!c)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=lI({elements:o,objectSelections:c,options:r});return c.addListener("activated",e),c.addListener("deactivated",t),()=>{c.isActive()&&c.confirm(),c.removeListener("activated",e),c.removeListener("deactivated",t)}}),[c]),U.useEffect((()=>{c&&c.setLayout(i)}),[c,i]),[c]}function cI(){const e=l(l({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=uL(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[l(l({},n),{},{qState:r}),...t.slice(1)]}));return l(l({},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 uI=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 dI(e){const t=(null==e?void 0:e.qListObject.qDimensionInfo.qStateCounts)||{};return uI(t,"qSelected",0)+uI(t,"qSelectedExcluded",0)+uI(t,"qLocked",0)+uI(t,"qLockedExcluded",0)>0}const pI={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}},fI=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,hI=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,mI=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,gI=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,vI=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,bI=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,{floor:yI}=Math,{round:xI}=Math;class SI{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let r,o,a,i,l,s,c,u,d,p,f,h,m=0,g=0,v=0,b=1;if(this._invalid=!1,t[0]instanceof SI)m=t[0]._r,g=t[0]._g,v=t[0]._b,b=t[0]._a,this._invalid=t[0]._invalid;else if(t.length<3)if("string"==typeof t[0])if(h=t[0],f=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(h))m=parseInt(f[1],10),g=parseInt(f[2],10),v=parseInt(f[3],10);else if(f=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(h))m=parseInt(f[1],10),g=parseInt(f[2],10),v=parseInt(f[3],10),b=parseFloat(f[4]);else if(f=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(h))b=parseInt(f[1],10)/255,m=parseInt(f[2],10),g=parseInt(f[3],10),v=parseInt(f[4],10);else if(f=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(h))m=parseInt(f[1],16),g=parseInt(f[2],16),v=parseInt(f[3],16),b=1;else if(f=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(h))m=parseInt(f[1]+f[1],16),g=parseInt(f[2]+f[2],16),v=parseInt(f[3]+f[3],16),b=1;else if(f=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(h)){switch(r=parseFloat(f[1]),o=parseFloat(f[3]),i=parseFloat(f[5]),r%=360,o/=100,i/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,i=i<0?0:i>1?1:i,s=i<=.5?2*i*o:(2-2*i)*o,c=r/60,u=s*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[s,u,0];break;case 1:d=[u,s,0];break;case 2:d=[0,s,u];break;case 3:d=[0,u,s];break;case 4:d=[u,0,s];break;case 5:d=[s,0,u];break;default:d=[0,0,0]}p=i-.5*s,m=d[0]+p,g=d[1]+p,v=d[2]+p,m=xI(255*m),g=xI(255*g),v=xI(255*v),b=1}else if(f=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(h)){switch(r=parseFloat(f[1]),o=parseFloat(f[3]),i=parseFloat(f[5]),b=parseFloat(f[7]),r%=360,o/=100,i/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,i=i<0?0:i>1?1:i,s=i<=.5?2*i*o:(2-2*i)*o,c=r/60,u=s*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[s,u,0];break;case 1:d=[u,s,0];break;case 2:d=[0,s,u];break;case 3:d=[0,u,s];break;case 4:d=[u,0,s];break;case 5:d=[s,0,u];break;default:d=[0,0,0]}p=i-.5*s,m=d[0]+p,g=d[1]+p,v=d[2]+p,m=xI(255*m),g=xI(255*g),v=xI(255*v)}else if(f=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(h)){switch(r=parseFloat(f[1]),o=parseFloat(f[3]),l=parseFloat(f[5]),r%=360,o/=100,l/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,l=l<0?0:l>1?1:l,s=l*o,c=r/60,u=s*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[s,u,0];break;case 1:d=[u,s,0];break;case 2:d=[0,s,u];break;case 3:d=[0,u,s];break;case 4:d=[u,0,s];break;case 5:d=[s,0,u];break;default:d=[0,0,0]}p=l-s,m=d[0]+p,g=d[1]+p,v=d[2]+p,m=xI(255*m),g=xI(255*g),v=xI(255*v),b=1}else pI[h.toLowerCase()]?(a=h.toLowerCase(),m=pI[a].r,g=pI[a].g,v=pI[a].b,b="number"==typeof pI[a].a?pI[a].a:1):this._invalid=!0;else"number"==typeof t[0]&&t[0]>=0&&"argb"===t[1]?(b=(4278190080&t[0])>>>24,b/=255,m=(16711680&t[0])>>16,g=(65280&t[0])>>8,v=255&t[0]):"number"==typeof t[0]&&t[0]>=0?(m=(16711680&t[0])>>16,g=(65280&t[0])>>8,v=255&t[0]):this._invalid=!0;else t.length>=3?(m=t[0],g=t[1],v=t[2],b=arguments.length>=4?t[3]:1):this._invalid=!0;Number.isNaN(+m+g+v+b)&&(this._invalid=!0),this._r=yI(m),this._g=yI(g),this._b=yI(v),this._a=b,this._spaces={}}isInvalid(){return this._invalid}setAlpha(e){this._a=e,this._spaces={}}getAlpha(){return this._a}toRGB(){return this._spaces.rgb||(this._spaces.rgb=SI.toRGB(this)),this._spaces.rgb}toRGBA(){return this._spaces.rgba||(this._spaces.rgba=SI.toRGBA(this)),this._spaces.rgba}toString(){return this._spaces.rgb||(this._spaces.rgb=SI.toRGB(this)),this._spaces.rgb}toHex(){return this._spaces.hex||(this._spaces.hex=SI.toHex(this)),this._spaces.hex}toHSL(e){return this._spaces.hsl||(this._spaces.hsl=SI.toHSL(this,e)),this._spaces.hsl}toHSLA(e){return this._spaces.hsla||(this._spaces.hsla=SI.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=SI.toHSVComponents(this)),this._spaces.hsvComp}toNumber(){return this._spaces.num||(this._spaces.num=SI.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 SI||(e=new SI(e)),this._r===e._r&&this._g===e._g&&this._b===e._b&&this._a===e._a}blend(e,t){const n=yI(this._r+(e._r-this._r)*t),r=yI(this._g+(e._g-this._g)*t),o=yI(this._b+(e._b-this._b)*t),a=yI(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 SI(r)}static toRGB(e){if(e instanceof SI)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=SI.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 SI)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=SI.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 SI?(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=SI.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 SI(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 SI(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 SI(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 SI)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=SI.toNumber(e)))>>16,o=(65280&e)>>8,a=255&e;return(r+(((16711680&(t=SI.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 SI(r,o,a,i)}static isCSSColor(e){return!(arguments.length>1||"string"!=typeof e)&&(fI.test(e)||hI.test(e)||mI.test(e)||gI.test(e)||vI.test(e)||bI.test(e)||pI[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 SI(...t).isDark(...t)}static useDarkLabel(e,t){return e._a>.5?!e.isDark():!t}}const wI=/,(?![^(]*\))/,EI=/\s(?![^(]*\))/,CI=/^[0-9]+[a-zA-Z%]+?$/,kI=["none","inset","initial","inherit"],RI=e=>{if(!e)return;const t=e.split(EI).filter((e=>!kI.includes(e.toLowerCase()))).at(-1),n=!t||(e=>"0"===e||CI.test(e))(t)||kI.includes(t.toLowerCase())?void 0:t;return n},LI=e=>e?e.split(wI).map((e=>e.trim())):[];function OI(e,t,n,r){return n&&r?n.getStyle("object.".concat(r),e,t):n?n.getStyle("",e,t):void 0}const _I=!0;function II(e,t,n,r,o){return e&&r?"none"!==e.color?r.getColorPickerColor(e,_I):void 0:OI(t,n,r,o)}const TI={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},PI={"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 MI(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 NI(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=MI(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=PI[e.bgImage.position]),n}(e),a=function(e){var t;let n=TI.originalSize;const r=null==e||null===(t=e.bgImage)||void 0===t?void 0:t.sizing;return r&&(n=TI[r]),n}(e);return r?{url:r,pos:o,size:a}:void 0}}function qI(e,t,n){const r=null==e?void 0:e.bgColor;return r&&t&&(r.useExpression||r.useColorExpression)?t.validateColor(r.colorExpression):II(null==r?void 0:r.color,"","backgroundColor",t,n)}function zI(e,t,n){var r,o;const a=OI("shadow","boxShadow",t,n);return((e,t,n)=>{if(e&&kI.includes(e.toLowerCase()))return e.toLowerCase();const r=LI(e);if(1!==r.length)return e;let o=n;if(!o){const n=LI(t);if(1!==n.length)return e;o=RI(n[0])}if(!o)return e;const a=RI(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,II(null==e||null===(o=e.shadow)||void 0===o?void 0:o.boxShadowColor,"shadow","boxShadowColor",t,n))}function DI(e,t,n,r){var o;const a=(null==e||null===(o=e.title)||void 0===o?void 0:o[t])||{},i=function(e,t){return e&&Array.isArray(e)?e:"main"===t?["bold"]:[]}(a.fontStyle,t);return{fontFamily:a.fontFamily||n.getStyle("object.".concat(r),"title.".concat(t),"fontFamily"),fontSize:a.fontSize||n.getStyle("object.".concat(r),"title.".concat(t),"fontSize"),color:a.color&&"none"!==a.color.color?n.getColorPickerColor(a.color,!0):n.getStyle("object.".concat(r),t,"color"),fontWeight:i.includes("bold")?"bold":"normal",fontStyle:i.includes("italic")?"italic":"normal",textDecoration:i.includes("underline")?"underline":"initial"}}const AI="#FFF",jI="#000",FI=1.5,BI=3,$I=(e,t)=>{let n=!1;const r=new SI(e),o=new SI(t);if(!(o.isInvalid()||r.isInvalid()||o.getAlpha()<1||r.getAlpha()<1)){try{n=SI.getContrast(r,o)}catch(e){n=void 0}return n}};function WI(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:jI,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:AI;const o=new SI(r),a=new SI(e),i=new SI(t);if(a.isInvalid()||i.isInvalid()||a.getAlpha()<1||i.getAlpha()<1)return t;const l=$I(o,a),s=$I(i,a),c=l>s||l>BI;let u;return u=t&&s>FI&&!c?t:c?r:n,u}const HI=["theme","selections"];function UI(e){var t,n,r,o,a,i,l,s;let{app:c,themeApi:u,theme:d,components:p=[],checkboxes:f=!1}=e;const h=function(){const e={};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((t=>{const n=null==t?void 0:t.key;HI.includes(n)&&(e[n]=t)})),e}(p),m=(e,t)=>u.getStyle("object.listBox",e,t),g=e=>(null==e?void 0:e.index)>0||null!=e&&e.color?u.getColorPickerColor(e,!1):void 0,v=function(e){var t,n,r,o,a,i,l,s,c,u,d,p,f,h,m;let{getColorPickerColor:g,theme:v,getListboxStyle:b,overrides:y,checkboxes:x}=e;const S=g(null===(t=y.theme)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.fontColor)||b("content","color")||(null===(n=v.palette)||void 0===n?void 0:n.text.primary),w=!x&&(null===(r=null===(o=y.theme)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.useContrastColor)||void 0===r||r),E=(null===(a=y.selections)||void 0===a?void 0:a.colors)||{},C=g(E.selected)||(null===(i=v.palette)||void 0===i?void 0:i.selected.main)||"#009845",k=g(E.alternative)||(null===(l=v.palette)||void 0===l?void 0:l.selected.alternative)||"#E4E4E4",R=g(E.excluded)||(null===(s=v.palette)||void 0===s?void 0:s.selected.excluded)||"#A9A9A9",L=g(E.selectedExcluded)||(null===(c=v.palette)||void 0===c?void 0:c.selected.selectedExcluded)||"#A9A9A9",O=g(E.possible)||b("","backgroundColor")||(null===(u=v.palette)||void 0===u?void 0:u.selected.possible)||"#FFFFFF";let _=S||(null===(d=v.palette)||void 0===d?void 0:d.selected.selectedContrastText),I=S||(null===(p=v.palette)||void 0===p?void 0:p.selected.alternativeContrastText),T=S||(null===(f=v.palette)||void 0===f?void 0:f.selected.excludedContrastText),P=S||(null===(h=v.palette)||void 0===h?void 0:h.selected.selectedExcludedContrastText),M=S||(null===(m=v.palette)||void 0===m?void 0:m.selected.possibleContrastText);return w&&(_=WI(C,S),I=WI(k,S),T=WI(R,S),P=WI(L,S),M=WI(O,S)),{selected:C,alternative:k,excluded:R,selectedExcluded:L,possible:O,selectedContrast:_,alternativeContrast:I,excludedContrast:T,selectedExcludedContrast:P,possibleContrast:M}}({getColorPickerColor:g,theme:d,getListboxStyle:m,overrides:h,checkboxes:f}),b=h.theme||{},y=g(null===(t=b.header)||void 0===t?void 0:t.fontColor)||m("title.main","color"),x=function(e){let t,{themeApi:n,themeOverrides:r}=e;const o=null==r?void 0:r.background;return o?(t=null!=o&&o.useExpression?qI({bgColor:o},n,"listBox"):n.getColorPickerColor(null==o?void 0:o.color,!1),t):t}({themeApi:u,themeOverrides:b}),S=null!==(n=b.background)&&void 0!==n&&n.image?NI({bgImage:b.background.image},c):void 0,w=x||m("","backgroundColor")||d.palette.background.default,E=function(e,t){const n=new SI(t("","backgroundColor"));return n.setAlpha(.7),n.isInvalid()?e:n.toRGBA()}(w,m),C=function(e){return WI("#fff",e("content","color"))}(m),k=(null===(r=b.header)||void 0===r?void 0:r.fontStyle)||{},R=(null===(o=b.content)||void 0===o?void 0:o.fontStyle)||{},L=(e,t,n)=>!0===e&&t||!1===e&&n||void 0;return{background:{backgroundColor:w,backgroundImage:null==S||!S.url||null!=S&&S.url.startsWith("url(")?void 0:"url('".concat(S.url,"')"),backgroundRepeat:"no-repeat",backgroundSize:null==S?void 0:S.size,backgroundPosition:null==S?void 0:S.pos},header:{color:y,fontSize:(null===(a=b.header)||void 0===a?void 0:a.fontSize)||m("title.main","fontSize"),fontFamily:(null===(i=b.header)||void 0===i?void 0:i.fontFamily)||m("title.main","fontFamily"),fontWeight:L(k.bold,"bold","normal")||m("title.main","fontWeight")||"bold",textDecoration:k.underline?"underline":"initial",fontStyle:L(k.italic,"italic","normal")||m("title.main","fontStyle")||"initial"},content:{backgroundColor:f?void 0:v.possible,color:v.possibleContrast||m("content","color"),fontSize:(null===(l=b.content)||void 0===l?void 0:l.fontSize)||m("content","fontSize"),fontFamily:(null===(s=b.content)||void 0===s?void 0:s.fontFamily)||m("content","fontFamily"),fontWeight:L(R.bold,"bold","normal")||m("content","fontWeight")||"normal",textDecoration:R.underline?"underline":"initial",fontStyle:L(R.italic,"italic","normal")||m("content","fontStyle")||"initial"},search:{color:C,borderColor:d.palette.divider,highlightBorderColor:d.palette.custom.focusBorder,backgroundColor:E,backdropFilter:"blur(8px)"},selections:v}}function VI(e){let{alignTo:t,anchorOrigin:n={vertical:"bottom",horizontal:"center"},transformOrigin:r={vertical:"top",horizontal:"center"},show:o,close:a,app:i,fieldName:l,stateName:s="$",autoFocus:c,components:u,checkboxes:d,selectDisabled:p=(()=>!1)}=e;const f=Boolean(null==l?void 0:l.qLibraryId),h=o&&Boolean(t.current),[m,g]=U.useState(0),v=Yb(),b=U.useRef(),[y]=HR({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:s,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],qFieldDefs:f?void 0:[l]},qLibraryId:f?l.qLibraryId:void 0}},i,l,s),x=U.useCallback((()=>{y.lock("/qListObjectDef")}),[y]),S=U.useCallback((()=>{y.unlock("/qListObjectDef")}),[y]),{translator:w,themeApi:E}=U.useContext(qx),C=U.useRef(),k=U.useRef(),[R]=sI(i,y,k),[L]=XR(y),[O]=U.useState((()=>cI({selectDisabled:p}))),{checkboxes:_=d}=L||{},I=UI({themeApi:E,theme:v,components:u,checkboxes:_});if(U.useEffect((()=>{R&&h&&(R.isModal(y)||R.goModal("/qListObjectDef"))}),[R,h]),!y||!L||!w)return null;const T=!0===L.qListObject.qDimensionInfo.qLocked,P=(e,t)=>{const n="escapeKeyDown"!==t;R.noModal(n),a()},M=__({layout:L,model:y,translator:w,selectionState:O}),N=dI(L);return V.createElement(rR,{open:h,onClose:P,anchorEl:t.current,anchorOrigin:n,transformOrigin:r,slotProps:{paper:{style:{minWidth:"250px"}}},onKeyDown:e=>"Enter"===e.key?P():void 0},V.createElement(nk,{container:!0,direction:"column",gap:0,ref:k},V.createElement(nk,{item:!0,container:!0,style:{padding:v.spacing(1)}},V.createElement(nk,{item:!0},T?V.createElement(hS,{onClick:S,disabled:!T,size:"large"},V.createElement(nL,{title:w.get("Listbox.Unlock")})):V.createElement(hS,{onClick:x,disabled:!N,size:"large"},V.createElement(oL,{title:w.get("Listbox.Lock")}))),V.createElement(nk,{item:!0,xs:!0}),V.createElement(nk,{item:!0},V.createElement(Q_,{layout:L,more:{enabled:!T,actions:M,alignTo:C,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:R,onConfirm:P,onCancel:()=>P(0,"escapeKeyDown")}}))),V.createElement(nk,{item:!0,xs:!0},V.createElement("div",{ref:C}),V.createElement(nk,{item:!0,ref:b},V.createElement(rI,{styles:I,visible:!0,model:y,listCount:m,selections:R,selectionState:O,keyboard:{enabled:!1},autoFocus:null==c||c})),V.createElement(C_,{model:y,app:i,layout:L,selections:R,selectionState:O,direction:"ltr",onSetListCount:e=>g(e),onCtrlF:()=>{const e=b.current.querySelector("input");null==e||e.focus()},styles:I}))))}function GI(e){let{field:t,api:n,stateIx:r=0,skipHandleShowListBoxPopover:o=!1,moreAlignTo:a=null,onClose:i=(()=>{})}=e;const{translator:l}=U.useContext(qx),s=a||U.useRef(),c=Yb(),[u,d]=U.useState(!1),p=e=>{e.currentTarget.contains(e.target)&&d(!u)},f=()=>{d(!1),i()},h=t.selections[r];void 0===h.qTotal&&(h.qTotal=0);const m=h.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},g=(m.qSelected+m.qLocked)/h.qTotal,v=m.qAlternative/h.qTotal,b=(m.qExcluded+m.qLockedExcluded+m.qSelectedExcluded)/h.qTotal,y=m.qSelected+m.qSelectedExcluded+m.qLocked+m.qLockedExcluded,x=0===y&&0===h.qTotal;let S="";h.qTotal===y&&h.qTotal>1?S=l.get("CurrentSelections.All"):y>1&&h.qTotal?S=l.get("CurrentSelections.Of",[y,h.qTotal]):h.qSelectedFieldSelectionInfo&&(S=h.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==t.states[r]&&(S="".concat(t.states[r],": ").concat(S));const w=[{color:c.palette.selected.main,ratio:g},{color:c.palette.selected.alternative,ratio:v},{color:c.palette.selected.excluded,ratio:b}];w.forEach(((e,t)=>{e.offset=t?w[t-1].offset+w[t-1].ratio:0}));let E=null,C=null,k=null,R=null;return a||(E=V.createElement(nk,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:h.qLocked?"0.3":""}},V.createElement(xS,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},h.qField),V.createElement(xS,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},S)),h.qLocked?C=V.createElement(nk,{item:!0},V.createElement(hS,{size:"large"},V.createElement(nL,null))):h.qOneAndOnlyOne||(C=V.createElement(nk,{item:!0},V.createElement(hS,{title:l.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),n.clearField(h.qField,t.states[r])},size:"large"},V.createElement(tL,null)))),k=V.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===x&&w.map((e=>V.createElement("div",{key:e.color,style:{position:"absolute",background:e.color,height:"100%",top:0,width:"".concat(100*e.ratio,"%"),left:"".concat(100*e.offset,"%")}})))),R=V.createElement(nk,{container:!0,gap:1,ref:s,sx:{backgroundColor:c.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:c.palette.action.hover}},onClick:!1===o&&p||null},E,C,k,u&&V.createElement(VI,{alignTo:s,show:u,close:f,app:n.model,fieldName:h.qField,stateName:t.states[r]}))),a?V.createElement(VI,{alignTo:s,show:!0,close:f,app:n.model,fieldName:h.qField,stateName:t.states[r]}):R}var KI=e=>eL((e=>l(l({},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 ZI={item:"".concat("MultiState","-item")},XI=Ty(nk)((e=>{let{theme:t}=e;return{["&.".concat(ZI.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"}}}));function QI(e){let{field:t,api:n,moreAlignTo:r=null,onClose:o=(()=>{})}=e;const[a,i]=U.useState(!!r),[l,s]=U.useState(-1),[c,u]=U.useState(r?r.current:null),d=r||U.useRef(),{translator:p}=U.useContext(qx),f=p.get("Selection.ClearAllStates"),h=()=>{s(-1),o()};let m=null;r||(m=V.createElement(V.Fragment,null,V.createElement(nk,{item:!0,xs:!0,zeroMinWidth:!0},V.createElement(ZE,{style:{padding:"0px 8px"},color:"secondary",badgeContent:t.states.length},V.createElement(xS,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},t.name))),V.createElement(nk,{item:!0},V.createElement("div",{style:{width:"12px"}})),V.createElement(nk,{item:!0},V.createElement(hS,{size:"large"},V.createElement(KI,null)))));const g=V.createElement(wk,{dense:!0},V.createElement(Nk,{title:f,onClick:()=>{t.states.forEach((e=>n.clearField(t.name,e)))}},V.createElement(Lx,{variant:"contained",fullWidth:!0},f)),t.states.map(((e,r)=>V.createElement(Nk,{key:r,title:t.name,onClick:e=>((e,t)=>{e.stopPropagation(),i(!1),s(t)})(e,r)},V.createElement(JE,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},V.createElement(GI,{field:t,api:n,stateIx:r,skipHandleShowListBoxPopover:!0})))))),v=V.createElement(rR,{open:a,onClose:()=>{i(!1),o()},anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},g),b=r?v:V.createElement(XI,{container:!0,gap:0,className:ZI.item,onClick:e=>{e.currentTarget.contains(e.target)&&(u(e.currentTarget),d.current=e.currentTarget,i(!a))}},m,a&&v,l>-1&&V.createElement(VI,{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(VI,{alignTo:d,show:l>-1,close:h,app:n.model,fieldName:t.selections[l].qField,stateName:t.states[l]}):b}const JI="More",YI={item:"".concat(JI,"-item"),badge:"".concat(JI,"-badge")},eT=Ty(nk)((e=>{let{theme:t}=e;return{["&.".concat(YI.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(YI.badge)]:{padding:t.spacing(0,1)}}}));function tT(e){let{items:t=[],api:n}=e;const r=Yb(),[o,a]=U.useState(!1),[i,l]=U.useState(-1),[s,c]=U.useState(null),u=U.useRef(),d=()=>{l(-1)};let p=null;return i>-1&&(p=t[i].states.length>1?V.createElement(QI,{field:t[i],api:n,moreAlignTo:u,onClose:d}):V.createElement(GI,{field:t[i],api:n,skipHandleShowListBoxPopover:!0,moreAlignTo:u,onClose:d})),V.createElement(eT,{container:!0,gap:0,className:YI.item,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),u.current=e.currentTarget,a(!o))}},V.createElement(nk,{item:!0},V.createElement(JE,{borderRadius:r.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:r.palette.selected.main,color:r.palette.selected.mainContrastText}},V.createElement(xS,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",t.length))),V.createElement(nk,{item:!0},V.createElement(hS,{size:"large"},V.createElement(KI,null))),o&&V.createElement(rR,{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(wk,{dense:!0},t.map(((e,t)=>V.createElement(Nk,{key:t,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),a(!1),l(t)})(e,t)},V.createElement(JE,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?V.createElement(QI,{field:e,api:n}):V.createElement(GI,{field:e,api:n}))))))),p)}const nT=120,rT=72;function oT(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"$";e.qSelections.forEach((e=>{const r=e.qField,o=t[r]=t[r]||{name:r,states:[],selections:[]};-1===o.states.indexOf(n)&&(o.states.push(n),o.selections.push(e))}))}function aT(e){let{api:t,app:n}=e;const r=Yb(),[o]=VR(n),[a]=XR(o),[i,l]=U.useState({items:[],more:[]}),{modalObjectStore:s}=U.useContext(qx).selectionStore,[c,u]=JR(),[d,p]=U.useState(0);return U.useEffect((()=>{if(!u)return;const{width:e}=u,t=Math.floor(e)-rT,n=Math.floor(t/nT);p(n)}),[u]),U.useEffect((()=>{if(!(n&&o&&a&&d))return;const e=function(e){if(!e)return[];const t={};return e.qSelectionObject&&oT(e.qSelectionObject,t),e.alternateStates&&e.alternateStates.forEach((e=>oT(e.qSelectionObject,t,e.stateName))),Object.keys(t).map((e=>t[e])).filter((e=>!e.selections.some((e=>e.qIsHidden))))}(a);l((t=>{const r=e;if((()=>{const{model:e}=s.get(n.id)||{};return"njsListbox"===(null==e?void 0:e.genericType)})()&&r.length+1===t.items.length){const e=t.items.filter((e=>!1===r.some((t=>e.name===t.name))))[0],{qField:n}=e.selections[0];e.selections=[{qField:n}];const o=t.items.indexOf(e);r.splice(o,0,e)}let o=[];return d<r.length&&(o=r.splice(d-r.length)),{items:r,more:o}}))}),[n,o,a,t.isInModal(),d]),V.createElement(nk,{ref:c,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},i.items.map((e=>V.createElement(nk,{item:!0,key:"".concat(e.states.join("::"),"::").concat(e.name),style:{position:"relative",maxWidth:"240px",minWidth:"".concat(nT,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},e.states.length>1?V.createElement(QI,{field:e,api:t}):V.createElement(GI,{field:e,api:t})))),i.more.length>0&&V.createElement(nk,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(rT,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},V.createElement(tT,{items:i.more,api:t})))}var iT=e=>eL((e=>l(l({},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 lT=e=>eL((e=>l(l({},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 sT=(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 cT(e){let{api:t,app:n}=e;const{translator:r}=U.useContext(qx),[o]=function(e){const[t]=VR(e),[n]=XR(t),[r]=QR(e),[o,a]=U.useState(null);return U.useEffect((()=>{r&&t&&n&&sT(t,n,r)}),[r,t,n]),U.useEffect((()=>{if(!n)return;let e=!1,t=!1,r=!1;[n,...n.alternateStates||[]].forEach((n=>{e=e||n.qSelectionObject&&n.qSelectionObject.qBackCount>0,t=t||n.qSelectionObject&&n.qSelectionObject.qForwardCount>0,r=r||(n.qSelectionObject&&n.qSelectionObject.qSelections||[]).filter((e=>!0!==e.qLocked)).length>0})),a({canGoBack:e,canGoForward:t,canClear:r})}),[n]),[o,t,n]}(n);return V.createElement(nk,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},V.createElement(nk,{item:!0},V.createElement(hS,{style:{marginRight:"8px"},disabled:!o||!o.canGoBack,title:r.get("Navigate.Back"),onClick:()=>t.back(),size:"large"},V.createElement(iT,null))),V.createElement(nk,{item:!0},V.createElement(hS,{style:{marginRight:"8px"},disabled:!o||!o.canGoForward,title:r.get("Navigate.Forward"),onClick:()=>t.forward(),size:"large"},V.createElement(lT,null))),V.createElement(nk,{item:!0},V.createElement(hS,{disabled:!o||!o.canClear,title:r.get("Selection.ClearAll"),onClick:()=>t.clear(),size:"large"},V.createElement(z_,null))))}const uT=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function dT(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function pT(){return uT.map(dT).join("")}function fT(e){let{app:t}=e;const n=Yb(),[r]=oI(t);return r?V.createElement(nk,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:n.palette.background.paper,minHeight:"40px"}},V.createElement(nk,{item:!0,style:{borderRight:"1px solid ".concat(n.palette.divider)}},V.createElement(cT,{api:r,app:t})),V.createElement(nk,{item:!0,xs:!0,style:{backgroundColor:n.palette.background.darker,overflow:"hidden"}},V.createElement(aT,{api:r,app:t}))):null}let hT;hT="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;let mT=null,gT=null;const vT=hT.clearTimeout,bT=hT.setTimeout,yT=hT.cancelAnimationFrame||hT.mozCancelAnimationFrame||hT.webkitCancelAnimationFrame,xT=hT.requestAnimationFrame||hT.mozRequestAnimationFrame||hT.webkitRequestAnimationFrame;function ST(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__&&mT(this.__resizeRAF__),this.__resizeRAF__=gT((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=hT.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==yT||null==xT?(mT=vT,gT=function(e){return bT(e,20)}):(mT=function([e,t]){yT(e),vT(t)},gT=function(e){const t=xT((function(){vT(n),e()})),n=bT((function(){yT(t),e()}),20);return[t,n]});class wT extends U.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const r=window.getComputedStyle(this._parentNode)||{},o=parseFloat(r.paddingLeft||"0"),a=parseFloat(r.paddingRight||"0"),i=parseFloat(r.paddingTop||"0"),l=parseFloat(r.paddingBottom||"0"),s=this._parentNode.getBoundingClientRect(),c=s.height-i-l,u=s.width-o-a,d=this._parentNode.offsetHeight-i-l,p=this._parentNode.offsetWidth-o-a;(e||this.state.height===d&&this.state.scaledHeight===c)&&(t||this.state.width===p&&this.state.scaledWidth===u)||(this.setState({height:d,width:p,scaledHeight:c,scaledWidth:u}),"function"==typeof n&&n({height:d,scaledHeight:c,scaledWidth:u,width:p}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(t)):(this._detectElementResize=ST(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),U.createElement(c,{ref:this._setRef,style:{...m,...s},...u},!v&&e(g))}}function ET(e){null==e||e.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")}))}function CT(e){return(null==e?void 0:e.closest(".njs-cell"))||(null==e?void 0:e.closest(".qv-gridcell"))}function kT(e){let{keyboard:t,hovering:n,updateKeyScroll:r,containerRef:o,currentScrollIndex:a,isModal:i,constraints:l}=e;return{handleKeyDown:e=>{const{keyCode:n,shiftKey:r=!1}=e.nativeEvent,a=()=>{e.stopPropagation(),e.preventDefault()};if(!t.enabled)return;const l=e.currentTarget.closest(".listbox-container"),s=i();switch(n){case uO.TAB:if(s)r?fO(l)||pO(l):pO(l)||fO(l);else{if(!r)break;t.blur(!0)}a();break;case uO.ENTER:case uO.SPACE:if(!e.target.classList.contains("listbox-container"))break;t.focus(),a();break;case uO.ESCAPE:(e=>{const{currentTarget:n,target:r}=e,a=r.classList.contains("listbox-container"),i=CT(n.closest(".listbox-container")),l=1===(null==i?void 0:i.querySelectorAll(".listbox-container").length);if(a||l)t.blur(!0);else{ET(o.current),n.classList.add("last-focused"),t.blur();const e=n.closest(".listbox-container");e.setAttribute("tabIndex",-1),null==e||e.focus()}})(e)}},handleOnMouseEnter:()=>{n.current=!0},handleOnMouseLeave:()=>{n.current&&(n.current=!1)},globalKeyDown:e=>{if(!n.current||(()=>{const e=(null==l?void 0:l.select)||(null==l?void 0:l.active),t=i();return e||t})())return;const{keyCode:t,ctrlKey:o=!1,shiftKey:s=!1}=e;switch(t){case uO.ARROW_UP:r({up:1});break;case uO.ARROW_DOWN:r({down:1});break;case uO.PAGE_UP:r({up:a.stop-a.start});break;case uO.PAGE_DOWN:r({down:a.stop-a.start});break;case uO.HOME:r({scrollPosition:o&&s?"overflowStart":"start"});break;case uO.END:r({scrollPosition:o&&s?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const RT=Ty("div")((()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"})));function LT(e){let{text:t}=e;const{translator:n}=U.useContext(qx);return V.createElement(RT,null,n.get(t))}const OT={fontSize:"12px"},_T=Ty(vx)((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(CL,"px")}}})),IT=Ty(nk,{shouldForwardProp:e=>!["styles","isRtl"].includes(e)})((e=>{let{styles:t,isRtl:n}=e;return l(l({flexDirection:n?"row-reverse":"row",wrap:"nowrap",minHeight:32,alignContent:"center"},t.header),{},{"& *":{color:t.header.color}})})),TT=Ty(xS)((e=>{let{styles:t}=e;return l(l({},t.header),{},{display:"block",alignItems:"center",paddingRight:"1px"})}));function PT(e){let{translator:t,toggleLock:n,keyboard:r,isLoading:o}=e;const a=t.get("SelectionToolbar.ClickToUnlock");return V.createElement(_T,{title:a,tabIndex:r.enabled?0:-1,onClick:n,"data-testid":"listbox-unlock-button",id:"listbox-unlock-button",isLoading:o},o?V.createElement(OC,{size:16,variant:"indeterminate",color:"primary"}):V.createElement(nL,{disableRipple:!0,style:OT}),!o&&V.createElement(xS,{fontSize:"14px"},a))}var MT=e=>eL((e=>l(l({},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 NT=e=>eL((e=>l(l({},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 qT=e=>eL((e=>l(l({},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 zT="H",DT="C";var AT={createDimensionIconData:e=>{let{dimInfo:t,app:n,selections:r,isPopover:o,active:a}=e;switch(t.qGrouping){case zT:return{icon:NT,tooltip:"Listbox.DrillDown",onClick:void 0};case DT:{const e=n&&a;return{icon:e?qT:MT,tooltip:"Listbox.Cyclic",onClick:e?()=>{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))}:void 0}}default:return}}};const jT=Ty(Lx)((()=>({borderRadius:4,width:24,height:24,minWidth:22,padding:0})));function FT(e){let{iconData:t,translator:n,iconStyle:r,disabled:o}=e;if(!t)return;const{icon:a,tooltip:i,onClick:s}=t,c=a,u=n.get(i);return s?V.createElement(jT,{variant:"outlined",onClick:s,tabIndex:-1,title:u,size:"large",disableRipple:!0,disabled:o},V.createElement(c,{style:r})):V.createElement(c,{title:u,size:"large",style:l(l({},r),{},{padding:"".concat(CL,"px")})})}const BT=500;let $T=0;function WT(e){var t,n,r;let{layout:o,translator:i,styles:s,isRtl:c,showLock:u,showSearchIcon:d,constraints:p,onShowSearch:f,classes:h,containerRect:m,isPopover:g,showToolbar:v,showDetachedToolbarOnly:b,containerRef:y,model:x,selectionState:S,isDirectQuery:w,selections:E,keyboard:C,autoConfirm:k,app:R,isInSelection:L}=e;const[O,_]=U.useState(b),[I,T]=U.useState(null==o||null===(t=o.qListObject)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.qLocked),[P,M]=U.useState(!1);U.useEffect((()=>{var e;T(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 N=U.useRef(null),q=AT.createDimensionIconData({dimInfo:null==o||null===(r=o.qListObject)||void 0===r?void 0:r.qDimensionInfo,app:R,selections:E,isPopover:g,active:!(null!=p&&p.active)}),z=u&&I,D=!u&&I,A=d||D||q,j=wL-(A?CL:0),F=c?wL-(A?CL:0):EL,B=(d?kL:0)+(D?kL:0)+(q?kL:0),$=function(e){let{isLocked:t,setLocked:n,settingLockedState:r,model:o,setSettingLockedState:a}=e;return()=>{const e=new Date;if(e-$T<BT)return Promise.resolve();if(r)return()=>{};a(!0),$T=e;const i=t?o.unlock:o.lock;return n(!t),i.call(o,"/qListObjectDef").catch((()=>{n(t)})).finally((()=>{setTimeout((()=>{a(!1)}),0)}))}}({isLocked:I,setLocked:T,settingLockedState:P,setSettingLockedState:M,model:x}),W=__({layout:o,model:x,translator:i,selectionState:S,isDirectQuery:w}),H=I||!u?void 0:[{key:"lock",type:void 0,label:i.get("SelectionToolbar.ClickToLock"),getSvgIconShape:rL,enabled:()=>!P&&!S.selectDisabled()&&dI(o),action:$}],G=null!=p&&p.active?V.createElement(J_,{title:i.get("Listbox.Search"),size:"large",style:l(l({},OT),{},{padding:"".concat(CL,"px")})}):V.createElement(hS,{onClick:f,tabIndex:-1,title:i.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},V.createElement(J_,{style:OT}));U.useEffect((()=>{if(!N.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:N,iconsWidth:B,paddingLeft:j,paddingRight:F});_(b||e)}),[B,j,F,N.current,b,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}=e;return{autoConfirm:c,isDetached:t,show:n&&!t,popover:{show:n&&t,anchorEl:r.current},extraItems:i,more:{enabled:!o,actions:a,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:n,api:l,onConfirm:()=>{null==s||s.focus()},onCancel:()=>{null==s||s.focus()}}}}({isDetached:!g&&O,showToolbar:v,containerRef:y,isLocked:I,extraItems:H,listboxSelectionToolbarItems:W,selections:E,keyboard:C,autoConfirm:k}),Z=V.createElement(Q_,a({isRtl:c,layout:o},K));if(b)return Z;const X=D?V.createElement(nL,{size:"large",style:l(l({},OT),{},{padding:"".concat(CL,"px")})}):void 0;return V.createElement(IT,{item:!0,container:!0,styles:s,isRtl:c,marginY:1,paddingLeft:"".concat(j,"px"),paddingRight:"".concat(F,"px"),className:"header-container"},z&&V.createElement(PT,{isLoading:P,translator:i,toggleLock:$,keyboard:C}),A&&V.createElement(nk,{item:!0,container:!0,alignItems:"center",width:B,className:"header-action-container"},X||d&&G,V.createElement(FT,{iconData:q,iconStyle:OT,disabled:L&&g,translator:i})),V.createElement(nk,{item:!0,xs:!0,minWidth:0,justifyContent:c?"flex-end":"flex-start",className:h.listBoxHeader},V.createElement(TT,{variant:"h6",noWrap:!0,ref:N,title:o.title,styles:s},o.title)),V.createElement(nk,{item:!0,display:"flex"},Z))}const HT="ListBoxInline",UT={listBoxHeader:"".concat(HT,"-listBoxHeader"),screenReaderOnly:"".concat(HT,"-screenReaderOnly"),listboxWrapper:"".concat(HT,"-listboxWrapper")},VT=Ty(nk,{shouldForwardProp:e=>!["containerPadding","isGridMode","styles"].includes(e)})((e=>{let{theme:t,containerPadding:n,isGridMode:r,styles:o}=e;return l(l({},o.background),{},{["& .".concat(UT.listBoxHeader)]:{alignSelf:"center",display:"flex"},["& .".concat(UT.screenReaderOnly)]:{position:"absolute",height:0,width:0,overflow:"hidden"},["& .".concat(UT.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 GT=V.memo((function(e){var t,n,r,o;let{options:a,layout:i}=e;const{app:s,direction:c,frequencyMode:u,checkboxes:d,search:p=!0,focusSearch:f=!1,rangeSelect:h=!0,model:m,selections:g,update:v,fetchStart:b,postProcessPages:y,calculatePagesHeight:x,showGray:S=!0,scrollState:w,renderedCallback:E,toolbar:C=!0,isPopover:k=!1,showLock:R=!1,components:L,selectDisabled:O=(()=>!1)}=a,_=Yb(),{translator:I,keyboardNavigation:T,themeApi:P,constraints:M}=U.useContext(qx),{checkboxes:N=d}=i||{},q=UI({app:s,themeApi:P,theme:_,components:L,checkboxes:N}),z=function(e){let{appLayout:t}=e;return!(null==t||!t.qIsDirectQueryMode)}({appLayout:null==s?void 0:s.layout}),D=U.useRef(),[A,j]=JR(),[F,B]=(()=>{const[e,t]=U.useState({}),n=U.useCallback((e=>{t({current:e})}),[t]);return[e,n]})(),[$,W]=U.useState(!1),[H,G]=U.useState(!1),K=U.useRef(!1),[Z,X]=U.useState({down:0,up:0,scrollPosition:""}),Q=e=>X((t=>l(l({},t),e))),[J,Y]=U.useState({start:0,stop:0}),[ee]=oI(s),[te]=U.useState((()=>cI({selectDisabled:O}))),ne=function(e){let{containerRef:t,enabled:n}=e;const[r,o]=U.useState(!1),a={enabled:n,active:r,innerTabStops:!n||r,blur(e){var r;if(!n)return;o(!1);const a=CT(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)})),ET(t.current),e&&a&&(a.setAttribute("tabIndex",0),a.focus())},focus(){if(!n)return;o(!0);const e=t.current,r=null==e?void 0:e.querySelector(".search input"),a=null==e?void 0:e.querySelector(".value.last-focused"),i=null==e?void 0:e.querySelector(".value.selector, .value"),l=null==e?void 0:e.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),s=null==e?void 0:e.querySelector("#listbox-unlock-button"),c=r||a||i||s||l;null==c||c.setAttribute("tabIndex",0),null==c||c.focus()},focusSelection(){const e=document.querySelector("#listbox-unlock-button"),t=document.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),n=e||t;null==n||n.setAttribute("tabIndex",0),null==n||n.focus()}};return a}({containerRef:D,enabled:T}),re=U.useCallback((()=>(e=>{var t,n;let{app:r,appSelections:o}=e;return null!==(t=null===(n=r.isInModalSelection)||void 0===n?void 0:n.call(r))&&void 0!==t?t:o.isInModal()})({app:s,appSelections:ee})),[s,ee]),oe=null==i?void 0:i.qListObject.qDimensionInfo.qError,ae=oe&&M.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",[ie,le]=U.useState(!1),{handleKeyDown:se,handleOnMouseEnter:ce,handleOnMouseLeave:ue,globalKeyDown:de}=U.useMemo((()=>kT({keyboard:ne,hovering:K,updateKeyScroll:Q,containerRef:D,currentScrollIndex:J,app:s,appSelections:ee,constraints:M,isModal:re})),[ne,K,Q,D,J,s,ee,M,re]);U.useEffect((()=>(document.addEventListener("keydown",de),()=>{document.removeEventListener("keydown",de)})),[de]),U.useEffect((()=>{!0===p&&G(!0);const e=()=>{W(!0),le(!0)},t=()=>{W(!1),le(!1),"toggle"===p&&G(!1)};return k&&(g.isActive()||(g.on("activated",e),g.on("deactivated",t)),W(k)),C&&g&&(g.isModal()||(g.on("activated",e),g.on("deactivated",t)),W(g.isActive())),()=>{g&&g.removeListener&&(g.removeListener("activated",e),g.removeListener("deactivated",t))}}),[C,g,k]),U.useEffect((()=>{if(F&&F.current&&(p&&f||"toggle"===p&&H)){const e=F.current.querySelector("input");e&&e.focus()}}),[F&&F.current,H,p,f]);const{wildCardSearch:pe,searchEnabled:fe,autoConfirm:he=!1,layoutOptions:me={}}=null!=i?i:{},ge=null==i||null===(t=i.qListObject)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.qLocked,ve=!1!==fe&&"toggle"===p&&!ge,be=(null==i||null===(n=i.title)||void 0===n?void 0:n.length)&&!1!==(null==i?void 0:i.showTitle),ye=C&&!be&&!k,xe=C&&be||k,Se="rtl"===c;if(!m||!i||!I)return null;const we=!0===p||"toggle"===p&&H&&!1!==fe,Ee=null!==(r=me.dense)&&void 0!==r&&r,Ce=()=>{G(!H)},ke=()=>{if("toggle"===p)Ce();else{const e=F.current.querySelector("input");null==e||e.focus()}},Re=we&&"toggle"===p,Le="grid"===(null==me?void 0:me.dataLayout),Oe=function(e){let t,{isGridMode:n,dense:r,height:o,layoutOrder:a}=e;if(n){let e;e=GO({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:Le,dense:Ee,height:null===(o=D.current)||void 0===o?void 0:o.clientHeight,layoutOrder:me.layoutOrder});oe&&(null==E||E());const _e=xe?NL+LL:0,Ie=V.createElement(WT,{app:s,showSearchIcon:ve,onShowSearch:Ce,isPopover:k,showToolbar:$,isDirectQuery:z,autoConfirm:he,showDetachedToolbarOnly:ye,layout:i,translator:I,styles:q,isRtl:Se,showLock:R,constraints:M,classes:UT,containerRect:j,containerRef:D,model:m,selectionState:te,selections:g,keyboard:ne,isInSelection:ie});return V.createElement(V.Fragment,null,ye&&Ie,V.createElement(VT,{className:"listbox-container",container:!0,tabIndex:ne.enabled?-1:void 0,direction:"column",gap:0,containerPadding:Oe,styles:q,style:{height:"100%",flexFlow:"column nowrap"},onKeyDown:se,onMouseEnter:ce,onMouseLeave:ue,ref:e=>{D.current=e,A(e)},isGridMode:Le,"aria-label":ne.active?I.get("Listbox.ScreenReaderInstructions"):""},xe&&Ie,V.createElement(nk,{item:!0,container:!0,direction:"column",height:"100%",minHeight:_e,role:"region","aria-label":I.get("Listbox.ResultFilterLabel")},V.createElement(nk,{item:!0,ref:B},V.createElement(rI,{selections:g,selectionState:te,model:m,dense:Ee,keyboard:ne,visible:we,search:p,autoFocus:Re,wildCardSearch:pe,searchEnabled:fe,direction:c,hide:ve&&Ce,styles:q})),V.createElement(nk,{item:!0,xs:!0,className:UT.listboxWrapper},oe?V.createElement(LT,{text:ae}):V.createElement(wT,null,(e=>{let{height:t,width:n}=e;return V.createElement(C_,{model:m,app:s,constraints:M,layout:i,selections:g,selectionState:te,direction:c,frequencyMode:u,rangeSelect:h,checkboxes:N,height:t,width:n,update:v,fetchStart:b,postProcessPages:y,calculatePagesHeight:x,keyboard:ne,showGray:S,scrollState:w,keyScroll:{state:Z,reset:()=>X({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:J,set:Y},renderedCallback:E,onCtrlF:ke,isModal:re,styles:q})}))))))}));function KT(e){let{options:t={}}=e;const{model:n}=t,[r]=XR(n);return V.createElement(GT,{options:t,layout:r})}function ZT(e){let{app:t,qId:n,options:r={}}=e;const[o,a]=U.useState(),[i]=WR(),{sessionModel:l}=r,s=["dense","frequencyMode","checkboxes","histogram","title","stateName","listLayout"],c=Object.keys(r).filter((e=>s.includes(e)));if(c.length)throw new Error('Option "'.concat(c.join(", "),'" is not applicable for existing objects.'));return U.useEffect((()=>{Promise.resolve(l||async function(e){return i.get(e)||await t.getObject(e)}(n)).then((e=>{!function(e){i.get(e.id)||(i.set(e.id,e),e.once("closed",(()=>{i.clear(e.id)})))}(e),a(e)}))}),[]),o}const XT={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 QT(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 JT=["__DO_NOT_USE__"],YT=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 l(l(l({},s(e,JT)),n),t)};function eP(e){let{app:t,fieldIdentifier:n,qId:r,stateName:o,element:a,options:i,renderedCallback:s}=e;const{isExistingObject:c,hasExternalSelectionsApi:u}=function(e){let{qId:t,options:n}=e;return{isExistingObject:!(!t&&!n.sessionModel),hasExternalSelectionsApi:!!n.selectionsApi}}({qId:r,options:i});c||Object.assign(i,{frequencyMode:QT(i.frequencyMode)});const[d,p]=U.useState(0);U.useEffect((()=>{if(d)throw new Error("Source or selection Api can not change after a listbox has been mounted");p(d+1)}),[c,u]);const f=c?ZT({app:t,qId:r,options:i}):function(e){var t;let{app:n,fieldIdentifier:r,stateName:o,options:a={}}=e;const[i,l]=U.useState(""),[s,c]=U.useState(!0),[u,d]=U.useState(),[p,f]=U.useState(),h=null!==(t=a.title)&&void 0!==t?t:p;let{histogram:m=!1,frequencyMode:g="N"}=a;i&&i.failedToFetchFieldDef&&(m=!1,g="N"),U.useEffect((()=>{const e=m||"N"!==g;r.qLibraryId&&e?async function(){try{const e=await n.getDimension(r.qLibraryId),t=await e.getLayout();f(t.qDim.title),"N"===t.qDim.qGrouping?l(t.qDim.qFieldDefs?t.qDim.qFieldDefs[0]:""):l({multiFieldDim:!0}),c(!1)}catch(e){throw c(!1),l({failedToFetchFieldDef:!0}),new Error("Disabling frequency count and histogram: ".concat(e&&e.message))}}():(c(!1),f(r))}),[]);const{dense:v,checkboxes:b,listLayout:y,properties:x={}}=a,S={dense:v};"horizontal"===y&&(S.dataLayout="grid",S.layoutOrder="column",S.maxVisibleColumns={auto:!0},S.maxVisibleRows={auto:!1,maxRows:1});const w=U.useRef();w.current||(w.current=pT());const E=He(!0,{},XT,{qInfo:{qId:w.current},qListObjectDef:{qStateName:o,qFrequencyMode:m&&"N"===g?"V":g},histogram:m,checkboxes:b,layoutOptions:S,title:h});let C;if(He(!0,E,x),r.qLibraryId?(E.qListObjectDef.qLibraryId=r.qLibraryId,C=r.qLibraryId):(E.qListObjectDef.qDef.qFieldDefs=[r],C=r),"P"!==g&&m)if(null!=i&&i.multiFieldDim)E.frequencyMax="fetch";else{const e=r.qLibraryId?i:C;E.frequencyMax={qValueExpression:y_(e)}}const[k]=HR(E,s?null:n,C,o);return U.useEffect((()=>{k&&d(k)}),[k]),u}({app:t,fieldIdentifier:n,stateName:o,options:i}),h=U.useRef(a),m=u?i.selectionsApi:sI(t,f,[h,".njs-action-toolbar-more",".njs-action-toolbar-popover"],i)[0],g=U.useMemo((()=>l(l({},i),{},{selections:m,model:f,app:t,renderedCallback:s})),[i,m,f,t]);return m&&f?V.createElement(KT,{options:g}):null}const tP={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function nP(e){let{app:t,fieldIdentifier:n,stateName:r,element:o,options:a={}}=e;const[i,l]=U.useState(!!a.show);return V.createElement(VI,{show:i,app:t,alignTo:{current:o},anchorOrigin:a.anchorOrigin,transformOrigin:a.transformOrigin,close:()=>{l(!1),a.onPopoverClose&&a.onPopoverClose()},fieldName:n,stateName:r,autoFocus:a.autoFocus,components:a.components})}function rP(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function oP(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 aP=e=>({qDef:{qFieldDefs:[e]}}),iP=e=>({qDef:{qDef:e}});function lP(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?aP(e):l(l({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||pT(),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),rP(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 oP(t.qInterColumnSortOrder,e),n.dimensions.removed(r,o,e),r},addMeasure(e){const r="string"==typeof e?iP(e):l(l({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||pT(),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),rP(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];oP(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 sP=e=>({qDef:{qFieldDefs:[e]}});function cP(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?sP(e):l(l({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||pT(),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 uP=e=>({qDef:{qFieldDefs:[e]}}),dP=e=>{let t;return t="string"==typeof e?He(!0,{},XT,{qListObjectDef:uP(e)}):e.qListObjectDef?He(!0,{},XT,e):He(!0,{},XT,{qListObjectDef:e}),t};function pP(e){let{children:t,halo:n}=e;const r={async addDimension(e){const r=dP(e),o=r.qListObjectDef;if(o.qDef.cId=o.qDef.cId||pT(),!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 fP(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 hP(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")?cP:e.match("/qChildListDef")?pP:lP}(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"===fP(t)?await d.addMeasure(t):await d.addDimension(t)}}var mP={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 gP={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 vP=2**53-1;function bP(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function yP(e,t){const n=He(!0,{},t,e);return mP.getValue(n,"qOtherTotalSpec.qOtherCounted")||mP.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),mP.getValue(n,"qOtherTotalSpec.qOtherLimit")||mP.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function xP(e,t){return He(!0,{},t,e)}function SP(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var wP={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===mP.getValue(e,t)&&mP.setValue(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:bP,importCommonProperties:function(e,t,n){const r="masterobject"===mP.getValue(t,"properties.qInfo.qType")?"masterobject":mP.getValue(n,"qInfo.qType");mP.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:yP,createDefaultMeasure:xP,resolveValue:SP,getHypercubePath:function(e){const t=mP.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?(gP.indexAdded(n.qInterColumnSortOrder,a),++a):(--a,gP.indexRemoved(n.qInterColumnSortOrder,a))},createNewProperties:function(e){let{exportFormat:t,initialProperties:n,hypercubePath:r}=e,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((e=>{"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=He(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?mP.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||bP(e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),o=He(!0,{},n,o),null===o.components&&(o.components=[]),o},getMaxMinDimensionMeasure:function(e){let{exportFormat:t,dataDefinition:n={}}=e;const r=t.data[0],o=n.dimensions||{max:0},a=n.measures||{max:0},i=SP(a.max,r.dimensions.length,vP),l=SP(a.min,r.dimensions.length,0);return{maxDimensions:SP(o.max,i,vP),minDimensions:SP(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(yP(i.dimensions[l],a)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(yP(i.dimensions[l],a));else if(i.dimensions.length)for(l=0;l<i.dimensions.length;++l)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(yP(i.dimensions[l],a));if(i.excludedDimensions.length)for(l=0;l<i.excludedDimensions.length;++l)o.qDimensions.length<r?o.qDimensions.push(yP(i.excludedDimensions[l],a)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(yP(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(xP(i.measures[l],a)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(xP(i.measures[l],a));else if(i.measures.length)for(l=0;l<i.measures.length;++l)o.qLayoutExclude.qHyperCubeDef.qMeasures.push(xP(i.measures[l],a));if(i.excludedMeasures.length)for(l=0;l<i.excludedMeasures.length;++l)o.qMeasures.length<r?o.qMeasures.push(xP(i.excludedMeasures[l],a)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(xP(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=mP.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=mP.getValue(t,r||"").qHyperCubeDef,o=[...e.qMeasures];e.qMeasures=[],o.forEach((r=>{e.qMeasures.push(r),n.measures.added(r,t)}))}}};var EP={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=mP.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();gP.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&&(wP.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!mP.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=wP.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:a}),s=mP.getValue(n,a||"").qHyperCubeDef,c=mP.getValue(l,a||"").qHyperCubeDef,{maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f}=wP.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:h=wP.getDefaultDimension(),defaultMeasure:m=wP.getDefaultMeasure()}=o;return c.qDimensions.length=0,c.qMeasures.length=0,wP.shouldInitLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f})&&wP.initLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f,newHyperCubeDef:c}),wP.addDefaultDimensions({exportFormat:t,maxDimensions:u,minDimensions:d,newHyperCubeDef:c,defaultDimension:h}),wP.addDefaultMeasures({exportFormat:t,maxMeasures:p,minMeasures:f,newHyperCubeDef:c,defaultMeasure:m}),wP.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:c}),wP.copyPropertyIfExist("qMaxStackedCells",s,c),wP.copyPropertyIfExist("qNoOfLeftDims",s,c),wP.copyPropertyOrSetDefault("qInitialDataFetch",s,c,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),wP.copyPropertyOrSetDefault("qMode",s,c,"S"),wP.copyPropertyOrSetDefault("qReductionMode",s,c,"N"),wP.copyPropertyOrSetDefault("qSortbyYValue",s,c),wP.copyPropertyOrSetDefault("qIndentMode",s,c),wP.copyPropertyOrSetDefault("qShowTotalsAbove",s,c),wP.importCommonProperties(l,t,n),wP.updateDimensionsOnAdded({newProperties:l,dataDefinition:r,hypercubePath:a}),wP.updateMeasuresOnAdded({newProperties:l,dataDefinition:r,hypercubePath:a}),i.qProperty=l,i}(e)};const CP=e=>mP.getValue(e,"data.targets.0.propertyPath"),kP=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return EP.exportProperties})(CP(e))},RP=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return EP.importProperties})(CP(e))},LP=async e=>{let{halo:t,model:n,cellRef:r,newType:o,properties:a,viewDataMode:i=!1}=e;const s=a?{qProperty:a}:await n.getFullPropertyTree(),c=r.current.getQae(),u=kP(c);if(!u)throw new Error("Source chart does not support conversion");const d=await(async e=>{let{halo:t,name:n,version:r}=e;const{types:o}=t;return await o.get({name:n,version:r}).supernova()})({halo:t,name:o}),p=d.qae,f=RP(p);if(!f)throw new Error("Target chart does not support conversion");return f({exportFormat:u({propertyTree:s,hypercubePath:wP.getHypercubePath(c),viewDataMode:i}),initialProperties:l({qInfo:{qType:o},visualization:o},mP.getValue(p,"properties.initial",{})),dataDefinition:mP.getValue(p,"data.targets.0.",{}),hypercubePath:wP.getHypercubePath(p),viewDataMode:i})},OP={hypercube:EP};var _P=e=>eL((e=>l(l({},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 IP(e){let{d:t}=e;const n=Yb();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(xS,{style:{lineHeight:"30px",paddingRight:n.spacing(1)}},V.createElement(dk,null,t.missing||t.error?V.createElement(_P,{style:a}):V.createElement(bL,{style:a})));return V.createElement(nk,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},V.createElement(nk,{item:!0},i),V.createElement(nk,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},V.createElement(xS,{noWrap:!0,component:"p"},V.createElement(xS,{component:"span",variant:"subtitle2",color:r},t.description),V.createElement(xS,{component:"span"}," "),V.createElement(xS,{component:"span",variant:"subtitle2",color:t.error?"error":"inherit",style:{fontWeight:400}},t.label))))}function TP(e){let{data:t}=e;const n=Yb();return V.createElement(nk,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},t.map(((e,t)=>{const r=e.descriptions.map(((e,t)=>V.createElement(IP,{d:e,key:t})));return r.length>0&&V.createElement(nk,{container:!0,item:!0,key:t,direction:"column",style:{paddingBottom:n.spacing(2)}},V.createElement(xS,{noWrap:!0,key:t,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),r)})))}function PP(e){let{title:t="Error",message:n="",data:r=[]}=e;return V.createElement(nk,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},V.createElement(nk,{item:!0},V.createElement(_P,{style:{fontSize:"38px"}})),V.createElement(nk,{item:!0},V.createElement(xS,{variant:"h6",align:"center","data-tid":"error-title"},t)),V.createElement(nk,{item:!0},V.createElement(xS,{variant:"subtitle1",align:"center","data-tid":"error-message"},n)),V.createElement(TP,{data:r}))}const MP=["size"],NP="Progress",qP={root:"".concat(NP,"-root"),front:"".concat(NP,"-front"),back:"".concat(NP,"-back")},zP=Ty("div")((e=>{let{theme:t}=e;return{["&.".concat(qP.root)]:{position:"relative",display:"inline-block"},["& .".concat(qP.front)]:{color:t.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(qP.back)]:{color:t.palette.divider}}})),DP={small:16,medium:32,large:64,xlarge:128};function AP(e){let{size:t="medium"}=e,n=s(e,MP);const r=DP[t];return V.createElement(zP,{className:qP.root},V.createElement(OC,a({variant:"determinate",value:100,className:qP.back,size:r,thickness:3},n)),V.createElement(OC,a({variant:"indeterminate",disableShrink:!0,className:qP.front,size:r,thickness:3},n)))}const jP=["cancel","translator"],FP=["retry","translator"],BP={stripes:"".concat("LongRunningQuery","-stripes")},$P=Ty(nk)((()=>({["& .".concat(BP.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 WP(e){let{cancel:t,translator:n}=e,r=s(e,jP);return V.createElement(V.Fragment,null,V.createElement($P,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},V.createElement(nk,{item:!0},V.createElement(AP,null)),V.createElement(nk,{item:!0},V.createElement(xS,{variant:"h6",align:"center","data-tid":"update-active"},n.get("Object.Update.Active")))),V.createElement(nk,a({item:!0},r),V.createElement(Lx,{variant:"contained",onClick:t},n.get("Cancel"))))}function HP(e){let{retry:t,translator:n}=e,r=s(e,FP);return V.createElement(V.Fragment,null,V.createElement(nk,{item:!0},V.createElement(_P,{style:{fontSize:"38px"}})),V.createElement(nk,{item:!0},V.createElement(xS,{variant:"h6",align:"center","data-tid":"update-cancelled"},n.get("Object.Update.Cancelled"))),V.createElement(nk,{item:!0},V.createElement(Lx,a({variant:"contained",onClick:t},r),n.get("Retry"))))}function UP(e){let{canCancel:t,canRetry:n,api:r}=e;const{translator:o}=U.useContext(qx);return V.createElement(nk,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:BP.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t&&V.createElement(WP,{cancel:r.cancel,translator:o,className:BP.cancel}),n&&V.createElement(HP,{retry:r.retry,translator:o,className:BP.retry}))}function VP(){return V.createElement(nk,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},V.createElement(AP,{size:"large"}))}const GP="Header",KP={containerStyle:"".concat(GP,"-containerStyle"),containerTitleStyle:"".concat(GP,"-containerTitleStyle")},ZP=Ty(nk)((e=>{let{theme:t}=e;return{["&.".concat(KP.containerStyle)]:{flexGrow:0},["&.".concat(KP.containerTitleStyle)]:{paddingBottom:t.spacing(1)}}})),XP="njs-cell-title",QP="njs-cell-sub-title";function JP(e){let{layout:t,sn:n,anchorEl:r,hovering:o,focusHandler:a,titleStyles:i={}}=e;const l=t.showTitles&&!!t.title,s=t.showTitles&&!!t.subtitle,c=t.qSelectionInfo&&t.qSelectionInfo.qInSelections,[u,d]=U.useState([]),[p,f]=JR(),[h,m]=U.useState(!1);U.useEffect((()=>{n&&n.component&&n.component.isHooked&&n.component.observeActions((e=>{d([...e,...n&&n.selectionToolbar&&n.selectionToolbar.items||[]])}))}),[n]),U.useEffect((()=>{if(!f)return;const{width:e}=f;m(e<221)}),[f]);const g=l||s,v=[KP.containerStyle,...g?[KP.containerTitleStyle]:[]],b=(o||c)&&(h||!g),y=g&&!b&&!h,x=V.createElement(Q_,{show:y,selections:{show:c,api:n.component.selections,onKeyDeactivate:a.refocusContent},actions:u,popover:{show:b,anchorEl:r},focusHandler:a,layout:t});return V.createElement(ZP,{ref:p,item:!0,container:!0,wrap:"nowrap",className:v.join(" ")},V.createElement(nk,{item:!0,zeroMinWidth:!0,xs:!0},V.createElement(nk,{container:!0,wrap:"nowrap",direction:"column"},l&&V.createElement(xS,{variant:"h6",noWrap:!0,className:XP,style:i.main},t.title),s&&V.createElement(xS,{variant:"body2",noWrap:!0,className:QP,style:i.subTitle},t.subtitle))),V.createElement(nk,{item:!0},x))}const YP={itemStyle:"".concat("Footer","-itemStyle")},eM=Ty(nk)((e=>{let{theme:t}=e;return{["& .".concat(YP.itemStyle)]:{minWidth:0,paddingTop:t.spacing(1)}}})),tM="njs-cell-footer";function nM(e){let{layout:t,titleStyles:n={}}=e;return t&&t.showTitles&&t.footnote?V.createElement(eM,{container:!0},V.createElement(nk,{item:!0,className:YP.itemStyle},V.createElement(xS,{noWrap:!0,variant:"body2",className:tM,style:n.footer},t.footnote))):null}class rM{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 oM="njs-viz";function aM(e){let{sn:t,snOptions:n,snPlugins:r,layout:o,appLayout:a,halo:i}=e;const{component:s}=t,{theme:c,language:u,constraints:d,interactions:p,keyboardNavigation:f}=U.useContext(qx),[h]=U.useState((()=>new rM)),[m,g]=U.useState(!1),[v,b]=U.useState(0),[y,x,S]=JR(),[w,E]=U.useState(null),C=U.useCallback((e=>{e&&E(e)}),[]);return U.useEffect((()=>{if(w)return s.created({options:n}),s.mounted(w),g(!0),()=>{h.stop(),s.willUnmount()}}),[w,s]),U.useEffect((()=>{m&&w&&x&&(!s.isHooked&&o&&o.qSelectionInfo&&o.qSelectionInfo.qInSelections||h.schedule((()=>{const e=[];return d.passive||e.push("passive"),d.active||e.push("interact"),d.select||e.push("select"),d.edit||e.push("edit"),i.app&&i.app.session&&e.push("fetch"),Promise.resolve(s.render({layout:o,options:n,plugins:r,embed:i.public.nebbie,context:l({constraints:d,interactions:p,theme:i.public.theme,appLayout:a,keyboardNavigation:f},s.isHooked?{}:{logicalSize:t.logicalSize({layout:o}),localeInfo:(a||{}).qLocaleInfo,permissions:e})})).then((e=>{!1!==e&&(0===v&&"function"==typeof n.onInitialRender&&n.onInitialRender.call(null),b(v+1))}))})))}),[x,n,r,w,S,o,a,c,u,d,p,m,f]),V.createElement("div",{ref:y,"data-render-count":v,style:{position:"relative",height:"100%"},className:oM},V.createElement("div",{ref:C,style:{position:"absolute",width:"100%",height:"100%"}}))}const iM=(e,t,n,r)=>{const o=U.useMemo((()=>{if(e&&t){const r=e.components?e.components.find((e=>"general"===e.key)):null,o={main:DI(r,"main",t,e.visualization),footer:DI(r,"footer",t,e.visualization),subTitle:DI(r,"subTitle",t,e.visualization)},a=qI(r,t,e.visualization),i=NI(r,n),l=function(e,t,n){const r=II(null==e?void 0:e.borderColor,"","borderColor",t,n),o=(null==e?void 0:e.borderWidth)||OI("","borderWidth",t,n);return o&&r?"".concat(o," solid ").concat(r):void 0}(r,t,e.visualization),s=function(e,t,n){return(null==e?void 0:e.borderRadius)||OI("","borderRadius",t,n)}(r,t,e.visualization);return{titleStyles:o,bgColor:a,bgImage:i,border:l,borderRadius:s,boxShadow:zI(r,t,e.visualization)}}return{}}),[e,t,n,r]);return o},lM="njs-cell",sM=(e,t)=>{switch(t.type){case"LOADING":return l(l({},e),{},{loading:!0});case"LOADED":return l(l({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization});case"RENDER":return l(l({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null});case"LONG_RUNNING_QUERY":return l(l({},e),{},{longRunningQuery:!0});case"ERROR":return l(l({},e),{},{loading:!1,longRunningQuery:!1,error:t.error});default:throw new Error("Unhandled type: ".concat(t.type))}};function cM(e){let{delay:t=750}=e;const[n,r]=U.useState(!1);return U.useEffect((()=>{const e=setTimeout((()=>r(!0)),t);return()=>clearTimeout(e)}),[]),n?V.createElement(VP,null):null}const uM=e=>!e.qError||7005===e.qError.qErrorCode,dM=(e,t,n,r,o)=>[...Array(e).keys()].map((e=>{const a=!(!t||!t[e]),i=a&&t[e].qError&&7005===t[e].qError.qErrorCode,l=a&&!i&&t[e].qError,s=i&&t[e].qCalcCondMsg,c="".concat(l?r:i?s||o:a&&t[e].qFallbackTitle||""),u=n(e);return{description:u?"".concat(u).concat(c.length?":":""):null,label:c,missing:t&&!a&&!l&&e>=t.length||i,error:l}})),pM=e=>e&&(Array.isArray(e)?e:[e])||[],fM=(e,t,n,r)=>{const o=r.dimensions.min(),a=r.measures.min(),i=r.resolveLayout(t);return{reqDimErrors:dM(o,pM(i.qDimensionInfo||i.qItems),(e=>r.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:dM(a,pM(i.qMeasureInfo),(e=>r.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},hM=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=pM(f.qDimensionInfo||f.qItems).filter(uM),m=pM(f.qMeasureInfo).filter(uM);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=fM(e,t,n,i);u.push(...o.reqDimErrors),d.push(...o.reqMeasErrors)}}const f=u.filter((e=>!(e.missing||e.error))).length,h=e.get("Visualization.Incomplete.Dimensions",[f,i]),m=d.filter((e=>!(e.missing||e.error))).length,g=e.get("Visualization.Incomplete.Measures",[m,l]),v=[{title:h,descriptions:[...u]},{title:g,descriptions:[...d]}],b=s?c:v;return[s||a,{title:s?c[0].title:e.get("Visualization.Incomplete"),data:b}]},mM=U.forwardRef(((e,t)=>{let{halo:n,model:r,initialSnOptions:o,initialSnPlugins:a,initialError:i,onMount:s,currentId:c,emitter:u}=e;const{app:d,types:p}=n,{nebbie:f}=n.public,{theme:h,translator:m,language:g,keyboardNavigation:v,disableCellPadding:b=!1}=U.useContext(qx),y=Yb(),[x,S,w]=JR(),[E,C]=U.useReducer(sM,{loading:!1,loaded:!1,longRunningQuery:!1,error:(k=i)?{title:k.message}:null,sn:null,visualization:null});var k;const[R,L]=U.useState(r),[O,{validating:_,canCancel:I,canRetry:T},P]=XR(R),[M]=QR(d),[N,q,z]=JR(),[D,A]=U.useState(o),[j,F]=U.useState(a),B="njs-cell-".concat(c),[$]=sI(d,R,["#".concat(B),".njs-action-toolbar-popover"]),[W,H]=U.useState(!1),G=U.useRef({enter:null,leave:null}),{titleStyles:K,bgColor:Z,bgImage:X,border:Q,borderRadius:J,boxShadow:Y}=iM(O,n.public.theme,n.app,h),ee=U.useRef({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});U.useEffect((()=>{aI(ee.current)}),[]),ee.current.blurCallback=e=>{n.root.toggleFocusOfCells(),e&&z&&z.focus()},ee.current.refocusContent=()=>{E.sn.component&&"function"==typeof E.sn.component.focus&&E.sn.component.focus()};U.useEffect((()=>{if(i)return void s();if(!M||!O)return;if(E.visualization===O.visualization&&E.sn)return void(async e=>{const[t,n]=await hM(m,O,e.generator.qae.data,R);C(t?{type:"ERROR",error:n}:{type:"RENDER"}),(e=>{let{sn:t,layout:n,model:r}=e;const o=t&&t.component&&t.component.selections;if(o&&o.id&&r.id&&o.id===r.id){if(n&&n.qSelectionInfo&&n.qSelectionInfo.qInSelections&&!o.isModal()){const{targets:e}=t.generator.qae.data,n=e[0].propertyPath;o.goModal(n)}n.qSelectionInfo&&n.qSelectionInfo.qInSelections||o.isModal()&&o.noModal()}})({sn:E.sn,layout:O,model:R})})(E.sn);const e=p.getSupportedVersion(O.visualization,O.version);return(async(e,t)=>{C({type:"LOADING"}),await(async e=>{let{dispatch:t,types:n,visualization:r,version:o,model:a,app:i,selections:l,nebbie:s,focusHandler:c,emitter:u,onMount:d}=e;try{const e=await(async e=>{let{types:t,name:n,version:r}=e;return await t.get({name:n,version:r}).supernova()})({types:n,name:r,version:o}),p=e.create({model:a,app:i,selections:l,nebbie:s,focusHandler:c,emitter:u});p&&(t({type:"LOADED",sn:p,visualization:r}),d())}catch(e){t(o?{type:"ERROR",error:{title:e.message}}:{type:"ERROR",error:{title:"Could not find a version of '".concat(r,"' that supports current object version. Did you forget to register ").concat(r,"?")}}),d()}})({dispatch:C,types:p,visualization:e,version:t,model:R,app:d,selections:$,nebbie:f,focusHandler:ee.current,emitter:u,onMount:s})})(O.visualization,e),()=>{}}),[p,E.sn,R,$,O,M,g]),U.useEffect((()=>{if(!_)return;const e=setTimeout((()=>C({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[_]),U.useImperativeHandle(t,(()=>({getQae:()=>E.sn.generator.qae,toggleFocus(e){"function"==typeof E.sn.component.focus&&(e?E.sn.component.focus():E.sn.component.blur())},setSnOptions:A,setSnPlugins:F,setModel:L,getImperativeHandle(){var e;return null!==(e=E.sn)&&void 0!==e&&e.component&&"function"==typeof E.sn.component.getImperativeHandle?E.sn.component.getImperativeHandle():{}},async takeSnapshot(){const{width:e,height:t}=S;let n=JSON.parse(JSON.stringify(O));return"function"==typeof E.sn.component.setSnapshotData&&(n=await E.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:m.language(),theme:y.name,appLayout:M,size:{width:Math.round(e),height:Math.round(t)}},layout:n}},async exportImage(){if("function"!=typeof n.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const e=await this.takeSnapshot();return n.config.snapshot.capture(e)}})),[E.sn,q,S,O,y.name,M]);let te=null;return E.loading&&!E.longRunningQuery?te=V.createElement(cM,null):E.error?te=V.createElement(PP,E.error):E.loaded&&(te=V.createElement(aM,{key:O.visualization,sn:E.sn,halo:n,snOptions:D,snPlugins:j,layout:O,appLayout:M})),V.createElement(Yx,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:Z||"unset",backgroundImage:X&&X.url?"url(".concat(X.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:X&&X.size,backgroundPosition:X&&X.pos,border:Q,borderRadius:J,boxShadow:Y,boxSizing:"border-box"},elevation:0,square:!0,className:lM,ref:x,id:B,onMouseEnter:()=>{G.current.leave&&clearTimeout(G.current.leave),G.enter||(G.current.enter=setTimeout((()=>{H(!0),G.current.enter=null}),250))},onMouseLeave:()=>{G.current.enter&&clearTimeout(G.current.enter),G.current.leave||(G.current.leave=setTimeout((()=>{H(!1),G.current.leave=null}),750))}},V.createElement(nk,{container:!0,direction:"column",gap:0,style:l(l({position:"relative",width:"100%",height:"100%"},b?{}:{padding:y.spacing(1)}),E.longRunningQuery?{opacity:"0.3"}:{})},w&&O&&E.sn&&V.createElement(JP,{layout:O,sn:E.sn,anchorEl:w,hovering:W,focusHandler:ee.current,titleStyles:K}," "),V.createElement(nk,{tabIndex:v?0:-1,onKeyDown:v?e=>{["Enter"," ","Spacebar"].includes(e.key)&&n.root.toggleFocusOfCells(c)}:null,item:!0,xs:!0,style:{height:"100%"},ref:N},te),w&&O&&E.sn&&V.createElement(nM,{layout:O,titleStyles:K})),E.longRunningQuery&&V.createElement(UP,{canCancel:I,canRetry:T,api:P}))}));function gM(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function vM(){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 gM(e)&&gM(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(...vM("".concat(e).concat(o,"/"),t[o],n[o]))})),r}function bM(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 yM=e=>{var t;return!(!e||e.qHasSoftPatches||e.qExtendsId||!(((null===(t=e.qMeta)||void 0===t?void 0:t.privileges)||[]).indexOf("update")>-1))},xM=(e,t)=>e.__snInterceptor?e.__snInterceptor.setProperties.call(e,t):e.setProperties(t),SM=He.bind(null,!0),wM={},{isArray:EM}=Array;function CM(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function kM(e){return void 0===e}function RM(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function LM(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]=kM(e[r||t])?a:e[t],e=e[r||t]})),e}function OM(e,t){let n=!0;if(CM(e)&&CM(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{OM(e[r],t[r])||(n=!1)})),n);if(EM(e)&&EM(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!OM(e[n],t[n]))return!1;return!0}return e===t}wM.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const a=function(e){return e?SM({},{val:e}).val:e}(t[o]),i=e[o],l="".concat(n,"/").concat(o);OM(a,i)||RM(t,o)||(kM(i)?r.push({op:"add",path:l,value:a}):CM(a)&&CM(i)?r=r.concat(wM.generate(i,a,l)):EM(a)&&EM(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]&&kM(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(OM(t,o))return r;if(!kM(t[0])&&kM(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(wM.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=>{kM(t[o])&&!RM(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},wM.apply=function(e,t){t.forEach((t=>{let n=LM(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(EM(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(EM(o)&&EM(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(CM(o)&&CM(t.value))i=o,Object.keys(i).forEach((e=>{Object.getOwnPropertyDescriptor(i,e).configurable&&!RM(i,e)&&delete i[e]})),SM(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=LM(e,t.from);EM(n)?n.splice(+r,0,o.splice(+a,1)[0]):(n[r]=o[a],delete o[a])}else"remove"===t.op&&(EM(n)?n.splice(+r,1):delete n[r]);var i}))},wM.clone=function(e){return SM({},e)},wM.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},wM.updateObject=function(e,t){Object.keys(e).length?wM.apply(e,wM.generate(e,t)):SM(e,t)};const _M=e=>t=>{const n=(r=l(l({},t),{},{action(){"function"==typeof t.action&&t.action.call(n,e),n.emit("changed")},enabled:()=>"function"!=typeof t.enabled||t.enabled.call(n,e),active:"function"==typeof t.active?function(){return t.active.call(n,e)}:void 0}),Object.keys(ee.prototype).forEach((e=>{r[e]=ee.prototype[e]})),ee.init(r),r);var r;return n};let IM,TM;function PM(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 MM(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 NM(e){zM(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 qM(e){if(e.__hooks.obsolete)return Promise.resolve();TM=-1,IM=e,IM.__hooks.initiated&&IM.__hooks.list.length;try{IM.fn.call(null)}catch(e){console.error(e)}IM.__hooks.initiated=!0;const t=IM.__hooks;return FM(IM),TM=void 0,IM=void 0,t.chain.promise||(t.chain.promise=new Promise((e=>{t.chain.resolve=e}))),function(e){zM(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame((()=>{!function(e){zM(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 zM(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 DM(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 AM(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 jM(e){return e.__hooks.imperativeHandle}function FM(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function BM(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,FM(e))}function $M(e){if(void 0===IM)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=IM.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function WM(e){$M(++TM);return IM.context[e]}function HM(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function UM(e){return{__hooked:!0,fn:e,initiate:MM,run:qM,teardown:NM,runSnaps:DM,runMenu:AM,focus:QM,blur:JM,observeActions:BM,getImperativeHandle:jM,updateRectOnNextRun:HM}}function VM(e){const t=$M(++TM);if(!t.value){t.component=IM;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,qM(r)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function GM(e,t){const n=$M(++TM);PM(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===IM.__hooks.pendingEffects.indexOf(n)&&IM.__hooks.pendingEffects.push(n))}function KM(e,t){const n=$M(++TM);PM(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],IM.__hooks.pendingLayoutEffects.push(n))}function ZM(e,t){const n=$M(++TM);return PM(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function XM(){return WM("element")}function QM(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 JM(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 YM={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},eN=Object.keys(YM),tN=e=>(Object.keys(ee.prototype).forEach((t=>{e[t]=ee.prototype[t]})),ee.init(e),e);function nN(e,t){const n=l({},YM);tN(n);const r={emit(){n.emit(...arguments)}};Object.keys(e.component||{}).forEach((t=>{-1!==eN.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=_M(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 rN(e,t,n){"function"==typeof e.component&&(e.component=UM(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"],s={},c={};t.model&&t.model.session||(s.select=!0,s.edit=!0,c.select=!1,c.edit=!1);const u={context:{model:t.model,app:t.app,global:r,selections:t.selections,nebbie:t.nebbie,element:void 0,emitter:t.emitter,deviceType:n.deviceType,theme:void 0,translator:n.translator,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,focusHandler:t.focusHandler,constraints:s,interactions:c,options:{},plugins:[]},fn:e.component.fn,created(){},mounted(n){this.context.element=n,e.component.initiate(u,{explicitResize:!!t.explicitResize})},render(t){let n=!o||!1;if(t){if(t.layout&&t.layout!==this.context.layout&&(n=!0,this.context.layout=t.layout),t.context&&t.context.theme&&(this.context.theme=t.context.theme),t.context&&!!t.context.keyboardNavigation!=!!this.context.keyboardNavigation&&(this.context.keyboardNavigation=!!t.context.keyboardNavigation,n=!0),t.context&&t.context.focusHandler&&(this.context.focusHandler=t.context.focusHandler),t.options){const e={};let r=!1;Object.keys(t.options).forEach((n=>{e[n]=t.options[n],this.context.options[n]!==t.options[n]&&(r=!0)})),r&&(this.context.options=e,n=!0)}if(t.plugins){let e=this.context.plugins.length!==t.plugins.length;t.plugins.forEach(((t,n)=>{this.context.plugins[n]!==t&&(e=!0)})),e&&(this.context.plugins=[...t.plugins],n=!0)}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(l(l({},r[e]),s))),"interactions"===e&&(t=JSON.stringify(l(l({},r[e]),c))),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):nN(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=wM.clone(o),i=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));wM.apply(o,i);try{e.qae.properties.onChange.call({model:t.model},o)}catch(e){}const l=wM.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 oN=()=>{};function aN(e,t){return void 0===e?()=>t:()=>e}function iN(e){const t=e||{};return{min:"function"==typeof t.min?t.min:aN(t.min,0),max:"function"==typeof t.max?t.max:aN(t.max,1e3),added:t.added||t.add||oN,description:t.description||oN,moved:t.moved||t.move||oN,removed:t.removed||t.remove||oN,replaced:t.replaced||t.replace||oN,isDefined:()=>!!e}}const lN=(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 sN(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=>lN(e,n,{}),dimensions:iN(e.dimensions),measures:iN(e.measures)}}function cN(){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(sN)},exportProperties:t.exportProperties,importProperties:t.importProperties}}function uN(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:cN(n.qae),component:n.component||{},create:e=>rN(r,e,t),definition:{}};return Object.keys(n).forEach((e=>{r[e]||(r.definition[e]=n[e])})),r}const dN=(e,t,n)=>{if(!e)return Promise.resolve();let r=wM.generate(t,n);return He(!0,t,n),r&&r.length?(r=r.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.__snInterceptor?e.__snInterceptor.applyPatches.call(e,r,!0):e.applyPatches(r,!0)):Promise.resolve()},pN=()=>{};function fN(){let e,{model:t,halo:n,initialError:r,onDestroy:o=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=pN,i=null,s=null,c=null,u=null;const d=new Promise((e=>{c=e})),p=new Promise((e=>{u=e})),f=e=>()=>{e&&e(),u()};let h={},m=[];const g=new ee,v={id:t.id,model:t,async destroy(){await o(),a(),a=pN},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(yM(o)&&!r){const r=await LP({halo:n,model:t,cellRef:i,newType:e});return await xM(t,r.qProperty),r}const a=await t.getEffectiveProperties(),l=await LP({halo:n,model:t,cellRef:i,newType:e,properties:a}),s=l.qProperty;return await dN(t,a,s),l}return await LP({halo:n,model:t,cellRef:i,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 l=await LP({halo:n,model:t,cellRef:i,newType:r,properties:a,viewDataMode:!0});o=await n.app.createSessionObject(l.qProperty),e=o.id}o&&i.current.setModel(o)},addListener(e,t){g.addListener(e,t)},removeListener(e,t){g.removeListener(e,t)},getImperativeHandle:async()=>(await p,i.current.getImperativeHandle()),takeSnapshot:async()=>(await p,i.current.takeSnapshot()),__DO_NOT_USE__:{mount(e){if(s)throw new Error("Already mounted");if(!(e instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return s=e,[a,i]=function(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:a,onMount:i,emitter:l,initialError:s}=e;const{root:c}=t,u=V.createRef(),d=pT(),p=xp.createPortal(V.createElement(mM,{ref:u,halo:t,model:r,currentId:d,initialSnOptions:o,initialSnPlugins:a,initialError:s,onMount:i,emitter:l}),n,d),f=()=>{c.remove(p),r.removeListener("closed",f)};return r.on("closed",f),c.add(p),c.addCell(d,u),[f,u]}({halo:n,element:e,model:t,initialSnOptions:h,initialSnPlugins:m,initialError:r,onMount:c,emitter:g}),d},async applyProperties(e){const n=vM("/",e,await t.getEffectiveProperties());if(n.length)return t.applyPatches(n,!0)},options(e){(async e=>{const t=e.onInitialRender;s?(async()=>{await d,i.current.setSnOptions(l(l(l({},h),e),{onInitialRender:f(t)}))})():h=l(l(l({},h),e),{onInitialRender:f(t)})})(e)},plugins(e){(async e=>{bM(e),s?(async()=>{await d,i.current.setSnPlugins(e)})():m=e})(e)},exportImage:()=>i.current.exportImage(),takeSnapshot:()=>i.current.takeSnapshot(),getModel:()=>t,convert:{async toType(e){const r=await t.getEffectiveProperties(),o=await LP({halo:n,model:t,cellRef:i,newType:e,properties:r}),a=o.qProperty;return await dN(t,r,a),o},async revert(){await t.clearSoftPatches()}}}};return v}async function hN(e,t,n,r){const o=fN({model:e,halo:n,initialError:r,onDestroy:arguments.length>4&&void 0!==arguments[4]?arguments[4]:async()=>{}});return t.options&&o.__DO_NOT_USE__.options(t.options),t.plugins&&o.__DO_NOT_USE__.plugins(t.plugins),t.element&&await o.__DO_NOT_USE__.mount(t.element),o}async function mN(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 hP({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 gN={className:"njs-sheet"};function vN(e,t,n){return e.bounds?e.bounds:{y:e.row/n*100,x:e.col/t*100,width:e.colspan/t*100,height:e.rowspan/n*100}}function bN(e){let{model:t,halo:n,initialSnOptions:r,initialSnPlugins:o,initialError:a,onMount:i}=e;const{root:l}=n,[s]=XR(t),{theme:c,modelStore:u}=U.useContext(qx),[d,p]=U.useState([]),[f,h]=U.useState(void 0),[m,g]=U.useState(void 0),[v,b]=U.useState("");U.useEffect((()=>{if(s){const e=JSON.stringify(s.cells);if(e===v)return;b(e);const t=async()=>{d.forEach((e=>{l.removeCell(e.currentId)}));const e=s.cells,{columns:t,rows:r}=s,o=await Promise.all(e.map((async e=>{let o;const a=new Promise((e=>{o=e})),i=d.find((t=>t.id===e.name));if(i)return i.bounds=vN(e,t,r),delete i.mountedPromise,i;const l=await async function(e,t,n){let{id:r,options:o,plugins:a,element:i}=e;const{modelStore:l,rpcRequestModelStore:s}=n,c="".concat(r);let u=s.get(c);u||(u=t.app.getObject(r),s.set(c,u));const d=await u;return l.set(c,d),hN(d,{options:o,plugins:a,element:i},t)}({id:e.name},n,u);return{model:l.model,id:e.name,bounds:vN(e,t,r),cellRef:V.createRef(),currentId:pT(),mounted:o,mountedPromise:a}})));o.forEach((e=>l.addCell(e.currentId,e.cellRef))),p(o)};t()}}),[s]);const y=U.useMemo((()=>d?d.map((e=>function(e,t,n,r,o,a){const{x:i,y:l,width:s,height:c}=e.bounds;return V.createElement("div",{style:{left:"".concat(i,"%"),top:"".concat(l,"%"),width:"".concat(s,"%"),height:"".concat(c,"%"),position:"absolute"}},V.createElement(mM,{ref:e.cellRef,halo:t,model:e.model,currentId:e.currentId,initialSnOptions:n,initialSnPlugins:r,initialError:o,onMount:a}))}(e,n,r,o,a,e.mounted))):[]),[d]);U.useEffect((()=>{const e=null!=s&&s.components?s.components.find((e=>"general"===e.key)):null;h(qI(e,n.public.theme)),g(NI(e,n.app))}),[s,n.public.theme,n.app,c]);const x=!s||Number.isNaN(s.height)?"100%":"".concat(Number(s.height),"%"),S=d.map((e=>e.mountedPromise)),w=S.filter((e=>!!e));return w.length&&Promise.all(S).then((()=>{i()})),V.createElement("div",{className:gN.className,style:{width:"100%",height:x,position:"relative",backgroundColor:f,backgroundImage:m&&m.url?"url(".concat(m.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:m&&m.size,backgroundPosition:m&&m.pos}},y)}const yN=()=>{};function xN(){let{model:e,halo:t,initialError:n,onDestroy:r=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=yN,a=null,i=null,s=null;const c=new Promise((e=>{s=e}));let u={},d=[];const p={id:e.id,model:e,async destroy(){await r(),o(),o=yN},__DO_NOT_USE__:{mount(r){if(i)throw new Error("Already mounted");if(!(r instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return i=r,[o,a]=function(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:a,onMount:i,initialError:l}=e;const{root:s}=t,c=V.createRef(),u=xp.createPortal(V.createElement(bN,{ref:c,halo:t,model:r,initialSnOptions:o,initialSnPlugins:a,initialError:l,onMount:i}),n,r.id),d=()=>{s.remove(u),r.removeListener("closed",d)};return r.on("closed",d),s.add(u),[d,c]}({halo:t,element:r,model:e,initialSnOptions:u,initialSnPlugins:d,initialError:n,onMount:s}),c},async applyProperties(t){const n=vM("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{i?(async()=>{await c,a.current.setSnOptions(l(l({},u),e))})():u=l(l({},u),e)})(e)},plugins(e){(async e=>{bM(e),i?(async()=>{await c,a.current.setSnPlugins(e)})():d=e})(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return p}async function SN(e,t,n){let{id:r,options:o,plugins:a,element:i}=e;const{modelStore:l,rpcRequestModelStore:s}=n,c="".concat(r);let u=s.get(c);u||(u=t.app.getObject(r),s.set(c,u));const d=await u;return l.set(c,d),"sheet"===d.genericType?async function(e,t,n,r){const o=xN({model:e,halo:n,initialError:r,onDestroy:arguments.length>4&&void 0!==arguments[4]?arguments[4]:async()=>{}});return t.options&&o.__DO_NOT_USE__.options(t.options),t.plugins&&o.__DO_NOT_USE__.plugins(t.plugins),t.element&&await o.__DO_NOT_USE__.mount(t.element),o}(d,{options:o,plugins:a,element:i},t):hN(d,{options:o,plugins:a,element:i},t)}function wN(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}var EN=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}};const CN=Object.freeze({loose:!0}),kN=Object.freeze({});var RN=e=>e?"object"!=typeof e?CN:e:kN,LN={exports:{}};var ON={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};const _N="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error("SEMVER",...t)}:()=>{};var IN=_N;!function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=ON,a=IN,i=(t=e.exports={}).re=[],l=t.safeRe=[],s=t.src=[],c=t.t={};let u=0;const d="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",o],[d,r]],f=(e,t,n)=>{const r=(e=>{for(const[t,n]of p)e=e.split("".concat(t,"*")).join("".concat(t,"{0,").concat(n,"}")).split("".concat(t,"+")).join("".concat(t,"{1,").concat(n,"}"));return e})(t),o=u++;a(e,o,t),c[e]=o,s[o]=t,i[o]=new RegExp(t,n?"g":void 0),l[o]=new RegExp(r,n?"g":void 0)};f("NUMERICIDENTIFIER","0|[1-9]\\d*"),f("NUMERICIDENTIFIERLOOSE","\\d+"),f("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-]".concat(d,"*")),f("MAINVERSION","(".concat(s[c.NUMERICIDENTIFIER],")\\.")+"(".concat(s[c.NUMERICIDENTIFIER],")\\.")+"(".concat(s[c.NUMERICIDENTIFIER],")")),f("MAINVERSIONLOOSE","(".concat(s[c.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(s[c.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(s[c.NUMERICIDENTIFIERLOOSE],")")),f("PRERELEASEIDENTIFIER","(?:".concat(s[c.NUMERICIDENTIFIER],"|").concat(s[c.NONNUMERICIDENTIFIER],")")),f("PRERELEASEIDENTIFIERLOOSE","(?:".concat(s[c.NUMERICIDENTIFIERLOOSE],"|").concat(s[c.NONNUMERICIDENTIFIER],")")),f("PRERELEASE","(?:-(".concat(s[c.PRERELEASEIDENTIFIER],"(?:\\.").concat(s[c.PRERELEASEIDENTIFIER],")*))")),f("PRERELEASELOOSE","(?:-?(".concat(s[c.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(s[c.PRERELEASEIDENTIFIERLOOSE],")*))")),f("BUILDIDENTIFIER","".concat(d,"+")),f("BUILD","(?:\\+(".concat(s[c.BUILDIDENTIFIER],"(?:\\.").concat(s[c.BUILDIDENTIFIER],")*))")),f("FULLPLAIN","v?".concat(s[c.MAINVERSION]).concat(s[c.PRERELEASE],"?").concat(s[c.BUILD],"?")),f("FULL","^".concat(s[c.FULLPLAIN],"$")),f("LOOSEPLAIN","[v=\\s]*".concat(s[c.MAINVERSIONLOOSE]).concat(s[c.PRERELEASELOOSE],"?").concat(s[c.BUILD],"?")),f("LOOSE","^".concat(s[c.LOOSEPLAIN],"$")),f("GTLT","((?:<|>)?=?)"),f("XRANGEIDENTIFIERLOOSE","".concat(s[c.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),f("XRANGEIDENTIFIER","".concat(s[c.NUMERICIDENTIFIER],"|x|X|\\*")),f("XRANGEPLAIN","[v=\\s]*(".concat(s[c.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(s[c.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(s[c.XRANGEIDENTIFIER],")")+"(?:".concat(s[c.PRERELEASE],")?").concat(s[c.BUILD],"?")+")?)?"),f("XRANGEPLAINLOOSE","[v=\\s]*(".concat(s[c.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(s[c.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(s[c.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(s[c.PRERELEASELOOSE],")?").concat(s[c.BUILD],"?")+")?)?"),f("XRANGE","^".concat(s[c.GTLT],"\\s*").concat(s[c.XRANGEPLAIN],"$")),f("XRANGELOOSE","^".concat(s[c.GTLT],"\\s*").concat(s[c.XRANGEPLAINLOOSE],"$")),f("COERCEPLAIN","".concat("(^|[^\\d])(\\d{1,").concat(n,"})")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:\\.(\\d{1,".concat(n,"}))?")),f("COERCE","".concat(s[c.COERCEPLAIN],"(?:$|[^\\d])")),f("COERCEFULL",s[c.COERCEPLAIN]+"(?:".concat(s[c.PRERELEASE],")?")+"(?:".concat(s[c.BUILD],")?")+"(?:$|[^\\d])"),f("COERCERTL",s[c.COERCE],!0),f("COERCERTLFULL",s[c.COERCEFULL],!0),f("LONETILDE","(?:~>?)"),f("TILDETRIM","(\\s*)".concat(s[c.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",f("TILDE","^".concat(s[c.LONETILDE]).concat(s[c.XRANGEPLAIN],"$")),f("TILDELOOSE","^".concat(s[c.LONETILDE]).concat(s[c.XRANGEPLAINLOOSE],"$")),f("LONECARET","(?:\\^)"),f("CARETTRIM","(\\s*)".concat(s[c.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",f("CARET","^".concat(s[c.LONECARET]).concat(s[c.XRANGEPLAIN],"$")),f("CARETLOOSE","^".concat(s[c.LONECARET]).concat(s[c.XRANGEPLAINLOOSE],"$")),f("COMPARATORLOOSE","^".concat(s[c.GTLT],"\\s*(").concat(s[c.LOOSEPLAIN],")$|^$")),f("COMPARATOR","^".concat(s[c.GTLT],"\\s*(").concat(s[c.FULLPLAIN],")$|^$")),f("COMPARATORTRIM","(\\s*)".concat(s[c.GTLT],"\\s*(").concat(s[c.LOOSEPLAIN],"|").concat(s[c.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",f("HYPHENRANGE","^\\s*(".concat(s[c.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(s[c.XRANGEPLAIN],")")+"\\s*$"),f("HYPHENRANGELOOSE","^\\s*(".concat(s[c.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(s[c.XRANGEPLAINLOOSE],")")+"\\s*$"),f("STAR","(<|>)?=?\\s*\\*"),f("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),f("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(LN,LN.exports);var TN=LN.exports;const PN=/^[0-9]+$/,MN=(e,t)=>{const n=PN.test(e),r=PN.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1};var NN={compareIdentifiers:MN,rcompareIdentifiers:(e,t)=>MN(t,e)};const qN=IN,{MAX_LENGTH:zN,MAX_SAFE_INTEGER:DN}=ON,{safeRe:AN,t:jN}=TN,FN=RN,{compareIdentifiers:BN}=NN;var $N=class e{constructor(t,n){if(n=FN(n),t instanceof e){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError('Invalid version. Must be a string. Got type "'.concat(typeof t,'".'));if(t.length>zN)throw new TypeError("version is longer than ".concat(zN," characters"));qN("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?AN[jN.LOOSE]:AN[jN.FULL]);if(!r)throw new TypeError("Invalid Version: ".concat(t));if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>DN||this.major<0)throw new TypeError("Invalid major version");if(this.minor>DN||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>DN||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<DN)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}toString(){return this.version}compare(t){if(qN("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if("string"==typeof t&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),BN(this.major,t.major)||BN(this.minor,t.minor)||BN(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const e=this.prerelease[n],r=t.prerelease[n];if(qN("prerelease compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return BN(e,r)}while(++n)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let n=0;do{const e=this.build[n],r=t.build[n];if(qN("build compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return BN(e,r)}while(++n)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===BN(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error("invalid increment argument: ".concat(e))}return this.raw=this.format(),this.build.length&&(this.raw+="+".concat(this.build.join("."))),this}};const WN=$N;var HN=(e,t,n)=>new WN(e,n).compare(new WN(t,n));const UN=HN;var VN=(e,t,n)=>0===UN(e,t,n);const GN=HN;var KN=(e,t,n)=>0!==GN(e,t,n);const ZN=HN;var XN=(e,t,n)=>ZN(e,t,n)>0;const QN=HN;var JN=(e,t,n)=>QN(e,t,n)>=0;const YN=HN;var eq=(e,t,n)=>YN(e,t,n)<0;const tq=HN;var nq=(e,t,n)=>tq(e,t,n)<=0;const rq=VN,oq=KN,aq=XN,iq=JN,lq=eq,sq=nq;var cq,uq,dq,pq,fq=(e,t,n,r)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return rq(e,n,r);case"!=":return oq(e,n,r);case">":return aq(e,n,r);case">=":return iq(e,n,r);case"<":return lq(e,n,r);case"<=":return sq(e,n,r);default:throw new TypeError("Invalid operator: ".concat(t))}};function hq(){if(pq)return dq;pq=1;class e{constructor(t,o){if(o=n(o),t instanceof e)return t.loose===!!o.loose&&t.includePrerelease===!!o.includePrerelease?t:new e(t.raw,o);if(t instanceof r)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=o,this.loose=!!o.loose,this.includePrerelease=!!o.includePrerelease,this.raw=t.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError("Invalid SemVer Range: ".concat(this.raw));if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!f(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&h(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const n=((this.options.includePrerelease&&d)|(this.options.loose&&p))+":"+e,a=t.get(n);if(a)return a;const h=this.options.loose,m=h?i[l.HYPHENRANGELOOSE]:i[l.HYPHENRANGE];e=e.replace(m,R(this.options.includePrerelease)),o("hyphen replace",e),e=e.replace(i[l.COMPARATORTRIM],s),o("comparator trim",e),e=e.replace(i[l.TILDETRIM],c),o("tilde trim",e),e=e.replace(i[l.CARETTRIM],u),o("caret trim",e);let v=e.split(" ").map((e=>g(e,this.options))).join(" ").split(/\s+/).map((e=>k(e,this.options)));h&&(v=v.filter((e=>(o("loose invalid filter",e,this.options),!!e.match(i[l.COMPARATORLOOSE]))))),o("range list",v);const b=new Map,y=v.map((e=>new r(e,this.options)));for(const e of y){if(f(e))return[e];b.set(e.value,e)}b.size>1&&b.has("")&&b.delete("");const x=[...b.values()];return t.set(n,x),x}intersects(t,n){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some((e=>m(e,n)&&t.set.some((t=>m(t,n)&&e.every((e=>t.every((t=>e.intersects(t,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(L(this.set[t],e,this.options))return!0;return!1}}dq=e;const t=new EN,n=RN,r=function(){if(uq)return cq;uq=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(">")))}}cq=t;const n=RN,{safeRe:r,t:o}=TN,a=fq,i=IN,l=$N,s=hq();return cq}(),o=IN,a=$N,{safeRe:i,t:l,comparatorTrimReplace:s,tildeTrimReplace:c,caretTrimReplace:u}=TN,{FLAG_INCLUDE_PRERELEASE:d,FLAG_LOOSE:p}=ON,f=e=>"<0.0.0-0"===e.value,h=e=>""===e.value,m=(e,t)=>{let n=!0;const r=e.slice();let o=r.pop();for(;n&&r.length;)n=r.every((e=>o.intersects(e,t))),o=r.pop();return n},g=(e,t)=>(o("comp",e,t),e=x(e,t),o("caret",e),e=b(e,t),o("tildes",e),e=w(e,t),o("xrange",e),e=C(e,t),o("stars",e),e),v=e=>!e||"x"===e.toLowerCase()||"*"===e,b=(e,t)=>e.trim().split(/\s+/).map((e=>y(e,t))).join(" "),y=(e,t)=>{const n=t.loose?i[l.TILDELOOSE]:i[l.TILDE];return e.replace(n,((t,n,r,a,i)=>{let l;return o("tilde",e,t,n,r,a,i),v(n)?l="":v(r)?l=">=".concat(n,".0.0 <").concat(+n+1,".0.0-0"):v(a)?l=">=".concat(n,".").concat(r,".0 <").concat(n,".").concat(+r+1,".0-0"):i?(o("replaceTilde pr",i),l=">=".concat(n,".").concat(r,".").concat(a,"-").concat(i," <").concat(n,".").concat(+r+1,".0-0")):l=">=".concat(n,".").concat(r,".").concat(a," <").concat(n,".").concat(+r+1,".0-0"),o("tilde return",l),l}))},x=(e,t)=>e.trim().split(/\s+/).map((e=>S(e,t))).join(" "),S=(e,t)=>{o("caret",e,t);const n=t.loose?i[l.CARETLOOSE]:i[l.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,a,i,l)=>{let s;return o("caret",e,t,n,a,i,l),v(n)?s="":v(a)?s=">=".concat(n,".0.0").concat(r," <").concat(+n+1,".0.0-0"):v(i)?s="0"===n?">=".concat(n,".").concat(a,".0").concat(r," <").concat(n,".").concat(+a+1,".0-0"):">=".concat(n,".").concat(a,".0").concat(r," <").concat(+n+1,".0.0-0"):l?(o("replaceCaret pr",l),s="0"===n?"0"===a?">=".concat(n,".").concat(a,".").concat(i,"-").concat(l," <").concat(n,".").concat(a,".").concat(+i+1,"-0"):">=".concat(n,".").concat(a,".").concat(i,"-").concat(l," <").concat(n,".").concat(+a+1,".0-0"):">=".concat(n,".").concat(a,".").concat(i,"-").concat(l," <").concat(+n+1,".0.0-0")):(o("no pr"),s="0"===n?"0"===a?">=".concat(n,".").concat(a,".").concat(i).concat(r," <").concat(n,".").concat(a,".").concat(+i+1,"-0"):">=".concat(n,".").concat(a,".").concat(i).concat(r," <").concat(n,".").concat(+a+1,".0-0"):">=".concat(n,".").concat(a,".").concat(i," <").concat(+n+1,".0.0-0")),o("caret return",s),s}))},w=(e,t)=>(o("replaceXRanges",e,t),e.split(/\s+/).map((e=>E(e,t))).join(" ")),E=(e,t)=>{e=e.trim();const n=t.loose?i[l.XRANGELOOSE]:i[l.XRANGE];return e.replace(n,((n,r,a,i,l,s)=>{o("xRange",e,n,r,a,i,l,s);const c=v(a),u=c||v(i),d=u||v(l),p=d;return"="===r&&p&&(r=""),s=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&p?(u&&(i=0),l=0,">"===r?(r=">=",u?(a=+a+1,i=0,l=0):(i=+i+1,l=0)):"<="===r&&(r="<",u?a=+a+1:i=+i+1),"<"===r&&(s="-0"),n="".concat(r+a,".").concat(i,".").concat(l).concat(s)):u?n=">=".concat(a,".0.0").concat(s," <").concat(+a+1,".0.0-0"):d&&(n=">=".concat(a,".").concat(i,".0").concat(s," <").concat(a,".").concat(+i+1,".0-0")),o("xRange return",n),n}))},C=(e,t)=>(o("replaceStars",e,t),e.trim().replace(i[l.STAR],"")),k=(e,t)=>(o("replaceGTE0",e,t),e.trim().replace(i[t.includePrerelease?l.GTE0PRE:l.GTE0],"")),R=e=>(t,n,r,o,a,i,l,s,c,u,d,p)=>(n=v(r)?"":v(o)?">=".concat(r,".0.0").concat(e?"-0":""):v(a)?">=".concat(r,".").concat(o,".0").concat(e?"-0":""):i?">=".concat(n):">=".concat(n).concat(e?"-0":""),s=v(c)?"":v(u)?"<".concat(+c+1,".0.0-0"):v(d)?"<".concat(c,".").concat(+u+1,".0-0"):p?"<=".concat(c,".").concat(u,".").concat(d,"-").concat(p):e?"<".concat(c,".").concat(u,".").concat(+d+1,"-0"):"<=".concat(s),"".concat(n," ").concat(s).trim()),L=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(o(e[n].semver),e[n].semver!==r.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return dq}const mq=hq();var gq=(e,t,n)=>{try{t=new mq(t,n)}catch(e){return!1}return t.test(e)},vq=n(gq);const bq={};function yq(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)||vq(e,a.deps.properties),supernova:()=>async function(e,t,n,r){let{config:o}=n;const a="".concat(e,"__").concat(t);if(!bq[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);bq[a]=l.then((e=>{if(!e)throw new Error("load() of visualization '".concat(n,"' resolved to an invalid object"));return e})).catch((e=>{throw new Error("Failed to load visualization: '".concat(n,"'"))}))}return bq[a]}(i.name,i.version,t,o.load).then((e=>(n=n||uN(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=l({qInfo:{qType:i.name},visualization:i.name,version:i.version,showTitles:!0},JSON.parse(r));return t?(He(!0,n,e),n):l(l({},n),e)}))}};return i}function xq(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]=yq({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 Sq(e){let{halo:t,parent:n}=e;const r={},o=n||{get:()=>{}};return{register:(e,n)=>{r[e.name]||(r[e.name]=xq(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(bq).forEach((t=>{t.split("__")[0]===e&&(bq[t]=void 0)}))}(e)}}}const wq={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()))},Eq={context:{},load:()=>{},types:[],themes:[],anything:{},flags:{KPI_REACTCOLORPICKER:!0,IM_1869_HIDE_DIM_MEA_LINE:!0,IM_1579_HIDE_DIM_MEA:!0,CLIENT_IM_3365:!0},snapshot:wq};Eq.context={theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1,dataViewType:"sn-table"};const Cq=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l(l({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),e)},kq=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 Rq=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=X(t.context.language);function r(e,o){if(o)return r.createConfiguration(o)(e);let a=l(l({},t.context),{},{translator:n.translator});const[i,s]=Fx({app:e,context:a}),c=function(){let{themes:e=[],loadTheme:t,root:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=st();return{setTheme:async o=>{let a=e.filter((e=>e.id===o))[0],i="dark"===o?"dark":"light";if(!a&&t&&(a={load:t}),a&&a.load)try{const e=await Promise.race([a.load(o),ct(ut,{__timedOut:!0})]);e.__timedOut||(i="dark"===e.type?"dark":"light",r.internalAPI.setTheme(e,o),n.setMuiThemeName(i))}catch(e){}else r.internalAPI.setTheme({type:i},o),n.setMuiThemeName(i)},externalAPI:r.externalAPI}}({themes:t.themes,loadTheme:t.loadTheme,root:i});a.themeApi=c.externalAPI;const u={galaxy:{translator:n.translator,flags:wN(t.flags),deviceType:dt(t.context.deviceType),anything:t.anything},theme:c.externalAPI,translator:n.translator,nebbie:null},d={app:e,root:i,config:t,public:u,context:a,types:null},p=Sq({halo:d});t.types.forEach((e=>p.register({name:e.name,version:e.version},{meta:e.meta,load:e.load})));let f=c.setTheme(t.context.theme),h=null,m=null;const g={render:async e=>(await f,e.id?SN(e,d,s):async function(e,t,n){let{type:r,version:o,fields:a,properties:i,options:l,plugins:s,element:c,extendProperties:u}=e,d={};const p=[],{modelStore:f,subscribe:h}=n;let m;try{const e=t.types.get({name:r,version:o});d=await e.initialProperties(i,u);const n=await e.supernova();a&&await hP({sn:n,properties:d,fields:a,children:p},t),i&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},d)}catch(e){m=e,d={qInfo:{qType:r},visualization:r}}const g=await t.app.createSessionObject(d);p.length>0&&await g.setFullPropertyTree({qProperty:d,qChildren:p}),f.set(g.id,g);const v=h(g);return hN(g,{options:l,plugins:s,element:c},t,m,(async()=>{await t.app.destroySessionObject(g.id),v()}))}(e,d,s)),create:async e=>mN(e,d,!1,s),generateProperties:async e=>mN(e,d,!0,s),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=l(l(l({},a),t),{},{translator:n.translator}),t.theme&&(f=c.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 xp.createPortal(V.createElement(fT,{app:n}),t,pT())}({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 s=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 c=()=>o.emit("selectionActivated"),u=()=>o.emit("selectionDeactivated");return new Promise((r=>{this._instance=function(e){let{element:t,app:n,fieldIdentifier:r,qId:o,stateName:a="$",options:i={},renderedCallback:l}=e;return xp.createPortal(V.createElement(eP,{app:n,element:t,fieldIdentifier:r,qId:o,stateName:a,options:i,renderedCallback:l}),t,pT())}({element:a,app:e,fieldIdentifier:t,qId:n,options:YT(l({onSelectionActivated:c,onSelectionDeactivated:u},s)),stateName:s.stateName||"$",renderedCallback:r}),i.add(this._instance)}))},unmount(){this._instance&&(i.remove(this._instance),this._instance=null)}};return aI(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=l({},tP);return He(!0,t,e),t}(l({onPopoverClose:()=>g.emit("fieldPopoverClose")},r));g._popoverInstance=V.createElement(nP,{element:t,key:pT(),app:e,fieldIdentifier:n,options:o,stateName:r.stateName||"$"}),i.add(g._popoverInstance)}}};return d.public.nebbie=g,d.types=p,aI(g),g}return r.createConfiguration=n=>e(((e,t)=>({context:Cq(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:l({},t.snapshot||e.snapshot),types:kq(e.types,t.types),themes:kq(e.themes,t.themes),flags:Cq(e.flags,t.flags),anything:Cq(e.anything,t.anything)}))(t,n)),r.config=t,r}(Eq);function Lq(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}const Oq=globalThis.crypto||{getRandomValues:()=>123456};function _q(e){return t=>{const n=He({},t);n.qInfo=n.qInfo||{},n.qInfo.qId=n.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^Oq.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))));const r=n._mock;let o=n;return r&&(delete n._mock,o=He({},n,r)),Promise.resolve({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(o),getProperties:()=>Promise.resolve(n),getEffectiveProperties:()=>Promise.resolve(n),removeListener:()=>{},id:n.qInfo.qId,properties:n,session:e})}}const Iq=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},Tq=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=Iq(e,{defaultValue:t,args:a});return n?new Promise((e=>{setTimeout((()=>e(l)),r)})):l}},Pq=["id","session"],Mq=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function Nq(e){return!Mq.includes(e)}function qq(e){const t=Iq(e.getLayout);return t.qInfo&&t.qInfo.qId}function zq(e,t){return e.reduce(((e,n)=>l(l({},e),function(e,t){let n=qq(e);const{delay:r}=t,{id:o,session:a}=e,i=s(e,Pq);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]:l(l({id:n,session:Iq(a,{defaultValue:!0}),on:()=>{},once:()=>{}},Object.entries(i).reduce(((e,t)=>{let[n,o]=t;return l(l({},e),{},{[n]:Tq(o,{async:Nq(n),delay:r})})}),{})),{},{genericType:e.type})}}(n,t))),{})}function Dq(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!qq(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function Aq(){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(Dq);const n=zq(e,t);return async e=>Promise.resolve(n[e])}function jq(){return()=>Promise.resolve({id:"app-layout"})}const Fq={fromGenericObjects(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new Lq,r=new _q(n),o=new Aq(e,t),a=new jq,i={id:"app - ".concat(+Date.now()),session:n,createSessionObject:r,destroySessionObject:async()=>{},getObject:o,getAppLayout:a};return Promise.resolve(i)}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}},Bq={generator:uN,hook:UM,theme:st,locale:K};e.EnigmaMocker=Fq,e.__DO_NOT_USE__=Bq,e.conversion=OP,e.embed=Rq,e.onContextMenu=function(e){const t=$M(++TM);t.value||(t.value=1,IM.__hooks.menus.push(t)),t.fn=e},e.onTakeSnapshot=function(e){const t=$M(++TM);t.value||(t.value=1,IM.__hooks.snaps.push(t)),t.fn=e},e.useAction=function(e,t){const[n]=VM({action(){n._config.action.call(null)}});return n.component||(n.component=IM,IM.__hooks.actions.list.push(n)),ZM((()=>{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=WM("app");return e&&e.session?e:void 0},e.useAppLayout=function(){return WM("appLayout")},e.useConstraints=function(){return WM("constraints")},e.useDeviceType=function(){return WM("deviceType")},e.useEffect=GM,e.useElement=XM,e.useEmbed=function(){return WM("nebbie")},e.useEmitter=function(){return WM("emitter")},e.useGlobal=function(){const e=WM("global");return e&&e.session?e:void 0},e.useImperativeHandle=function(e,t){const n=$M(++TM);if(n.imperative||(n.imperative=!0),PM(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],IM.__hooks.imperativeHandle=r}},e.useInteractionState=function(){return WM("interactions")},e.useKeyboard=function(){const e=WM("keyboardNavigation"),t=WM("focusHandler");if(!IM.__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&&(JM(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(IM);IM.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),QM(this))}.bind(IM);IM.__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(IM);IM.__hooks.accessibility.focusSelectionFunction=r}const n=IM.__hooks.accessibility.focusFunction,r=IM.__hooks.accessibility.exitFunction,o=IM.__hooks.accessibility.focusSelectionFunction,[a,i]=VM({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return IM.__hooks.accessibility.setter=i,IM.__hooks.accessibility.enabled=e,GM((()=>i({active:!1,enabled:e,blur:r,focus:n,focusSelection:o})),[e]),a},e.useLayout=function(){return WM("layout")},e.useMemo=ZM,e.useModel=function(){const e=WM("model");return e&&e.session?e:void 0},e.useOptions=function(){return WM("options")},e.usePlugins=function(){return WM("plugins")},e.usePromise=function(e,t){const[n,r]=VM((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=$M(++TM);return o.component||(o.component=IM),KM((()=>{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=XM(),t=IM.__hooks.resizer,[n,r]=VM((()=>{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()),KM((()=>{if(t.initiated)return;t.initiated=!0;const n=()=>{const{left:n,top:r,width:o,height:a}=e.getBoundingClientRect(),i=t.current;i.width===o&&i.height===a&&i.left===n&&i.top===r||t.setters.forEach((e=>e({left:n,top:r,width:o,height:a})))};if(t.resize=()=>{n()},t.explicitResize)return()=>{t.resize=void 0};if("function"==typeof ResizeObserver){let r=new ResizeObserver(n);return r.observe(e),()=>{r.unobserve(e),r.disconnect(e),r=null,t.resize=void 0}}}),[e]),n},e.useRenderState=function(){$M(++TM);const e=IM.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}},e.useSelections=function(){return WM("selections")},e.useStaleLayout=function(){const e=WM("layout"),[t]=VM({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current},e.useState=VM,e.useTheme=function(){return WM("theme")},e.useTranslator=function(){return WM("translator")}}));
|
|
134
134
|
//# sourceMappingURL=stardust.js.map
|