@nebula.js/stardust 2.13.0 → 3.0.0-alpha10

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/index.js CHANGED
@@ -1,8 +1,87 @@
1
1
  /*
2
- * @nebula.js/stardust v2.13.0
2
+ * @nebula.js/stardust v3.0.0-alpha10
3
3
  * Copyright (c) 2022 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
6
6
 
7
- import e,{useState as t,useEffect as n,useReducer as r,forwardRef as o,useMemo as i,useImperativeHandle as a,useCallback as s,useLayoutEffect as l,createElement as c,PureComponent as u,useRef as p,useContext as d}from"react";import h from"react-dom";import{withThemeCreator as f,createGenerateClassName as m,StylesProvider as g,ThemeProvider as y,makeStyles as b,useTheme as v}from"@material-ui/styles";import{Checkbox as E,Radio as C,Grid as L,FormControlLabel as x,Typography as S,IconButton as w,makeStyles as O,Popover as q,MenuList as R,MenuItem as I,ListItemIcon as _,Divider as k,OutlinedInput as D,InputAdornment as T,Badge as N,List as A,ListItem as M,Button as P,Box as j,Icon as z,CircularProgress as F,Paper as B}from"@material-ui/core";"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function H(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function U(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 W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach((function(t){V(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G(){return(G=Object.assign||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}).apply(this,arguments)}function Z(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[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="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),a=new R(r||[]);return i._invoke=function(e,t,n){var r=p;return function(o,i){if(r===h)throw new Error("Generator is already running");if(r===f){if("throw"===o)throw i;return _()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=w(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===p)throw r=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var l=u(e,t,n);if("normal"===l.type){if(r=n.done?f:d,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=f,n.method="throw",n.arg=l.arg)}}}(e,n,a),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var p="suspendedStart",d="suspendedYield",h="executing",f="completed",m={};function g(){}function y(){}function b(){}var v={};l(v,i,(function(){return this}));var E=Object.getPrototypeOf,C=E&&E(E(I([])));C&&C!==n&&r.call(C,i)&&(v=C);var L=b.prototype=g.prototype=Object.create(v);function x(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){var n;this._invoke=function(o,i){function a(){return new t((function(n,a){!function n(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,p=c.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}(o,i,n,a)}))}return n=n?n.then(a,a):a()}}function w(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,w(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=u(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var i=o.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,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}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 q(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function I(e){if(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}}return{next:_}}function _(){return{value:t,done:!0}}return y.prototype=b,l(L,"constructor",b),l(b,"constructor",y),y.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,l(e,s,"GeneratorFunction")),e.prototype=Object.create(L),e},e.awrap=function(e){return{__await:e}},x(S.prototype),l(S.prototype,a,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(L),l(L,s,"Generator"),l(L,i,(function(){return this})),l(L,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=I,R.prototype={constructor:R,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(q),!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 s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.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 i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},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),m},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),q(n),m}},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;q(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}({exports:{}});const K=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n="string"==typeof t||"number"==typeof t?[t]:t;return e.replace(/\{(\d+)\}/g,(e,t)=>void 0!==n[t]?n[t]:e)};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 i;return i=n[r]&&void 0!==n[r][e]?n[r][e]:n[t]&&void 0!==n[t][e]?n[t][e]:e,void 0!==o?K(i,o):i}};return o}const J=function(){let{initial:e="en-US",fallback:t="en-US"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=$({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_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_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_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_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":"重試"}},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":"選取可能值"}},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 Y(e){const t=J({initial:e});return Object.keys(X).forEach(e=>{t.translator.add(X[e])}),{translator:t.translator}}var Q={};function ee(){ee.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 te=ee;ee.EventEmitter=ee,ee.prototype._events=void 0,ee.prototype._maxListeners=void 0,ee.defaultMaxListeners=10,ee.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},ee.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},ee.prototype.emit=function(e){var t,n,r,o,i,a;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),i=1;i<r;i++)o[i-1]=arguments[i];n.apply(this,o)}else if(Q.isObject(n)){for(r=arguments.length,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];for(r=(a=n.slice()).length,i=0;i<r;i++)a[i].apply(this,o)}return!0},ee.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)?ee.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},ee.prototype.on=ee.prototype.addListener,ee.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},ee.prototype.removeListener=function(e,t){var n,r,o,i;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(i=o;i-- >0;)if(n[i]===t||n[i].listener&&n[i].listener===t){r=i;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},ee.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},ee.prototype.listeners=function(e){return this._events&&this._events[e]?Q.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},ee.listenerCount=function(e,t){return e._events&&e._events[t]?Q.isFunction(e._events[t])?1:e._events[t].length:0};var ne=Object.prototype.hasOwnProperty,re=Object.prototype.toString,oe=Object.defineProperty,ie=Object.getOwnPropertyDescriptor,ae=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===re.call(e)},se=function(e){if(!e||"[object Object]"!==re.call(e))return!1;var t,n=ne.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&ne.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||ne.call(e,t)},le=function(e,t){oe&&"__proto__"===t.name?oe(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},ce=function(e,t){if("__proto__"===t){if(!ne.call(e,t))return;if(ie)return ie(e,t).value}return e[t]},ue=function e(){var t,n,r,o,i,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=ce(s,n),s!==(o=ce(t,n))&&(u&&o&&(se(o)||(i=ae(o)))?(i?(i=!1,a=r&&ae(r)?r:[]):a=r&&se(r)?r:{},le(s,{name:n,newValue:e(u,a,o)})):void 0!==o&&le(s,{name:n,newValue:o}));return s},pe={fontSize:"13px",fontFamily:"'Source Sans Pro', 'Arial', 'sans-serif'",backgroundColor:"transparent",dataColors:{primaryColor:"#26a0a7",othersColor:"#a5a5a5",errorColor:"#ff4444",nullColor:"#d2d2d2"},scales:[{name:"Sequential Gradient",translation:"properties.colorScheme.sequential",type:"gradient",propertyValue:"sg",scale:["#26a0a7","#c7ea8b"]},{name:"Sequential Classes",translation:"properties.colorScheme.sequentialC",propertyValue:"sc",type:"class",scale:["#26a0a7","#c7ea8b"]},{name:"Diverging gradient",translation:"properties.colorScheme.diverging",propertyValue:"dg",type:"gradient",scale:["#26a0a7","#c3ea8c","#ec983d"]},{name:"Diverging Classes",translation:"properties.colorScheme.divergingC",propertyValue:"dc",type:"class",scale:["#26a0a7","#c3ea8c","#ec983d"]}],palettes:{data:[{name:"12 Colors",translation:"properties.colorNumberOfColors.12",propertyValue:"12",type:"pyramid",scale:[["#26A0A7"],["#26A0A7","#EC983D"],["#26A0A7","#CBE989","#EC983D"],["#26A0A7","#79D69F","#F9EC86","#EC983D"],["#26A0A7","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D","#D76C6C"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"],["#138185","#26A0A7","#65D3DA","#79D69F","#70BA6E","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"]]}],ui:[{name:"Palette",colors:["#b0afae","#7b7a78","#a54343","#d76c6c","#ec983d","#ecc43d","#f9ec86","#cbe989","#70ba6e","#578b60","#79d69f","#26a0a7","#138185","#65d3da","#ffffff","#000000"]}]}},de={_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"},he={_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"};function fe(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function me(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ge(){}var ye=1/.7,be="\\s*([+-]?\\d+)\\s*",ve="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ee="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ce=/^#([0-9a-f]{3,8})$/,Le=new RegExp("^rgb\\("+[be,be,be]+"\\)$"),xe=new RegExp("^rgb\\("+[Ee,Ee,Ee]+"\\)$"),Se=new RegExp("^rgba\\("+[be,be,be,ve]+"\\)$"),we=new RegExp("^rgba\\("+[Ee,Ee,Ee,ve]+"\\)$"),Oe=new RegExp("^hsl\\("+[ve,Ee,Ee]+"\\)$"),qe=new RegExp("^hsla\\("+[ve,Ee,Ee,ve]+"\\)$"),Re={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 Ie(){return this.rgb().formatHex()}function _e(){return this.rgb().formatRgb()}function ke(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Ce.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?De(t):3===n?new Me(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Te(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Te(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=Le.exec(e))?new Me(t[1],t[2],t[3],1):(t=xe.exec(e))?new Me(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Se.exec(e))?Te(t[1],t[2],t[3],t[4]):(t=we.exec(e))?Te(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Oe.exec(e))?Fe(t[1],t[2]/100,t[3]/100,1):(t=qe.exec(e))?Fe(t[1],t[2]/100,t[3]/100,t[4]):Re.hasOwnProperty(e)?De(Re[e]):"transparent"===e?new Me(NaN,NaN,NaN,0):null}function De(e){return new Me(e>>16&255,e>>8&255,255&e,1)}function Te(e,t,n,r){return r<=0&&(e=t=n=NaN),new Me(e,t,n,r)}function Ne(e){return e instanceof ge||(e=ke(e)),e?new Me((e=e.rgb()).r,e.g,e.b,e.opacity):new Me}function Ae(e,t,n,r){return 1===arguments.length?Ne(e):new Me(e,t,n,null==r?1:r)}function Me(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Pe(){return"#"+ze(this.r)+ze(this.g)+ze(this.b)}function je(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function ze(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Fe(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new He(e,t,n,r)}function Be(e){if(e instanceof He)return new He(e.h,e.s,e.l,e.opacity);if(e instanceof ge||(e=ke(e)),!e)return new He;if(e instanceof He)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new He(a,s,l,e.opacity)}function He(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Ue(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}fe(ge,ke,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Ie,formatHex:Ie,formatHsl:function(){return Be(this).formatHsl()},formatRgb:_e,toString:_e}),fe(Me,Ae,me(ge,{brighter:function(e){return e=null==e?ye:Math.pow(ye,e),new Me(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Me(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:Pe,formatHex:Pe,formatRgb:je,toString:je})),fe(He,(function(e,t,n,r){return 1===arguments.length?Be(e):new He(e,t,n,null==r?1:r)}),me(ge,{brighter:function(e){return e=null==e?ye:Math.pow(ye,e),new He(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new He(this.h,this.s,this.l*e,this.opacity)},rgb:function(){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 Me(Ue(e>=240?e-240:e+120,o,r),Ue(e,o,r),Ue(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));const We=Math.PI/180,Ve=180/Math.PI,Ge=4/29,Ze=6/29,Ke=3*Ze*Ze;function $e(e){if(e instanceof Je)return new Je(e.l,e.a,e.b,e.opacity);if(e instanceof nt)return rt(e);e instanceof Me||(e=Ne(e));var t,n,r=et(e.r),o=et(e.g),i=et(e.b),a=Xe((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=Xe((.4360747*r+.3850649*o+.1430804*i)/.96422),n=Xe((.0139322*r+.0971045*o+.7141733*i)/.82521)),new Je(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Je(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Xe(e){return e>.008856451679035631?Math.pow(e,1/3):e/Ke+Ge}function Ye(e){return e>Ze?e*e*e:Ke*(e-Ge)}function Qe(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function et(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function tt(e){if(e instanceof nt)return new nt(e.h,e.c,e.l,e.opacity);if(e instanceof Je||(e=$e(e)),0===e.a&&0===e.b)return new nt(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Ve;return new nt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function nt(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function rt(e){if(isNaN(e.h))return new Je(e.l,0,0,e.opacity);var t=e.h*We;return new Je(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}fe(Je,(function(e,t,n,r){return 1===arguments.length?$e(e):new Je(e,t,n,null==r?1:r)}),me(ge,{brighter:function(e){return new Je(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new Je(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Me(Qe(3.1338561*(t=.96422*Ye(t))-1.6168667*(e=1*Ye(e))-.4906146*(n=.82521*Ye(n))),Qe(-.9787684*t+1.9161415*e+.033454*n),Qe(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),fe(nt,(function(e,t,n,r){return 1===arguments.length?tt(e):new nt(e,t,n,null==r?1:r)}),me(ge,{brighter:function(e){return new nt(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new nt(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return rt(this).rgb()}}));var ot=-.29227,it=-.90649,at=1.97294,st=at*it,lt=1.78277*at,ct=-.6557636667999999;function ut(e){if(e instanceof pt)return new pt(e.h,e.s,e.l,e.opacity);e instanceof Me||(e=Ne(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(ct*r+st*t-lt*n)/(ct+st-lt),i=r-o,a=(at*(n-o)-ot*i)/it,s=Math.sqrt(a*a+i*i)/(at*o*(1-o)),l=s?Math.atan2(a,i)*Ve-120:NaN;return new pt(l<0?l+360:l,s,o,e.opacity)}function pt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}fe(pt,(function(e,t,n,r){return 1===arguments.length?ut(e):new pt(e,t,n,null==r?1:r)}),me(ge,{brighter:function(e){return e=null==e?ye:Math.pow(ye,e),new pt(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new pt(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*We,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new Me(255*(t+n*(-.14861*r+1.78277*o)),255*(t+n*(ot*r+it*o)),255*(t+n*(at*r)),this.opacity)}}));class dt{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=ke(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([ke(e),ke(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 i=this.colorParts[t][o],a=i[0],s=i[1];if(e===this.min)return s;if(e===this.max)return a;return function(e,t,n){return Ae(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))}(a,s,r-o)}}function ht(e,t,n){const r=.25+(t+1)/n*.25,o=.5-r;return o+e/1*(.5+r-o)}function ft(e,t,n){const r=[],o=new dt(t);r.push(e[0]),n||r.push(e[0]);let i=1;for(;i<e.length-1;i++)r.push(e[i]),r.push(e[i]);r.push(e[i]),n||r.push(e[i]);for(let e=0;e<r.length;e+=2)o.addColorPart(r[e],r[e+1]);return o}function mt(e,t,n){const r=[];for(let o=0;o<t+1;o++){let i;switch(t){case 0:i=e.getColor(.5);break;default:{const r=ht(1/t*o,t,n);i=e.getColor(r);break}}r.push(ke(i).formatHex())}return r}function gt(e,t,n){const r=ft(e,n,!0),o=ft(mt(r,t-1,t),n,!1),i=[null];for(let e=0;e<t;e++)i.push(mt(o,e,t));return i}function yt(e,t){const n=[];let r,o;if(e){let i=e.length;for(;i>=0;){for(r=t.slice(),o=r.length;o>=0;)n.push(r.concat(e)),r.pop(),o--;e.pop(),i--}}else for(r=t.slice(),o=r.length;o>=0;)n.push(r.concat()),r.pop(),o--;return n}function bt(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 vt(e,t,n,r){let o;if(""===e)o=yt(null,n);else{o=yt(e.split("."),n)}return function(e,t,n){const r=t.split(".");for(let t=0;t<e.length;t++){const o=bt(n,[...e[t],...r]);if(void 0!==o)return o}}(o,t,r)}function Et(e,t){const n=e.split(".");return{getStyle:(e,r)=>vt(e,r,n.concat(),t)}}function Ct(e){const t=ke(e).rgb(),{r:n,g:r,b:o}=t,[i,a,s]=[n,r,o].map(e=>e/255),[l,c,u]=[i,a,s].map(e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4);return+(.2126*l+.7152*c+.0722*u).toFixed(5)}function Lt(e,t){return+((Math.max(e,t)+.05)/(Math.min(e,t)+.05)).toFixed(5)}Et.resolveRawTheme=e=>{const t=ue(!0,{},e);return function e(t,n){Object.keys(t).forEach(r=>{"object"==typeof t[r]&&null!==t[r]?e(t[r],n):"string"==typeof t[r]&&"@"===t[r].charAt(0)&&(t[r]=n[t[r]])})}(t,t._variables),t.scales&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#d2d2d2";e.forEach(e=>{if("class"===e.type){const n=gt(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}})}(t.scales,t.dataColors&&t.dataColors.nullColor),t};function xt(){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]=Et(t,e)),r[t].getStyle(n,o))},i={setTheme(i,a){e=function(e,t){const n="dark"===e.type?he:de,r=ue(!0,{},pe,n),o=ue(!0,{},r,{scales:null,palettes:{data:null,ui:null}},e);return o.palettes.data&&o.palettes.data.length||(o.palettes.data=r.palettes.data),o.palettes.ui&&o.palettes.ui.length||(o.palettes.ui=r.palettes.ui),o.scales&&o.scales.length||(o.scales=r.scales),t(o)}(i,Et.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){return e.index<0||void 0===e.index?e.color:(void 0===t&&(t=this.uiPalettes()[0]||!1),t?void 0===t.colors[e.index]?e.color:t.colors[e.index]:e.color)}}}(e);const s=o.getStyle("","","color"),l=Ct(s);n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["#333333","#ffffff"],t={},n=0;const r=e.map(Ct);return{getBestContrastColor(o){if(!t[o]){n>1e3&&(t={},n=0);const i=Ct(o),a=r.map(e=>Lt(i,e)),s=e[a.indexOf(Math.max(...a))];t[o]=s,n++}return t[o]}}}([s,l<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>a}};return Object.keys(te.prototype).forEach(e=>{o[e]=te.prototype[e]}),te.init(o),i.setTheme({},"light"),{externalAPI:o,internalAPI:i}}const St=(e,t)=>new Promise(n=>{setTimeout(()=>n(t),e)});function wt(){let{themes:e=[],root:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=xt(),r=async r=>{const o=e.filter(e=>e.id===r)[0];let i="dark"===r?"dark":"light";if(o&&o.load)try{const e=await Promise.race([o.load(),St(5e3,{__timedOut:!0})]);e.__timedOut||(i="dark"===e.type?"dark":"light",n.internalAPI.setTheme(e,r),t.setMuiThemeName(i))}catch(e){}else n.internalAPI.setTheme({type:i},r),t.setMuiThemeName(i)};return{setTheme:r,externalAPI:n.externalAPI}}function Ot(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"}function qt(){return(qt=Object.assign||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}).apply(this,arguments)}function Rt(e){return(Rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function It(e){return(It="function"==typeof Symbol&&"symbol"===Rt(Symbol.iterator)?function(e){return Rt(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":Rt(e)})(e)}function _t(e){return e&&"object"===It(e)&&e.constructor===Object}function kt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?qt({},e):e;return _t(e)&&_t(t)&&Object.keys(t).forEach((function(o){"__proto__"!==o&&(_t(t[o])&&o in e?r[o]=kt(e[o],t[o],n):r[o]=t[o])})),r}var Dt={exports:{}};function Tt(){}function Nt(){}Nt.resetWarningCache=Tt;function At(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}Dt.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Nt,resetWarningCache:Tt};return n.PropTypes=n,n}(),(Dt.exports.element,function(){return null}).isRequired=(Dt.exports.element.isRequired,function(){return null});var Mt={},Pt=60103,jt=60106,zt=60107,Ft=60108,Bt=60114,Ht=60109,Ut=60110,Wt=60112,Vt=60113,Gt=60120,Zt=60115,Kt=60116,$t=60121,Jt=60122,Xt=60117,Yt=60129,Qt=60131;if("function"==typeof Symbol&&Symbol.for){var en=Symbol.for;Pt=en("react.element"),jt=en("react.portal"),zt=en("react.fragment"),Ft=en("react.strict_mode"),Bt=en("react.profiler"),Ht=en("react.provider"),Ut=en("react.context"),Wt=en("react.forward_ref"),Vt=en("react.suspense"),Gt=en("react.suspense_list"),Zt=en("react.memo"),Kt=en("react.lazy"),$t=en("react.block"),Jt=en("react.server.block"),Xt=en("react.fundamental"),Yt=en("react.debug_trace_mode"),Qt=en("react.legacy_hidden")}function tn(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Pt:switch(e=e.type){case zt:case Bt:case Ft:case Vt:case Gt:return e;default:switch(e=e&&e.$$typeof){case Ut:case Wt:case Kt:case Zt:case Ht:return e;default:return t}}case jt:return t}}}var nn=Ht,rn=Pt,on=Wt,an=zt,sn=Kt,ln=Zt,cn=jt,un=Bt,pn=Ft,dn=Vt;function hn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function fn(e){if(e.type)return e;if("#"===e.charAt(0))return fn(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(At(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function mn(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function gn(e){var t="hsl"===(e=fn(e)).type?fn(function(e){var t=(e=fn(e)).values,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return o-i*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),mn({type:s,values:l})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function yn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bn(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function vn(){return(vn=Object.assign||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}).apply(this,arguments)}Mt.ContextConsumer=Ut,Mt.ContextProvider=nn,Mt.Element=rn,Mt.ForwardRef=on,Mt.Fragment=an,Mt.Lazy=sn,Mt.Memo=ln,Mt.Portal=cn,Mt.Profiler=un,Mt.StrictMode=pn,Mt.Suspense=dn,Mt.isAsyncMode=function(){return!1},Mt.isConcurrentMode=function(){return!1},Mt.isContextConsumer=function(e){return tn(e)===Ut},Mt.isContextProvider=function(e){return tn(e)===Ht},Mt.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Pt},Mt.isForwardRef=function(e){return tn(e)===Wt},Mt.isFragment=function(e){return tn(e)===zt},Mt.isLazy=function(e){return tn(e)===Kt},Mt.isMemo=function(e){return tn(e)===Zt},Mt.isPortal=function(e){return tn(e)===jt},Mt.isProfiler=function(e){return tn(e)===Bt},Mt.isStrictMode=function(e){return tn(e)===Ft},Mt.isSuspense=function(e){return tn(e)===Vt},Mt.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===zt||e===Bt||e===Yt||e===Ft||e===Vt||e===Gt||e===Qt||"object"==typeof e&&null!==e&&(e.$$typeof===Kt||e.$$typeof===Zt||e.$$typeof===Ht||e.$$typeof===Ut||e.$$typeof===Wt||e.$$typeof===Xt||e.$$typeof===$t||e[0]===Jt)},Mt.typeOf=tn,"undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),Dt.exports.oneOfType([Dt.exports.func,Dt.exports.object]);var En=["xs","sm","md","lg","xl"];function Cn(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,o=void 0===r?"px":r,i=e.step,a=void 0===i?5:i,s=bn(e,["values","unit","step"]);function l(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(o,")")}function c(e,t){var r=En.indexOf(t);return r===En.length-1?l(e):"@media (min-width:".concat("number"==typeof n[e]?n[e]:e).concat(o,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof n[En[r+1]]?n[En[r+1]]:t)-a/100).concat(o,")")}return vn({keys:En,values:n,up:l,down:function(e){var t=En.indexOf(e)+1,r=n[En[t]];return t===En.length?l("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-a/100).concat(o,")")},between:c,only:function(e){return c(e,e)},width:function(e){return n[e]}},s)}function Ln(e,t,n){var r;return vn({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),vn({paddingLeft:t(2),paddingRight:t(2)},n,yn({},e.up("sm"),vn({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},yn(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),yn(r,e.up("sm"),{minHeight:64}),r)},n)}var xn={black:"#000",white:"#fff"},Sn={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},wn="#7986cb",On="#3f51b5",qn="#303f9f",Rn="#ff4081",In="#f50057",_n="#c51162",kn="#e57373",Dn="#f44336",Tn="#d32f2f",Nn="#ffb74d",An="#ff9800",Mn="#f57c00",Pn="#64b5f6",jn="#2196f3",zn="#1976d2",Fn="#81c784",Bn="#4caf50",Hn="#388e3c",Un={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:xn.white,default:Sn[50]},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}},Wn={text:{primary:xn.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:Sn[800],default:"#303030"},action:{active:xn.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 Vn(e,t,n,r){var o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=fn(e),t=hn(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return mn(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=fn(e),t=hn(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return mn(e)}(e.main,i)))}function Gn(e){var t=e.primary,n=void 0===t?{light:wn,main:On,dark:qn}:t,r=e.secondary,o=void 0===r?{light:Rn,main:In,dark:_n}:r,i=e.error,a=void 0===i?{light:kn,main:Dn,dark:Tn}:i,s=e.warning,l=void 0===s?{light:Nn,main:An,dark:Mn}:s,c=e.info,u=void 0===c?{light:Pn,main:jn,dark:zn}:c,p=e.success,d=void 0===p?{light:Fn,main:Bn,dark:Hn}:p,h=e.type,f=void 0===h?"light":h,m=e.contrastThreshold,g=void 0===m?3:m,y=e.tonalOffset,b=void 0===y?.2:y,v=bn(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function E(e){return function(e,t){var n=gn(e),r=gn(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Wn.text.primary)>=g?Wn.text.primary:Un.text.primary}var C=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=vn({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(At(4,t));if("string"!=typeof e.main)throw new Error(At(5,JSON.stringify(e.main)));return Vn(e,"light",n,b),Vn(e,"dark",r,b),e.contrastText||(e.contrastText=E(e.main)),e},L={dark:Wn,light:Un};return kt(vn({common:xn,type:f,primary:C(n),secondary:C(o,"A400","A200","A700"),error:C(a),warning:C(l),info:C(u),success:C(d),grey:Sn,contrastThreshold:g,getContrastText:E,augmentColor:C,tonalOffset:b},L[f]),v)}function Zn(e){return Math.round(1e5*e)/1e5}function Kn(e){return Zn(e)}var $n={textTransform:"uppercase"};function Jn(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,o=void 0===r?'"Roboto", "Helvetica", "Arial", sans-serif':r,i=n.fontSize,a=void 0===i?14:i,s=n.fontWeightLight,l=void 0===s?300:s,c=n.fontWeightRegular,u=void 0===c?400:c,p=n.fontWeightMedium,d=void 0===p?500:p,h=n.fontWeightBold,f=void 0===h?700:h,m=n.htmlFontSize,g=void 0===m?16:m,y=n.allVariants,b=n.pxToRem,v=bn(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),E=a/14,C=b||function(e){return"".concat(e/g*E,"rem")},L=function(e,t,n,r,i){return vn({fontFamily:o,fontWeight:e,fontSize:C(t),lineHeight:n},'"Roboto", "Helvetica", "Arial", sans-serif'===o?{letterSpacing:"".concat(Zn(r/t),"em")}:{},i,y)},x={h1:L(l,96,1.167,-1.5),h2:L(l,60,1.2,-.5),h3:L(u,48,1.167,0),h4:L(u,34,1.235,.25),h5:L(u,24,1.334,0),h6:L(d,20,1.6,.15),subtitle1:L(u,16,1.75,.15),subtitle2:L(d,14,1.57,.1),body1:L(u,16,1.5,.15),body2:L(u,14,1.43,.15),button:L(d,14,1.75,.4,$n),caption:L(u,12,1.66,.4),overline:L(u,12,2.66,1,$n)};return kt(vn({htmlFontSize:g,pxToRem:C,round:Kn,fontFamily:o,fontSize:a,fontWeightLight:l,fontWeightRegular:u,fontWeightMedium:d,fontWeightBold:f},x),v,{clone:!1})}function Xn(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var Yn=["none",Xn(0,2,1,-1,0,1,1,0,0,1,3,0),Xn(0,3,1,-2,0,2,2,0,0,1,5,0),Xn(0,3,3,-2,0,3,4,0,0,1,8,0),Xn(0,2,4,-1,0,4,5,0,0,1,10,0),Xn(0,3,5,-1,0,5,8,0,0,1,14,0),Xn(0,3,5,-1,0,6,10,0,0,1,18,0),Xn(0,4,5,-2,0,7,10,1,0,2,16,1),Xn(0,5,5,-3,0,8,10,1,0,3,14,2),Xn(0,5,6,-3,0,9,12,1,0,3,16,2),Xn(0,6,6,-3,0,10,14,1,0,4,18,3),Xn(0,6,7,-4,0,11,15,1,0,4,20,3),Xn(0,7,8,-4,0,12,17,2,0,5,22,4),Xn(0,7,8,-4,0,13,19,2,0,5,24,4),Xn(0,7,9,-4,0,14,21,2,0,5,26,4),Xn(0,8,9,-5,0,15,22,2,0,6,28,5),Xn(0,8,10,-5,0,16,24,2,0,6,30,5),Xn(0,8,11,-5,0,17,26,2,0,6,32,5),Xn(0,9,11,-5,0,18,28,2,0,7,34,6),Xn(0,9,12,-6,0,19,29,2,0,7,36,6),Xn(0,10,13,-6,0,20,31,3,0,8,38,7),Xn(0,10,13,-6,0,21,33,3,0,8,40,7),Xn(0,10,14,-6,0,22,35,3,0,8,42,7),Xn(0,11,14,-7,0,23,36,3,0,9,44,8),Xn(0,11,15,-7,0,24,38,3,0,9,46,8)],Qn={borderRadius:4};function er(e){return(er="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tr(e){return(tr="function"==typeof Symbol&&"symbol"===er(Symbol.iterator)?function(e){return er(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":er(e)})(e)}function nr(e,t){return t?kt(e,t,{clone:!1}):e}var rr={xs:0,sm:600,md:960,lg:1280,xl:1920},or={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(rr[e],"px)")}};function ir(e,t){return t&&"string"==typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}function ar(e){var t=e.prop,n=e.cssProperty,r=void 0===n?e.prop:n,o=e.themeKey,i=e.transform,a=function(e){if(null==e[t])return null;var n=e[t],a=ir(e.theme,o)||{};return function(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||or;return t.reduce((function(e,o,i){return e[r.up(r.keys[i])]=n(t[i]),e}),{})}if("object"===tr(t)){var o=e.theme.breakpoints||or;return Object.keys(t).reduce((function(e,r){return e[o.up(r)]=n(t[r]),e}),{})}return n(t)}(e,n,(function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=ir(a,e)||e,i&&(t=i(t))),!1===r?t:function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},r,t)}))};return a.propTypes={},a.filterProps=[t],a}function sr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=function(e){return t.reduce((function(t,n){var r=n(e);return r?nr(t,r):t}),{})};return r.propTypes={},r.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),r}function lr(e){return"number"!=typeof e?e:"".concat(e,"px solid")}function cr(e){return e<=1?"".concat(100*e,"%"):e}sr(ar({prop:"border",themeKey:"borders",transform:lr}),ar({prop:"borderTop",themeKey:"borders",transform:lr}),ar({prop:"borderRight",themeKey:"borders",transform:lr}),ar({prop:"borderBottom",themeKey:"borders",transform:lr}),ar({prop:"borderLeft",themeKey:"borders",transform:lr}),ar({prop:"borderColor",themeKey:"palette"}),ar({prop:"borderRadius",themeKey:"shape"})),sr(ar({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),ar({prop:"display"}),ar({prop:"overflow"}),ar({prop:"textOverflow"}),ar({prop:"visibility"}),ar({prop:"whiteSpace"})),sr(ar({prop:"flexBasis"}),ar({prop:"flexDirection"}),ar({prop:"flexWrap"}),ar({prop:"justifyContent"}),ar({prop:"alignItems"}),ar({prop:"alignContent"}),ar({prop:"order"}),ar({prop:"flex"}),ar({prop:"flexGrow"}),ar({prop:"flexShrink"}),ar({prop:"alignSelf"}),ar({prop:"justifyItems"}),ar({prop:"justifySelf"})),sr(ar({prop:"gridGap"}),ar({prop:"gridColumnGap"}),ar({prop:"gridRowGap"}),ar({prop:"gridColumn"}),ar({prop:"gridRow"}),ar({prop:"gridAutoFlow"}),ar({prop:"gridAutoColumns"}),ar({prop:"gridAutoRows"}),ar({prop:"gridTemplateColumns"}),ar({prop:"gridTemplateRows"}),ar({prop:"gridTemplateAreas"}),ar({prop:"gridArea"})),sr(ar({prop:"color",themeKey:"palette"}),ar({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"})),sr(ar({prop:"position"}),ar({prop:"zIndex",themeKey:"zIndex"}),ar({prop:"top"}),ar({prop:"right"}),ar({prop:"bottom"}),ar({prop:"left"})),ar({prop:"boxShadow",themeKey:"shadows"});var ur=ar({prop:"width",transform:cr}),pr=ar({prop:"maxWidth",transform:cr}),dr=ar({prop:"minWidth",transform:cr}),hr=ar({prop:"height",transform:cr}),fr=ar({prop:"maxHeight",transform:cr}),mr=ar({prop:"minHeight",transform:cr});function gr(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function yr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=gr({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"==typeof e)return e;var n=t(e);return"number"==typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}ar({prop:"size",cssProperty:"width",transform:cr}),ar({prop:"size",cssProperty:"height",transform:cr}),sr(ur,pr,dr,hr,fr,mr,ar({prop:"boxSizing"})),sr(ar({prop:"fontFamily",themeKey:"typography"}),ar({prop:"fontSize",themeKey:"typography"}),ar({prop:"fontStyle",themeKey:"typography"}),ar({prop:"fontWeight",themeKey:"typography"}),ar({prop:"letterSpacing"}),ar({prop:"lineHeight"}),ar({prop:"textAlign"}));var br={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)"},vr={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Er(e){return"".concat(Math.round(e),"ms")}var Cr={easing:br,duration:vr,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?vr.standard:n,o=t.easing,i=void 0===o?br.easeInOut:o,a=t.delay,s=void 0===a?0:a;return bn(t,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:Er(r)," ").concat(i," ").concat("string"==typeof s?s:Er(s))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}},Lr={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function xr(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,o=void 0===r?{}:r,i=e.palette,a=void 0===i?{}:i,s=e.spacing,l=e.typography,c=void 0===l?{}:l,u=bn(e,["breakpoints","mixins","palette","spacing","typography"]),p=Gn(a),d=Cn(n),h=yr(s),f=kt({breakpoints:d,direction:"ltr",mixins:Ln(d,h,o),overrides:{},palette:p,props:{},shadows:Yn,typography:Jn(p,c),spacing:h,shape:Qn,transitions:Cr,zIndex:Lr},u),m=arguments.length,g=new Array(m>1?m-1:0),y=1;y<m;y++)g[y-1]=arguments[y];return f=g.reduce((function(e,t){return kt(e,t)}),f)}f({defaultTheme:xr()});var Sr={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}}};const wr="#009845",Or="#3F8AB3",qr="#ffffff",Rr="#404040",Ir="#333333",_r="#1A1A1A",kr={type:"light",palette:{primary:{main:Rr,contrastText:qr},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:Rr,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)"},action:{active:Rr,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:qr,default:qr,lightest:qr,lighter:"#FBFBFB",darker:"#F2F2F2",darkest:"#E6E6E6"},custom:{focusBorder:Or,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)"},selected:{main:wr,alternative:"#E4E4E4",excluded:"#BEBEBE",mainContrastText:qr,alternativeContrastText:Rr,excludedContrastText:Rr},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)"}}},Dr={type:"dark",palette:{primary:{main:Ir,contrastText:qr},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:qr,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)"},action:{active:qr,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:Rr,lighter:Ir,darker:"#262626",darkest:_r},custom:{focusBorder:Or,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)"},selected:{main:wr,alternative:Ir,excluded:_r,mainContrastText:qr,alternativeContrastText:qr,excludedContrastText:qr},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)"}}},Tr={},Nr=e=>({MuiTypography:{root:{color:e.palette.text.primary}},MuiIconButton:{root:{padding:7,borderRadius:2,border:"1px solid transparent","&:focus":{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)}}},MuiOutlinedInput:{root:{backgroundColor:e.palette.custom.inputBackground,"&:hover $notchedOutline":{borderColor:e.palette.btn.border},"&$focused $notchedOutline":{borderColor:e.palette.custom.focusBorder,borderWidth:2}}},MuiButton:{outlined:{padding:"3px 11px","&$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","&$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","&$disabled":{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},"&$disabled":{backgroundColor:e.palette.btn.disabled}}},MuiExpansionPanelSummary:{content:{margin:"8px 0"}}});function Ar(e){let t=kr,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=Dr));const r=JSON.stringify(t);if(Tr[r])return Tr[r];const o={palette:W(W({type:t.type},Sr.palette),t.palette),typography:W({},Sr.typography),shadows:Sr.shadows,props:W({},Sr.props),shape:W({},Sr.shape)};return Tr[r]=xr(W(W({},o),{},{overrides:Nr(o)})),Tr[r].name=n,Tr[r]}var Mr=e.createContext({language:null,theme:null,translator:null,constraints:{}}),Pr=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};const o=e,i=[],a={get:e=>o[e],set:(e,t)=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));return o[e]=t,r({type:"SET",value:t}),t},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));o[e]=null},dispatch:e=>{i.forEach(t=>t(e?{}:o))}},s=()=>{const[,e]=t(o);return n(()=>(i.push(e),()=>{const t=i.indexOf(e);i.splice(t,1)}),[e]),[a]};return[s,a]};const[jr,zr]=Pr({}),[Fr,Br]=Pr({}),[Hr,Ur]=Pr({}),[Wr,Vr]=Pr({}),[Gr,Zr]=Pr({}),[,Kr]=Pr({}),$r=e=>{let{type:t,value:n}=e;const r=Kr.get(n.id);Kr.set(n.id,{});const o=()=>{Br.clear(n.id),Zr.set(n.id,{}),Zr.dispatch(!0)},i=()=>{n.removeListener("changed",o),zr.clear(n.id),Br.clear(n.id),Ur.clear(n.id),Vr.clear(n.id),Zr.clear(n.id),Kr.clear(n.id)};switch(t){case"SET":r||(n.on("changed",o),n.once("closed",()=>{i()}))}return i},[Jr,Xr]=Pr({},$r),Yr=(e,t)=>{const{rpcResultStore:n,key:r,method:o}=t;let i;switch(t.type){case"INVALID":i=W(W({},e),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":i={result:W({},t.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":i=W(W({},e),{},{invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1});break;default:throw new Error("Undefined action")}let a=n.get(r);return a||(a={}),a[o]=i,n.set(r,a),i};function Qr(e,t){const o=e?"".concat(e.id):null,[i]=jr(),[a,s]=r(Yr,o?i.get(o):null),[l]=Gr(),[c]=Fr();let u;o&&(u=c.get(o),u||(u={},c.set(o,u)));const p=async n=>{let r=u[t];if(!r||r&&r.rpcRetry){r={rpc:e[t](),rpcRetry:!1},u[t]=r,s({type:"INVALID",method:t,key:o,model:e,rpcResultStore:i,canCancel:!0})}try{const n=await r.rpc;s({type:"VALID",result:n,key:o,method:t,model:e,rpcResultStore:i})}catch(e){15!==e.code||n||(r.rpcRetry||(r.rpcRetry=!0),p(!0))}},d={cancel:async()=>{const n=e.session.getObjectApi({handle:-1});await n.cancelRequest(u[t].rpc.requestId),s({type:"CANCELLED",key:o,method:t,model:e,rpcResultStore:i})},retry:()=>{u[t].rpcRetry=!0,p()}};return n(()=>{e&&p()},[e,l.get(e&&e.id),o,t]),[a&&a.result,{validating:a&&a.validating,canCancel:a&&a.canCancel,canRetry:a&&a.canRetry},d]}function eo(e){return Qr(e,"getLayout")}function to(e){return Qr(e,"getAppLayout")}function no(e,r){const o=r?"".concat(r.id,"/").concat(JSON.stringify(e)):null,[i]=Jr(),[a]=Hr(),[s,l]=t();let c;o&&(c=a.get(o));for(var u=arguments.length,p=new Array(u>2?u-2:0),d=2;d<u;d++)p[d-2]=arguments[d];return n(()=>{if(!r)return;(async()=>{if(!c){const t=r.createSessionObject(e);c=t,a.set(o,c)}const t=await c;i.set(o,t),l(t)})()},[r,...p]),[s]}const ro={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function oo(e){return no(ro,e)}function io(e){const[r]=oo(e),[o]=eo(r),[i]=to(e),[a,s]=t(null);return n(()=>{i&&r&&o&&((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)})(r,o,i)},[i,r,o]),n(()=>{if(!o)return;let e=!1,t=!1,n=!1;[o,...o.alternateStates||[]].forEach(r=>{e=e||r.qSelectionObject&&r.qSelectionObject.qBackCount>0,t=t||r.qSelectionObject&&r.qSelectionObject.qForwardCount>0,n=n||(r.qSelectionObject&&r.qSelectionObject.qSelections||[]).filter(e=>!0!==e.qLocked).length>0}),s({canGoBack:e,canGoForward:t,canClear:n})},[o]),[a,r,o]}const[ao,so]=Pr({}),[lo,co]=Pr({}),[uo,po]=Pr({}),[ho,fo]=Pr({});function mo(e){if(!e.session)return[];const[t,r,o]=io(e),[i]=ao(),a=e?e.id:null;let s=i.get(a);return n(()=>{e&&r&&o&&t&&!s&&(s=function(e){let{app:t,currentSelectionsLayout:n,navState:r}=e;const o="".concat(t.id),i=async function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=fo.get(o);t&&(await t.endSelections(e),fo.clear(o),po.get(t.id).emit("deactivated"))},a={begin:async function(e,n){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e===fo.get(o))return;i(r),fo.set(o,e);const a=Array.isArray(n)?n:[n],s=async n=>{try{await e.beginSelections(a),fo.set(o,e)}catch(e){6003!==e.code||n?fo.clear(o):(await t.abortModal(r),s(!0))}};await s()},end:i};return co.set(o,a),{model:t,isInModal:()=>!!fo.get(o),isModal:e=>e?fo.get(o)===e:!!fo.get(o),canGoForward:()=>r.canGoForward,canGoBack:()=>r.canGoBack,canClear:()=>r.canClear,layout:()=>n,forward:()=>a.end().then(()=>t.forward()),back:()=>a.end().then(()=>t.back()),clear:()=>a.end().then(()=>t.clearAll()),clearField(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$";return a.end().then(()=>t.getField(e,n).then(e=>e.clear()))}}}({app:e,currentSelectionsLayout:o,navState:t}),i.set(a,s),i.dispatch(!0))},[e,r,o,t]),[s,t]}let go=0;const yo=o((n,r)=>{let{initialContext:o,app:s}=n;const[l]=mo(s),[c,u]=t(o),[p,d]=t(),{theme:h,generator:f}=i(()=>({theme:Ar(p),generator:m({productionPrefix:"".concat("c25f"),disableGlobal:!0,seed:"njs-".concat(go++)})}),[p]),[b,v]=t([]);return a(r,()=>({addComponent(e){v([...b,e])},removeComponent(e){const t=b.indexOf(e);-1!==t&&(b.splice(t,1),v([...b]))},setMuiThemeName:d,setContext:u,getAppSelections:()=>l})),e.createElement(g,{generateClassName:f},e.createElement(y,{theme:h},e.createElement(Mr.Provider,{value:c},b)))});function bo(t){let n,{app:r,context:o}=t;const i=new Promise(e=>{n=e}),a=e.createRef(),s=document.createElement("div");s.style.display="none",s.setAttribute("data-nebulajs-version","2.13.0"),s.setAttribute("data-app-id",r.id),document.body.appendChild(s),h.render(e.createElement(yo,{ref:a,app:r,initialContext:o}),s,n);const l={};return[{toggleFocusOfCells(e){Object.keys(l).forEach(t=>{l[t].current.toggleFocus(t===e)})},cells:l,addCell(e,t){l[e]=t},add(e){(async()=>{await i,a.current.addComponent(e)})()},remove(e){(async()=>{await i,a.current.removeComponent(e)})()},setMuiThemeName(e){(async()=>{await i,a.current.setMuiThemeName(e)})()},context(e){(async()=>{await i,a.current.setContext(e)})()},getAppSelections:async()=>(await i,a.current.getAppSelections())},a,i]}function vo(){const[e,n]=t(),[r,o]=t(),i=s(e=>{e&&n(e)},[]),a=()=>{const{left:t,top:n,width:r,height:i}=e.getBoundingClientRect();o({left:t,top:n,width:r,height:i})};return l(()=>{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]),[i,r,e]}function Eo(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function Co(t){let{size:n,style:r={},viewBox:o="0 0 16 16",shapes:i=[]}=t;const a=W({fontSize:Eo(n),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},r);return e.createElement("i",{style:a},e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:o,fill:"currentColor"},i.map((t,n)=>{let{type:r,attrs:o}=t;return e.createElement(r,G({key:n},o))})))}var Lo=e=>Co((e=>W(W({},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 xo=e=>Co((e=>W(W({},e),{},{shapes:[{type:"path",attrs:{d:"M13,7 L8,7 L13,7 L13,4.98151367 C13,2.23029964 10.7614237,0 8,0 C5.23857625,0 3,2.23029964 3,4.98151367 L3,7 L3.75,7 L3,7 L4.5,7 L4.5,5.33193359 C4.5,3.21561511 5.54860291,1.5 8,1.5 C10.4513971,1.5 11.5,3.21561511 11.5,5.33193359 L11.5,7 L12.25,7 L3,7 C2.44771525,7 2,7.44771525 2,8 L2,15 C2,15.5522847 2.44771525,16 3,16 L13,16 C13.5522847,16 14,15.5522847 14,15 L14,8 C14,7.44771525 13.5522847,7 13,7 L3,7 L13,7 Z"}}]}))(e));var So=e=>Co((e=>W(W({},e),{},{shapes:[{type:"path",attrs:{d:"M2.5,7 L11,7 C11.5522847,7 12,7.44771525 12,8 L12,15 C12,15.5522847 11.5522847,16 11,16 L1,16 C0.44771525,16 0,15.5522847 0,15 L0,8 C0,7.44771525 0.44771525,7 1,7 L1,4.98151367 C1,2.23029964 3.23857625,0 6,0 C8.4241995,0 10.4454541,1.71883353 10.9029715,4 L9.34209114,4 C8.9671727,2.54028848 7.9088888,1.5 6,1.5 C3.54860291,1.5 2.5,3.21561511 2.5,5.33193359 L2.5,7 Z"}}]}))(e));function wo(){return(wo=Object.assign||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}).apply(this,arguments)}function Oo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qo(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Ro(e,t){var n;void 0===t&&(t=qo);var r,o=[],i=!1;return function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return i&&n===this&&t(s,o)||(r=e.apply(this,s),i=!0,n=this,o=s),r}}var Io="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function _o(e){cancelAnimationFrame(e.id)}var ko=null;function Do(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 To=function(e,t){return e};function No(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,p=e.shouldResetStyleCacheOnItemSizeChange,d=e.validateProps;return(t=function(e){var t,u;function h(t){var r;return(r=e.call(this,t)||this)._instanceProps=l(r.props,Oo(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Oo(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=Ro((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=Ro((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,s=i.itemSize,l=i.layout,c=r._getItemStyleCache(p&&s,p&&l,p&&a);if(c.hasOwnProperty(e))t=c[e];else{var u=n(r.props,e,r._instanceProps),d=o(r.props,e,r._instanceProps),h="horizontal"===a||"horizontal"===l,f="rtl"===a,m=h?u:0;c[e]=t={position:"absolute",left:f?void 0:m,right:f?m:void 0,top:h?0:u,height:h?"100%":d,width:h?d:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=Ro((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(Do()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<o?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,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(){var e,t,n,o;null!==r._resetIsScrollingTimeoutId&&_o(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=(e=r._resetIsScrolling,t=150,n=Io(),o={id:requestAnimationFrame((function r(){Io()-n>=t?e.call(null):o.id=requestAnimationFrame(r)}))})},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}u=e,(t=h).prototype=Object.create(u.prototype),t.prototype.constructor=t,t.__proto__=u,h.getDerivedStateFromProps=function(e,t){return Ao(e,t),d(e),null};var f=h.prototype;return f.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)},f.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props.itemCount,r=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1)),this.scrollTo(i(this.props,e,t,r,this._instanceProps))},f.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()},f.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 i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(Do()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},f.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&_o(this._resetIsScrollingTimeoutId)},f.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,u=e.itemCount,p=e.itemData,d=e.itemKey,h=void 0===d?To:d,f=e.layout,m=e.outerElementType,g=e.outerTagName,y=e.style,b=e.useIsScrolling,v=e.width,E=this.state.isScrolling,C="horizontal"===o||"horizontal"===f,L=C?this._onScrollHorizontal:this._onScrollVertical,x=this._getRangeToRender(),S=x[0],w=x[1],O=[];if(u>0)for(var q=S;q<=w;q++)O.push(c(t,{data:p,key:h(q,p),index:q,isScrolling:b?E:void 0,style:this._getItemStyle(q)}));var R=r(this.props,this._instanceProps);return c(m||g||"div",{className:n,onScroll:L,ref:this._outerRefSetter,style:wo({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},y)},c(s||l||"div",{children:O,ref:a,style:{height:C?"100%":R,pointerEvents:E?"none":void 0,width:C?R:"100%"}}))},f._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 i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},f._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,l=r.scrollOffset;if(0===t)return[0,0,0,0];var c=a(this.props,l,this._instanceProps),u=s(this.props,c,l,this._instanceProps),p=o&&"backward"!==i?1:Math.max(1,n),d=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,c-p),Math.max(0,Math.min(t-1,u+d)),c,u]},h}(u)).defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var Ao=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},Mo=No({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){var o=e.direction,i=e.height,a=e.itemCount,s=e.itemSize,l=e.layout,c=e.width,u="horizontal"===o||"horizontal"===l?c:i,p=Math.max(0,a*s-u),d=Math.min(p,t*s),h=Math.max(0,t*s-u+s);switch("smart"===n&&(n=r>=h-u&&r<=d+u?"auto":"center"),n){case"start":return d;case"end":return h;case"center":var f=Math.round(h+(d-h)/2);return f<Math.ceil(u/2)?0:f>p+Math.floor(u/2)?p:f;case"auto":default:return r>=h&&r<=d?r:r<h?h:d}},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,i=e.itemCount,a=e.itemSize,s=e.layout,l=e.width,c=t*a,u="horizontal"===r||"horizontal"===s?l:o,p=Math.ceil((u+n-c)/a);return Math.max(0,Math.min(i-1,t+p-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});var Po=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},jo=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}}(),zo=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},Fo=function(e){function t(){var e,n,r;Po(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=zo(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),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},zo(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,u),jo(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,i=n.minimumBatchSize,a=void 0===i?10:i,s=n.threshold,l=void 0===s?15:s,c=function(e){for(var t=e.isItemLoaded,n=e.itemCount,r=e.minimumBatchSize,o=e.startIndex,i=e.stopIndex,a=[],s=null,l=null,c=o;c<=i;c++)t(c)?null!==l&&(a.push(s,l),s=l=null):(l=c,null===s&&(s=c));if(null!==l){for(var u=Math.min(Math.max(l,s+r-1),n-1),p=l+1;p<=u&&!t(p);p++)l=p;a.push(s,l)}if(a.length)for(;a[1]-a[0]+1<r&&a[0]>0;){var d=a[0]-1;if(t(d))break;a[0]=d}return a}({isItemLoaded:r,itemCount:o,minimumBatchSize:a,startIndex:Math.max(0,e-l),stopIndex:Math.min(o-1,t+l)});(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],i=e[r+1],a=n(o,i);null!=a&&a.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:i})){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}();const Bo=["S","XS"],Ho=e=>e.reduce((e,t)=>e.concat(t));function Uo(e){return Bo.includes(e)}function Wo(e){return Array.isArray(e)?Array.from(new Set(e)):void 0}async function Vo(e){let{selections:t,elemNumbers:n,isSingleSelect:r=!1}=e,o=Promise.resolve(!1);if(!n.some(e=>Number.isNaN(e))){const e=n;o=t.select({method:"selectListObjectValues",params:["/qListObjectDef",e,!r]}).then(e=>!1!==e).catch(()=>!1)}return o}function Go(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)}function Zo(e){let{layout:r,selections:o,pages:i=[],checkboxes:a=!1,selectDisabled:l,doc:c=document,isSingleSelect:u=!1}=e;const[p,d]=t(i),[h,f]=t(!1),[m,g]=t(!1),[y,b]=t(u),[v,E]=t([]),[C,L]=t(!1),[x,S]=t([]),w=function(e){if(!e||!e.length)return[];const t=e.map(e=>e.qMatrix.map(e=>{const[{qElemNumber:t}]=e;return t}));return Ho(t)}(i);n(()=>{b(u)},[u]);const O=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(l())return;g(!0);const n=t?e.filter(e=>!v.includes(e)):e;await Vo({selections:o,elemNumbers:n,isSingleSelect:y}),g(!1),S([])},q=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];l()||S(n=>{const r=Wo([...n,...e]),o=t?r.filter(e=>!v.includes(e)):r;return t?Go(r,w):o})},R=e=>{(e.ctrlKey||e.metaKey)&&(b(!0),e.currentTarget.focus(),e.preventDefault())},I=s(e=>{if(m||l())return;const t=+e.currentTarget.getAttribute("data-n");S([t]),R(e)},[m,l]),_=s(e=>{if(m||l())return;L(!1),f(!0);const t=+e.currentTarget.getAttribute("data-n");S([t]),R(e)},[m,l]),k=s(e=>{const t=+e.currentTarget.getAttribute("data-n");y||!h||m||1===x.length&&x[0]===t||q([t])},[h,m,x,v,C,l]),D=s(()=>{f(!1),g(!1),L(!1),b(u)},[u]),T=s(e=>{if(y||!h||m||l())return;L(!0);const t=+e.currentTarget.getAttribute("data-n");q([t],!0)},[h,m,C,x,v,l,r&&r.qListObject.qDimensionInfo.qIsOneAndOnlyOne]);n(()=>{const e=!h;x&&x.length&&!m&&e&&r&&O(x,C)},[x,h,l()]),n(()=>(c.addEventListener("mouseup",D),()=>{c.removeEventListener("mouseup",D)}),[D]),n(()=>{if(m||h)return;const e=function(e){if(!e||!e.length)return[];const t=e.map(e=>e.qMatrix.map(e=>{const[t]=e;return!!Uo(t.qState)&&t.qElemNumber}).filter(e=>!1!==e));return Ho(t)}(i);E(e)},[i]),n(()=>{if(m||!i||!a&&!h)return;const e=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=e=>t.length<=1&&Uo(e)?"A":"S";return e.map(e=>{const o=e.qMatrix.map(e=>{const[o]=e,i=t.includes(o.qElemNumber);let a;return a=n?i?"S":"A":i?r(o.qState):o.qState,[W(W({},o),{},{qState:a}),e.slice(1)]});return W(W({},e),{},{qMatrix:o})})}(i,x,y);d(e)},[x]);const N={};return a?Object.assign(N,{onClick:I}):Object.assign(N,{onMouseUp:k,onMouseDown:_,onMouseEnter:T}),{instantPages:p,interactionEvents:N,select:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];L(!1),f(!0),q(e,t||C);const n=O(e,t||C);return f(!1),n}}}const Ko=e=>W(W({},e),{},{shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]});var $o=e=>Co(Ko(e));const Jo=b(e=>({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"},cbIconChecked:{borderRadius:3,backgroundColor:e.palette.selected.main,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:'""'}},cbIconExcluded:{borderRadius:2,width:12,height:12,backgroundColor:e.palette.selected.excluded},cbIconAlternative:{borderRadius:2,width:12,height:12,backgroundColor:e.palette.selected.alternative},checkbox:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},dense:{padding:"4px 8px"}})),Xo=function(t){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return e.createElement("span",{className:t.cbIcon},(r||o)&&e.createElement("span",{className:[n&&r&&t.cbIconExcluded,n&&o&&t.cbIconAlternative].filter(Boolean).join(" ")}))};function Yo(t){let{checked:n,label:r,dense:o,excluded:i,alternative:a,showGray:s=!0}=t;const l=Jo();return e.createElement(E,{edge:"start",checked:n,disableRipple:!0,className:[l.checkbox,o&&l.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":r},name:r,icon:Xo(l,s,i,a),checkedIcon:e.createElement("span",{className:l.cbIconChecked})})}const Qo=b(()=>({denseRadioButton:{height:"100%",boxSizing:"border-box","& svg":{width:"0.7em",height:"0.7em"}},radioButton:{right:"5px"}}));function ei(t){let{checked:n,label:r,dense:o}=t;const i=Qo();return e.createElement(C,{checked:n,value:r,name:r,inputProps:{"aria-labelledby":r},className:o?i.denseRadioButton:i.radioButton,style:{backgroundColor:"transparent"},disableRipple:!0})}const ti=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===ti.ARROW_UP||e===ti.ARROW_DOWN||e===ti.ARROW_LEFT||e===ti.ARROW_RIGHT});function ni(e){let{setKeyboardActive:t}=e;return e=>{const{keyCode:n}=e.nativeEvent;switch(n){case ti.ENTER:case ti.SPACE:(e=>{const n=e.querySelector(".search input, .value.selector, .value");t(!0),n&&n.focus()})(e.currentTarget);break;case ti.ESCAPE:r=e.currentTarget,t(!1),r.focus();break;default:return}var r;e.preventDefault()}}const ri={width:"100%",overflow:"hidden",textOverflow:"ellipsis"},oi=e=>{let{theme:t}=e;return{background:t.palette.selected.main,color:t.palette.selected.mainContrastText,"&:focus":{boxShadow:"inset 0 0 0 2px rgba(0, 0, 0, 0.3)",outline:"none"},"& $cell":{paddingRight:0}}},ii=b(e=>({row:{flexWrap:"nowrap",color:e.palette.text.primary},rowBorderBottom:{borderBottom:"1px solid ".concat(e.palette.divider)},column:{flexWrap:"nowrap",borderRight:"1px solid ".concat(e.palette.divider),color:e.palette.text.primary},fieldRoot:{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(e.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"}},cell:{display:"flex",alignItems:"center",minWidth:0,flexGrow:1,paddingLeft:"9px",paddingRight:"9px"},labelText:W({flexBasis:"max-content",lineHeight:"16px",userSelect:"none",whiteSpace:"pre"},ri),labelDense:{fontSize:12},highlighted:{overflow:"visible",width:"100%","& > span":{width:"100%",backgroundColor:"#FFC72A"}},checkboxLabel:{margin:0,width:"100%",height:"100%","& > span:nth-child(1)":{paddingRight:"8px"},"& > span:nth-child(2)":W(W({},ri),{},{display:"flex",alignItems:"center",paddingLeft:0})},icon:{display:"flex",padding:e.spacing(1,1,1,0)},S:W({},oi({theme:e})),XS:W(W({},oi({theme:e})),{},{background:e.palette.selected.excluded,color:e.palette.selected.mainContrastText}),A:{background:e.palette.selected.alternative,color:e.palette.selected.alternativeContrastText},X:{background:e.palette.selected.excluded,color:e.palette.selected.mainContrastText},frequencyCount:{paddingLeft:"8px",paddingRight:"8px"},barContainer:{position:"relative"},bar:{border:"".concat(1,"px solid"),borderColor:"#D9D9D9",height:"16px",position:"absolute",zIndex:"-1",alignSelf:"center",left:"".concat(4,"px"),transition:"width 0.2s",backgroundColor:"#FAFAFA"},barSelected:{opacity:"30%",zIndex:"0",background:e.palette.background.lighter},barWithCheckbox:{left:"".concat(29,"px")},barSelectedWithCheckbox:{background:"#BFE5D0",borderColor:"#BFE5D0"},excludedTextWithCheckbox:{color:"#828282"}}));function ai(r){let{index:o,style:i,data:a,column:l=!1}=r;const{onClick:c,onMouseDown:u,onMouseUp:p,onMouseEnter:d,pages:h,isLocked:f,checkboxes:m=!1,dense:g=!1,frequencyMode:y="N",isSingleSelect:b,actions:v,frequencyMax:E="",histogram:C=!1,keyboard:w,showGray:O=!0}=a,q=s(function(e){let{select:t,confirm:n,cancel:r}=e;const o=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=e&&e.parentElement[t?"nextElementSibling":"previousElementSibling"];return n&&n.querySelector("[role]")};let i=!1;const a=e=>{i=e};return e=>{let s;const{keyCode:l,shiftKey:c=!1}=e.nativeEvent;switch(l){case ti.SHIFT:a(!0);break;case ti.SPACE:t([+e.currentTarget.getAttribute("data-n")]);break;case ti.ARROW_DOWN:case ti.ARROW_RIGHT:s=o(e.currentTarget,!0),c&&s&&(i&&(t([+e.currentTarget.getAttribute("data-n")],!0),a(!1)),t([+s.getAttribute("data-n")],!0));break;case ti.ARROW_UP:case ti.ARROW_LEFT:s=o(e.currentTarget,!1),c&&s&&(i&&(t([+e.currentTarget.getAttribute("data-n")],!0),a(!1)),t([+s.getAttribute("data-n")],!0));break;case ti.ENTER:n();break;case ti.ESCAPE:return void r();default:return}s&&s.focus(),e.preventDefault(),e.stopPropagation()}}(v),[v]),[R,I]=t(!1),[_,k]=t(),D=ii(),[T,N]=t([]);n(()=>{if(!h)return;let e;const t=h.filter(e=>e.qArea.qTop<=o&&o<e.qArea.qTop+e.qArea.qHeight)[0];if(t){const n=t.qArea;o>=n.qTop&&o<n.qTop+n.qHeight&&([e]=t.qMatrix[o-n.qTop])}k(e)},[h]);const A=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,M=e=>e?"A"===e.qState:null;n(()=>{if(!_)return;const e="S"===_.qState||"XS"===_.qState||"L"===_.qState;I(e);const t=[l?D.column:D.row];C&&g||t.push(D.rowBorderBottom),m||("XS"===_.qState?t.push(O?D.XS:D.S):"S"===_.qState||"L"===_.qState?t.push(D.S):O&&M(_)?t.push(D.A):O&&A(_)&&t.push(D.X)),N(t)},[_&&_.qState]);const P=e=>e.filter(e=>!!e).join(" ").trim(),j=()=>(M(_)||A(_))&&m,z=t=>{let{lbl:n,ix:r,color:o,highlighted:i=!1}=t;return e.createElement(S,{component:"span",variant:"body2",key:r,className:P([D.labelText,i&&D.highlighted,g&&D.labelDense,O&&j()&&D.excludedTextWithCheckbox]),color:o},e.createElement("span",{style:{whiteSpace:"pre"}},n))},F=t=>{let{lbl:n,color:r,qElemNumber:o}=t;const i=e.createElement(Yo,{label:n,checked:R,dense:g,excluded:A(_),alternative:M(_),showGray:O}),a=e.createElement(ei,{label:n,checked:R,dense:g}),s="string"==typeof n?z({lbl:n,color:r,highlighted:!1}):n;return e.createElement(x,{color:r,control:b?a:i,className:D.checkboxLabel,label:s,key:o})},B=_?_.qText:"",H=()=>_?_.qFrequency?_.qFrequency:"0":"",U=_&&_.qHighlightRanges&&_.qHighlightRanges.qRanges.sort((e,t)=>e.qCharPos-t.qCharPos)||[],W=function(e,t){return t.length?t.reduce((n,r,o)=>{const i=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,i=[];return r>n&&i.push([e.slice(n,r),!1]),i.push([e.slice(r,r+o),!0]),i}(e,r,i));const a=o===t.length-1,s=t[o].qCharPos+t[o].qCharCount;return a&&s<e.length&&n.push([e.slice(s),!1]),n},[]):[]}(B,U),V=m?F:z,G={alignItems:"center",display:"flex"},Z=R&&f,K=!m&&R&&!f,$={display:"flex",alignItems:"center",minWidth:0,flexGrow:1,padding:m?0:void 0},J=0===o;return e.createElement("div",{className:D.barContainer},e.createElement(L,{container:!0,spacing:0,className:P(["value",...T]),classes:{root:D.fieldRoot},style:i,onClick:c,onMouseDown:u,onMouseUp:p,onMouseEnter:d,onKeyDown:q,onContextMenu:e=>{m&&c(e),e.preventDefault()},role:l?"column":"row",tabIndex:!J||w.enabled&&!w.active?-1:0,"data-n":_&&_.qElemNumber},_&&C&&"0"!==H()&&e.createElement("div",{className:P([D.bar,m&&D.barWithCheckbox,R&&(m?D.barSelectedWithCheckbox:D.barSelected)]),style:{width:(e=>{const t=String(e),n="%"===t.substring(t.length-1),r=parseFloat(n?t:e),o=m?"(".concat(29,"px + ").concat(6,"px)"):"".concat(10,"px");return"calc(".concat(n?r:r/E*100,"% - ").concat(o,")")})(_.qFrequency)}}),e.createElement(L,{item:!0,style:$,className:P([D.cell,D.selectedCell]),title:"".concat(B)},0===U.length?V({lbl:B,color:"inherit"}):(e=>{let{lbls:t}=e;const n=t.map((e,t)=>{let[n,r]=e;return z({ix:t,highlighted:r,lbl:n})});return m?F({lbl:n}):n})({lbls:W})),"N"!==y&&e.createElement(L,{item:!0,style:{display:"flex",alignItems:"center"},className:D.frequencyCount},e.createElement(S,{noWrap:!0,color:"inherit",variant:"body2",className:P([g&&D.labelDense,D.labelText,O&&j()&&D.excludedTextWithCheckbox])},H())),(Z||K)&&e.createElement(L,{item:!0,className:D.icon},Z&&e.createElement(xo,{style:G,size:"small"}),K&&e.createElement($o,{style:G,size:"small"}))))}const si=b(()=>({styledScrollbars:{scrollbarColor:"".concat("#BBB"," ").concat("#f1f1f1"),"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:"#f1f1f1"},"&::-webkit-scrollbar-thumb":{backgroundColor:"#BBB",borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}}}));function li(r){let{model:o,selections:i,direction:a,height:l,width:c,listLayout:u="vertical",frequencyMode:d="N",histogram:h=!1,checkboxes:f=!1,update:m,fetchStart:g,dense:y=!1,keyboard:b={},showGray:v=!0,scrollState:E,sortByState:C,selectDisabled:L=(()=>!1),setCount:x}=r;const[S]=eo(o),w=!(!S||!S.qListObject.qDimensionInfo.qIsOneAndOnlyOne),[O,q]=t(null),[R,I]=t(!1),_=si(),{instantPages:k=[],interactionEvents:D,select:T}=Zo({layout:S,selections:i,pages:O,checkboxes:f,selectDisabled:L,doc:document,isSingleSelect:w}),N=p(null),A=p({queue:[],validPages:!1}),M=p({pages:[]}),P=s(e=>{if(!O||!A.current.validPages)return!1;A.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=O.filter(e=>t(e))[0];return n&&t(n)},[S,O]),j=s((e,t)=>{A.current.queue.push({start:e,stop:t});!!N.current&&N.current._listRef.state.isScrolling;return A.current.queue.length>10&&A.current.queue.shift(),clearTimeout(A.current.timeout),I(!0),new Promise(e=>{A.current.timeout=setTimeout(()=>{const t=A.current.queue.slice(-2).sort((e,t)=>e.start-t.start),n=o.getListObjectData("/qListObjectDef",t.map(e=>({qTop:e.start,qHeight:e.stop-e.start+1,qLeft:0,qWidth:1}))).then(t=>{A.current.validPages=!0,M.current.pages=t,q(t),I(!1),e()});g&&g(n)},0)})},[S]),z=()=>{if(A.current.queue=[],A.current.validPages=!1,N.current){if(N.current.resetloadMoreItemsCache(!0),S&&S.qSelectionInfo.qInSelections||0===C)return;N.current._listRef.scrollToItem(0)}};m&&m.call(null,z),n(()=>{z(),"function"==typeof x&&S&&x(S.qListObject.qSize.qcy)},[S]),n(()=>{k&&!R&&q(k)},[k]);const[F,B]=t(!1);if(n(()=>{E&&!F&&N.current&&(N.current._listRef.scrollToItem(E.initScrollPos),B(!0))},[N.current]),!S)return null;const H="horizontal"!==u,U=S.qListObject.qSize.qcy,{itemSize:V,listHeight:G}=function(e){let{isVertical:t,checkboxes:n,dense:r,height:o}=e,i=n?40:33;r&&(i=20);const a=t?i:200;return{itemSize:a,listHeight:o||8*a}}({isVertical:H,checkboxes:f,dense:y,height:l}),Z=S&&S.qListObject.qDimensionInfo.qLocked,{frequencyMax:K}=S;return e.createElement(Fo,{isItemLoaded:P,itemCount:U,loadMoreItems:j,threshold:0,minimumBatchSize:100,ref:N},t=>{let{onItemsRendered:n,ref:r}=t;return A.current.listRef=r,e.createElement(Mo,{direction:a,"data-testid":"fixed-size-list",useIsScrolling:!0,style:{},height:G,width:c,itemCount:U,layout:u,className:_.styledScrollbars,itemData:W(W({isLocked:Z,column:!H,pages:O},Z||L()?{}:D),{},{checkboxes:f,dense:y,frequencyMode:d,isSingleSelect:w,actions:{select:T,confirm:()=>i&&i.confirm.call(i),cancel:()=>i&&i.cancel.call(i)},frequencyMax:K,histogram:h,keyboard:b,showGray:v}),itemSize:V,onItemsRendered:e=>{E&&E.setScrollPos(e.visibleStopIndex),n(W({},e))},ref:r},ai)})}const ci=e=>W(W({},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"}}]}),ui=e=>W(W({},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"}}]}),pi=e=>W(W({},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"}}]}),di=e=>W(W({},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 hi=e=>{let{layout:t,model:n,translator:r}=e;if(t.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];return[{key:"selectAll",type:"menu-icon-button",label:r.get("Selection.SelectAll"),getSvgIconShape:ci,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some(e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0),action:()=>{n.selectListObjectAll("/qListObjectDef")}},{key:"selectPossible",type:"menu-icon-button",label:r.get("Selection.SelectPossible"),getSvgIconShape:pi,enabled:()=>["qOption"].some(e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0),action:()=>{n.selectListObjectPossible("/qListObjectDef")}},{key:"selectAlternative",type:"menu-icon-button",label:r.get("Selection.SelectAlternative"),getSvgIconShape:ui,enabled:()=>["qAlternative"].some(e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0),action:()=>{n.selectListObjectAlternative("/qListObjectDef")}},{key:"selectExcluded",type:"menu-icon-button",label:r.get("Selection.SelectExcluded"),getSvgIconShape:di,enabled:()=>["qAlternative","qExcluded"].some(e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0),action:()=>{n.selectListObjectExcluded("/qListObjectDef")}}]};const fi=e=>W(W({},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 mi(e){const t=v(),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 gi="njs-cell-action",yi=e.forwardRef((t,n)=>{let{item:r,addAnchor:o=!1}=t;const i=v(),{hidden:a,disabled:s,style:l,hasSvgIconShape:c}=mi(r);if(a)return null;const u=r.keyboardAction?e=>["Enter"," ","Spacebar"].includes(e.key)&&r.keyboardAction():null;return e.createElement(w,{ref:o?null:n,title:r.label,onClick:r.action,onKeyDown:u,disabled:s,style:l,className:gi},c&&Co(r.getSvgIconShape()),o&&e.createElement("div",{ref:n,style:{bottom:-i.spacing(.5),right:0,position:"absolute",width:"100%",height:0}}))}),bi=e=>W(W({},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"}}]}),vi=e=>W(W({},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 Ei=e=>Co(vi(e));const Ci=O(e=>({icon:{color:e.palette.text.primary}}));function Li(t){let{item:n,onActionClick:r=(()=>{})}=t;const{hidden:o,disabled:i,hasSvgIconShape:a}=mi(n),{icon:s}=Ci();return o?null:e.createElement(I,{title:n.label,onClick:()=>{n.action(),r()},disabled:i},a&&e.createElement(_,{className:s},Co(n.getSvgIconShape())),e.createElement(S,{noWrap:!0},n.label))}const xi=e.forwardRef((t,n)=>{let{actions:r=[],show:o=!0,alignTo:i,popoverProps:a={},popoverPaperStyle:s={},onCloseOrActionClick:l=(()=>{})}=t;return r.length>0&&e.createElement(q,G({},a,{onClose:l,ref:n,open:o,anchorEl:i.current,getContentAnchorEl:null,container:i.current,disablePortal:!0,hideBackdrop:!0,style:{pointerEvents:"none"},transitionDuration:0,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{style:W({pointerEvents:"auto",maxWidth:"250px"},s)}}),e.createElement(R,null,r.map((t,n)=>e.createElement(Li,{key:n,item:t,onActionClick:l}))))}),Si="njs-action-toolbar-popover",wi=O(e=>({itemSpacing:{padding:e.spacing(0,.5)},firstItemSpacing:{padding:e.spacing(0,.5,0,0)},lastItemSpacing:{padding:e.spacing(0,0,0,.5)}})),Oi=e.forwardRef((t,n)=>{let{actions:r=[],first:o=!1,last:i=!1,addAnchor:a=!1}=t;const{itemSpacing:s,firstItemSpacing:l,lastItemSpacing:c}=wi();return r.length>0?e.createElement(L,{item:!0,container:!0,spacing:0,wrap:"nowrap"},r.map((t,u)=>{let p=[];const d=o&&0===u,h=i&&r.length-1===u;return d&&!h&&(p=[l]),h&&!d&&(p=[...p,c]),d||h||0!==p.length||(p=[s]),e.createElement(L,{item:!0,key:t.key,className:p.join(" ").trim()},e.createElement(yi,{key:t.key,item:t,ref:0===u?n:null,addAnchor:a}))})):null}),qi={pointerEvents:"none"},Ri={vertical:"top",horizontal:"right"},Ii={vertical:"bottom",horizontal:"right"};function _i(r){let{show:o=!0,actions:a=[],maxItems:s=3,selections:l={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},more:c={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{}},popover:u={show:!1,anchorEl:null},focusHandler:h=null,actionsRefMock:f=null}=r;const m=function(e){let{api:t,onConfirm:n=(()=>{}),onCancel:r=(()=>{}),onKeyDeactivate:o=(()=>{})}=e;const{translator:i}=d(Mr);return[{key:"clear",type:"icon-button",label:i.get("Selection.Clear"),enabled:()=>t.canClear(),action:()=>t.clear(),getSvgIconShape:vi},{key:"cancel",type:"icon-button",label:i.get("Selection.Cancel"),enabled:()=>t.canCancel(),action:()=>{r(),t.cancel()},keyboardAction:e=>{o(e),r(),t.cancel()},getSvgIconShape:bi},{key:"confirm",type:"icon-button",label:i.get("Selection.Confirm"),enabled:()=>t.canConfirm(),action:()=>{n(),t.confirm()},keyboardAction:e=>{o(e),n(),t.confirm()},getSvgIconShape:Ko}]}(l),{itemSpacing:g}=wi(),{translator:y,keyboardNavigation:b}=d(Mr),[E,C]=t(!1),[x,S]=t(c.enabled),[w,O]=t(c.actions),[R,I]=t(c.alignTo),_=p(),D=p(),T=v(),N=i(()=>({margin:T.spacing(.5,0)})),A=e=>{const t=D.current||f;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]};n(()=>()=>C(!1),[u.show]),n(()=>{S(c.enabled)},[c.enabled]),n(()=>{if(!h)return;h.on("focus_toolbar_first",()=>{const e=A(!1);e&&e.focus()}),h.on("focus_toolbar_last",()=>{const e=A(!0);e&&e.focus()})},[]);const M=i(()=>a.filter(e=>!e.hidden),[a]);if(!l.show&&0===M.length)return null;const P={key:"more",label:y.get("Menu.More"),getSvgIconShape:fi,hidden:!1,enabled:()=>x,action:()=>C(!E)};if(M.length>s){const e=M.splice(-(M.length-s)-1);S(!0),O([...e,...c.actions]),I(_)}const j=b&&h&&h.refocusContent?e=>{if("Tab"!==e.key)return;(e.shiftKey&&A(!1)===e.target||!e.shiftKey&&A(!0)===e.target)&&(e.preventDefault(),e.stopPropagation(),h.refocusContent())}:null,z=M.length>0,F=w.length>0,B=z&&l.show||F&&l.show,H=e.createElement(L,{ref:D,onKeyDown:j,container:!0,spacing:0,wrap:"nowrap"},z&&e.createElement(Oi,{actions:M,first:!0,last:!F&&!l.show}),F&&e.createElement(Oi,{ref:_,actions:[P],first:!z,last:!l.show,addAnchor:!0}),B&&e.createElement(L,{item:!0,className:g,style:N},e.createElement(k,{orientation:"vertical"})),l.show&&e.createElement(Oi,{actions:m,first:!z&&!F,last:!0}),E&&e.createElement(xi,{show:E,actions:w,alignTo:R,popoverProps:c.popoverProps,popoverPaperStyle:c.popoverPaperStyle,onCloseOrActionClick:()=>{C(!1)}}));return u.show?e.createElement(q,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:u.show,anchorEl:u.anchorEl,anchorOrigin:Ri,transformOrigin:Ii,hideBackdrop:!0,style:qi,PaperProps:{className:Si,style:{pointerEvents:"auto",padding:T.spacing(1,1)}}},H):o&&H}var ki=e=>Co((e=>W(W({},e),{},{shapes:[{type:"path",attrs:{d:"M15.7873809,13.80959 C16.1870614,14.209868 15.9872212,15.1104934 15.4876205,15.5107714 C15.08794,15.9110493 14.1886588,16.2112578 13.7889782,15.8109798 L11.0911347,13.1091035 L10.9912145,12.5086866 L10.2917736,11.8082001 C9.19265216,12.5086866 7.89369045,13.0090341 6.49480859,13.0090341 C2.89768383,13.0090341 0,10.1070188 0,6.50451703 C0,2.90201529 2.89768383,0 6.49480859,0 C10.0919334,0 12.9896172,2.90201529 12.9896172,6.50451703 C12.9896172,7.90548992 12.4900165,9.20639333 11.7905756,10.3071577 L12.4900165,11.0076442 L13.0895373,11.1077137 L15.7873809,13.80959 Z M11.2909749,6.50451703 C11.2909749,5.20361362 10.7913743,4.00277971 9.89209309,3.00208478 C8.9928119,2.10145935 7.79377031,1.60111188 6.49480859,1.60111188 C5.19584688,1.60111188 3.99680529,2.10145935 2.99760397,3.00208478 C2.09832278,4.00277971 1.59872212,5.20361362 1.59872212,6.50451703 C1.59872212,7.80542043 2.09832278,9.00625434 2.99760397,9.90687978 C3.89688516,10.8075052 5.09592674,11.3078527 6.49480859,11.3078527 C7.79377031,11.4079222 8.9928119,10.9075747 9.89209309,9.90687978 C10.7913743,9.00625434 11.2909749,7.80542043 11.2909749,6.50451703 Z"}}]}))(e));const Di=b(e=>({root:{border:"none",borderRadius:0,"& fieldset":{border:"1px solid ".concat(e.palette.divider),borderWidth:"1px 0 1px 0",borderRadius:0},"&:hover":{border:"none"}},dense:{fontSize:12,paddingLeft:e.spacing(1),"& input":{paddingTop:"5px",paddingBottom:"5px"}}}));function Ti(n){let{model:r,keyboard:o,dense:i=!1}=n;const{translator:a}=d(Mr),[s,l]=t(""),c=Di();return e.createElement(D,{startAdornment:e.createElement(T,{position:"start"},e.createElement(ki,{size:i?"small":"normal"})),className:["search",c.root,i&&c.dense].filter(Boolean).join(" "),margin:"dense",fullWidth:!0,placeholder:a.get("Listbox.Search"),value:s,onChange:e=>{l(e.target.value),r.searchListObjectFor("/qListObjectDef",e.target.value)},onKeyDown:e=>{switch(e.key){case"Enter":r.acceptListObjectSearch("/qListObjectDef",!0),l("");break;case"Escape":r.abortListObjectSearch("/qListObjectDef")}},inputProps:{tabIndex:!o||o.enabled&&!o.active?-1:0}})}function Ni(e){return Object.keys(te.prototype).forEach(t=>{e[t]=te.prototype[t]}),te.init(e),e}function Ai(e,t){const[r]=mo(e),[o]=eo(t),i=t?t.id:null,[a]=lo(),[s]=uo(),l=a.get(e.id);let c=s.get(i);return n(()=>{r&&t&&!c&&(c=function(e){let t,{appSelections:n,appModal:r,model:o}=e,i=!1,a=!1;const s={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():(i=!0,this.emit("activated"),r.begin(o,e,!0))},clear(){return a=!1,this.emit("cleared"),t.qListObject?o.clearSelections("/qListObjectDef"):o.resetMadeSelections()},confirm(){return a=!1,i=!1,this.emit("confirmed"),this.emit("deactivated"),r.end(!0)},cancel(){return a=!1,i=!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 a="resetMadeSelections"!==e.method,!!r||(o.resetMadeSelections(),!1)},canClear:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked&&!t.qListObject.qDimensionInfo.qIsOneAndOnlyOne:a,canConfirm:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked:a,canCancel:()=>!(t&&t.qListObject&&t.qListObject.qDimensionInfo&&t.qListObject.qDimensionInfo.qLocked),isActive:()=>i,isModal:()=>n.isModal(o),goModal:e=>r.begin(o,e,!1),noModal:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return r.end(e)}};return Ni(s),s}({appSelections:r,appModal:l,model:t}),s.set(i,c),s.dispatch(!0))},[r,t]),n(()=>{c&&c.setLayout(o)},[c,o]),[c]}function Mi(t){let{alignTo:r,show:o,close:i,app:a,fieldName:l,stateName:c="$"}=t;const u=o&&Boolean(r.current),h=v(),[f]=no({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:c,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],qFieldDefs:[l]}}},a,l,c),m=s(()=>{f.lock("/qListObjectDef")},[f]),g=s(()=>{f.unlock("/qListObjectDef")},[f]),{translator:y}=d(Mr),b=p(),[E]=Ai(a,f),[C]=eo(f);if(n(()=>{E&&u&&(E.isModal(f)||E.goModal("/qListObjectDef"))},[E,u]),!f||!C||!y)return null;const x=!0===C.qListObject.qDimensionInfo.qLocked,S=(e,t)=>{const n="escapeKeyDown"!==t;E.noModal(n),i()},O=hi({layout:C,model:f,translator:y}),R=C.qListObject.qDimensionInfo.qStateCounts,I=R.qSelected+R.qSelectedExcluded+R.qLocked+R.qLockedExcluded>0;return e.createElement(q,{open:u,onClose:S,anchorEl:r.current,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"250px"}}},e.createElement(L,{container:!0,direction:"column",spacing:0},e.createElement(L,{item:!0,container:!0,style:{padding:h.spacing(1)}},e.createElement(L,{item:!0},x?e.createElement(w,{onClick:g,disabled:!x},e.createElement(xo,{title:y.get("Listbox.Unlock")})):e.createElement(w,{onClick:m,disabled:!I},e.createElement(So,{title:y.get("Listbox.Lock")}))),e.createElement(L,{item:!0,xs:!0}),e.createElement(L,{item:!0},e.createElement(_i,{more:{enabled:!x,actions:O,alignTo:b,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:E,onConfirm:S,onCancel:()=>S(0,"escapeKeyDown")}}))),e.createElement(L,{item:!0,xs:!0},e.createElement("div",{ref:b}),e.createElement(Ti,{model:f}),e.createElement(li,{model:f,selections:E,direction:"ltr"}))))}const Pi=b(e=>({item:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover}}}));function ji(n){let{field:r,api:o,stateIx:i=0,skipHandleShowListBoxPopover:a=!1,moreAlignTo:s=null,onClose:l=(()=>{})}=n;const{translator:c}=d(Mr),u=s||p(),h=v(),[f,m]=t(!1),g=Pi(),y=e=>{e.currentTarget.contains(e.target)&&m(!f)},b=()=>{m(!1),l()},E=r.selections[i];void 0===E.qTotal&&(E.qTotal=0);const C=E.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},x=(C.qSelected+C.qLocked)/E.qTotal,O=C.qAlternative/E.qTotal,q=(C.qExcluded+C.qLockedExcluded+C.qSelectedExcluded)/E.qTotal,R=C.qSelected+C.qSelectedExcluded+C.qLocked+C.qLockedExcluded,I=0===R&&0===E.qTotal;let _="";E.qTotal===R&&E.qTotal>1?_=c.get("CurrentSelections.All"):R>1&&E.qTotal?_=c.get("CurrentSelections.Of",[R,E.qTotal]):E.qSelectedFieldSelectionInfo&&(_=E.qSelectedFieldSelectionInfo.map(e=>e.qName).join(", ")),"$"!==r.states[i]&&(_="".concat(r.states[i],": ").concat(_));const k=[{color:h.palette.selected.main,ratio:x},{color:h.palette.selected.alternative,ratio:O},{color:h.palette.selected.excluded,ratio:q}];k.forEach((e,t)=>{e.offset=t?k[t-1].offset+k[t-1].ratio:0});let D=null,T=null,N=null,A=null;return s||(D=e.createElement(L,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:E.qLocked?"0.3":""}},e.createElement(S,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},E.qField),e.createElement(S,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},_)),E.qLocked?T=e.createElement(L,{item:!0},e.createElement(w,null,e.createElement(xo,null))):E.qOneAndOnlyOne||(T=e.createElement(L,{item:!0},e.createElement(w,{title:c.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),o.clearField(E.qField,r.states[i])}},e.createElement(Lo,null)))),N=e.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===I&&k.map(t=>e.createElement("div",{key:t.color,style:{position:"absolute",background:t.color,height:"100%",top:0,width:"".concat(100*t.ratio,"%"),left:"".concat(100*t.offset,"%")}}))),A=e.createElement(L,{container:!0,spacing:0,ref:u,className:g.item,onClick:!1===a&&y||null},D,T,N,f&&e.createElement(Mi,{alignTo:u,show:f,close:b,app:o.model,fieldName:E.qField,stateName:r.states[i]}))),s?e.createElement(Mi,{alignTo:u,show:!0,close:b,app:o.model,fieldName:E.qField,stateName:r.states[i]}):A}var zi=e=>Co((e=>W(W({},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 Fi=b(e=>({item:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover},height:"100%",alignItems:"center"},badge:{padding:e.spacing(0,1)}}));function Bi(n){let{field:r,api:o,moreAlignTo:i=null,onClose:a=(()=>{})}=n;const s=Fi(),[l,c]=t(!!i),[u,h]=t(-1),[f,m]=t(i?i.current:null),g=i||p(),{translator:y}=d(Mr),b=y.get("Selection.ClearAllStates"),v=()=>{h(-1),a()};let E=null;i||(E=e.createElement(e.Fragment,null,e.createElement(L,{item:!0,xs:!0,zeroMinWidth:!0},e.createElement(N,{className:s.badge,color:"secondary",badgeContent:r.states.length},e.createElement(S,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},r.name))),e.createElement(L,{item:!0},e.createElement("div",{style:{width:"12px"}})),e.createElement(L,{item:!0},e.createElement(w,null,e.createElement(zi,null)))));const C=e.createElement(A,{dense:!0},e.createElement(M,{title:b,onClick:()=>{r.states.forEach(e=>o.clearField(r.name,e))}},e.createElement(P,{variant:"contained",fullWidth:!0},b)),r.states.map((t,n)=>e.createElement(M,{key:n,title:r.name,onClick:e=>((e,t)=>{e.stopPropagation(),c(!1),h(t)})(e,n)},e.createElement(j,{border:1,width:"100%",borderRadius:"borderRadius",borderColor:"divider"},e.createElement(ji,{field:r,api:o,stateIx:n,skipHandleShowListBoxPopover:!0}))))),x=e.createElement(q,{open:l,onClose:()=>{c(!1),a()},anchorEl:f,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},C),O=i?x:e.createElement(L,{container:!0,spacing:0,className:s.item,onClick:e=>{e.currentTarget.contains(e.target)&&(m(e.currentTarget),g.current=e.currentTarget,c(!l))}},E,l&&x,u>-1&&e.createElement(Mi,{alignTo:g,show:u>-1,close:v,app:o.model,fieldName:r.selections[u].qField,stateName:r.states[u]}));return i&&u>-1?e.createElement(Mi,{alignTo:g,show:u>-1,close:v,app:o.model,fieldName:r.selections[u].qField,stateName:r.states[u]}):O}const Hi=b(e=>({item:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover},height:"100%",alignItems:"center"},badge:{padding:e.spacing(0,1)}}));function Ui(n){let{items:r=[],api:o}=n;const i=Hi(),a=v(),[s,l]=t(!1),[c,u]=t(-1),[d,h]=t(null),f=p(),m=()=>{u(-1)};let g=null;return c>-1&&(g=r[c].states.length>1?e.createElement(Bi,{field:r[c],api:o,moreAlignTo:f,onClose:m}):e.createElement(ji,{field:r[c],api:o,skipHandleShowListBoxPopover:!0,moreAlignTo:f,onClose:m})),e.createElement(L,{container:!0,spacing:0,className:i.item,onClick:e=>{e.currentTarget.contains(e.target)&&(h(e.currentTarget),f.current=e.currentTarget,l(!s))}},e.createElement(L,{item:!0},e.createElement(j,{borderRadius:a.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:a.palette.selected.main,color:a.palette.selected.mainContrastText}},e.createElement(S,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",r.length))),e.createElement(L,{item:!0},e.createElement(w,null,e.createElement(zi,null))),s&&e.createElement(q,{open:s,onClose:()=>{l(!1)},anchorEl:d,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},e.createElement(A,{dense:!0},r.map((t,n)=>e.createElement(M,{key:n,title:t.name,onClick:e=>((e,t)=>{e.stopPropagation(),l(!1),u(t)})(e,n)},e.createElement(j,{border:1,width:"100%",borderRadius:"borderRadius",borderColor:"divider"},t.states.length>1?e.createElement(Bi,{field:t,api:o}):e.createElement(ji,{field:t,api:o})))))),g)}function Wi(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 Vi(r){let{api:o,app:i}=r;const a=v(),[s]=oo(i),[l]=eo(s),[c,u]=t({items:[],more:[]}),[p]=ho(),[d,h]=vo(),[f,m]=t(0);return n(()=>{if(!h)return;const{width:e}=h,t=Math.floor(e)-72,n=Math.floor(t/120);m(n)},[h]),n(()=>{if(!(i&&s&&l&&f))return;const e=function(e){if(!e)return[];const t={};return e.qSelectionObject&&Wi(e.qSelectionObject,t),e.alternateStates&&e.alternateStates.forEach(e=>Wi(e.qSelectionObject,t,e.stateName)),Object.keys(t).map(e=>t[e])}(l);u(t=>{const n=e;if((()=>{const e=p.get(i.id);return e&&"njsListbox"===e.genericType})()&&n.length+1===t.items.length){const e=t.items.filter(e=>!1===n.some(t=>e.name===t.name))[0],{qField:r}=e.selections[0];e.selections=[{qField:r}];const o=t.items.indexOf(e);n.splice(o,0,e)}let r=[];return f<n.length&&(r=n.splice(f-n.length)),{items:n,more:r}})},[i,s,l,o.isInModal(),f]),e.createElement(L,{ref:d,container:!0,spacing:0,wrap:"nowrap",style:{height:"100%"}},c.items.map(t=>e.createElement(L,{item:!0,key:"".concat(t.states.join("::"),"::").concat(t.name),style:{position:"relative",maxWidth:"240px",minWidth:"".concat(120,"px"),background:a.palette.background.paper,borderRight:"1px solid ".concat(a.palette.divider)}},t.states.length>1?e.createElement(Bi,{field:t,api:o}):e.createElement(ji,{field:t,api:o}))),c.more.length>0&&e.createElement(L,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(72,"px"),background:a.palette.background.paper,borderRight:"1px solid ".concat(a.palette.divider)}},e.createElement(Ui,{items:c.more,api:o})))}var Gi=e=>Co((e=>W(W({},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 Zi=e=>Co((e=>W(W({},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));function Ki(t){let{api:n,app:r}=t;const{translator:o}=d(Mr),[i]=io(r);return e.createElement(L,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},e.createElement(L,{item:!0},e.createElement(w,{style:{marginRight:"8px"},disabled:!i||!i.canGoBack,title:o.get("Navigate.Back"),onClick:()=>n.back()},e.createElement(Gi,null))),e.createElement(L,{item:!0},e.createElement(w,{style:{marginRight:"8px"},disabled:!i||!i.canGoForward,title:o.get("Navigate.Forward"),onClick:()=>n.forward()},e.createElement(Zi,null))),e.createElement(L,{item:!0},e.createElement(w,{disabled:!i||!i.canClear,title:o.get("Selection.ClearAll"),onClick:()=>n.clear()},e.createElement(Ei,null))))}function $i(t){let{app:n}=t;const r=v(),[o]=mo(n);return o?e.createElement(L,{container:!0,spacing:0,wrap:"nowrap",style:{backgroundColor:r.palette.background.paper,minHeight:"40px"}},e.createElement(L,{item:!0,style:{borderRight:"1px solid ".concat(r.palette.divider)}},e.createElement(Ki,{api:o,app:n})),e.createElement(L,{item:!0,xs:!0,style:{backgroundColor:r.palette.background.darker,overflow:"hidden"}},e.createElement(Vi,{api:o,app:n}))):null}function Ji(t){let{element:n,app:r}=t;return h.createPortal(e.createElement($i,{app:r}),n)}var Xi=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Yi=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}}(),Qi=Object.assign||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},ea=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},ta=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},na=void 0;na="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;var ra=null,oa=null,ia=na.clearTimeout,aa=na.setTimeout,sa=na.cancelAnimationFrame||na.mozCancelAnimationFrame||na.webkitCancelAnimationFrame,la=na.requestAnimationFrame||na.mozRequestAnimationFrame||na.webkitRequestAnimationFrame;function ca(e){var t=void 0,n=void 0,r=void 0,o=void 0,i=void 0,a=void 0,s=void 0,l="undefined"!=typeof document&&document.attachEvent;if(!l){a=function(e){var 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},i=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},s=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)){var t=this;a(this),this.__resizeRAF__&&ra(this.__resizeRAF__),this.__resizeRAF__=oa((function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))}};var c=!1,u="";r="animationstart";var p="Webkit Moz O ms".split(" "),d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),h=document.createElement("fakeelement");if(void 0!==h.style.animationName&&(c=!0),!1===c)for(var f=0;f<p.length;f++)if(void 0!==h.style[p[f]+"AnimationName"]){u="-"+p[f].toLowerCase()+"-",r=d[f],c=!0;break}t="@"+u+"keyframes "+(n="resizeanim")+" { from { opacity: 0; } to { opacity: 0; } } ",o=u+"animation: 1ms "+n+"; "}return{addResizeListener:function(i,c){if(l)i.attachEvent("onresize",c);else{if(!i.__resizeTriggers__){var u=i.ownerDocument,p=na.getComputedStyle(i);p&&"static"===p.position&&(i.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){var 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%; }',i=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),i.appendChild(a)}}(u),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=u.createElement("div")).className="resize-triggers";var d=u.createElement("div");d.className="expand-trigger",d.appendChild(u.createElement("div"));var h=u.createElement("div");h.className="contract-trigger",i.__resizeTriggers__.appendChild(d),i.__resizeTriggers__.appendChild(h),i.appendChild(i.__resizeTriggers__),a(i),i.addEventListener("scroll",s,!0),r&&(i.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(i)},i.__resizeTriggers__.addEventListener(r,i.__resizeTriggers__.__animationListener__))}i.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(l)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!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==sa||null==la?(ra=ia,oa=function(e){return aa(e,20)}):(ra=function(e){var t=ta(e,2),n=t[0],r=t[1];sa(n),ia(r)},oa=function(e){var t=la((function(){ia(n),e()})),n=aa((function(){sa(t),e()}),20);return[t,n]});var ua=function(e){function t(){var e,n,r;Xi(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=ea(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.state={height:r.props.defaultHeight||0,width:r.props.defaultWidth||0},r._onResize=function(){var e=r.props,t=e.disableHeight,n=e.disableWidth,o=e.onResize;if(r._parentNode){var i=r._parentNode.offsetHeight||0,a=r._parentNode.offsetWidth||0,s=window.getComputedStyle(r._parentNode)||{},l=parseInt(s.paddingLeft,10)||0,c=parseInt(s.paddingRight,10)||0,u=parseInt(s.paddingTop,10)||0,p=parseInt(s.paddingBottom,10)||0,d=i-u-p,h=a-l-c;(!t&&r.state.height!==d||!n&&r.state.width!==h)&&(r.setState({height:i-u-p,width:a-l-c}),o({height:i,width:a}))}},r._setRef=function(e){r._autoSizer=e},ea(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,u),Yi(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._detectElementResize=ca(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.disableHeight,o=e.disableWidth,i=e.style,a=this.state,s=a.height,l=a.width,u={overflow:"visible"},p={},d=!1;return r||(0===s&&(d=!0),u.height=0,p.height=s),o||(0===l&&(d=!0),u.width=0,p.width=l),c("div",{className:n,ref:this._setRef,style:Qi({},u,i)},!d&&t(p))}}]),t}();ua.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}};const pa=b(()=>({listBoxHeader:{alignSelf:"center",display:"inline-flex"}}));function da(r){let{app:o,fieldIdentifier:i,stateName:a="$",options:l={},fieldDef:c}=r;const{title:u,direction:h,listLayout:f,search:m=!0,focusSearch:g=!1,toolbar:y=!0,rangeSelect:b=!0,checkboxes:E=!1,properties:C={},sessionModel:x,selectionsApi:O,update:q,fetchStart:R,dense:I=!1,selectDisabled:_=(()=>!1),showGray:k=!0,sortByState:D=1,scrollState:T,setCount:N}=l;let{frequencyMode:A,histogram:M=!1}=l;switch(c&&c.failedToFetchFieldDef&&(M=!1,A="N"),!0){case["none","N","NX_FREQUENCY_NONE"].includes(A):A="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(A):A="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(A):A="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(A):A="R";break;default:A="N"}const P=W({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:a,qShowAlternatives:!0,qFrequencyMode:M&&"N"===A?"V":A,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:D,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},title:u},C);let j;if(i.qLibraryId?(P.qListObjectDef.qLibraryId=i.qLibraryId,j=i.qLibraryId):(P.qListObjectDef.qDef.qFieldDefs=[i],j=i),"N"!==A||M){const e=i.qLibraryId?c:j;P.frequencyMax={qValueExpression:"Max(AGGR(Count([".concat(e,"]), [").concat(e,"]))")}}let[z]=no(P,x?null:o,j,a);x&&(z=x);let F=Ai(O?{}:o,z)[0];O&&(F=O);const B=v(),H=pa(),U=s(()=>{z.lock("/qListObjectDef")},[z]),V=s(()=>{z.unlock("/qListObjectDef")},[z]),{translator:G,keyboardNavigation:Z}=d(Mr),K=p(),[$,J]=(()=>{const[e,n]=t({});return[e,s(e=>{n({current:e})},[n])]})(),[X]=eo(z),[Y,Q]=t(!1),[ee,te]=t(!1),[ne,re]=t(!1),oe=ni({setKeyboardActive:re}),ie={enabled:Z,active:ne};n(()=>{const e=()=>Q(!0),t=()=>Q(!1);return F&&(F.isModal(z)||(F.on("deactivated",t),F.on("activated",e))),()=>{F&&(F.removeListener("deactivated",e),F.removeListener("activated",t))}},[F]),n(()=>{F&&Q(F.isActive())},[F]);const ae=p(null);if(function(e,r){const[o,i]=t(!1),a=p(o),s=e=>{a.current=e,i(e)};n(()=>{const t=t=>{const n=e.current&&e.current.contains(t.target),o=a.current;n||o?n&&s(!1):(r&&r.confirm.call(r),s(!0))};return document.addEventListener("mousedown",t),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("keydown",t)}},[e,r])}(ae,F),n(()=>{if($&&$.current&&(m&&g||"toggle"===m&&ee)){const e=$.current.querySelector("input");e&&e.focus()}},[$&&$.current,ee,m,g]),!z||!X||!G)return null;const se=!0===X.qListObject.qDimensionInfo.qLocked,le=y?hi({layout:X,model:z,translator:G}):[],ce=X.qListObject.qDimensionInfo.qStateCounts,ue=ce.qSelected+ce.qSelectedExcluded+ce.qLocked+ce.qLockedExcluded>0,pe=(!0===m||"toggle"===m&&ee)&&!_(),de=49+(pe?40:0)+49,he=()=>{te(!ee)};return e.createElement(L,{container:!0,tabIndex:ie.enabled&&!ie.active?0:-1,direction:"column",spacing:0,style:{height:"100%",minHeight:"".concat(de,"px")},onKeyDown:oe,ref:ae},y&&e.createElement(L,{item:!0,container:!0,style:{padding:B.spacing(1)}},e.createElement(L,{item:!0},se?e.createElement(w,{tabIndex:-1,onClick:V,disabled:!se},e.createElement(xo,{title:G.get("Listbox.Unlock")})):"toggle"!==m||ue?e.createElement(w,{onClick:U,tabIndex:-1,disabled:!ue},e.createElement(So,null)):e.createElement(w,{onClick:he,tabIndex:-1,title:G.get("Listbox.Search")},e.createElement(ki,null))),e.createElement(L,{item:!0,className:H.listBoxHeader},e.createElement(S,{variant:"h6",noWrap:!0},X.title||X.qListObject.qDimensionInfo.qFallbackTitle)),e.createElement(L,{item:!0,xs:!0}),e.createElement(L,{item:!0},e.createElement(_i,{more:{enabled:!se,actions:le,alignTo:K,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:Y,api:F,onConfirm:()=>{},onCancel:()=>{}}}))),pe&&e.createElement(L,{item:!0,ref:J},e.createElement(Ti,{model:z,dense:I,keyboard:ie})),e.createElement(L,{item:!0,xs:!0},e.createElement("div",{ref:K}),e.createElement(ua,null,t=>{let{height:n,width:r}=t;return e.createElement(li,{model:z,selections:F,direction:h,listLayout:f,frequencyMode:A,histogram:M,rangeSelect:b,checkboxes:E,height:n,width:r,update:q,fetchStart:R,dense:I,selectDisabled:_,keyboard:ie,showGray:k,scrollState:T,sortByState:D,setCount:N})})))}function ha(r){let{app:o,fieldIdentifier:i,stateName:a="$",options:s={}}=r;const[l,c]=t(""),[u,p]=t(!1);return n(()=>{!async function(){p(!0);try{const e=await o.getDimension(i.qLibraryId),t=await e.getLayout();c(t.qDim.qFieldDefs?t.qDim.qFieldDefs[0]:""),p(!1)}catch(e){throw p(!1),c({failedToFetchFieldDef:!0}),new Error("Disabling frequency count and histogram: ".concat(e&&e.message))}}()},[]),u?null:e.createElement(da,{app:o,fieldIdentifier:i,stateName:a,options:s,fieldDef:l})}function fa(t){let{app:n,fieldIdentifier:r,stateName:o,element:i,options:a}=t;const s=a.histogram||"N"!==a.frequencyMode,l=r.qLibraryId&&s?ha:da;return h.createPortal(e.createElement(l,{app:n,fieldIdentifier:r,stateName:o,element:i,options:a}),i)}const ma=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function ga(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function ya(){return ma.map(ga).join("")}function ba(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function va(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}function Ea(e){let{sn:t,properties:n,fields:r}=e;if(!r.length)return;const o=t.qae.data.targets[0];if(!o)return;const{propertyPath:i}=o,a=i.split("/");let s=n;for(let e=0;e<a.length;e++){const t=a[e];s=t?s[t]:s}const l=function(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?(e=>({qDef:{qFieldDefs:[e]}}))(e):W(W({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||ya(),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),ba(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))},removeDimension(e){const r=t.qDimensions.splice(e,1)[0];va(t.qInterColumnSortOrder,e),n.dimensions.removed(r,o,e)},addMeasure(e){const r="string"==typeof e?(e=>({qDef:{qDef:e}}))(e):W(W({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||ya(),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),ba(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];va(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}({dc:s,def:o,properties:n});r.forEach(e=>{"measure"===function(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"}(e)?l.addMeasure(e):l.addDimension(e)})}var Ca=(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},La=(e,t,n)=>{if(null==e||null==t)return;const r=t.split("."),o=r[r.length-1];let i=e;for(let e=0;e<r.length-1;++e){const t=r[e];void 0!==i[t]&&null!==i[t]||(i[t]=Number.isNaN(+r[e+1])?{}:[]),i=i[t]}void 0!==n&&"__proto__"!==o&&"constructor"!==o?i[o]=n:delete i[o]},xa=e=>0===Object.keys(e).length&&e.constructor===Object;var Sa={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}};function wa(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function Oa(e,t){const n=ue(!0,{},t,e);return Ca(n,"qOtherTotalSpec.qOtherCounted")||La(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),Ca(n,"qOtherTotalSpec.qOtherLimit")||La(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function qa(e,t){return ue(!0,{},t,e)}function Ra(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var Ia={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach(t=>{e.qLayoutExclude.changed[t].to===Ca(e,t)&&La(e,t,e.qLayoutExclude.changed[t].from)})},isMasterItemProperty:wa,importCommonProperties:function(e,t,n){const r="masterobject"===Ca(t,"properties.qInfo.qType")?"masterobject":Ca(n,"qInfo.qType");La(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:Oa,createDefaultMeasure:qa,resolveValue:Ra,getHypercubePath:function(e){const t=Ca(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 i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(Sa.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,Sa.indexRemoved(n.qInterColumnSortOrder,i))},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?La(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||wa(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},i=n.measures||{max:0},a=Ra(i.max,r.dimensions.length,9007199254740991),s=Ra(i.min,r.dimensions.length,0);return{maxDimensions:Ra(o.max,a,9007199254740991),minDimensions:Ra(o.min,s,0),maxMeasures:a,minMeasures:s}},shouldInitLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:i}=e;const a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!n&&a.dimensions.length>0},initLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:i,newHyperCubeDef:a}=e;const s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>n&&n>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>o&&o>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},addDefaultDimensions:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,newHyperCubeDef:o,defaultDimension:i}=e;const a=t.data[0];let s;if(n>0)for(s=0;s<a.dimensions.length;++s)o.qDimensions.length<n?o.qDimensions.push(Oa(a.dimensions[s],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(Oa(a.dimensions[s],i));else if(a.dimensions.length)for(s=0;s<a.dimensions.length;++s)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(Oa(a.dimensions[s],i));if(a.excludedDimensions.length)for(s=0;s<a.excludedDimensions.length;++s)o.qDimensions.length<r?o.qDimensions.push(Oa(a.excludedDimensions[s],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(Oa(a.excludedDimensions[s],i))},addDefaultMeasures:function(e){let{exportFormat:t,maxMeasures:n,minMeasures:r,newHyperCubeDef:o,defaultMeasure:i}=e;const a=t.data[0];let s;if(n>0)for(s=0;s<a.measures.length;++s)o.qMeasures.length<n?o.qMeasures.push(qa(a.measures[s],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(qa(a.measures[s],i));else if(a.measures.length)for(s=0;s<a.measures.length;++s)o.qLayoutExclude.qHyperCubeDef.qMeasures.push(qa(a.measures[s],i));if(a.excludedMeasures.length)for(s=0;s<a.excludedMeasures.length;++s)o.qMeasures.length<r?o.qMeasures.push(qa(a.excludedMeasures[s],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(qa(a.excludedMeasures[s],i))},updateDimensionsOnAdded:function(e){let{newProperties:t,dataDefinition:n,hypercubePath:r}=e;if(n.dimensions&&"function"==typeof n.dimensions.added){const e=Ca(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=Ca(t,r||"").qHyperCubeDef,o=[...e.qMeasures];e.qMeasures=[],o.forEach(r=>{e.qMeasures.push(r),n.measures.added(r,t)})}}};var _a={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,i=Ca(o,n||""),a=i.qHyperCubeDef,s=r.data[0];if(a.qInterColumnSortOrder||(a.qInterColumnSortOrder=[]),s.dimensions.push(...a.qDimensions),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qDimensions&&s.excludedDimensions.push(...a.qLayoutExclude.qHyperCubeDef.qDimensions),s.measures.push(...a.qMeasures),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qMeasures&&s.excludedMeasures.push(...a.qLayoutExclude.qHyperCubeDef.qMeasures),s.interColumnSortOrder=a.qInterColumnSortOrder.concat(),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const e=a.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();Sa.isOrderedSubset(e,s.interColumnSortOrder)&&(s.interColumnSortOrder=e)}return delete a.qLayoutExclude,Object.keys(o).forEach(e=>{r.properties[e]=o[e]}),n&&(r.properties.qHyperCubeDef=i.qHyperCubeDef,delete i.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&&(Ia.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!xa(o.qLayoutExclude.quarantine)||delete o.qLayoutExclude,r}(e),importProperties:e=>function(e){let{exportFormat:t,initialProperties:n={},dataDefinition:r={},defaultPropertyValues:o={},hypercubePath:i}=e;const a={qChildren:[]},s=Ia.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:i}),l=Ca(n,i||"").qHyperCubeDef,c=Ca(s,i||"").qHyperCubeDef,{maxDimensions:u,minDimensions:p,maxMeasures:d,minMeasures:h}=Ia.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:f=Ia.getDefaultDimension(),defaultMeasure:m=Ia.getDefaultMeasure()}=o;return c.qDimensions.length=0,c.qMeasures.length=0,Ia.shouldInitLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:p,maxMeasures:d,minMeasures:h})&&Ia.initLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:p,maxMeasures:d,minMeasures:h,newHyperCubeDef:c}),Ia.addDefaultDimensions({exportFormat:t,maxDimensions:u,minDimensions:p,newHyperCubeDef:c,defaultDimension:f}),Ia.addDefaultMeasures({exportFormat:t,maxMeasures:d,minMeasures:h,newHyperCubeDef:c,defaultMeasure:m}),Ia.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:c}),Ia.copyPropertyIfExist("qMaxStackedCells",l,c),Ia.copyPropertyIfExist("qNoOfLeftDims",l,c),Ia.copyPropertyOrSetDefault("qInitialDataFetch",l,c,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),Ia.copyPropertyOrSetDefault("qMode",l,c,"S"),Ia.copyPropertyOrSetDefault("qReductionMode",l,c,"N"),Ia.copyPropertyOrSetDefault("qSortbyYValue",l,c),Ia.copyPropertyOrSetDefault("qIndentMode",l,c),Ia.copyPropertyOrSetDefault("qShowTotalsAbove",l,c),Ia.importCommonProperties(s,t,n),Ia.updateDimensionsOnAdded({newProperties:s,dataDefinition:r,hypercubePath:i}),Ia.updateMeasuresOnAdded({newProperties:s,dataDefinition:r,hypercubePath:i}),a.qProperty=s,a}(e)};const ka=e=>Ca(e,"data.targets.0.propertyPath"),Da=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return _a.exportProperties})(ka(e))},Ta=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return _a.importProperties})(ka(e))},Na=async e=>{let{halo:t,model:n,cellRef:r,newType:o}=e;const i=await n.getFullPropertyTree(),a=r.current.getQae(),s=Da(a),l=(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})).qae;return Ta(l)({exportFormat:s({propertyTree:i,hypercubePath:Ia.getHypercubePath(a)}),initialProperties:W({qInfo:{qType:o},visualization:o},Ca(l,"properties.initial",{})),dataDefinition:Ca(l,"data.targets.0.",{}),hypercubePath:Ia.getHypercubePath(l)})},Aa={hypercube:_a};var Ma=e=>Co((e=>W(W({},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 Pa(t){let{d:n}=t;const r=v();let o="inherit",i=r.palette.success.main;n.missing?i=r.palette.warning.main:n.error&&(o="error",i=r.palette.error.main);const a={color:i},s=e.createElement(S,{style:{lineHeight:"30px",paddingRight:r.spacing(1)}},e.createElement(z,null,n.missing||n.error?e.createElement(Ma,{style:a}):e.createElement($o,{style:a})));return e.createElement(L,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},e.createElement(L,{item:!0},s),e.createElement(L,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},e.createElement(S,{noWrap:!0,component:"p"},e.createElement(S,{component:"span",variant:"subtitle2",color:o},n.description),e.createElement(S,{component:"span"}," "),e.createElement(S,{component:"span",variant:"subtitle2",color:n.error?"error":"inherit",style:{fontWeight:400}},n.label))))}function ja(t){let{data:n}=t;const r=v();return e.createElement(L,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},n.map((t,n)=>{const o=t.descriptions.map((t,n)=>e.createElement(Pa,{d:t,key:n}));return o.length>0&&e.createElement(L,{container:!0,item:!0,key:n,direction:"column",style:{paddingBottom:r.spacing(2)}},e.createElement(S,{noWrap:!0,key:n,variant:"subtitle1",align:"left",color:"textSecondary"},t.title),o)}))}function za(t){let{title:n="Error",message:r="",data:o=[]}=t;return e.createElement(L,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},e.createElement(L,{item:!0},e.createElement(Ma,{style:{fontSize:"38px"}})),e.createElement(L,{item:!0},e.createElement(S,{variant:"h6",align:"center","data-tid":"error-title"},n)),e.createElement(L,{item:!0},e.createElement(S,{variant:"subtitle1",align:"center","data-tid":"error-message"},r)),e.createElement(ja,{data:o}))}const Fa=["size"],Ba=b(e=>({root:{position:"relative",display:"inline-block"},front:{color:e.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},back:{color:e.palette.divider}})),Ha={small:16,medium:32,large:64,xlarge:128};function Ua(t){let{size:n="medium"}=t,r=Z(t,Fa);const o=Ba(),i=Ha[n];return e.createElement("div",{className:o.root},e.createElement(F,G({variant:"determinate",value:100,className:o.back,size:i,thickness:3},r)),e.createElement(F,G({variant:"indeterminate",disableShrink:!0,className:o.front,size:i,thickness:3},r)))}const Wa=["cancel","translator"],Va=["retry","translator"],Ga=O(()=>({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 Za(t){let{cancel:n,translator:r}=t,o=Z(t,Wa);return e.createElement(e.Fragment,null,e.createElement(L,{container:!0,item:!0,direction:"column",alignItems:"center",spacing:2},e.createElement(L,{item:!0},e.createElement(Ua,null)),e.createElement(L,{item:!0},e.createElement(S,{variant:"h6",align:"center","data-tid":"update-active"},r.get("Object.Update.Active")))),e.createElement(L,G({item:!0},o),e.createElement(P,{variant:"contained",onClick:n},r.get("Cancel"))))}function Ka(t){let{retry:n,translator:r}=t,o=Z(t,Va);return e.createElement(e.Fragment,null,e.createElement(L,{item:!0},e.createElement(Ma,{style:{fontSize:"38px"}})),e.createElement(L,{item:!0},e.createElement(S,{variant:"h6",align:"center","data-tid":"update-cancelled"},r.get("Object.Update.Cancelled"))),e.createElement(L,{item:!0},e.createElement(P,G({variant:"contained",onClick:n},o),r.get("Retry"))))}function $a(t){let{canCancel:n,canRetry:r,api:o}=t;const{stripes:i,cancel:a,retry:s}=Ga(),{translator:l}=d(Mr);return e.createElement(L,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:i,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},spacing:2},n&&e.createElement(Za,{cancel:o.cancel,translator:l,className:a}),r&&e.createElement(Ka,{retry:o.retry,translator:l,className:s}))}function Ja(){return e.createElement(L,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},spacing:2},e.createElement(Ua,{size:"large"}))}const Xa="njs-cell-title",Ya="njs-cell-sub-title",Qa=O(e=>({containerStyle:{flexGrow:0},containerTitleStyle:{paddingBottom:e.spacing(1)}}));function es(r){let{layout:o,sn:i,anchorEl:a,hovering:s,focusHandler:l}=r;const c=o.showTitles&&!!o.title,u=o.showTitles&&!!o.subtitle,p=o.qSelectionInfo&&o.qSelectionInfo.qInSelections,[d,h]=t([]),{containerStyle:f,containerTitleStyle:m}=Qa(),[g,y]=vo(),[b,v]=t(!1);n(()=>{i&&i.component&&i.component.isHooked&&i.component.observeActions(e=>{h([...e,...i&&i.selectionToolbar&&i.selectionToolbar.items||[]])})},[i]),n(()=>{if(!y)return;const{width:e}=y;v(e<221)},[y]);const E=c||u,C=[f,...E?[m]:[]],x=(s||p)&&(b||!E),w=E&&!x&&!b,O=e.createElement(_i,{show:w,selections:{show:p,api:i.component.selections,onKeyDeactivate:l.refocusContent},actions:d,popover:{show:x,anchorEl:a},focusHandler:l});return e.createElement(L,{ref:g,item:!0,container:!0,wrap:"nowrap",className:C.join(" ")},e.createElement(L,{item:!0,zeroMinWidth:!0,xs:!0},e.createElement(L,{container:!0,wrap:"nowrap",direction:"column"},c&&e.createElement(S,{variant:"h6",noWrap:!0,className:Xa},o.title),u&&e.createElement(S,{variant:"body2",noWrap:!0,className:Ya},o.subtitle))),e.createElement(L,{item:!0},O))}const ts="njs-cell-footer",ns=O(e=>({itemStyle:{minWidth:0,paddingTop:e.spacing(1)}}));function rs(t){let{layout:n}=t;const{itemStyle:r}=ns();return n&&n.showTitles&&n.footnote?e.createElement(L,{container:!0},e.createElement(L,{item:!0,className:r},e.createElement(S,{noWrap:!0,variant:"body2",className:ts},n.footnote))):null}class os{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 is="njs-viz";function as(r){let{sn:o,snOptions:i,snPlugins:a,layout:l,appLayout:c,halo:u}=r;const{component:p}=o,{theme:h,language:f,constraints:m,keyboardNavigation:g}=d(Mr),[y]=t(()=>new os),[b,v]=t(!1),[E,C]=t(0),[L,x,S]=vo(),[w,O]=t(null),q=s(e=>{e&&O(e)},[]);return n(()=>{if(w)return p.created({options:i}),p.mounted(w),v(!0),()=>{y.stop(),p.willUnmount()}},[w,p]),n(()=>{b&&w&&x&&(!p.isHooked&&l&&l.qSelectionInfo&&l.qSelectionInfo.qInSelections||y.schedule(()=>{const e=[];return m.passive||e.push("passive"),m.active||e.push("interact"),m.select||e.push("select"),u.app&&u.app.session&&e.push("fetch"),Promise.resolve(p.render({layout:l,options:i,plugins:a,embed:u.public.nebbie,context:W({constraints:m,theme:u.public.theme,appLayout:c,keyboardNavigation:g},p.isHooked?{}:{logicalSize:o.logicalSize({layout:l}),localeInfo:(c||{}).qLocaleInfo,permissions:e})})).then(e=>{!1!==e&&(0===E&&"function"==typeof i.onInitialRender&&i.onInitialRender.call(null),C(E+1))})}))},[x,i,a,w,S,l,c,h,f,m,b,g]),e.createElement("div",{ref:L,"data-render-count":E,style:{position:"relative",height:"100%"},className:is},e.createElement("div",{ref:q,style:{position:"absolute",width:"100%",height:"100%"}}))}const ss="njs-cell",ls=(e,t)=>{switch(t.type){case"LOADING":return W(W({},e),{},{loading:!0});case"LOADED":return W(W({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization});case"RENDER":return W(W({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null});case"LONG_RUNNING_QUERY":return W(W({},e),{},{longRunningQuery:!0});case"ERROR":return W(W({},e),{},{loading:!1,longRunningQuery:!1,error:t.error});default:throw new Error("Unhandled type: ".concat(t.type))}};function cs(r){let{delay:o=750}=r;const[i,a]=t(!1);return n(()=>{const e=setTimeout(()=>a(!0),o);return()=>clearTimeout(e)},[]),i?e.createElement(Ja,null):null}const us=e=>!e.qError||7005===e.qError.qErrorCode,ps=(e,t,n,r,o)=>[...Array(e).keys()].map(e=>{const i=!(!t||!t[e]),a=i&&t[e].qError&&7005===t[e].qError.qErrorCode,s=i&&!a&&t[e].qError,l=a&&t[e].qCalcCondMsg,c="".concat(s?r:a?l||o:i&&t[e].qFallbackTitle||""),u=n(e);return{description:u?"".concat(u).concat(c.length?":":""):null,label:c,missing:t&&!i&&!s&&e>=t.length||a,error:s}}),ds=e=>e&&(Array.isArray(e)?e:[e])||[],hs=(e,t,n,r)=>{const o=r.dimensions.min(),i=r.measures.min(),a=r.resolveLayout(t);return{reqDimErrors:ps(o,ds(a.qDimensionInfo),e=>r.dimensions.description(n,e),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:ps(i,ds(a.qMeasureInfo),e=>r.measures.description(n,e),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},fs=async(e,t,n,r)=>{let{targets:o}=n;const{hasUnfulfilledErrors:i,aggMinD:a,aggMinM:s,hasLayoutErrors:l,layoutErrors:c}=((e,t,n)=>{let r=!1,o=0,i=0,a=!1,s=!1;const l=[];for(let c=0;c<t.length;++c){const u=t[c],p=u.dimensions.min(),d=u.measures.min(),h=u.resolveLayout(n),f=ds(h.qDimensionInfo).filter(us),m=ds(h.qMeasureInfo).filter(us);if(o+=p,i+=d,(f.length<p||m.length<d)&&(r=!0),h.qError){a=!0,s=7005===h.qError.qErrorCode;const t=s&&h.qCalcCondMsg?h.qCalcCondMsg:s?e.get("Visualization.UnfulfilledCalculationCondition"):e.get("Visualization.LayoutError");l.push({title:t,descriptions:[]})}}return{hasUnfulfilledErrors:r,aggMinD:o,aggMinM:i,hasLayoutErrors:a,layoutErrors:l}})(e,o,t),u=[],p=[];let d=null;for(let n=0;n<o.length;++n){const a=o[n];if(!l&&i){const n=d||await r.getProperties();d=n;const o=hs(e,t,n,a);u.push(...o.reqDimErrors),p.push(...o.reqMeasErrors)}}const h=u.filter(e=>!(e.missing||e.error)).length,f=e.get("Visualization.Incomplete.Dimensions",[h,a]),m=p.filter(e=>!(e.missing||e.error)).length,g=e.get("Visualization.Incomplete.Measures",[m,s]),y=[{title:f,descriptions:[...u]},{title:g,descriptions:[...p]}],b=l?c:y;return[l||i,{title:l?c[0].title:e.get("Visualization.Incomplete"),data:b}]},ms=o((o,i)=>{let{halo:s,model:l,initialSnOptions:c,initialSnPlugins:u,initialError:h,onMount:f,currentId:m}=o;const{app:g,types:y}=s,{nebbie:b}=s.public,{disableCellPadding:E=!1}=s.context||{},{translator:C,language:x,keyboardNavigation:S}=d(Mr),w=v(),[O,q,R]=vo(),[I,_]=r(ls,{loading:!1,loaded:!1,longRunningQuery:!1,error:(k=h)?{title:k.message}:null,sn:null,visualization:null});var k;const[D,{validating:T,canCancel:N,canRetry:A},M]=eo(l),[P]=to(g),[j,z,F]=vo(),[H,U]=t(c),[V,G]=t(u),[Z]=Ai(g,l),[K,$]=t(!1),J=p({enter:null,leave:null}),X=p({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});n(()=>{Ni(X.current)},[]),X.current.blurCallback=e=>{s.root.toggleFocusOfCells(),e&&F&&F.focus()},X.current.refocusContent=()=>{I.sn.component&&"function"==typeof I.sn.component.focus&&I.sn.component.focus()};n(()=>{if(h||!P||!D)return;if(I.visualization===D.visualization&&I.sn)return void(async e=>{const[t,n]=await fs(C,D,e.generator.qae.data,l);_(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:I.sn,layout:D,model:l})})(I.sn);const e=y.getSupportedVersion(D.visualization,D.version);if(e)return(async(e,t)=>{_({type:"LOADING"});const n=await(async e=>{let{dispatch:t,types:n,visualization:r,version:o,model:i,app:a,selections:s,nebbie:l,focusHandler:c}=e;try{return(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})).create({model:i,app:a,selections:s,nebbie:l,focusHandler:c})}catch(e){t({type:"ERROR",error:{title:e.message}})}})({dispatch:_,types:y,visualization:e,version:t,model:l,app:g,selections:Z,nebbie:b,focusHandler:X.current});n&&(_({type:"LOADED",sn:n,visualization:e}),f())})(D.visualization,e),()=>{};_({type:"ERROR",error:{title:"Could not find a version of '".concat(D.visualization,"' that supports current object version. Did you forget to register ").concat(D.visualization,"?")}})},[y,I.sn,l,Z,D,P,x]),n(()=>{if(!T)return;const e=setTimeout(()=>_({type:"LONG_RUNNING_QUERY"}),2e3);return()=>clearTimeout(e)},[T]),a(i,()=>({getQae:()=>I.sn.generator.qae,toggleFocus(e){"function"==typeof I.sn.component.focus&&(e?I.sn.component.focus():I.sn.component.blur())},setSnOptions:U,setSnPlugins:G,async takeSnapshot(){const{width:e,height:t}=q;let n=JSON.parse(JSON.stringify(D));return"function"==typeof I.sn.component.setSnapshotData&&(n=await I.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:C.language(),theme:w.name,appLayout:P,size:{width:Math.round(e),height:Math.round(t)}},layout:n}},async exportImage(){if("function"!=typeof s.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const e=await this.takeSnapshot();return s.config.snapshot.capture(e)}}),[I.sn,z,q,D,w.name,P]);let Y=null;return I.loading&&!I.longRunningQuery?Y=e.createElement(cs,null):I.error?Y=e.createElement(za,I.error):I.loaded&&(Y=e.createElement(as,{key:D.visualization,sn:I.sn,halo:s,snOptions:H,snPlugins:V,layout:D,appLayout:P})),e.createElement(B,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden"},elevation:0,square:!0,className:ss,ref:O,onMouseEnter:()=>{J.current.leave&&clearTimeout(J.current.leave),J.enter||(J.current.enter=setTimeout(()=>{$(!0),J.current.enter=null},250))},onMouseLeave:()=>{J.current.enter&&clearTimeout(J.current.enter),J.current.leave||(J.current.leave=setTimeout(()=>{$(!1),J.current.leave=null},750))}},e.createElement(L,{container:!0,direction:"column",spacing:0,style:W(W({position:"relative",width:"100%",height:"100%"},E?{}:{padding:w.spacing(1)}),I.longRunningQuery?{opacity:"0.3"}:{})},R&&D&&I.sn&&e.createElement(es,{layout:D,sn:I.sn,anchorEl:R,hovering:K,focusHandler:X.current}," "),e.createElement(L,{tabIndex:S?0:-1,onKeyDown:S?e=>{["Enter"," ","Spacebar"].includes(e.key)&&s.root.toggleFocusOfCells(m)}:null,item:!0,xs:!0,style:{height:"100%"},ref:j},Y),e.createElement(rs,{layout:D})),I.longRunningQuery&&e.createElement($a,{canCancel:N,canRetry:A,api:M}))});function gs(t){let{halo:n,element:r,model:o,initialSnOptions:i,initialSnPlugins:a,onMount:s,initialError:l}=t;const{root:c}=n,u=e.createRef(),p=ya(),d=h.createPortal(e.createElement(ms,{ref:u,halo:n,model:o,currentId:p,initialSnOptions:i,initialSnPlugins:a,initialError:l,onMount:s}),r,o.id),f=()=>{c.remove(d),o.removeListener("closed",f)};return o.on("closed",f),c.add(d),c.addCell(p,u),[f,u]}function ys(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function bs(e,t){return ys(e)&&ys(t)?JSON.stringify(e)===JSON.stringify(t):!Array.isArray(e)&&!Array.isArray(t)&&e===t}function vs(){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 i=t[o];"object"!=typeof n[o]||"object"!=typeof i||Array.isArray(i)?bs(i,n[o])||r.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])}):r.push(...vs("".concat(e).concat(o,"/"),t[o],n[o]))}),r}function Es(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 Cs=()=>{};function Ls(){let{model:e,halo:t,initialError:n,onDestroy:r=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=Cs,i=null,a=null,s=null;const l=new Promise(e=>{s=e});let c={},u=[];const p=async e=>{a?(async()=>{await l,i.current.setSnOptions(W(W({},c),e))})():c=W(W({},c),e)},d=async e=>{Es(e),a?(async()=>{await l,i.current.setSnPlugins(e)})():u=e},h={id:e.id,async destroy(){await r(),o(),o=Cs},async convertTo(n){let r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const o=await Na({halo:t,model:e,cellRef:i,newType:n});return r&&(e.__snInterceptor?await e.__snInterceptor.setProperties.call(e,o.qProperty):await e.setProperties(o.qProperty)),o},__DO_NOT_USE__:{mount(r){if(a)throw new Error("Already mounted");return a=r,[o,i]=gs({halo:t,element:r,model:e,initialSnOptions:c,initialSnPlugins:u,initialError:n,onMount:s}),l},async applyProperties(t){const n=vs("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){p(e)},plugins(e){d(e)},exportImage:()=>i.current.exportImage(),takeSnapshot:()=>i.current.takeSnapshot(),getModel:()=>e}};return h}async function xs(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:async()=>{};const i=Ls({model:e,halo:n,initialError:r,onDestroy:o});return t.options&&i.__DO_NOT_USE__.options(t.options),t.plugins&&i.__DO_NOT_USE__.plugins(t.plugins),t.element&&await i.__DO_NOT_USE__.mount(t.element),i}async function Ss(e,t){let n,{type:r,version:o,fields:i,properties:a,options:s,plugins:l,element:c}=e,u={};try{const e=t.types.get({name:r,version:o});u=await e.initialProperties(a);const n=await e.supernova();i&&Ea({sn:n,properties:u,fields:i}),a&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},u)}catch(e){n=e,u={qInfo:{qType:r},visualization:r}}const p=await t.app.createSessionObject(u);Xr.set(p.id,p);const d=(e=>{const t=$r({type:"SET",value:e});return()=>{t(),Xr.clear(e.id)}})(p);return xs(p,{options:s,plugins:l,element:c},t,n,async()=>{await t.app.destroySessionObject(p.id),d()})}async function ws(e,t){let{id:n,options:r,plugins:o,element:i}=e;const a="".concat(n);let s=Vr.get(a);s||(s=t.app.getObject(n),Vr.set(a,s));const l=await s;return Xr.set(a,l),xs(l,{options:r,plugins:o,element:i},t)}function Os(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}const qs=ue.bind(null,!0),Rs={},{isArray:Is}=Array;function _s(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function ks(e){return void 0===e}function Ds(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function Ts(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 i=isNaN(r)?{}:[];e[r||t]=ks(e[r||t])?i:e[t],e=e[r||t]}),e}function Ns(e,t){let n=!0;if(_s(e)&&_s(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(r=>{Ns(e[r],t[r])||(n=!1)}),n);if(Is(e)&&Is(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!Ns(e[n],t[n]))return!1;return!0}return e===t}Rs.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach(o=>{const i=function(e){return e?qs({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(n,"/").concat(o);Ns(i,a)||Ds(t,o)||(ks(a)?r.push({op:"add",path:s,value:i}):_s(i)&&_s(a)?r=r.concat(Rs.generate(a,i,s)):Is(i)&&Is(a)?r=r.concat(function(e,t,n){let r=[];const o=e.slice();let i=-1;function a(e,t,n){if(e[n]&&ks(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(Ns(t,o))return r;if(!ks(t[0])&&ks(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(let e=o.length-1;e>=0;e-=1)i=a(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===i?(r.push({op:"remove",path:"".concat(n,"/").concat(e)}),o.splice(e,1)):r=r.concat(Rs.generate(o[e],t[i],"".concat(n,"/").concat(e)));for(let e=0,s=t.length;e<s;e+=1)i=a(o,t[e].qInfo&&t[e].qInfo.qId),-1===i?(r.push({op:"add",path:"".concat(n,"/").concat(e),value:t[e]}),o.splice(e,0,t[e])):i!==e&&(r.push({op:"move",path:"".concat(n,"/").concat(e),from:"".concat(n,"/").concat(i)}),o.splice(e,0,o.splice(i,1)[0]));return r}(a,i,s)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))}),Object.keys(e).forEach(o=>{ks(t[o])&&!Ds(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})}),r},Rs.apply=function(e,t){t.forEach(t=>{let n=Ts(e,t.path),r=t.path.split("/").splice(-1)[0],o=r&&isNaN(+r)?n[r]:n[+r]||n;const i=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(Is(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(Is(o)&&Is(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(_s(o)&&_s(t.value))a=o,Object.keys(a).forEach(e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!Ds(a,e)&&delete a[e]}),qs(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=Ts(e,t.from);Is(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(Is(n)?n.splice(+r,1):delete n[r]);var a})},Rs.clone=function(e){return qs({},e)},Rs.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},Rs.updateObject=function(e,t){Object.keys(e).length?Rs.apply(e,Rs.generate(e,t)):qs(e,t)};const As=e=>t=>{const n=(r=W(W({},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 Ms,Ps;function js(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 zs(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:[],actions:{list:[]},pendingEffects:[],pendingLayoutEffects:[],pendingPromises:[],resizer:{setters:[],explicitResize:t},accessibility:{setter:null}}}function Fs(e){Hs(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 Bs(e){if(e.__hooks.obsolete)return Promise.resolve();Ps=-1,Ms=e,Ms.__hooks.initiated&&Ms.__hooks.list.length;try{Ms.fn.call(null)}catch(e){console.error(e)}Ms.__hooks.initiated=!0;const t=Ms.__hooks;return Vs(Ms),Ps=void 0,Ms=void 0,t.chain.promise||(t.chain.promise=new Promise(e=>{t.chain.resolve=e})),function(e){Hs(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame(()=>{!function(e){Hs(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 Hs(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 Us(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 Ws(e){return e.__hooks.imperativeHandle}function Vs(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function Gs(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,Vs(e))}function Zs(e){if(void 0===Ms)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=Ms.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function Ks(e){Zs(++Ps);return Ms.context[e]}function $s(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function Js(e){return{__hooked:!0,fn:e,initiate:zs,run:Bs,teardown:Fs,runSnaps:Us,focus:xl,blur:Sl,observeActions:Gs,getImperativeHandle:Ws,updateRectOnNextRun:$s}}function Xs(e){const t=Zs(++Ps);if(!t.value){t.component=Ms;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,Bs(r)},0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function Ys(e,t){const n=Zs(++Ps);js(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===Ms.__hooks.pendingEffects.indexOf(n)&&Ms.__hooks.pendingEffects.push(n))}function Qs(e,t){const n=Zs(++Ps);js(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],Ms.__hooks.pendingLayoutEffects.push(n))}function el(e,t){const n=Zs(++Ps);return js(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function tl(e,t){const[n,r]=Xs(()=>({resolved:void 0,rejected:void 0,state:"pending"})),o=Zs(++Ps);return o.component||(o.component=Ms),Qs(()=>{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]}function nl(){return Ks("element")}function rl(){const e=nl(),t=Ms.__hooks.resizer,[n,r]=Xs(()=>{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()),Qs(()=>{if(t.initiated)return;t.initiated=!0;const n=()=>{const{left:n,top:r,width:o,height:i}=e.getBoundingClientRect(),a=t.current;a.width===o&&a.height===i&&a.left===n&&a.top===r||t.setters.forEach(e=>e({left:n,top:r,width:o,height:i}))};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}function ol(){return Ks("layout")}function il(){const e=Ks("layout"),[t]=Xs({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current}function al(){return Ks("appLayout")}function sl(){const e=Ks("model");return e&&e.session?e:void 0}function ll(){const e=Ks("app");return e&&e.session?e:void 0}function cl(){const e=Ks("global");return e&&e.session?e:void 0}function ul(){return Ks("selections")}function pl(){return Ks("theme")}function dl(){return Ks("nebbie")}function hl(){return Ks("translator")}function fl(){return Ks("deviceType")}function ml(){return Ks("plugins")}function gl(e,t){const[n]=Xs({action(){n._config.action.call(null)}});return n.component||(n.component=Ms,Ms.__hooks.actions.list.push(n)),el(()=>{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}function yl(){return Ks("constraints")}function bl(){return Ks("options")}function vl(e,t){const n=Zs(++Ps);if(n.imperative||(n.imperative=!0),js(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],Ms.__hooks.imperativeHandle=r}}function El(e){const t=Zs(++Ps);t.value||(t.value=1,Ms.__hooks.snaps.push(t)),t.fn=e}function Cl(){Zs(++Ps);const e=Ms.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}}function Ll(){const e=Ks("keyboardNavigation"),t=Ks("focusHandler");if(!Ms.__hooks.accessibility.exitFunction){const e=function(e){const n=this.__hooks.accessibility;n.enabled&&n.active&&(Sl(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(Ms);Ms.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),xl(this))}.bind(Ms);Ms.__hooks.accessibility.focusFunction=n;const r=function(e){this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(Ms);Ms.__hooks.accessibility.focusSelectionFunction=r}const n=Ms.__hooks.accessibility.focusFunction,r=Ms.__hooks.accessibility.exitFunction,o=Ms.__hooks.accessibility.focusSelectionFunction,[i,a]=Xs({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return Ms.__hooks.accessibility.setter=a,Ms.__hooks.accessibility.enabled=e,Ys(()=>a({active:!1,enabled:e,blur:r,focus:n,focusSelection:o}),[e]),i}function xl(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 Sl(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 wl={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},Ol=Object.keys(wl);function ql(e,t){const n=W({},wl);var r;r=n,Object.keys(te.prototype).forEach(e=>{r[e]=te.prototype[e]}),te.init(r);const o={emit(){n.emit(...arguments)}};Object.keys(e.component||{}).forEach(t=>{-1!==Ol.indexOf(t)?n[t]=e.component[t].bind(o):o[t]=e.component[t]});const i=function(e){let{sn:t,component:n}=e;const r={},o=[],i=As(n);return((t.definition.selectionToolbar||{}).items||[]).forEach(e=>{const t=i(e);r[e.key]=t,o.push(t)}),(t.definition.actions||[]).forEach(e=>{const t=i(e);r[e.key]=t}),{actions:r,selectionToolbarItems:o,destroy(){o.length=0}}}({sn:e,component:o}),a=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(o,{model:t.model,app:t.app,global:a,selections:t.selections,actions:i.actions}),Object.assign(n,{actions:i.actions,model:t.model,app:t.app,selections:t.selections}),[n,i]}function Rl(e,t,n){"function"==typeof e.component&&(e.component=Js(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={},a=["appLayout","constraints"],s={};t.model&&t.model.session||(s.select=!0);const l={context:{model:t.model,app:t.app,global:r,selections:t.selections,nebbie:t.nebbie,element:void 0,deviceType:n.deviceType,theme:void 0,translator:n.translator,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,focusHandler:t.focusHandler,constraints:s,options:{},plugins:[]},fn:e.component.fn,created(){},mounted(n){this.context.element=n,e.component.initiate(l,{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)}a.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(W(W({},r[e]),s))),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=l.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)},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 a.forEach(e=>{i[e]=JSON.stringify(l.context[e])}),i.themeName=l.context.theme?l.context.theme.name():void 0,i.language=l.context.translator?l.context.translator.language():void 0,Object.assign(l,{selections:t.selections}),[l,null]}(e,t,n):ql(e,t),i=[];return t.model.__snInterceptor&&t.model.__snInterceptor.teardown(),e.qae.properties.onChange&&(t.model.__snInterceptor={setProperties:t.model.setProperties,applyPatches:t.model.applyPatches,teardown:void 0},t.model.setProperties=function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return e.qae.properties.onChange.call({model:t.model},...r),t.model.__snInterceptor.setProperties.call(this,...r)},t.model.applyPatches=function(n,r){const o=r?"getEffectiveProperties":"getProperties";return t.model[o]().then(o=>{const i=Rs.clone(o),a=n.map(e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath}));Rs.apply(o,a),e.qae.properties.onChange.call({model:t.model},o);const s=Rs.generate(i,o).map(e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}));return t.model.__snInterceptor.applyPatches.call(this,s,r)})},t.model.__snInterceptor.teardown=()=>{t.model.setProperties=t.model.__snInterceptor.setProperties,delete t.model.__snInterceptor},i.push(t.model.__snInterceptor.teardown)),{generator:e,component:r,selectionToolbar:{items:o?o.selectionToolbarItems:[]},destroy(){i.forEach(e=>e())},logicalSize:e.definition.logicalSize||(()=>!1)}}const Il=()=>{};function _l(e,t){return void 0===e?()=>t:()=>e}function kl(e){const t=e||{};return{min:"function"==typeof t.min?t.min:_l(t.min,0),max:"function"==typeof t.max?t.max:_l(t.max,1e3),added:t.added||t.add||Il,description:t.description||Il,moved:t.moved||t.move||Il,removed:t.removed||t.remove||Il,replaced:t.replaced||t.replace||Il,isDefined:()=>!!e}}function Dl(e){const t=e.path||"/qHyperCubeDef",n=t.slice(0,-3);if(!1===/\/(qHyperCube|qListObject)$/.test(n)){const e=n.includes("/qHyperCube")?"qHyperCubeDef":"qListObjectDef";throw new Error("Incorrect definition for ".concat(e," at ").concat(t,". Valid paths include /qHyperCubeDef or /qListObjectDef, e.g. data/qHyperCubeDef"))}return{propertyPath:t,layoutPath:n,resolveLayout:e=>((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})(e,n,{}),dimensions:kl(e.dimensions),measures:kl(e.measures)}}function Tl(){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);const r={properties:{initial:n,onChange:e},data:{targets:((t.data||{}).targets||[]).map(Dl)},exportProperties:t.exportProperties,importProperties:t.importProperties};return r}function Nl(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:Tl(n.qae),component:n.component||{},create:e=>Rl(r,e,t),definition:{}};return Object.keys(n).forEach(e=>{r[e]||(r.definition[e]=n[e])}),r}var Al={exports:{}};!function(e,t){var n;t=e.exports=p,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var r=Number.MAX_SAFE_INTEGER||9007199254740991,o=t.re=[],i=t.src=[],a=t.tokens={},s=0;function l(e){a[e]=s++}l("NUMERICIDENTIFIER"),i[a.NUMERICIDENTIFIER]="0|[1-9]\\d*",l("NUMERICIDENTIFIERLOOSE"),i[a.NUMERICIDENTIFIERLOOSE]="[0-9]+",l("NONNUMERICIDENTIFIER"),i[a.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",l("MAINVERSION"),i[a.MAINVERSION]="("+i[a.NUMERICIDENTIFIER]+")\\.("+i[a.NUMERICIDENTIFIER]+")\\.("+i[a.NUMERICIDENTIFIER]+")",l("MAINVERSIONLOOSE"),i[a.MAINVERSIONLOOSE]="("+i[a.NUMERICIDENTIFIERLOOSE]+")\\.("+i[a.NUMERICIDENTIFIERLOOSE]+")\\.("+i[a.NUMERICIDENTIFIERLOOSE]+")",l("PRERELEASEIDENTIFIER"),i[a.PRERELEASEIDENTIFIER]="(?:"+i[a.NUMERICIDENTIFIER]+"|"+i[a.NONNUMERICIDENTIFIER]+")",l("PRERELEASEIDENTIFIERLOOSE"),i[a.PRERELEASEIDENTIFIERLOOSE]="(?:"+i[a.NUMERICIDENTIFIERLOOSE]+"|"+i[a.NONNUMERICIDENTIFIER]+")",l("PRERELEASE"),i[a.PRERELEASE]="(?:-("+i[a.PRERELEASEIDENTIFIER]+"(?:\\."+i[a.PRERELEASEIDENTIFIER]+")*))",l("PRERELEASELOOSE"),i[a.PRERELEASELOOSE]="(?:-?("+i[a.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+i[a.PRERELEASEIDENTIFIERLOOSE]+")*))",l("BUILDIDENTIFIER"),i[a.BUILDIDENTIFIER]="[0-9A-Za-z-]+",l("BUILD"),i[a.BUILD]="(?:\\+("+i[a.BUILDIDENTIFIER]+"(?:\\."+i[a.BUILDIDENTIFIER]+")*))",l("FULL"),l("FULLPLAIN"),i[a.FULLPLAIN]="v?"+i[a.MAINVERSION]+i[a.PRERELEASE]+"?"+i[a.BUILD]+"?",i[a.FULL]="^"+i[a.FULLPLAIN]+"$",l("LOOSEPLAIN"),i[a.LOOSEPLAIN]="[v=\\s]*"+i[a.MAINVERSIONLOOSE]+i[a.PRERELEASELOOSE]+"?"+i[a.BUILD]+"?",l("LOOSE"),i[a.LOOSE]="^"+i[a.LOOSEPLAIN]+"$",l("GTLT"),i[a.GTLT]="((?:<|>)?=?)",l("XRANGEIDENTIFIERLOOSE"),i[a.XRANGEIDENTIFIERLOOSE]=i[a.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",l("XRANGEIDENTIFIER"),i[a.XRANGEIDENTIFIER]=i[a.NUMERICIDENTIFIER]+"|x|X|\\*",l("XRANGEPLAIN"),i[a.XRANGEPLAIN]="[v=\\s]*("+i[a.XRANGEIDENTIFIER]+")(?:\\.("+i[a.XRANGEIDENTIFIER]+")(?:\\.("+i[a.XRANGEIDENTIFIER]+")(?:"+i[a.PRERELEASE]+")?"+i[a.BUILD]+"?)?)?",l("XRANGEPLAINLOOSE"),i[a.XRANGEPLAINLOOSE]="[v=\\s]*("+i[a.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+i[a.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+i[a.XRANGEIDENTIFIERLOOSE]+")(?:"+i[a.PRERELEASELOOSE]+")?"+i[a.BUILD]+"?)?)?",l("XRANGE"),i[a.XRANGE]="^"+i[a.GTLT]+"\\s*"+i[a.XRANGEPLAIN]+"$",l("XRANGELOOSE"),i[a.XRANGELOOSE]="^"+i[a.GTLT]+"\\s*"+i[a.XRANGEPLAINLOOSE]+"$",l("COERCE"),i[a.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",l("COERCERTL"),o[a.COERCERTL]=new RegExp(i[a.COERCE],"g"),l("LONETILDE"),i[a.LONETILDE]="(?:~>?)",l("TILDETRIM"),i[a.TILDETRIM]="(\\s*)"+i[a.LONETILDE]+"\\s+",o[a.TILDETRIM]=new RegExp(i[a.TILDETRIM],"g");l("TILDE"),i[a.TILDE]="^"+i[a.LONETILDE]+i[a.XRANGEPLAIN]+"$",l("TILDELOOSE"),i[a.TILDELOOSE]="^"+i[a.LONETILDE]+i[a.XRANGEPLAINLOOSE]+"$",l("LONECARET"),i[a.LONECARET]="(?:\\^)",l("CARETTRIM"),i[a.CARETTRIM]="(\\s*)"+i[a.LONECARET]+"\\s+",o[a.CARETTRIM]=new RegExp(i[a.CARETTRIM],"g");l("CARET"),i[a.CARET]="^"+i[a.LONECARET]+i[a.XRANGEPLAIN]+"$",l("CARETLOOSE"),i[a.CARETLOOSE]="^"+i[a.LONECARET]+i[a.XRANGEPLAINLOOSE]+"$",l("COMPARATORLOOSE"),i[a.COMPARATORLOOSE]="^"+i[a.GTLT]+"\\s*("+i[a.LOOSEPLAIN]+")$|^$",l("COMPARATOR"),i[a.COMPARATOR]="^"+i[a.GTLT]+"\\s*("+i[a.FULLPLAIN]+")$|^$",l("COMPARATORTRIM"),i[a.COMPARATORTRIM]="(\\s*)"+i[a.GTLT]+"\\s*("+i[a.LOOSEPLAIN]+"|"+i[a.XRANGEPLAIN]+")",o[a.COMPARATORTRIM]=new RegExp(i[a.COMPARATORTRIM],"g");l("HYPHENRANGE"),i[a.HYPHENRANGE]="^\\s*("+i[a.XRANGEPLAIN]+")\\s+-\\s+("+i[a.XRANGEPLAIN]+")\\s*$",l("HYPHENRANGELOOSE"),i[a.HYPHENRANGELOOSE]="^\\s*("+i[a.XRANGEPLAINLOOSE]+")\\s+-\\s+("+i[a.XRANGEPLAINLOOSE]+")\\s*$",l("STAR"),i[a.STAR]="(<|>)?=?\\s*\\*";for(var c=0;c<s;c++)n(c,i[c]),o[c]||(o[c]=new RegExp(i[c]));function u(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof p)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?o[a.LOOSE]:o[a.FULL]).test(e))return null;try{return new p(e,t)}catch(e){return null}}function p(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof p){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>256)throw new TypeError("version is longer than 256 characters");if(!(this instanceof p))return new p(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var i=e.trim().match(t.loose?o[a.LOOSE]:o[a.FULL]);if(!i)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<r)return t}return e})):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}t.parse=u,t.valid=function(e,t){var n=u(e,t);return n?n.version:null},t.clean=function(e,t){var n=u(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},t.SemVer=p,p.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},p.prototype.toString=function(){return this.version},p.prototype.compare=function(e){return n("SemVer.compare",this.version,this.options,e),e instanceof p||(e=new p(e,this.options)),this.compareMain(e)||this.comparePre(e)},p.prototype.compareMain=function(e){return e instanceof p||(e=new p(e,this.options)),h(this.major,e.major)||h(this.minor,e.minor)||h(this.patch,e.patch)},p.prototype.comparePre=function(e){if(e instanceof p||(e=new p(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],o=e.prerelease[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return h(r,o)}while(++t)},p.prototype.compareBuild=function(e){e instanceof p||(e=new p(e,this.options));var t=0;do{var r=this.build[t],o=e.build[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return h(r,o)}while(++t)},p.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);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":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new p(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(y(e,t))return null;var n=u(e),r=u(t),o="";if(n.prerelease.length||r.prerelease.length){o="pre";var i="prerelease"}for(var a in n)if(("major"===a||"minor"===a||"patch"===a)&&n[a]!==r[a])return o+a;return i},t.compareIdentifiers=h;var d=/^[0-9]+$/;function h(e,t){var n=d.test(e),r=d.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function f(e,t,n){return new p(e,n).compare(new p(t,n))}function m(e,t,n){return f(e,t,n)>0}function g(e,t,n){return f(e,t,n)<0}function y(e,t,n){return 0===f(e,t,n)}function b(e,t,n){return 0!==f(e,t,n)}function v(e,t,n){return f(e,t,n)>=0}function E(e,t,n){return f(e,t,n)<=0}function C(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 y(e,n,r);case"!=":return b(e,n,r);case">":return m(e,n,r);case">=":return v(e,n,r);case"<":return g(e,n,r);case"<=":return E(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function L(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof L){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof L))return new L(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===x?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return h(t,e)},t.major=function(e,t){return new p(e,t).major},t.minor=function(e,t){return new p(e,t).minor},t.patch=function(e,t){return new p(e,t).patch},t.compare=f,t.compareLoose=function(e,t){return f(e,t,!0)},t.compareBuild=function(e,t,n){var r=new p(e,n),o=new p(t,n);return r.compare(o)||r.compareBuild(o)},t.rcompare=function(e,t,n){return f(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=m,t.lt=g,t.eq=y,t.neq=b,t.gte=v,t.lte=E,t.cmp=C,t.Comparator=L;var x={};function S(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof S)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new S(e.raw,t);if(e instanceof L)return new S(e.value,t);if(!(this instanceof S))return new S(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function w(e,t){for(var n=!0,r=e.slice(),o=r.pop();n&&r.length;)n=r.every((function(e){return o.intersects(e,t)})),o=r.pop();return n}function O(e){return!e||"x"===e.toLowerCase()||"*"===e}function q(e,t,n,r,o,i,a,s,l,c,u,p,d){return((t=O(n)?"":O(r)?">="+n+".0.0":O(o)?">="+n+"."+r+".0":">="+t)+" "+(s=O(l)?"":O(c)?"<"+(+l+1)+".0.0":O(u)?"<"+l+"."+(+c+1)+".0":p?"<="+l+"."+c+"."+u+"-"+p:"<="+s)).trim()}function R(e,t,r){for(var o=0;o<e.length;o++)if(!e[o].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(o=0;o<e.length;o++)if(n(e[o].semver),e[o].semver!==x&&e[o].semver.prerelease.length>0){var i=e[o].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}function I(e,t,n){try{t=new S(t,n)}catch(e){return!1}return t.test(e)}function _(e,t,n,r){var o,i,a,s,l;switch(e=new p(e,r),t=new S(t,r),n){case">":o=m,i=E,a=g,s=">",l=">=";break;case"<":o=g,i=v,a=m,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(I(e,t,r))return!1;for(var c=0;c<t.set.length;++c){var u=t.set[c],d=null,h=null;if(u.forEach((function(e){e.semver===x&&(e=new L(">=0.0.0")),d=d||e,h=h||e,o(e.semver,d.semver,r)?d=e:a(e.semver,h.semver,r)&&(h=e)})),d.operator===s||d.operator===l)return!1;if((!h.operator||h.operator===s)&&i(e,h.semver))return!1;if(h.operator===l&&a(e,h.semver))return!1}return!0}L.prototype.parse=function(e){var t=this.options.loose?o[a.COMPARATORLOOSE]:o[a.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new p(n[2],this.options.loose):this.semver=x},L.prototype.toString=function(){return this.value},L.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===x||e===x)return!0;if("string"==typeof e)try{e=new p(e,this.options)}catch(e){return!1}return C(e,this.operator,this.semver,this.options)},L.prototype.intersects=function(e,t){if(!(e instanceof L))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new S(e.value,t),I(this.value,n,t));if(""===e.operator)return""===e.value||(n=new S(this.value,t),I(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=C(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=C(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||o||i&&a||s||l},t.Range=S,S.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},S.prototype.toString=function(){return this.range},S.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?o[a.HYPHENRANGELOOSE]:o[a.HYPHENRANGE];e=e.replace(r,q),n("hyphen replace",e),e=e.replace(o[a.COMPARATORTRIM],"$1$2$3"),n("comparator trim",e,o[a.COMPARATORTRIM]),e=(e=(e=e.replace(o[a.TILDETRIM],"$1~")).replace(o[a.CARETTRIM],"$1^")).split(/\s+/).join(" ");var i=t?o[a.COMPARATORLOOSE]:o[a.COMPARATOR],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?o[a.CARETLOOSE]:o[a.CARET];return e.replace(r,(function(t,r,o,i,a){var s;return n("caret",e,t,r,o,i,a),O(r)?s="":O(o)?s=">="+r+".0.0 <"+(+r+1)+".0.0":O(i)?s="0"===r?">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":">="+r+"."+o+".0 <"+(+r+1)+".0.0":a?(n("replaceCaret pr",a),s="0"===r?"0"===o?">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+o+"."+(+i+1):">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+i+"-"+a+" <"+(+r+1)+".0.0"):(n("no pr"),s="0"===r?"0"===o?">="+r+"."+o+"."+i+" <"+r+"."+o+"."+(+i+1):">="+r+"."+o+"."+i+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+i+" <"+(+r+1)+".0.0"),n("caret return",s),s}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?o[a.TILDELOOSE]:o[a.TILDE];return e.replace(r,(function(t,r,o,i,a){var s;return n("tilde",e,t,r,o,i,a),O(r)?s="":O(o)?s=">="+r+".0.0 <"+(+r+1)+".0.0":O(i)?s=">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":a?(n("replaceTilde pr",a),s=">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+(+o+1)+".0"):s=">="+r+"."+o+"."+i+" <"+r+"."+(+o+1)+".0",n("tilde return",s),s}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?o[a.XRANGELOOSE]:o[a.XRANGE];return e.replace(r,(function(r,o,i,a,s,l){n("xRange",e,r,o,i,a,s,l);var c=O(i),u=c||O(a),p=u||O(s),d=p;return"="===o&&d&&(o=""),l=t.includePrerelease?"-0":"",c?r=">"===o||"<"===o?"<0.0.0-0":"*":o&&d?(u&&(a=0),s=0,">"===o?(o=">=",u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):"<="===o&&(o="<",u?i=+i+1:a=+a+1),r=o+i+"."+a+"."+s+l):u?r=">="+i+".0.0"+l+" <"+(+i+1)+".0.0"+l:p&&(r=">="+i+"."+a+".0"+l+" <"+i+"."+(+a+1)+".0"+l),n("xRange return",r),r}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(o[a.STAR],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(i)}))),s=s.map((function(e){return new L(e,this.options)}),this)},S.prototype.intersects=function(e,t){if(!(e instanceof S))throw new TypeError("a Range is required");return this.set.some((function(n){return w(n,t)&&e.set.some((function(e){return w(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new S(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},S.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new p(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(R(this.set[t],e,this.options))return!0;return!1},t.satisfies=I,t.maxSatisfying=function(e,t,n){var r=null,o=null;try{var i=new S(t,n)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(r&&-1!==o.compare(e)||(o=new p(r=e,n)))})),r},t.minSatisfying=function(e,t,n){var r=null,o=null;try{var i=new S(t,n)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(r&&1!==o.compare(e)||(o=new p(r=e,n)))})),r},t.minVersion=function(e,t){e=new S(e,t);var n=new p("0.0.0");if(e.test(n))return n;if(n=new p("0.0.0-0"),e.test(n))return n;n=null;for(var r=0;r<e.set.length;++r){e.set[r].forEach((function(e){var t=new p(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!m(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new S(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return _(e,t,"<",n)},t.gtr=function(e,t,n){return _(e,t,">",n)},t.outside=_,t.prerelease=function(e,t){var n=u(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new S(e,n),t=new S(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof p)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=o[a.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),o[a.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;o[a.COERCERTL].lastIndex=-1}else n=e.match(o[a.COERCE]);if(null===n)return null;return u(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}}(Al,Al.exports);const Ml={};async function Pl(e,t,n,r){let{config:o}=n;const i="".concat(e,"__").concat(t);if(!Ml[i]){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 a=(r||o.load)({name:e,version:t}),s=Promise.resolve(a);Ml[i]=s.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 Ml[i]}function jl(e,t){const n={};let r=null;return{get:e=>n[e],register:(o,i)=>{if(n[o])throw new Error("Supernova '".concat(e,"@").concat(o,"' already registered."));n[o]=function(e,t){let n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{meta:i}=o,a={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&i&&i.deps&&i.deps.properties)||Al.exports.satisfies(e,i.deps.properties),supernova:()=>Pl(a.name,a.version,t,o.load).then(e=>(n=n||Nl(e,t.public.galaxy),r=JSON.stringify(n.qae.properties.initial),n)),initialProperties(e){return this.supernova().then(()=>W(W({qInfo:{qType:a.name},visualization:a.name,version:a.version,showTitles:!0},JSON.parse(r)),e))}};return a}({name:e,version:o},t,i),r=null},getMatchingVersionFromProperties:e=>{var t;r||(t=Object.keys(n),r=[...t.filter(e=>"undefined"===e),...t.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("."))]);for(let t=r.length-1;t>=0;t--){if(n[r[t]].supportsPropertiesVersion(e))return r[t]}return null},versions:n}}function zl(e){let{halo:t,parent:n}=e;const r={},o=n||{get:()=>{}};return{register:(e,n)=>{r[e.name]||(r[e.name]=jl(e.name,t)),r[e.name].register(e.version,n)},getSupportedVersion:(e,t)=>r[e]?r[e].getMatchingVersionFromProperties(t):null,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(Ml).forEach(t=>{t.split("__")[0]===e&&(Ml[t]=void 0)})}(e)}}}const Fl=["__DO_NOT_USE__"],Bl=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return W(W({},e),t)},Hl=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[...e,...t].filter((e,t,n)=>n.indexOf(e)===t)},Ul=(e,t)=>({context:Bl(e.context,t.context),load:t.load||e.load,snapshot:W({},t.snapshot||e.snapshot),types:Hl(e.types,t.types),themes:Hl(e.themes,t.themes),flags:Bl(e.flags,t.flags),anything:Bl(e.anything,t.anything)}),Wl=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{__DO_NOT_USE__:t={}}=e,n=Z(e,Fl),r={update:void 0,fetchStart:void 0,showGray:!0,focusSearch:!1,sessionModel:void 0,selectionsApi:void 0,selectDisabled:void 0},o=W(W(W({},n),r),t);return o};var Vl=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=Y(t.context.language);function r(e,o){if(o)return r.createConfiguration(o)(e);let i=W(W({},t.context),{},{translator:n.translator});const[a]=bo({app:e,context:i}),s=wt({themes:t.themes,root:a}),l={galaxy:{translator:n.translator,flags:Os(t.flags),deviceType:Ot(t.context.deviceType),anything:t.anything},theme:s.externalAPI,translator:n.translator,nebbie:null},c={app:e,root:a,config:t,public:l,context:i,types:null},u=zl({halo:c});t.types.forEach(e=>u.register({name:e.name,version:e.version},{meta:e.meta,load:e.load}));let p=s.setTheme(t.context.theme),d=null,h=null;const f={render:async e=>(await p,e.id?ws(e,c):Ss(e,c)),context:async e=>{let t;["theme","language","constraints","keyboardNavigation"].forEach(n=>{Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==i[n]&&(t||(t={}),t[n]=e[n])}),t&&(i=W(W(W({},i),t),{},{translator:n.translator}),c.context=i,t.theme&&(p=s.setTheme(t.theme),await p),t.language&&c.public.translator.language(t.language),a.context(i))},selections:async()=>(d||(d={mount(t){h||(h=Ji({element:t,app:e}),a.add(h))},unmount(){h&&(a.remove(h),h=null)}}),d),field:async t=>{const n="string"==typeof t?t:t.qLibraryId;if(!n)throw new Error("Field identifier must be provided");return{fieldName:n,mount(r){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!r)throw new Error("Element for ".concat(n," not provided"));if(this._instance)throw new Error("Field ".concat(n," already mounted"));this._instance=fa({element:r,app:e,fieldIdentifier:t,options:Wl(o),stateName:o.stateName||"$"}),a.add(this._instance)},unmount(){this._instance&&(a.remove(this._instance),this._instance=null)}}},getRegisteredTypes:u.getList,__DO_NOT_USE__:{types:u}};return c.public.nebbie=f,c.types=u,f}return r.createConfiguration=n=>e(Ul(t,n)),r.config=t,r}({context:{theme:"light",language:"en-US",deviceType:"auto",constraints:{},keyboardNavigation:!1,disableCellPadding:!1},load:()=>{},types:[],themes:[],anything:{},snapshot:{get:async e=>{const t=await fetch("/njs/snapshot/".concat(e));if(!t.ok)throw new Error(t.statusText);return t.json()},capture:e=>fetch("/njs/capture",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then(e=>e.json())}}),Gl={exports:{}},Zl={exports:{}};Zl.exports=function(){function e(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}function t(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 n(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?t(Object(o),!0).forEach((function(t){r(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var i=Object.prototype.hasOwnProperty,a=Object.prototype.toString,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===a.call(e)},u=function(e){if(!e||"[object Object]"!==a.call(e))return!1;var t,n=i.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&i.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||i.call(e,t)},p=function(e,t){s&&"__proto__"===t.name?s(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},d=function(e,t){if("__proto__"===t){if(!i.call(e,t))return;if(l)return l(e,t).value}return e[t]},h=function e(){var t,n,r,o,i,a,s=arguments[0],l=1,h=arguments.length,f=!1;for("boolean"==typeof s&&(f=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<h;++l)if(null!=(t=arguments[l]))for(n in t)r=d(s,n),s!==(o=d(t,n))&&(f&&o&&(u(o)||(i=c(o)))?(i?(i=!1,a=r&&c(r)?r:[]):a=r&&u(r)?r:{},p(s,{name:n,newValue:e(f,a,o)})):void 0!==o&&p(s,{name:n,newValue:o}));return s};const f=globalThis.crypto||{getRandomValues:()=>123456};function m(){return e=>{const t=h({},e);t.qInfo=t.qInfo||{},t.qInfo.qId=t.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^f.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)));const r=t._mock;let o=t;return r&&(delete t._mock,o=h({},t,r)),Promise.resolve(n({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(o),getProperties:()=>Promise.resolve(t),getEffectiveProperties:()=>Promise.resolve(t),id:t.qInfo.qId},t))}}const g=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},y=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,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];const s=g(e,{defaultValue:t,args:i});return n?new Promise(e=>{setTimeout(()=>e(s),r)}):s}},b=["id","session"],v=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function E(e){return!v.includes(e)}function C(e){const t=g(e.getLayout);return t.qInfo&&t.qInfo.qId}function L(e,t){return e.reduce((e,r)=>n(n({},e),function(e,t){const r=C(e),{delay:i}=t,{id:a,session:s}=e,l=o(e,b);return{[r]:n({id:g(a,{defaultValue:"object - ".concat(+Date.now())}),session:g(s,{defaultValue:!0}),on:()=>{},once:()=>{}},Object.entries(l).reduce((e,t)=>{let[r,o]=t;return n(n({},e),{},{[r]:y(o,{async:E(r),delay:i})})},{}))}}(r,t)),{})}function x(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!C(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function S(){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(x);const n=L(e,t);return async e=>Promise.resolve(n[e])}function w(){return()=>Promise.resolve({id:"app-layout"})}return{fromGenericObjects:function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=new e,o=new m,i=new S(t,n),a=new w,s={id:"app - ".concat(+Date.now()),session:r,createSessionObject:o,getObject:i,getAppLayout:a};return Promise.resolve(s)}}}();const Kl={generator:Nl,hook:Js,theme:xt,locale:J,EnigmaMocker:H(Gl.exports=Zl.exports)};export{Kl as __DO_NOT_USE__,Aa as conversion,Vl as embed,El as onTakeSnapshot,gl as useAction,ll as useApp,al as useAppLayout,yl as useConstraints,fl as useDeviceType,Ys as useEffect,nl as useElement,dl as useEmbed,cl as useGlobal,vl as useImperativeHandle,Ll as useKeyboard,ol as useLayout,el as useMemo,sl as useModel,bl as useOptions,ml as usePlugins,tl as usePromise,rl as useRect,Cl as useRenderState,ul as useSelections,il as useStaleLayout,Xs as useState,pl as useTheme,hl as useTranslator};
7
+ import*as e from"react";import t,{Children as n,isValidElement as r,cloneElement as o,useState as i,useEffect as a,useReducer as s,forwardRef as l,useMemo as c,useImperativeHandle as u,useCallback as p,useLayoutEffect as d,createElement as h,PureComponent as f,useRef as m,useContext as g}from"react";import y from"react-dom";import b from"@emotion/styled";import{CacheProvider as v,Global as E,ThemeContext as x,keyframes as C}from"@emotion/react";import{Checkbox as S,Radio as L,Grid as w,FormControlLabel as k,Typography as O,IconButton as R,Popover as q,MenuList as I,MenuItem as _,ListItemIcon as T,Divider as N,OutlinedInput as D,InputAdornment as M,Badge as P,List as A,ListItem as j,Button as z,Box as F,Icon as B,CircularProgress as U,Paper as H}from"@mui/material";"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function W(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function $(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 V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach((function(t){G(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function G(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K(){return K=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},K.apply(this,arguments)}function Z(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[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="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),a=new R(r||[]);return i._invoke=function(e,t,n){var r=p;return function(o,i){if(r===h)throw new Error("Generator is already running");if(r===f){if("throw"===o)throw i;return I()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=w(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===p)throw r=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var l=u(e,t,n);if("normal"===l.type){if(r=n.done?f:d,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=f,n.method="throw",n.arg=l.arg)}}}(e,n,a),i}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var p="suspendedStart",d="suspendedYield",h="executing",f="completed",m={};function g(){}function y(){}function b(){}var v={};l(v,i,(function(){return this}));var E=Object.getPrototypeOf,x=E&&E(E(q([])));x&&x!==n&&r.call(x,i)&&(v=x);var C=b.prototype=g.prototype=Object.create(v);function S(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function n(o,i,a,s){var l=u(e[o],e,i);if("throw"!==l.type){var c=l.arg,p=c.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(p).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var o;this._invoke=function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}}function w(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,w(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=u(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var i=o.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,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function k(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 O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function R(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function q(e){if(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}}return{next:I}}function I(){return{value:t,done:!0}}return y.prototype=b,l(C,"constructor",b),l(b,"constructor",y),y.displayName=l(b,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,l(e,s,"GeneratorFunction")),e.prototype=Object.create(C),e},e.awrap=function(e){return{__await:e}},S(L.prototype),l(L.prototype,a,(function(){return this})),e.AsyncIterator=L,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new L(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(C),l(C,s,"Generator"),l(C,i,(function(){return this})),l(C,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=q,R.prototype={constructor:R,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(O),!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 s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.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 i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},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),m},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),O(n),m}},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;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:q(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}({exports:{}});const X=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n="string"==typeof t||"number"==typeof t?[t]:t;return e.replace(/\{(\d+)\}/g,((e,t)=>void 0!==n[t]?n[t]:e))};function J(){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 i;return i=n[r]&&void 0!==n[r][e]?n[r][e]:n[t]&&void 0!==n[t][e]?n[t][e]:e,void 0!==o?X(i,o):i}};return o}const Y=function(){let{initial:e="en-US",fallback:t="en-US"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=J({initial:e,fallback:t});return{translator:n}};var Q={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_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_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_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_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":"重試"}},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":"選取可能值"}},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 ee(e){const t=Y({initial:e});return Object.keys(Q).forEach((e=>{t.translator.add(Q[e])})),{translator:t.translator}}var te={};function ne(){ne.init.call(this)}te.isObject=function(e){return"object"==typeof e&&null!==e},te.isNumber=function(e){return"number"==typeof e},te.isUndefined=function(e){return void 0===e},te.isFunction=function(e){return"function"==typeof e};var re=ne;ne.EventEmitter=ne,ne.prototype._events=void 0,ne.prototype._maxListeners=void 0,ne.defaultMaxListeners=10,ne.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},ne.prototype.setMaxListeners=function(e){if(!te.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},ne.prototype.emit=function(e){var t,n,r,o,i,a;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],te.isUndefined(n))return!1;if(te.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),i=1;i<r;i++)o[i-1]=arguments[i];n.apply(this,o)}else if(te.isObject(n)){for(r=arguments.length,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];for(r=(a=n.slice()).length,i=0;i<r;i++)a[i].apply(this,o)}return!0},ne.prototype.addListener=function(e,t){var n;if(!te.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,te.isFunction(t.listener)?t.listener:t),this._events[e]?te.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,te.isObject(this._events[e])&&!this._events[e].warned)&&((n=te.isUndefined(this._maxListeners)?ne.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,te.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),te.isFunction(console.trace)&&console.trace()));return this},ne.prototype.on=ne.prototype.addListener,ne.prototype.once=function(e,t){if(!te.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},ne.prototype.removeListener=function(e,t){var n,r,o,i;if(!te.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||te.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(te.isObject(n)){for(i=o;i-- >0;)if(n[i]===t||n[i].listener&&n[i].listener===t){r=i;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},ne.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],te.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},ne.prototype.listeners=function(e){return this._events&&this._events[e]?te.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},ne.listenerCount=function(e,t){return e._events&&e._events[t]?te.isFunction(e._events[t])?1:e._events[t].length:0};var oe=Object.prototype.hasOwnProperty,ie=Object.prototype.toString,ae=Object.defineProperty,se=Object.getOwnPropertyDescriptor,le=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===ie.call(e)},ce=function(e){if(!e||"[object Object]"!==ie.call(e))return!1;var t,n=oe.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&oe.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||oe.call(e,t)},ue=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},pe=function(e,t){if("__proto__"===t){if(!oe.call(e,t))return;if(se)return se(e,t).value}return e[t]},de=function e(){var t,n,r,o,i,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=pe(s,n),s!==(o=pe(t,n))&&(u&&o&&(ce(o)||(i=le(o)))?(i?(i=!1,a=r&&le(r)?r:[]):a=r&&ce(r)?r:{},ue(s,{name:n,newValue:e(u,a,o)})):void 0!==o&&ue(s,{name:n,newValue:o}));return s},he={fontSize:"13px",fontFamily:"'Source Sans Pro', 'Arial', 'sans-serif'",backgroundColor:"transparent",dataColors:{primaryColor:"#26a0a7",othersColor:"#a5a5a5",errorColor:"#ff4444",nullColor:"#d2d2d2"},scales:[{name:"Sequential Gradient",translation:"properties.colorScheme.sequential",type:"gradient",propertyValue:"sg",scale:["#26a0a7","#c7ea8b"]},{name:"Sequential Classes",translation:"properties.colorScheme.sequentialC",propertyValue:"sc",type:"class",scale:["#26a0a7","#c7ea8b"]},{name:"Diverging gradient",translation:"properties.colorScheme.diverging",propertyValue:"dg",type:"gradient",scale:["#26a0a7","#c3ea8c","#ec983d"]},{name:"Diverging Classes",translation:"properties.colorScheme.divergingC",propertyValue:"dc",type:"class",scale:["#26a0a7","#c3ea8c","#ec983d"]}],palettes:{data:[{name:"12 Colors",translation:"properties.colorNumberOfColors.12",propertyValue:"12",type:"pyramid",scale:[["#26A0A7"],["#26A0A7","#EC983D"],["#26A0A7","#CBE989","#EC983D"],["#26A0A7","#79D69F","#F9EC86","#EC983D"],["#26A0A7","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D","#D76C6C"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"],["#138185","#26A0A7","#65D3DA","#79D69F","#70BA6E","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"]]}],ui:[{name:"Palette",colors:["#b0afae","#7b7a78","#a54343","#d76c6c","#ec983d","#ecc43d","#f9ec86","#cbe989","#70ba6e","#578b60","#79d69f","#26a0a7","#138185","#65d3da","#ffffff","#000000"]}]}},fe={_variables:{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},type:"light",color:"@B35"},me={_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"};function ge(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ye(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function be(){}var ve=1/.7,Ee="\\s*([+-]?\\d+)\\s*",xe="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ce="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Se=/^#([0-9a-f]{3,8})$/,Le=new RegExp("^rgb\\("+[Ee,Ee,Ee]+"\\)$"),we=new RegExp("^rgb\\("+[Ce,Ce,Ce]+"\\)$"),ke=new RegExp("^rgba\\("+[Ee,Ee,Ee,xe]+"\\)$"),Oe=new RegExp("^rgba\\("+[Ce,Ce,Ce,xe]+"\\)$"),Re=new RegExp("^hsl\\("+[xe,Ce,Ce]+"\\)$"),qe=new RegExp("^hsla\\("+[xe,Ce,Ce,xe]+"\\)$"),Ie={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 _e(){return this.rgb().formatHex()}function Te(){return this.rgb().formatRgb()}function Ne(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Se.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?De(t):3===n?new je(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Me(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Me(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=Le.exec(e))?new je(t[1],t[2],t[3],1):(t=we.exec(e))?new je(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ke.exec(e))?Me(t[1],t[2],t[3],t[4]):(t=Oe.exec(e))?Me(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Re.exec(e))?Ue(t[1],t[2]/100,t[3]/100,1):(t=qe.exec(e))?Ue(t[1],t[2]/100,t[3]/100,t[4]):Ie.hasOwnProperty(e)?De(Ie[e]):"transparent"===e?new je(NaN,NaN,NaN,0):null}function De(e){return new je(e>>16&255,e>>8&255,255&e,1)}function Me(e,t,n,r){return r<=0&&(e=t=n=NaN),new je(e,t,n,r)}function Pe(e){return e instanceof be||(e=Ne(e)),e?new je((e=e.rgb()).r,e.g,e.b,e.opacity):new je}function Ae(e,t,n,r){return 1===arguments.length?Pe(e):new je(e,t,n,null==r?1:r)}function je(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ze(){return"#"+Be(this.r)+Be(this.g)+Be(this.b)}function Fe(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function Be(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Ue(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new We(e,t,n,r)}function He(e){if(e instanceof We)return new We(e.h,e.s,e.l,e.opacity);if(e instanceof be||(e=Ne(e)),!e)return new We;if(e instanceof We)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new We(a,s,l,e.opacity)}function We(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function $e(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}ge(be,Ne,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:_e,formatHex:_e,formatHsl:function(){return He(this).formatHsl()},formatRgb:Te,toString:Te}),ge(je,Ae,ye(be,{brighter:function(e){return e=null==e?ve:Math.pow(ve,e),new je(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new je(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:ze,formatHex:ze,formatRgb:Fe,toString:Fe})),ge(We,(function(e,t,n,r){return 1===arguments.length?He(e):new We(e,t,n,null==r?1:r)}),ye(be,{brighter:function(e){return e=null==e?ve:Math.pow(ve,e),new We(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new We(this.h,this.s,this.l*e,this.opacity)},rgb:function(){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 je($e(e>=240?e-240:e+120,o,r),$e(e,o,r),$e(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));const Ve=Math.PI/180,Ge=180/Math.PI,Ke=4/29,Ze=6/29,Xe=3*Ze*Ze;function Je(e){if(e instanceof Ye)return new Ye(e.l,e.a,e.b,e.opacity);if(e instanceof ot)return it(e);e instanceof je||(e=Pe(e));var t,n,r=nt(e.r),o=nt(e.g),i=nt(e.b),a=Qe((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=Qe((.4360747*r+.3850649*o+.1430804*i)/.96422),n=Qe((.0139322*r+.0971045*o+.7141733*i)/.82521)),new Ye(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Ye(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Qe(e){return e>.008856451679035631?Math.pow(e,1/3):e/Xe+Ke}function et(e){return e>Ze?e*e*e:Xe*(e-Ke)}function tt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function nt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function rt(e){if(e instanceof ot)return new ot(e.h,e.c,e.l,e.opacity);if(e instanceof Ye||(e=Je(e)),0===e.a&&0===e.b)return new ot(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Ge;return new ot(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function ot(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function it(e){if(isNaN(e.h))return new Ye(e.l,0,0,e.opacity);var t=e.h*Ve;return new Ye(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}ge(Ye,(function(e,t,n,r){return 1===arguments.length?Je(e):new Ye(e,t,n,null==r?1:r)}),ye(be,{brighter:function(e){return new Ye(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new Ye(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new je(tt(3.1338561*(t=.96422*et(t))-1.6168667*(e=1*et(e))-.4906146*(n=.82521*et(n))),tt(-.9787684*t+1.9161415*e+.033454*n),tt(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),ge(ot,(function(e,t,n,r){return 1===arguments.length?rt(e):new ot(e,t,n,null==r?1:r)}),ye(be,{brighter:function(e){return new ot(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new ot(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return it(this).rgb()}}));var at=-.14861,st=1.78277,lt=-.29227,ct=-.90649,ut=1.97294,pt=ut*ct,dt=ut*st,ht=st*lt-ct*at;function ft(e){if(e instanceof mt)return new mt(e.h,e.s,e.l,e.opacity);e instanceof je||(e=Pe(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(ht*r+pt*t-dt*n)/(ht+pt-dt),i=r-o,a=(ut*(n-o)-lt*i)/ct,s=Math.sqrt(a*a+i*i)/(ut*o*(1-o)),l=s?Math.atan2(a,i)*Ge-120:NaN;return new mt(l<0?l+360:l,s,o,e.opacity)}function mt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}ge(mt,(function(e,t,n,r){return 1===arguments.length?ft(e):new mt(e,t,n,null==r?1:r)}),ye(be,{brighter:function(e){return e=null==e?ve:Math.pow(ve,e),new mt(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new mt(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*Ve,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new je(255*(t+n*(at*r+st*o)),255*(t+n*(lt*r+ct*o)),255*(t+n*(ut*r)),this.opacity)}}));class gt{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=Ne(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([Ne(e),Ne(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 i=this.colorParts[t][o],a=i[0],s=i[1];if(e===this.min)return s;if(e===this.max)return a;const l=function(e,t,n){return Ae(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))}(a,s,r-o);return l}}function yt(e,t,n){const r=.25+(t+1)/n*.25,o=.5-r;return o+e/1*(.5+r-o)}function bt(e,t,n){const r=[],o=new gt(t);r.push(e[0]),n||r.push(e[0]);let i=1;for(;i<e.length-1;i++)r.push(e[i]),r.push(e[i]);r.push(e[i]),n||r.push(e[i]);for(let e=0;e<r.length;e+=2)o.addColorPart(r[e],r[e+1]);return o}function vt(e,t,n){const r=[];for(let o=0;o<t+1;o++){let i;switch(t){case 0:i=e.getColor(.5);break;default:{const r=yt(1/t*o,t,n);i=e.getColor(r);break}}r.push(Ne(i).formatHex())}return r}function Et(e,t,n){const r=bt(e,n,!0),o=bt(vt(r,t-1,t),n,!1),i=[null];for(let e=0;e<t;e++)i.push(vt(o,e,t));return i}function xt(e,t){const n=[];let r,o;if(e){let i=e.length;for(;i>=0;){for(r=t.slice(),o=r.length;o>=0;)n.push(r.concat(e)),r.pop(),o--;e.pop(),i--}}else for(r=t.slice(),o=r.length;o>=0;)n.push(r.concat()),r.pop(),o--;return n}function Ct(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 St(e,t,n,r){let o;if(""===e)o=xt(null,n);else{o=xt(e.split("."),n)}return function(e,t,n){const r=t.split(".");for(let t=0;t<e.length;t++){const o=Ct(n,[...e[t],...r]);if(void 0!==o)return o}}(o,t,r)}function Lt(e,t){const n=e.split(".");return{getStyle:(e,r)=>St(e,r,n.concat(),t)}}function wt(e,t){Object.keys(e).forEach((n=>{"object"==typeof e[n]&&null!==e[n]?wt(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])}))}function kt(e){const t=Ne(e).rgb(),{r:n,g:r,b:o}=t,[i,a,s]=[n,r,o].map((e=>e/255)),[l,c,u]=[i,a,s].map((e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4));return+(.2126*l+.7152*c+.0722*u).toFixed(5)}function Ot(e,t){return+((Math.max(e,t)+.05)/(Math.min(e,t)+.05)).toFixed(5)}Lt.resolveRawTheme=e=>{const t=de(!0,{},e);return wt(t,t._variables),t.scales&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#d2d2d2";e.forEach((e=>{if("class"===e.type){const n=Et(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}}))}(t.scales,t.dataColors&&t.dataColors.nullColor),t};function Rt(){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]=Lt(t,e)),r[t].getStyle(n,o))},i={setTheme(i,a){e=function(e,t){const n="dark"===e.type?me:fe,r=de(!0,{},he,n),o=de(!0,{},r,{scales:null,palettes:{data:null,ui:null}},e);return o.palettes.data&&o.palettes.data.length||(o.palettes.data=r.palettes.data),o.palettes.ui&&o.palettes.ui.length||(o.palettes.ui=r.palettes.ui),o.scales&&o.scales.length||(o.scales=r.scales),t(o)}(i,Lt.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){return e.index<0||void 0===e.index?e.color:(void 0===t&&(t=this.uiPalettes()[0]||!1),t?void 0===t.colors[e.index]?e.color:t.colors[e.index]:e.color)}}}(e);const s=o.getStyle("","","color"),l=kt(s);n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["#333333","#ffffff"],t={},n=0;const r=e.map(kt);return{getBestContrastColor(o){if(!t[o]){n>1e3&&(t={},n=0);const i=kt(o),a=r.map((e=>Ot(i,e))),s=e[a.indexOf(Math.max(...a))];t[o]=s,n++}return t[o]}}}([s,l<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>a}};return Object.keys(re.prototype).forEach((e=>{o[e]=re.prototype[e]})),re.init(o),i.setTheme({},"light"),{externalAPI:o,internalAPI:i}}const qt=(e,t)=>new Promise((n=>{setTimeout((()=>n(t)),e)}));function It(){let{themes:e=[],root:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=Rt(),r=async r=>{const o=e.filter((e=>e.id===r))[0];let i="dark"===r?"dark":"light";if(o&&o.load)try{const e=await Promise.race([o.load(),qt(5e3,{__timedOut:!0})]);e.__timedOut||(i="dark"===e.type?"dark":"light",n.internalAPI.setTheme(e,r),t.setMuiThemeName(i))}catch(e){}else n.internalAPI.setTheme({type:i},r),t.setMuiThemeName(i)};return{setTheme:r,externalAPI:n.externalAPI}}function _t(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"}function Tt(){return Tt=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},Tt.apply(this,arguments)}function Nt(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var Dt={exports:{}};function Mt(){}function Pt(){}Pt.resetWarningCache=Mt;Dt.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Pt,resetWarningCache:Mt};return n.PropTypes=n,n}();var At=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}(),jt="-ms-",zt="-moz-",Ft="-webkit-",Bt=Math.abs,Ut=String.fromCharCode,Ht=Object.assign;function Wt(e){return e.trim()}function $t(e,t,n){return e.replace(t,n)}function Vt(e,t){return e.indexOf(t)}function Gt(e,t){return 0|e.charCodeAt(t)}function Kt(e,t,n){return e.slice(t,n)}function Zt(e){return e.length}function Xt(e){return e.length}function Jt(e,t){return t.push(e),e}var Yt=1,Qt=1,en=0,tn=0,nn=0,rn="";function on(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Yt,column:Qt,length:a,return:""}}function an(e,t){return Ht(on("",null,null,"",null,null,0),e,{length:-e.length},t)}function sn(){return nn=tn>0?Gt(rn,--tn):0,Qt--,10===nn&&(Qt=1,Yt--),nn}function ln(){return nn=tn<en?Gt(rn,tn++):0,Qt++,10===nn&&(Qt=1,Yt++),nn}function cn(){return Gt(rn,tn)}function un(){return tn}function pn(e,t){return Kt(rn,e,t)}function dn(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 hn(e){return Yt=Qt=1,en=Zt(rn=e),tn=0,[]}function fn(e){return rn="",e}function mn(e){return Wt(pn(tn-1,bn(91===e?e+2:40===e?e+1:e)))}function gn(e){for(;(nn=cn())&&nn<33;)ln();return dn(e)>2||dn(nn)>3?"":" "}function yn(e,t){for(;--t&&ln()&&!(nn<48||nn>102||nn>57&&nn<65||nn>70&&nn<97););return pn(e,un()+(t<6&&32==cn()&&32==ln()))}function bn(e){for(;ln();)switch(nn){case e:return tn;case 34:case 39:34!==e&&39!==e&&bn(nn);break;case 40:41===e&&bn(e);break;case 92:ln()}return tn}function vn(e,t){for(;ln()&&e+nn!==57&&(e+nn!==84||47!==cn()););return"/*"+pn(t,tn-1)+"*"+Ut(47===e?e:ln())}function En(e){for(;!dn(cn());)ln();return pn(e,tn)}function xn(e){return fn(Cn("",null,null,null,[""],e=hn(e),0,[0],e))}function Cn(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,p=a,d=0,h=0,f=0,m=1,g=1,y=1,b=0,v="",E=o,x=i,C=r,S=v;g;)switch(f=b,b=ln()){case 40:if(108!=f&&58==S.charCodeAt(p-1)){-1!=Vt(S+=$t(mn(b),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:S+=mn(b);break;case 9:case 10:case 13:case 32:S+=gn(f);break;case 92:S+=yn(un()-1,7);continue;case 47:switch(cn()){case 42:case 47:Jt(Ln(vn(ln(),un()),t,n),l);break;default:S+="/"}break;case 123*m:s[c++]=Zt(S)*y;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:h>0&&Zt(S)-p&&Jt(h>32?wn(S+";",r,n,p-1):wn($t(S," ","")+";",r,n,p-2),l);break;case 59:S+=";";default:if(Jt(C=Sn(S,t,n,c,u,o,s,v,E=[],x=[],p),i),123===b)if(0===u)Cn(S,t,C,C,E,i,p,s,x);else switch(d){case 100:case 109:case 115:Cn(e,C,C,r&&Jt(Sn(e,C,C,0,0,o,s,v,o,E=[],p),x),o,x,p,s,r?E:x);break;default:Cn(S,C,C,C,[""],x,0,s,x)}}c=u=h=0,m=y=1,v=S="",p=a;break;case 58:p=1+Zt(S),h=f;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==sn())continue;switch(S+=Ut(b),b*m){case 38:y=u>0?1:(S+="\f",-1);break;case 44:s[c++]=(Zt(S)-1)*y,y=1;break;case 64:45===cn()&&(S+=mn(ln())),d=cn(),u=p=Zt(v=S+=En(un())),b++;break;case 45:45===f&&2==Zt(S)&&(m=0)}}return i}function Sn(e,t,n,r,o,i,a,s,l,c,u){for(var p=o-1,d=0===o?i:[""],h=Xt(d),f=0,m=0,g=0;f<r;++f)for(var y=0,b=Kt(e,p+1,p=Bt(m=a[f])),v=e;y<h;++y)(v=Wt(m>0?d[y]+" "+b:$t(b,/&\f/g,d[y])))&&(l[g++]=v);return on(e,t,n,0===o?"rule":s,l,c,u)}function Ln(e,t,n){return on(e,t,n,"comm",Ut(nn),Kt(e,2,-2),0)}function wn(e,t,n,r){return on(e,t,n,"decl",Kt(e,0,r),Kt(e,r+1,-1),r)}function kn(e,t){switch(function(e,t){return(((t<<2^Gt(e,0))<<2^Gt(e,1))<<2^Gt(e,2))<<2^Gt(e,3)}(e,t)){case 5103:return Ft+"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 Ft+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ft+e+zt+e+jt+e+e;case 6828:case 4268:return Ft+e+jt+e+e;case 6165:return Ft+e+jt+"flex-"+e+e;case 5187:return Ft+e+$t(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return Ft+e+jt+"flex-item-"+$t(e,/flex-|-self/,"")+e;case 4675:return Ft+e+jt+"flex-line-pack"+$t(e,/align-content|flex-|-self/,"")+e;case 5548:return Ft+e+jt+$t(e,"shrink","negative")+e;case 5292:return Ft+e+jt+$t(e,"basis","preferred-size")+e;case 6060:return Ft+"box-"+$t(e,"-grow","")+Ft+e+jt+$t(e,"grow","positive")+e;case 4554:return Ft+$t(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return $t($t($t(e,/(zoom-|grab)/,Ft+"$1"),/(image-set)/,Ft+"$1"),e,"")+e;case 5495:case 3959:return $t(e,/(image-set\([^]*)/,Ft+"$1$`$1");case 4968:return $t($t(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ft+e+e;case 4095:case 3583:case 4068:case 2532:return $t(e,/(.+)-inline(.+)/,Ft+"$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(Zt(e)-1-t>6)switch(Gt(e,t+1)){case 109:if(45!==Gt(e,t+4))break;case 102:return $t(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+zt+(108==Gt(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Vt(e,"stretch")?kn($t(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Gt(e,t+1))break;case 6444:switch(Gt(e,Zt(e)-3-(~Vt(e,"!important")&&10))){case 107:return $t(e,":",":"+Ft)+e;case 101:return $t(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ft+(45===Gt(e,14)?"inline-":"")+"box$3$1"+Ft+"$2$3$1"+jt+"$2box$3")+e}break;case 5936:switch(Gt(e,t+11)){case 114:return Ft+e+jt+$t(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ft+e+jt+$t(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ft+e+jt+$t(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ft+e+jt+e+e}return e}function On(e,t){for(var n="",r=Xt(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Rn(e,t,n,r){switch(e.type){case"@import":case"decl":return e.return=e.return||e.value;case"comm":return"";case"@keyframes":return e.return=e.value+"{"+On(e.children,r)+"}";case"rule":e.value=e.props.join(",")}return Zt(n=On(e.children,r))?e.return=e.value+"{"+n+"}":""}function qn(e){var t=Xt(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}var In=function(e,t,n){for(var r=0,o=0;r=o,o=cn(),38===r&&12===o&&(t[n]=1),!dn(o);)ln();return pn(e,tn)},_n=function(e,t){return fn(function(e,t){var n=-1,r=44;do{switch(dn(r)){case 0:38===r&&12===cn()&&(t[n]=1),e[n]+=In(tn-1,t,n);break;case 2:e[n]+=mn(r);break;case 4:if(44===r){e[++n]=58===cn()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Ut(r)}}while(r=ln());return e}(hn(e),t))},Tn=new WeakMap,Nn=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)||Tn.get(n))&&!r){Tn.set(e,!0);for(var o=[],i=_n(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},Dn=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},Mn="undefined"!=typeof document,Pn=Mn?void 0:function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}((function(){return function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(){var e={};return function(t){return e[t]}}))})),An=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case"decl":e.return=kn(e.value,e.length);break;case"@keyframes":return On([an(e,{value:$t(e.value,"@","@"+Ft)})],r);case"rule":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 On([an(e,{props:[$t(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return On([an(e,{props:[$t(t,/:(plac\w+)/,":-webkit-input-$1")]}),an(e,{props:[$t(t,/:(plac\w+)/,":-moz-$1")]}),an(e,{props:[$t(t,/:(plac\w+)/,jt+"input-$1")]})],r)}return""}))}}],jn={exports:{}},zn={},Fn=t,Bn=Symbol.for("react.element"),Un=Symbol.for("react.fragment"),Hn=Object.prototype.hasOwnProperty,Wn=Fn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,$n={key:!0,ref:!0,__self:!0,__source:!0};function Vn(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)Hn.call(t,r)&&!$n.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:Bn,type:e,key:i,ref:a,props:o,_owner:Wn.current}}zn.Fragment=Un,zn.jsx=Vn,zn.jsxs=Vn,jn.exports=zn;const Gn=function(e){var t=e.key;if(Mn&&"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,i=e.stylisPlugins||An,a={},s=[];Mn&&(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++)a[t[n]]=!0;s.push(e)})));var l,c=[Nn,Dn];if(Mn){var u,p=[Rn,(l=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],d=qn(c.concat(i,p));o=function(e,t,n,r){u=n,On(xn(e?e+"{"+t.styles+"}":t.styles),d),r&&(y.inserted[t.name]=!0)}}else{var h=[Rn],f=qn(c.concat(i,h)),m=Pn(i)(t),g=function(e,t){var n=t.name;return void 0===m[n]&&(m[n]=On(xn(e?e+"{"+t.styles+"}":t.styles),f)),m[n]};o=function(e,t,n,r){var o=t.name,i=g(e,t);return void 0===y.compat?(r&&(y.inserted[o]=!0),i):r?void(y.inserted[o]=i):i}}var y={key:t,sheet:new At({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return y.sheet.hydrate(s),y}({key:"css",prepend:!0});function Kn(e){const{injectFirst:t,children:n}=e;return t?jn.exports.jsx(v,{value:Gn,children:n}):n}
8
+ /** @license MUI v5.8.0
9
+ *
10
+ * This source code is licensed under the MIT license found in the
11
+ * LICENSE file in the root directory of this source tree.
12
+ */
13
+ function Zn(e,t){return b(e,t)}function Xn(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function Jn(e,t,n={clone:!0}){const r=n.clone?Tt({},e):e;return Xn(e)&&Xn(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Xn(t[o])&&o in e&&Xn(e[o])?r[o]=Jn(e[o],t[o],n):r[o]=t[o])})),r}function Yn(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}(Dt.exports.element,()=>null).isRequired=(Dt.exports.element.isRequired,()=>null),Dt.exports.elementType;var Qn,er={},tr=Symbol.for("react.element"),nr=Symbol.for("react.portal"),rr=Symbol.for("react.fragment"),or=Symbol.for("react.strict_mode"),ir=Symbol.for("react.profiler"),ar=Symbol.for("react.provider"),sr=Symbol.for("react.context"),lr=Symbol.for("react.server_context"),cr=Symbol.for("react.forward_ref"),ur=Symbol.for("react.suspense"),pr=Symbol.for("react.suspense_list"),dr=Symbol.for("react.memo"),hr=Symbol.for("react.lazy"),fr=Symbol.for("react.offscreen");function mr(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case tr:switch(e=e.type){case rr:case ir:case or:case ur:case pr:return e;default:switch(e=e&&e.$$typeof){case lr:case sr:case cr:case hr:case dr:case ar:return e;default:return t}}case nr:return t}}}function gr(e){if("string"!=typeof e)throw new Error(Yn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function yr(e,t){"function"==typeof e?e(t):e&&(e.current=t)}Qn=Symbol.for("react.module.reference"),er.ContextConsumer=sr,er.ContextProvider=ar,er.Element=tr,er.ForwardRef=cr,er.Fragment=rr,er.Lazy=hr,er.Memo=dr,er.Portal=nr,er.Profiler=ir,er.StrictMode=or,er.Suspense=ur,er.SuspenseList=pr,er.isAsyncMode=function(){return!1},er.isConcurrentMode=function(){return!1},er.isContextConsumer=function(e){return mr(e)===sr},er.isContextProvider=function(e){return mr(e)===ar},er.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===tr},er.isForwardRef=function(e){return mr(e)===cr},er.isFragment=function(e){return mr(e)===rr},er.isLazy=function(e){return mr(e)===hr},er.isMemo=function(e){return mr(e)===dr},er.isPortal=function(e){return mr(e)===nr},er.isProfiler=function(e){return mr(e)===ir},er.isStrictMode=function(e){return mr(e)===or},er.isSuspense=function(e){return mr(e)===ur},er.isSuspenseList=function(e){return mr(e)===pr},er.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===rr||e===ir||e===or||e===ur||e===pr||e===fr||"object"==typeof e&&null!==e&&(e.$$typeof===hr||e.$$typeof===dr||e.$$typeof===ar||e.$$typeof===sr||e.$$typeof===cr||e.$$typeof===Qn||void 0!==e.getModuleId)},er.typeOf=mr,"undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),Dt.exports.oneOfType([Dt.exports.func,Dt.exports.object]);const br="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;function vr(t){const n=e.useRef(t);return br((()=>{n.current=t})),e.useCallback(((...e)=>(0,n.current)(...e)),[])}function Er(t,n){return e.useMemo((()=>null==t&&null==n?null:e=>{yr(t,e),yr(n,e)}),[t,n])}let xr,Cr=!0,Sr=!1;const Lr={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 wr(e){e.metaKey||e.altKey||e.ctrlKey||(Cr=!0)}function kr(){Cr=!1}function Or(){"hidden"===this.visibilityState&&Sr&&(Cr=!0)}function Rr(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Cr||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Lr[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function qr(){const t=e.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",wr,!0),t.addEventListener("mousedown",kr,!0),t.addEventListener("pointerdown",kr,!0),t.addEventListener("touchstart",kr,!0),t.addEventListener("visibilitychange",Or,!0))}),[]),n=e.useRef(!1);return{isFocusVisibleRef:n,onFocus:function(e){return!!Rr(e)&&(n.current=!0,!0)},onBlur:function(){return!!n.current&&(Sr=!0,window.clearTimeout(xr),xr=window.setTimeout((()=>{Sr=!1}),100),n.current=!1,!0)},ref:t}}function Ir(){return null}function _r(e,t,n){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>(r&&(n&&n[r]&&e.push(n[r]),e.push(t(r))),e)),[]).join(" ")})),r}Ir.isRequired=Ir;const Tr=e=>e,Nr=(()=>{let e=Tr;return{configure(t){e=t},generate:t=>e(t),reset(){e=Tr}}})(),Dr={active:"Mui-active",checked:"Mui-checked",completed:"Mui-completed",disabled:"Mui-disabled",error:"Mui-error",expanded:"Mui-expanded",focused:"Mui-focused",focusVisible:"Mui-focusVisible",required:"Mui-required",selected:"Mui-selected"};function Mr(e,t){return Dr[t]||`${Nr.generate(e)}-${t}`}function Pr(e,t){const n={};return t.forEach((t=>{n[t]=Mr(e,t)})),n}function Ar(e,t){return t?Jn(e,t,{clone:!1}):e}const jr={xs:0,sm:600,md:900,lg:1200,xl:1536},zr={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${jr[e]}px)`};function Fr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||zr;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||zr;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||jr).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function Br(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 Ur(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Br(e,n)||r,t&&(o=t(o)),o}function Hr(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=Br(e.theme,r)||{};return Fr(e,i,(e=>{let r=Ur(a,o,e);return e===r&&"string"==typeof e&&(r=Ur(a,o,`${t}${"default"===e?"":gr(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}function Wr(...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]?Ar(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}const $r={m:"margin",p:"padding"},Vr={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Gr={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Kr=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!Gr[e])return[e];e=Gr[e]}const[t,n]=e.split(""),r=$r[t],o=Vr[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),Zr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd","p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Xr(e,t,n,r){var o;const i=null!=(o=Br(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function Jr(e){return Xr(e,"spacing",8)}function Yr(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 Qr(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Yr(t,n),e)),{})}(Kr(n),r);return Fr(e,e[n],o)}function eo(e){return function(e,t){const n=Jr(e.theme);return Object.keys(e).map((r=>Qr(e,t,r,n))).reduce(Ar,{})}(e,Zr)}function to(e){return"number"!=typeof e?e:`${e}px solid`}eo.propTypes={},eo.filterProps=Zr;const no=Hr({prop:"border",themeKey:"borders",transform:to}),ro=Hr({prop:"borderTop",themeKey:"borders",transform:to}),oo=Hr({prop:"borderRight",themeKey:"borders",transform:to}),io=Hr({prop:"borderBottom",themeKey:"borders",transform:to}),ao=Hr({prop:"borderLeft",themeKey:"borders",transform:to}),so=Hr({prop:"borderColor",themeKey:"palette"}),lo=Hr({prop:"borderTopColor",themeKey:"palette"}),co=Hr({prop:"borderRightColor",themeKey:"palette"}),uo=Hr({prop:"borderBottomColor",themeKey:"palette"}),po=Hr({prop:"borderLeftColor",themeKey:"palette"}),ho=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Xr(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Yr(t,e)});return Fr(e,e.borderRadius,n)}return null};ho.propTypes={},ho.filterProps=["borderRadius"];const fo=Wr(no,ro,oo,io,ao,so,lo,co,uo,po,ho);var mo=Wr(Hr({prop:"displayPrint",cssProperty:!1,transform:e=>({"@media print":{display:e}})}),Hr({prop:"display"}),Hr({prop:"overflow"}),Hr({prop:"textOverflow"}),Hr({prop:"visibility"}),Hr({prop:"whiteSpace"}));const go=Wr(Hr({prop:"flexBasis"}),Hr({prop:"flexDirection"}),Hr({prop:"flexWrap"}),Hr({prop:"justifyContent"}),Hr({prop:"alignItems"}),Hr({prop:"alignContent"}),Hr({prop:"order"}),Hr({prop:"flex"}),Hr({prop:"flexGrow"}),Hr({prop:"flexShrink"}),Hr({prop:"alignSelf"}),Hr({prop:"justifyItems"}),Hr({prop:"justifySelf"})),yo=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Xr(e.theme,"spacing",8),n=e=>({gap:Yr(t,e)});return Fr(e,e.gap,n)}return null};yo.propTypes={},yo.filterProps=["gap"];const bo=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Xr(e.theme,"spacing",8),n=e=>({columnGap:Yr(t,e)});return Fr(e,e.columnGap,n)}return null};bo.propTypes={},bo.filterProps=["columnGap"];const vo=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Xr(e.theme,"spacing",8),n=e=>({rowGap:Yr(t,e)});return Fr(e,e.rowGap,n)}return null};vo.propTypes={},vo.filterProps=["rowGap"];const Eo=Wr(yo,bo,vo,Hr({prop:"gridColumn"}),Hr({prop:"gridRow"}),Hr({prop:"gridAutoFlow"}),Hr({prop:"gridAutoColumns"}),Hr({prop:"gridAutoRows"}),Hr({prop:"gridTemplateColumns"}),Hr({prop:"gridTemplateRows"}),Hr({prop:"gridTemplateAreas"}),Hr({prop:"gridArea"})),xo=Wr(Hr({prop:"color",themeKey:"palette"}),Hr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),Hr({prop:"backgroundColor",themeKey:"palette"}));var Co=Wr(Hr({prop:"position"}),Hr({prop:"zIndex",themeKey:"zIndex"}),Hr({prop:"top"}),Hr({prop:"right"}),Hr({prop:"bottom"}),Hr({prop:"left"}));const So=Hr({prop:"boxShadow",themeKey:"shadows"});function Lo(e){return e<=1&&0!==e?100*e+"%":e}const wo=Hr({prop:"width",transform:Lo}),ko=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r,o;return{maxWidth:(null==(n=e.theme)||null==(r=n.breakpoints)||null==(o=r.values)?void 0:o[t])||jr[t]||Lo(t)}};return Fr(e,e.maxWidth,t)}return null};ko.filterProps=["maxWidth"];const Oo=Hr({prop:"minWidth",transform:Lo}),Ro=Hr({prop:"height",transform:Lo}),qo=Hr({prop:"maxHeight",transform:Lo}),Io=Hr({prop:"minHeight",transform:Lo});Hr({prop:"size",cssProperty:"width",transform:Lo}),Hr({prop:"size",cssProperty:"height",transform:Lo});const _o=Wr(wo,ko,Oo,Ro,qo,Io,Hr({prop:"boxSizing"})),To=Hr({prop:"fontFamily",themeKey:"typography"}),No=Hr({prop:"fontSize",themeKey:"typography"}),Do=Hr({prop:"fontStyle",themeKey:"typography"}),Mo=Hr({prop:"fontWeight",themeKey:"typography"}),Po=Hr({prop:"letterSpacing"}),Ao=Hr({prop:"textTransform"}),jo=Hr({prop:"lineHeight"}),zo=Hr({prop:"textAlign"}),Fo=Wr(Hr({prop:"typography",cssProperty:!1,themeKey:"typography"}),To,No,Do,Mo,Po,jo,zo,Ao),Bo={borders:fo.filterProps,display:mo.filterProps,flexbox:go.filterProps,grid:Eo.filterProps,positions:Co.filterProps,palette:xo.filterProps,shadows:So.filterProps,sizing:_o.filterProps,spacing:eo.filterProps,typography:Fo.filterProps},Uo={borders:fo,display:mo,flexbox:go,grid:Eo,positions:Co,palette:xo,shadows:So,sizing:_o,spacing:eo,typography:Fo},Ho=Object.keys(Bo).reduce(((e,t)=>(Bo[t].forEach((n=>{e[n]=Uo[t]})),e)),{});const Wo=function(e=Uo){const t=Object.keys(e).reduce(((t,n)=>(e[n].filterProps.forEach((r=>{t[r]=e[n]})),t)),{});function n(e,n,r){const o={[e]:n,theme:r},i=t[e];return i?i(o):{[e]:n}}return function e(r){const{sx:o,theme:i={}}=r||{};if(!o)return null;function a(r){let o=r;if("function"==typeof r)o=r(i);else if("object"!=typeof r)return r;if(!o)return null;const a=function(e={}){var t;return(null==e||null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),s=Object.keys(a);let l=a;return Object.keys(o).forEach((r=>{const a=(s=o[r],c=i,"function"==typeof s?s(c):s);var s,c;if(null!=a)if("object"==typeof a)if(t[r])l=Ar(l,n(r,a,i));else{const t=Fr({theme:i},a,(e=>({[r]: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))}(t,a)?l=Ar(l,t):l[r]=e({sx:a,theme:i})}else l=Ar(l,n(r,a,i))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(s,l)}return Array.isArray(o)?o.map(a):a(o)}}();Wo.filterProps=["sx"];const $o=["sx"];function Vo(e){const{sx:t}=e,n=Nt(e,$o),{systemProps:r,otherProps:o}=(e=>{const t={systemProps:{},otherProps:{}};return Object.keys(e).forEach((n=>{Ho[n]?t.systemProps[n]=e[n]:t.otherProps[n]=e[n]})),t})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Xn(n)?Tt({},r,n):r}:Tt({},r,t),Tt({},o,{sx:i})}function Go(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Go(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Ko(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Go(e))&&(r&&(r+=" "),r+=t);return r}const Zo=["values","unit","step"];function Xo(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Nt(e,Zo),i=(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)=>Tt({},e,{[t.key]:t.val})),{})})(t),a=Object.keys(i);function s(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function l(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function c(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return Tt({keys:a,values:i,up:s,down:l,between:c,only:function(e){return a.indexOf(e)+1<a.length?c(e,a[a.indexOf(e)+1]):s(e)},not:function(e){const t=a.indexOf(e);return 0===t?s(a[1]):t===a.length-1?l(a[t]):c(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}const Jo={borderRadius:4};function Yo(e=8){if(e.mui)return e;const t=Jr({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}const Qo=["breakpoints","palette","spacing","shape"];function ei(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Nt(e,Qo),s=Xo(n),l=Yo(o);let c=Jn({breakpoints:s,direction:"ltr",components:{},palette:Tt({mode:"light"},r),spacing:l,shape:Tt({},Jo,i)},a);return c=t.reduce(((e,t)=>Jn(e,t)),c),c}const ti=e.createContext(null);function ni(){return e.useContext(ti)}var ri="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function oi(t){const{children:n,theme:r}=t,o=ni(),i=e.useMemo((()=>{const e=null===o?r:function(e,t){if("function"==typeof t)return t(e);return Tt({},e,t)}(o,r);return null!=e&&(e[ri]=null!==o),e}),[r,o]);return jn.exports.jsx(ti.Provider,{value:i,children:n})}function ii(e=null){const t=ni();return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const ai=ei();function si(e=ai){return ii(e)}const li=["className","component"];!function(t={}){const{defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o,styleFunctionSx:i=Wo}=t,a=Zn("div")(i),s=e.forwardRef((function(e,t){const i=si(n),s=Vo(e),{className:l,component:c="div"}=s,u=Nt(s,li);return jn.exports.jsx(a,Tt({as:c,ref:t,className:Ko(l,o?o(r):r),theme:i},u))}))}();const ci=["variant"];function ui(e){return 0===e.length}function pi(e){const{variant:t}=e,n=Nt(e,ci);let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?ui(r)?e[t]:gr(e[t]):`${ui(r)?t:gr(t)}${gr(e[t].toString())}`})),r}const di=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],hi=["theme"],fi=["theme"];function mi(e){return 0===Object.keys(e).length}function gi(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const yi=ei();function bi(e={}){const{defaultTheme:t=yi,rootShouldForwardProp:n=gi,slotShouldForwardProp:r=gi,styleFunctionSx:o=Wo}=e;return(e,i={})=>{const{name:a,slot:s,skipVariantsResolver:l,skipSx:c,overridesResolver:u}=i,p=Nt(i,di),d=void 0!==l?l:s&&"Root"!==s||!1,h=c||!1;let f=gi;"Root"===s?f=n:s&&(f=r);const m=Zn(e,Tt({shouldForwardProp:f,label:undefined},p)),g=(e,...n)=>{const r=n?n.map((e=>"function"==typeof e&&e.__emotion_real!==e?n=>{let{theme:r}=n,o=Nt(n,hi);return e(Tt({theme:mi(r)?t:r},o))}:e)):[];let i=e;a&&u&&r.push((e=>{const n=mi(e.theme)?t:e.theme,r=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(a,n);if(r){const t={};return Object.entries(r).forEach((([r,o])=>{t[r]="function"==typeof o?o(Tt({},e,{theme:n})):o})),u(e,t)}return null})),a&&!d&&r.push((e=>{const n=mi(e.theme)?t:e.theme;return((e,t,n,r)=>{var o,i;const{ownerState:a={}}=e,s=[],l=null==n||null==(o=n.components)||null==(i=o[r])?void 0:i.variants;return l&&l.forEach((n=>{let r=!0;Object.keys(n.props).forEach((t=>{a[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&s.push(t[pi(n.props)])})),s})(e,((e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach((e=>{const t=pi(e.props);r[t]=e.style})),r})(a,n),n,a)})),h||r.push((e=>{const n=mi(e.theme)?t:e.theme;return o(Tt({},e,{theme:n}))}));const s=r.length-n.length;if(Array.isArray(e)&&s>0){const t=new Array(s).fill("");i=[...e,...t],i.raw=[...e.raw,...t]}else"function"==typeof e&&e.__emotion_real!==e&&(i=n=>{let{theme:r}=n,o=Nt(n,fi);return e(Tt({theme:mi(r)?t:r},o))});return m(i,...r)};return m.withConfig&&(g.withConfig=m.withConfig),g}}const vi=bi();function Ei(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?function(e,t){const n=Tt({},t);return Object.keys(e).forEach((t=>{void 0===n[t]&&(n[t]=e[t])})),n}(t.components[n].defaultProps,r):r}function xi({props:e,name:t,defaultTheme:n}){return Ei({theme:si(n),name:t,props:e})}function Ci(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function Si(e){if(e.type)return e;if("#"===e.charAt(0))return Si(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Yn(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(Yn(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const Li=e=>{const t=Si(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};function wi(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 ki(e){let t="hsl"===(e=Si(e)).type?Si(function(e){e=Si(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let s="rgb";const l=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),wi({type:s,values:l})}(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 Oi(e,t){return e=Si(e),t=Ci(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,wi(e)}function Ri(e){const t=si();return jn.exports.jsx(x.Provider,{value:"object"==typeof t?t:{},children:e.children})}function qi(e){const{children:t,theme:n}=e;return jn.exports.jsx(oi,{theme:n,children:jn.exports.jsx(Ri,{children:t})})}const Ii="mode",_i="color-scheme",Ti="data-color-scheme";const Ni=["className","component","disableGutters","fixed","maxWidth","classes"],Di=ei(),Mi=vi("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${gr(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),Pi=e=>xi({props:e,name:"MuiContainer",defaultTheme:Di});!function(t={}){const{createStyledComponent:n=Mi,useThemeProps:r=Pi,componentName:o="MuiContainer"}=t,i=n((({theme:e,ownerState:t})=>Tt({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}})),(({theme:e,ownerState:t})=>t.fixed&&Object.keys(e.breakpoints.values).reduce(((t,n)=>{const r=n,o=e.breakpoints.values[r];return 0!==o&&(t[e.breakpoints.up(r)]={maxWidth:`${o}${e.breakpoints.unit}`}),t}),{})),(({theme:e,ownerState:t})=>Tt({},"xs"===t.maxWidth&&{[e.breakpoints.up("xs")]:{maxWidth:Math.max(e.breakpoints.values.xs,444)}},t.maxWidth&&"xs"!==t.maxWidth&&{[e.breakpoints.up(t.maxWidth)]:{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`}}))),a=e.forwardRef((function(e,t){const n=r(e),{className:a,component:s="div",disableGutters:l=!1,fixed:c=!1,maxWidth:u="lg"}=n,p=Nt(n,Ni),d=Tt({},n,{component:s,disableGutters:l,fixed:c,maxWidth:u}),h=((e,t)=>{const{classes:n,fixed:r,disableGutters:o,maxWidth:i}=e;return _r({root:["root",i&&`maxWidth${gr(String(i))}`,r&&"fixed",o&&"disableGutters"]},(e=>Mr(t,e)),n)})(d,o);return jn.exports.jsx(i,Tt({as:s,ownerState:d,className:Ko(h.root,a),ref:t},p))}))}(),Pr("MuiContainer",["root","disableGutters","fixed","maxWidthXs","maxWidthSm","maxWidthMd","maxWidthLg","maxWidthXl"]);const Ai=["defaultProps","mixins","overrides","palette","props","styleOverrides"],ji=["type","mode"];var zi;Pr("BaseBadge",["root","badge","invisible"]),Pr("ButtonUnstyled",["root","active","disabled","focusVisible"]),Pr("BaseFormControl",["root","disabled","error","filled","focused","required"]),Pr("MuiInput",["root","formControl","focused","disabled","error","multiline","input","inputMultiline","inputTypeSearch","adornedStart","adornedEnd"]),function(e){e.blur="blur",e.focus="focus",e.keyDown="keyDown",e.optionClick="optionClick",e.optionHover="optionHover",e.optionsChange="optionsChange",e.setValue="setValue",e.setHighlight="setHighlight",e.textNavigation="textNagivation"}(zi||(zi={}));e.createContext(null).displayName="MenuUnstyledContext",Pr("MuiMenuUnstyled",["root","listbox","expanded"]),Pr("MuiMenuItemUnstyled",["root","disabled","focusVisible"]),Pr("MuiModal",["root","hidden"]),Pr("MuiSelectUnstyled",["root","button","listbox","popper","active","expanded","disabled","focusVisible"]),Pr("MuiOptionGroupUnstyled",["root","label","list"]),Pr("MuiOptionUnstyled",["root","disabled","selected","highlighted"]),Pr("MuiSlider",["root","active","focusVisible","disabled","dragging","marked","vertical","trackInverted","trackFalse","rail","track","mark","markActive","markLabel","markLabelActive","thumb","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel"]),Pr("MuiSwitch",["root","input","track","thumb","checked","disabled","focusVisible","readOnly"]),Pr("TabPanelUnstyled",["root","hidden"]),Pr("TabsUnstyled",["root","horizontal","vertical"]),Pr("TabsListUnstyled",["root","horizontal","vertical"]),Pr("TabUnstyled",["root","selected","disabled"]);const Fi={black:"#000",white:"#fff"},Bi={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"},Ui="#f3e5f5",Hi="#ce93d8",Wi="#ba68c8",$i="#ab47bc",Vi="#9c27b0",Gi="#7b1fa2",Ki="#e57373",Zi="#ef5350",Xi="#f44336",Ji="#d32f2f",Yi="#c62828",Qi="#ffb74d",ea="#ffa726",ta="#ff9800",na="#f57c00",ra="#e65100",oa="#e3f2fd",ia="#90caf9",aa="#42a5f5",sa="#1976d2",la="#1565c0",ca="#4fc3f7",ua="#29b6f6",pa="#03a9f4",da="#0288d1",ha="#01579b",fa="#81c784",ma="#66bb6a",ga="#4caf50",ya="#388e3c",ba="#2e7d32",va="#1b5e20",Ea=["mode","contrastThreshold","tonalOffset"],xa={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:Fi.white,default:Fi.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}},Ca={text:{primary:Fi.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:Fi.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 Sa(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=function(e,t){if(e=Si(e),t=Ci(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 wi(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Si(e),t=Ci(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 wi(e)}(e.main,i)))}function La(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Nt(e,Ea),i=e.primary||function(e="light"){return"dark"===e?{main:ia,light:oa,dark:aa}:{main:sa,light:aa,dark:la}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Hi,light:Ui,dark:$i}:{main:Vi,light:Wi,dark:Gi}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Xi,light:Ki,dark:Ji}:{main:Ji,light:Zi,dark:Yi}}(t),l=e.info||function(e="light"){return"dark"===e?{main:ua,light:ca,dark:da}:{main:da,light:pa,dark:ha}}(t),c=e.success||function(e="light"){return"dark"===e?{main:ma,light:fa,dark:ya}:{main:ba,light:ga,dark:va}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:ea,light:Qi,dark:na}:{main:"#ed6c02",light:ta,dark:ra}}(t);function p(e){const t=function(e,t){const n=ki(e),r=ki(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Ca.text.primary)>=n?Ca.text.primary:xa.text.primary;return t}const d=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Tt({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Yn(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Yn(12,t?` (${t})`:"",JSON.stringify(e.main)));return Sa(e,"light",o,r),Sa(e,"dark",i,r),e.contrastText||(e.contrastText=p(e.main)),e},h={dark:Ca,light:xa};return Jn(Tt({common:Tt({},Fi),mode:t,primary:d({color:i,name:"primary"}),secondary:d({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:s,name:"error"}),warning:d({color:u,name:"warning"}),info:d({color:l,name:"info"}),success:d({color:c,name:"success"}),grey:Bi,contrastThreshold:n,getContrastText:p,augmentColor:d,tonalOffset:r},h[t]),o)}const wa=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const ka={textTransform:"uppercase"},Oa='"Roboto", "Helvetica", "Arial", sans-serif';function Ra(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Oa,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:p}=n,d=Nt(n,wa),h=o/14,f=p||(e=>e/c*h+"rem"),m=(e,t,n,o,i)=>{return Tt({fontFamily:r,fontWeight:e,fontSize:f(t),lineHeight:n},r===Oa?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,u);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,ka),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,ka)};return Jn(Tt({htmlFontSize:c,pxToRem:f,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),d,{clone:!1})}function qa(...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 Ia=["none",qa(0,2,1,-1,0,1,1,0,0,1,3,0),qa(0,3,1,-2,0,2,2,0,0,1,5,0),qa(0,3,3,-2,0,3,4,0,0,1,8,0),qa(0,2,4,-1,0,4,5,0,0,1,10,0),qa(0,3,5,-1,0,5,8,0,0,1,14,0),qa(0,3,5,-1,0,6,10,0,0,1,18,0),qa(0,4,5,-2,0,7,10,1,0,2,16,1),qa(0,5,5,-3,0,8,10,1,0,3,14,2),qa(0,5,6,-3,0,9,12,1,0,3,16,2),qa(0,6,6,-3,0,10,14,1,0,4,18,3),qa(0,6,7,-4,0,11,15,1,0,4,20,3),qa(0,7,8,-4,0,12,17,2,0,5,22,4),qa(0,7,8,-4,0,13,19,2,0,5,24,4),qa(0,7,9,-4,0,14,21,2,0,5,26,4),qa(0,8,9,-5,0,15,22,2,0,6,28,5),qa(0,8,10,-5,0,16,24,2,0,6,30,5),qa(0,8,11,-5,0,17,26,2,0,6,32,5),qa(0,9,11,-5,0,18,28,2,0,7,34,6),qa(0,9,12,-6,0,19,29,2,0,7,36,6),qa(0,10,13,-6,0,20,31,3,0,8,38,7),qa(0,10,13,-6,0,21,33,3,0,8,40,7),qa(0,10,14,-6,0,22,35,3,0,8,42,7),qa(0,11,14,-7,0,23,36,3,0,9,44,8),qa(0,11,15,-7,0,24,38,3,0,9,46,8)],_a=["duration","easing","delay"],Ta={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)"},Na={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Da(e){return`${Math.round(e)}ms`}function Ma(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Pa(e){const t=Tt({},Ta,e.easing),n=Tt({},Na,e.duration);return Tt({getAutoHeightDuration:Ma,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return Nt(r,_a),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Da(o)} ${i} ${"string"==typeof a?a:Da(a)}`)).join(",")}},e,{easing:t,duration:n})}const Aa={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},ja=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function za(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Nt(e,ja),s=La(r),l=ei(e);let c=Jn(l,{mixins:(u=l.breakpoints,p=n,Tt({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},p)),palette:s,shadows:Ia.slice(),typography:Ra(s,i),transitions:Pa(o),zIndex:Tt({},Aa)});var u,p;return c=Jn(c,a),c=t.reduce(((e,t)=>Jn(e,t)),c),c}const Fa=za();function Ba(){return si(Fa)}function Ua({props:e,name:t}){return xi({props:e,name:t,defaultTheme:Fa})}const Ha=e=>gi(e)&&"classes"!==e,Wa=bi({defaultTheme:Fa,rootShouldForwardProp:Ha});Pr("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 $a=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};Wa("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 Tt({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&&Tt({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Oi("#fff",$a(t.elevation))}, ${Oi("#fff",$a(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));const Va=["colorSchemes"],Ga=["palette"],Ka=[...Array(25)].map(((e,t)=>{if(0===t)return;const n=$a(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`}));const Za=function(e={},...t){var n,r,o,i,a,s;const{colorSchemes:l={}}=e,c=za(Tt({},Nt(e,Va),l.light&&{palette:null==(n=l.light)?void 0:n.palette})),{palette:u}=c,p=Nt(c,Ga),{palette:d}=za({palette:Tt({mode:"dark"},null==(r=l.dark)?void 0:r.palette)});let h=Tt({},p,{colorSchemes:Tt({},l,{light:Tt({},l.light,{palette:u,opacity:Tt({placeholder:.42,inputTouchBottomLine:.42},null==(o=l.light)?void 0:o.opacity),overlays:(null==(i=l.light)?void 0:i.overlays)||[]}),dark:Tt({},l.dark,{palette:d,opacity:Tt({placeholder:.5,inputTouchBottomLine:.7},null==(a=l.dark)?void 0:a.opacity),overlays:(null==(s=l.dark)?void 0:s.overlays)||Ka})})});return Object.keys(h.colorSchemes).forEach((e=>{const t=h.colorSchemes[e].palette;"dark"===e?(t.common.background=t.common.background||"#000",t.common.onBackground=t.common.onBackground||"#fff"):(t.common.background=t.common.background||"#fff",t.common.onBackground=t.common.onBackground||"#000"),t.common.backgroundChannel=Li(t.common.background),t.common.onBackgroundChannel=Li(t.common.onBackground),t.dividerChannel=Li(t.divider),t.grey.dark||(t.grey.dark=t.grey[700]),Object.keys(t).forEach((e=>{const n=t[e];n.main&&(t[e].mainChannel=Li(n.main)),n.light&&(t[e].lightChannel=Li(n.light)),n.dark&&(t[e].darkChannel=Li(n.dark)),n.contrastText&&(t[e].contrastTextChannel=Li(n.contrastText)),n.primary&&(t[e].primaryChannel=Li(n.primary)),n.secondary&&(t[e].secondaryChannel=Li(n.secondary)),n.active&&(t[e].activeChannel=Li(n.active))}))})),h=t.reduce(((e,t)=>Jn(e,t)),h),h}();function Xa(e,t){return Xa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Xa(e,t)}function Ja(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Xa(e,t)}function Ya(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}!function(t){const{theme:n={},attribute:r=Ti,modeStorageKey:o=Ii,colorSchemeStorageKey:i=_i,defaultMode:a="light",defaultColorScheme:s,disableTransitionOnChange:l=!1,enableColorScheme:c=!0,prefix:u="",shouldSkipGeneratingVar:p,resolveTheme:d}=t;(!n.colorSchemes||"string"==typeof s&&!n.colorSchemes[s]||"object"==typeof s&&!n.colorSchemes[null==s?void 0:s.light]||"object"==typeof s&&!n.colorSchemes[null==s?void 0:s.dark])&&console.error(`MUI: \`${s}\` does not exist in \`theme.colorSchemes\`.`);const h=e.createContext(void 0)}({theme:Za,attribute:"data-mui-color-scheme",modeStorageKey:"mui-mode",colorSchemeStorageKey:"mui-color-scheme",defaultColorScheme:{light:"light",dark:"dark"},prefix:"md",resolveTheme:e=>Tt({},e,{typography:Ra(e.palette,e.typography)}),shouldSkipGeneratingVar:e=>!!e[0].match(/(typography|mixins|breakpoints|direction|transitions)/)});var Qa=!1,es=t.createContext(null),ts="entering",ns="entered",rs=function(e){function n(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o="exited",r.appearStatus=ts):o=ns:o=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",r.state={status:o},r.nextCallback=null,r}Ja(n,e),n.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var r=n.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==ts&&n!==ns&&(t=ts):n!==ts&&n!==ns||(t="exiting")}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.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}},r.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===ts?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},r.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[y.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Qa?this.safeSetState({status:ns},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:ts},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:ns},(function(){t.props.onEntered(i,a)}))}))})))},r.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:y.findDOMNode(this);t&&!Qa?(this.props.onExit(r),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.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},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:y.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],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if("unmounted"===e)return null;var n=this.props,r=n.children;n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef;var o=Nt(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return t.createElement(es.Provider,{value:null},"function"==typeof r?r(e,o):t.cloneElement(t.Children.only(r),o))},n}(t.Component);function os(){}rs.contextType=es,rs.propTypes={},rs.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:os,onEntering:os,onEntered:os,onExit:os,onExiting:os,onExited:os},rs.UNMOUNTED="unmounted",rs.EXITED="exited",rs.ENTERING=ts,rs.ENTERED=ns,rs.EXITING="exiting";var is=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))},as=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=Ya(n.className,r):n.setAttribute("class",Ya(n.className&&n.className.baseVal||"",r)));var n,r}))},ss=function(e){function n(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}Ja(n,e);var r=n.prototype;return r.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&e.scrollTop,r&&(this.appliedClasses[t][n]=r,is(e,r))},r.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&as(e,r),o&&as(e,o),i&&as(e,i)},r.render=function(){var e=this.props;e.classNames;var n=Nt(e,["classNames"]);return t.createElement(rs,Tt({},n,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},n}(t.Component);function ls(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cs(e,t){var o=Object.create(null);return e&&n.map(e,(function(e){return e})).forEach((function(e){o[e.key]=function(e){return t&&r(e)?t(e):e}(e)})),o}function us(e,t,n){return null!=n[t]?n[t]:e.props[t]}function ps(e,t,n){var i=cs(e.children),a=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,i);return Object.keys(a).forEach((function(s){var l=a[s];if(r(l)){var c=s in t,u=s in i,p=t[s],d=r(p)&&!p.props.in;!u||c&&!d?u||!c||d?u&&c&&r(p)&&(a[s]=o(l,{onExited:n.bind(null,l),in:p.props.in,exit:us(l,"exit",e),enter:us(l,"enter",e)})):a[s]=o(l,{in:!1}):a[s]=o(l,{onExited:n.bind(null,l),in:!0,exit:us(l,"exit",e),enter:us(l,"enter",e)})}})),a}ss.defaultProps={classNames:""},ss.propTypes={};var ds,hs,fs=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},ms=function(e){function n(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(ls(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Ja(n,e);var r=n.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,cs(n.children,(function(e){return o(e,{onExited:r.bind(null,e),in:!0,appear:us(e,"appear",n),enter:us(e,"enter",n),exit:us(e,"exit",n)})}))):ps(e,i,a),firstRender:!1}},r.handleExited=function(e,t){var n=cs(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Tt({},t.children);return delete n[e.key],{children:n}})))},r.render=function(){var e=this.props,n=e.component,r=e.childFactory,o=Nt(e,["component","childFactory"]),i=this.state.contextValue,a=fs(this.state.children).map(r);return delete o.appear,delete o.enter,delete o.exit,null===n?t.createElement(es.Provider,{value:i},a):t.createElement(es.Provider,{value:i},t.createElement(n,o,a))},n}(t.Component);ms.propTypes={},ms.defaultProps={component:"div",childFactory:function(e){return e}},(function(e){function n(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}Ja(n,e);var r=n.prototype;return r.handleLifecycle=function(e,n,r){var o,i=this.props.children,a=t.Children.toArray(i)[n];if(a.props[e]&&(o=a.props)[e].apply(o,r),this.props[e]){var s=a.props.nodeRef?void 0:y.findDOMNode(this);this.props[e](s)}},r.render=function(){var e=this.props,n=e.children,r=e.in,o=Nt(e,["children","in"]),i=t.Children.toArray(n),a=i[0],s=i[1];return delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,t.createElement(ms,o,r?t.cloneElement(a,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):t.cloneElement(s,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},n}(t.Component)).propTypes={};var gs="out-in",ys="in-out",bs=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},vs=((ds={})[gs]=function(e){var n=e.current,r=e.changeState;return t.cloneElement(n,{in:!1,onExited:bs(n,"onExited",(function(){r(ts,null)}))})},ds[ys]=function(e){var n=e.current,r=e.changeState,o=e.children;return[n,t.cloneElement(o,{in:!0,onEntered:bs(o,"onEntered",(function(){r(ts)}))})]},ds),Es=((hs={})[gs]=function(e){var n=e.children,r=e.changeState;return t.cloneElement(n,{in:!0,onEntered:bs(n,"onEntered",(function(){r(ns,t.cloneElement(n,{in:!0}))}))})},hs[ys]=function(e){var n=e.current,r=e.children,o=e.changeState;return[t.cloneElement(n,{in:!1,onExited:bs(n,"onExited",(function(){o(ns,t.cloneElement(r,{in:!0}))}))}),t.cloneElement(r,{in:!0})]},hs),xs=function(e){function n(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={status:ns,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}Ja(n,e);var r=n.prototype;return r.componentDidMount=function(){this.appeared=!0},n.getDerivedStateFromProps=function(e,n){return null==e.children?{current:null}:n.status===ts&&e.mode===ys?{status:ts}:!n.current||(r=n.current,o=e.children,r===o||t.isValidElement(r)&&t.isValidElement(o)&&null!=r.key&&r.key===o.key)?{current:t.cloneElement(e.children,{in:!0})}:{status:"exiting"};var r,o},r.render=function(){var e,n=this.props,r=n.children,o=n.mode,i=this.state,a=i.status,s=i.current,l={children:r,current:s,changeState:this.changeState,status:a};switch(a){case ts:e=Es[o](l);break;case"exiting":e=vs[o](l);break;case ns:e=s}return t.createElement(es.Provider,{value:{isMounting:!this.appeared}},e)},n}(t.Component);xs.propTypes={},xs.defaultProps={mode:gs};const Cs=Pr("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ss=["center","classes","className"];let Ls,ws,ks,Os,Rs=e=>e;const qs=C(Ls||(Ls=Rs`
14
+ 0% {
15
+ transform: scale(0);
16
+ opacity: 0.1;
17
+ }
18
+
19
+ 100% {
20
+ transform: scale(1);
21
+ opacity: 0.3;
22
+ }
23
+ `)),Is=C(ws||(ws=Rs`
24
+ 0% {
25
+ opacity: 1;
26
+ }
27
+
28
+ 100% {
29
+ opacity: 0;
30
+ }
31
+ `)),_s=C(ks||(ks=Rs`
32
+ 0% {
33
+ transform: scale(1);
34
+ }
35
+
36
+ 50% {
37
+ transform: scale(0.92);
38
+ }
39
+
40
+ 100% {
41
+ transform: scale(1);
42
+ }
43
+ `)),Ts=Wa("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Ns=Wa((function(t){const{className:n,classes:r,pulsate:o=!1,rippleX:i,rippleY:a,rippleSize:s,in:l,onExited:c,timeout:u}=t,[p,d]=e.useState(!1),h=Ko(n,r.ripple,r.rippleVisible,o&&r.ripplePulsate),f={width:s,height:s,top:-s/2+a,left:-s/2+i},m=Ko(r.child,p&&r.childLeaving,o&&r.childPulsate);return l||p||d(!0),e.useEffect((()=>{if(!l&&null!=c){const e=setTimeout(c,u);return()=>{clearTimeout(e)}}}),[c,l,u]),jn.exports.jsx("span",{className:h,style:f,children:jn.exports.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(Os||(Os=Rs`
44
+ opacity: 0;
45
+ position: absolute;
46
+
47
+ &.${0} {
48
+ opacity: 0.3;
49
+ transform: scale(1);
50
+ animation-name: ${0};
51
+ animation-duration: ${0}ms;
52
+ animation-timing-function: ${0};
53
+ }
54
+
55
+ &.${0} {
56
+ animation-duration: ${0}ms;
57
+ }
58
+
59
+ & .${0} {
60
+ opacity: 1;
61
+ display: block;
62
+ width: 100%;
63
+ height: 100%;
64
+ border-radius: 50%;
65
+ background-color: currentColor;
66
+ }
67
+
68
+ & .${0} {
69
+ opacity: 0;
70
+ animation-name: ${0};
71
+ animation-duration: ${0}ms;
72
+ animation-timing-function: ${0};
73
+ }
74
+
75
+ & .${0} {
76
+ position: absolute;
77
+ /* @noflip */
78
+ left: 0px;
79
+ top: 0;
80
+ animation-name: ${0};
81
+ animation-duration: 2500ms;
82
+ animation-timing-function: ${0};
83
+ animation-iteration-count: infinite;
84
+ animation-delay: 200ms;
85
+ }
86
+ `),Cs.rippleVisible,qs,550,(({theme:e})=>e.transitions.easing.easeInOut),Cs.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Cs.child,Cs.childLeaving,Is,550,(({theme:e})=>e.transitions.easing.easeInOut),Cs.childPulsate,_s,(({theme:e})=>e.transitions.easing.easeInOut)),Ds=e.forwardRef((function(t,n){const r=Ua({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,s=Nt(r,Ss),[l,c]=e.useState([]),u=e.useRef(0),p=e.useRef(null);e.useEffect((()=>{p.current&&(p.current(),p.current=null)}),[l]);const d=e.useRef(!1),h=e.useRef(null),f=e.useRef(null),m=e.useRef(null);e.useEffect((()=>()=>{clearTimeout(h.current)}),[]);const g=e.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:a}=e;c((e=>[...e,jn.exports.jsx(Ns,{classes:{ripple:Ko(i.ripple,Cs.ripple),rippleVisible:Ko(i.rippleVisible,Cs.rippleVisible),ripplePulsate:Ko(i.ripplePulsate,Cs.ripplePulsate),child:Ko(i.child,Cs.child),childLeaving:Ko(i.childLeaving,Cs.childLeaving),childPulsate:Ko(i.childPulsate,Cs.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o},u.current)])),u.current+=1,p.current=a}),[i]),y=e.useCallback(((e={},t={},n)=>{const{pulsate:r=!1,center:i=o||t.pulsate,fakeElement:a=!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 s=a?null:m.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,p;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:n}=e.touches?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(n-l.top)}if(i)p=Math.sqrt((2*l.width**2+l.height**2)/3),p%2==0&&(p+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;p=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{g({pulsate:r,rippleX:c,rippleY:u,rippleSize:p,cb:n})},h.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):g({pulsate:r,rippleX:c,rippleY:u,rippleSize:p,cb:n})}),[o,g]),b=e.useCallback((()=>{y({},{pulsate:!0})}),[y]),v=e.useCallback(((e,t)=>{if(clearTimeout(h.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(h.current=setTimeout((()=>{v(e,t)})));f.current=null,c((e=>e.length>0?e.slice(1):e)),p.current=t}),[]);return e.useImperativeHandle(n,(()=>({pulsate:b,start:y,stop:v})),[b,y,v]),jn.exports.jsx(Ts,Tt({className:Ko(i.root,Cs.root,a),ref:m},s,{children:jn.exports.jsx(ms,{component:null,exit:!0,children:l})}))}));function Ms(e){return Mr("MuiButtonBase",e)}const Ps=Pr("MuiButtonBase",["root","disabled","focusVisible"]),As=["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"],js=Wa("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"},[`&.${Ps.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),zs=e.forwardRef((function(t,n){const r=Ua({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:p=!1,focusRipple:d=!1,LinkComponent:h="a",onBlur:f,onClick:m,onContextMenu:g,onDragLeave:y,onFocus:b,onFocusVisible:v,onKeyDown:E,onKeyUp:x,onMouseDown:C,onMouseLeave:S,onMouseUp:L,onTouchEnd:w,onTouchMove:k,onTouchStart:O,tabIndex:R=0,TouchRippleProps:q,touchRippleRef:I,type:_}=r,T=Nt(r,As),N=e.useRef(null),D=e.useRef(null),M=Er(D,I),{isFocusVisibleRef:P,onFocus:A,onBlur:j,ref:z}=qr(),[F,B]=e.useState(!1);c&&F&&B(!1),e.useImperativeHandle(o,(()=>({focusVisible:()=>{B(!0),N.current.focus()}})),[]);const[U,H]=e.useState(!1);e.useEffect((()=>{H(!0)}),[]);const W=U&&!u&&!c;function $(e,t,n=p){return vr((r=>{t&&t(r);return!n&&D.current&&D.current[e](r),!0}))}e.useEffect((()=>{F&&d&&!u&&U&&D.current.pulsate()}),[u,d,F,U]);const V=$("start",C),G=$("stop",g),K=$("stop",y),Z=$("stop",L),X=$("stop",(e=>{F&&e.preventDefault(),S&&S(e)})),J=$("start",O),Y=$("stop",w),Q=$("stop",k),ee=$("stop",(e=>{j(e),!1===P.current&&B(!1),f&&f(e)}),!1),te=vr((e=>{N.current||(N.current=e.currentTarget),A(e),!0===P.current&&(B(!0),v&&v(e)),b&&b(e)})),ne=()=>{const e=N.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=e.useRef(!1),oe=vr((e=>{d&&!re.current&&F&&D.current&&" "===e.key&&(re.current=!0,D.current.stop(e,(()=>{D.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),E&&E(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!c&&(e.preventDefault(),m&&m(e))})),ie=vr((e=>{d&&" "===e.key&&D.current&&F&&!e.defaultPrevented&&(re.current=!1,D.current.stop(e,(()=>{D.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=l;"button"===ae&&(T.href||T.to)&&(ae=h);const se={};"button"===ae?(se.type=void 0===_?"button":_,se.disabled=c):(T.href||T.to||(se.role="button"),c&&(se["aria-disabled"]=c));const le=Er(z,N),ce=Er(n,le),ue=Tt({},r,{centerRipple:i,component:l,disabled:c,disableRipple:u,disableTouchRipple:p,focusRipple:d,tabIndex:R,focusVisible:F}),pe=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=_r({root:["root",t&&"disabled",n&&"focusVisible"]},Ms,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return jn.exports.jsxs(js,Tt({as:ae,className:Ko(pe.root,s),ownerState:ue,onBlur:ee,onClick:m,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:Z,onDragLeave:K,onTouchEnd:Y,onTouchMove:Q,onTouchStart:J,ref:ce,tabIndex:c?-1:R,type:_},se,T,{children:[a,W?jn.exports.jsx(Ds,Tt({ref:M,center:i},q)):null]}))})),Fs=Pr("MuiButton",["root","text","textInherit","textPrimary","textSecondary","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","contained","containedInherit","containedPrimary","containedSecondary","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Bs=e=>Tt({},"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}});Wa(zs,{shouldForwardProp:e=>Ha(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${gr(n.color)}`],t[`size${gr(n.size)}`],t[`${n.variant}Size${gr(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;return Tt({},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":Tt({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Oi(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})`:Oi(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})`:Oi(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:(e.vars||e).palette.grey.A100,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":Tt({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Fs.focusVisible}`]:Tt({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Fs.disabled}`]:Tt({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"outlined"===t.variant&&"secondary"===t.color&&{border:`1px solid ${(e.vars||e).palette.action.disabled}`},"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 ${Oi(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).palette.grey[300],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"},[`&.${Fs.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Fs.disabled}`]:{boxShadow:"none"}})),Wa("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${gr(n.size)}`]]}})((({ownerState:e})=>Tt({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Bs(e)))),Wa("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${gr(n.size)}`]]}})((({ownerState:e})=>Tt({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Bs(e))));var Us={typography:{fontSize:14,htmlFontSize:16,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontFamily:['"Source Sans Pro"','"Segoe UI"','"Helvetica Neue"',"-apple-system","Arial","sans-serif"].join(","),button:{textTransform:"initial",fontWeight:400}},shape:{borderRadius:2},shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],props:{MuiButtonBase:{disableRipple:!0,disableTouchRipple:!0,focusRipple:!1},MuiCheckbox:{color:"secondary"},MuiRadio:{color:"secondary"},MuiTabs:{indicatorColor:"secondary"}}};const Hs="#009845",Ws="#3F8AB3",$s="#ffffff",Vs="#404040",Gs="#333333",Ks="#1A1A1A",Zs={mode:"light",palette:{primary:{main:Vs,contrastText:$s},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:Vs,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)"},action:{active:Vs,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:$s,default:$s,lightest:$s,lighter:"#FBFBFB",darker:"#F2F2F2",darkest:"#E6E6E6"},custom:{focusBorder:Ws,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)"},selected:{main:Hs,alternative:"#E4E4E4",excluded:"#BEBEBE",mainContrastText:$s,alternativeContrastText:Vs,excludedContrastText:Vs},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)"}}},Xs={mode:"dark",palette:{primary:{main:Gs,contrastText:$s},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:$s,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)"},action:{active:$s,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:Vs,lighter:Gs,darker:"#262626",darkest:Ks},custom:{focusBorder:Ws,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)"},selected:{main:Hs,alternative:Gs,excluded:Ks,mainContrastText:$s,alternativeContrastText:$s,excludedContrastText:$s},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)"}}},Js={},Ys=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","&:focus":{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)}}},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(Fs.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(Fs.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(Fs.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(Fs.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function Qs(e){let t=Zs,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=Xs));const r=JSON.stringify(t);if(Js[r])return Js[r];const o={palette:V(V({type:t.mode},Us.palette),t.palette),typography:V({},Us.typography),shadows:Us.shadows,props:V({},Us.props),shape:V({},Us.shape)};return Js[r]=za(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:i={},styleOverrides:a={}}=e,s=Tt({},Nt(e,Ai),{components:{}});Object.keys(t).forEach((e=>{const n=s.components[e]||{};n.defaultProps=t[e],s.components[e]=n})),Object.keys(i).forEach((e=>{const t=s.components[e]||{};t.defaultProps=i[e],s.components[e]=t})),Object.keys(a).forEach((e=>{const t=s.components[e]||{};t.styleOverrides=a[e],s.components[e]=t})),Object.keys(r).forEach((e=>{const t=s.components[e]||{};t.styleOverrides=r[e],s.components[e]=t})),s.spacing=Yo(e.spacing);const l=Xo(e.breakpoints||{}),c=s.spacing;s.mixins=Tt({gutters:(e={})=>Tt({paddingLeft:c(2),paddingRight:c(2)},e,{[l.up("sm")]:Tt({paddingLeft:c(3),paddingRight:c(3)},e[l.up("sm")])})},n);const{type:u,mode:p}=o,d=Nt(o,ji),h=p||u||"light";return s.palette=Tt({text:{hint:"dark"===h?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:h,type:h},d),s}(V(V({},o),{},{overrides:Ys(o)}))),Js[r].name=n,Js[r]}Nr.configure((e=>"njs-".concat("d97f","-").concat(e.replace("Mui",""))));var el=t.createContext({language:null,theme:null,translator:null,constraints:{}}),tl=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};const n=e,r=[],o={get:e=>n[e],set:(e,r)=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));return n[e]=r,t({type:"SET",value:r}),r},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));n[e]=null},dispatch:e=>{r.forEach((t=>t(e?{}:n)))}},s=()=>{const[,e]=i(n);return a((()=>(r.push(e),()=>{const t=r.indexOf(e);r.splice(t,1)})),[e]),[o]};return[s,o]};const[nl,rl]=tl({}),[ol,il]=tl({}),[al,sl]=tl({}),[ll,cl]=tl({}),[ul,pl]=tl({}),[,dl]=tl({}),hl=e=>{let{type:t,value:n}=e;const r=dl.get(n.id);dl.set(n.id,{});const o=()=>{il.clear(n.id),pl.set(n.id,{}),pl.dispatch(!0)},i=()=>{n.removeListener("changed",o),rl.clear(n.id),il.clear(n.id),sl.clear(n.id),cl.clear(n.id),pl.clear(n.id),dl.clear(n.id)};if("SET"===t)r||(n.on("changed",o),n.once("closed",(()=>{i()})));return i},[fl,ml]=tl({},hl),gl=(e,t)=>{const{rpcResultStore:n,key:r,method:o}=t;let i;switch(t.type){case"INVALID":i=V(V({},e),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":i={result:V({},t.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":i=V(V({},e),{},{invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1});break;default:throw new Error("Undefined action")}let a=n.get(r);return a||(a={}),a[o]=i,n.set(r,a),i};function yl(e,t){const n=e?"".concat(e.id):null,[r]=nl(),[o,i]=s(gl,n?r.get(n):null),[l]=ul(),[c]=ol();let u;n&&(u=c.get(n),u||(u={},c.set(n,u)));const p=async o=>{let a=u[t];if(!a||a&&a.rpcRetry){a={rpc:e[t](),rpcRetry:!1},u[t]=a,i({type:"INVALID",method:t,key:n,model:e,rpcResultStore:r,canCancel:!0})}try{const o=await a.rpc;i({type:"VALID",result:o,key:n,method:t,model:e,rpcResultStore:r})}catch(e){15!==e.code||o||(a.rpcRetry||(a.rpcRetry=!0),p(!0))}},d={cancel:async()=>{const o=e.session.getObjectApi({handle:-1});await o.cancelRequest(u[t].rpc.requestId),i({type:"CANCELLED",key:n,method:t,model:e,rpcResultStore:r})},retry:()=>{u[t].rpcRetry=!0,p()}};return a((()=>{e&&p()}),[e,l.get(e&&e.id),n,t]),[o&&o.result,{validating:o&&o.validating,canCancel:o&&o.canCancel,canRetry:o&&o.canRetry},d]}function bl(e){return yl(e,"getLayout")}function vl(e){return yl(e,"getAppLayout")}function El(e,t){const n=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[r]=fl(),[o]=al(),[s,l]=i();let c;n&&(c=o.get(n));for(var u=arguments.length,p=new Array(u>2?u-2:0),d=2;d<u;d++)p[d-2]=arguments[d];return a((()=>{if(!t)return;(async()=>{if(!c){const r=t.createSessionObject(e);c=r,o.set(n,c)}const i=await c;r.set(n,i),l(i)})()}),[t,...p]),[s]}const xl={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function Cl(e){return El(xl,e)}function Sl(e){const[t]=Cl(e),[n]=bl(t),[r]=vl(e),[o,s]=i(null);return a((()=>{r&&t&&n&&((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)})(t,n,r)}),[r,t,n]),a((()=>{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})),s({canGoBack:e,canGoForward:t,canClear:r})}),[n]),[o,t,n]}const[Ll,wl]=tl({}),[kl,Ol]=tl({}),[Rl,ql]=tl({}),[Il,_l]=tl({});function Tl(e){if(!e.session)return[];const[t,n,r]=Sl(e),[o]=Ll(),i=e?e.id:null;let s=o.get(i);return a((()=>{e&&n&&r&&t&&!s&&(s=function(e){let{app:t,currentSelectionsLayout:n,navState:r}=e;const o="".concat(t.id),i=async function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=_l.get(o);t&&(await t.endSelections(e),_l.clear(o),ql.get(t.id).emit("deactivated"))},a={begin:async function(e,n){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e===_l.get(o))return;i(r),_l.set(o,e);const a=Array.isArray(n)?n:[n],s=async n=>{try{await e.beginSelections(a),_l.set(o,e)}catch(e){6003!==e.code||n?_l.clear(o):(await t.abortModal(r),s(!0))}};await s()},end:i};Ol.set(o,a);const s={model:t,isInModal:()=>!!_l.get(o),isModal:e=>e?_l.get(o)===e:!!_l.get(o),canGoForward:()=>r.canGoForward,canGoBack:()=>r.canGoBack,canClear:()=>r.canClear,layout:()=>n,forward:()=>a.end().then((()=>t.forward())),back:()=>a.end().then((()=>t.back())),clear:()=>a.end().then((()=>t.clearAll())),clearField(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$";return a.end().then((()=>t.getField(e,n).then((e=>e.clear()))))}};return s}({app:e,currentSelectionsLayout:r,navState:t}),o.set(i,s),o.dispatch(!0))}),[e,n,r,t]),[s,t]}const Nl=l(((e,n)=>{let{initialContext:r,app:o}=e;const[a]=Tl(o),[s,l]=i(r),[p,d]=i(),{theme:h}=c((()=>({theme:Qs(p)})),[p]),[f,m]=i([]);return u(n,(()=>({addComponent(e){m([...f,e])},removeComponent(e){const t=f.indexOf(e);-1!==t&&(f.splice(t,1),m([...f]))},setMuiThemeName:d,setContext:l,getAppSelections:()=>a}))),t.createElement(Kn,{injectFirst:!0},t.createElement(qi,{theme:h},t.createElement(el.Provider,{value:s},f)))}));function Dl(e){let n,{app:r,context:o}=e;const i=new Promise((e=>{n=e})),a=t.createRef(),s=document.createElement("div");s.style.display="none",s.setAttribute("data-nebulajs-version","3.0.0-alpha10"),s.setAttribute("data-app-id",r.id),document.body.appendChild(s),y.render(t.createElement(Nl,{ref:a,app:r,initialContext:o}),s,n);const l={};return[{toggleFocusOfCells(e){Object.keys(l).forEach((t=>{l[t].current.toggleFocus(t===e)}))},cells:l,addCell(e,t){l[e]=t},add(e){(async()=>{await i,a.current.addComponent(e)})()},remove(e){(async()=>{await i,a.current.removeComponent(e)})()},setMuiThemeName(e){(async()=>{await i,a.current.setMuiThemeName(e)})()},context(e){(async()=>{await i,a.current.setContext(e)})()},getAppSelections:async()=>(await i,a.current.getAppSelections())},a,i]}function Ml(){const[e,t]=i(),[n,r]=i(),o=p((e=>{e&&t(e)}),[]),a=()=>{const{left:t,top:n,width:o,height:i}=e.getBoundingClientRect();r({left:t,top:n,width:o,height:i})};return d((()=>{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 Pl(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function Al(e){let{size:n,style:r={},viewBox:o="0 0 16 16",shapes:i=[]}=e;const a=V({fontSize:Pl(n),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},r);return t.createElement("i",{style:a},t.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:o,fill:"currentColor"},i.map(((e,n)=>{let{type:r,attrs:o}=e;return t.createElement(r,K({key:n},o))}))))}var jl=e=>Al((e=>V(V({},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 zl=e=>Al((e=>V(V({},e),{},{shapes:[{type:"path",attrs:{d:"M13,7 L8,7 L13,7 L13,4.98151367 C13,2.23029964 10.7614237,0 8,0 C5.23857625,0 3,2.23029964 3,4.98151367 L3,7 L3.75,7 L3,7 L4.5,7 L4.5,5.33193359 C4.5,3.21561511 5.54860291,1.5 8,1.5 C10.4513971,1.5 11.5,3.21561511 11.5,5.33193359 L11.5,7 L12.25,7 L3,7 C2.44771525,7 2,7.44771525 2,8 L2,15 C2,15.5522847 2.44771525,16 3,16 L13,16 C13.5522847,16 14,15.5522847 14,15 L14,8 C14,7.44771525 13.5522847,7 13,7 L3,7 L13,7 Z"}}]}))(e));var Fl=e=>Al((e=>V(V({},e),{},{shapes:[{type:"path",attrs:{d:"M2.5,7 L11,7 C11.5522847,7 12,7.44771525 12,8 L12,15 C12,15.5522847 11.5522847,16 11,16 L1,16 C0.44771525,16 0,15.5522847 0,15 L0,8 C0,7.44771525 0.44771525,7 1,7 L1,4.98151367 C1,2.23029964 3.23857625,0 6,0 C8.4241995,0 10.4454541,1.71883353 10.9029715,4 L9.34209114,4 C8.9671727,2.54028848 7.9088888,1.5 6,1.5 C3.54860291,1.5 2.5,3.21561511 2.5,5.33193359 L2.5,7 Z"}}]}))(e)),Bl=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Ul(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||Bl(r)&&Bl(o)))return!1;var r,o;return!0}function Hl(e,t){var n;void 0===t&&(t=Ul);var r,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}var Wl="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function $l(e){cancelAnimationFrame(e.id)}var Vl=null;function Gl(e){if(void 0===e&&(e=!1),null===Vl||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?Vl="positive-descending":(t.scrollLeft=1,Vl=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),Vl}return Vl}var Kl=function(e,t){return e};function Zl(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=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=l(r.props,ls(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:ls(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=Hl((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=Hl((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,s=i.itemSize,l=i.layout,u=r._getItemStyleCache(c&&s,c&&l,c&&a);if(u.hasOwnProperty(e))t=u[e];else{var p=n(r.props,e,r._instanceProps),d=o(r.props,e,r._instanceProps),h="horizontal"===a||"horizontal"===l,f="rtl"===a,m=h?p:0;u[e]=t={position:"absolute",left:f?void 0:m,right:f?m:void 0,top:h?0:p,height:h?"100%":d,width:h?d:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=Hl((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(Gl()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<o?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,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(){var e,t,n,o;null!==r._resetIsScrollingTimeoutId&&$l(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=(e=r._resetIsScrolling,t=150,n=Wl(),o={id:requestAnimationFrame((function r(){Wl()-n>=t?e.call(null):o.id=requestAnimationFrame(r)}))},o)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}Ja(t,e),t.getDerivedStateFromProps=function(e,t){return Xl(e,t),u(e),null};var p=t.prototype;return p.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)},p.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props.itemCount,r=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1)),this.scrollTo(i(this.props,e,t,r,this._instanceProps))},p.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()},p.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 i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(Gl()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},p.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&$l(this._resetIsScrollingTimeoutId)},p.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,c=e.itemCount,u=e.itemData,p=e.itemKey,d=void 0===p?Kl:p,f=e.layout,m=e.outerElementType,g=e.outerTagName,y=e.style,b=e.useIsScrolling,v=e.width,E=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,C=x?this._onScrollHorizontal:this._onScrollVertical,S=this._getRangeToRender(),L=S[0],w=S[1],k=[];if(c>0)for(var O=L;O<=w;O++)k.push(h(t,{data:u,key:d(O,u),index:O,isScrolling:b?E:void 0,style:this._getItemStyle(O)}));var R=r(this.props,this._instanceProps);return h(m||g||"div",{className:n,onScroll:C,ref:this._outerRefSetter,style:Tt({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},y)},h(s||l||"div",{children:k,ref:a,style:{height:x?"100%":R,pointerEvents:E?"none":void 0,width:x?R:"100%"}}))},p._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 i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},p._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,l=r.scrollOffset;if(0===t)return[0,0,0,0];var c=a(this.props,l,this._instanceProps),u=s(this.props,c,l,this._instanceProps),p=o&&"backward"!==i?1:Math.max(1,n),d=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,c-p),Math.max(0,Math.min(t-1,u+d)),c,u]},t}(f),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var Xl=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},Jl=Zl({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){var o=e.direction,i=e.height,a=e.itemCount,s=e.itemSize,l=e.layout,c=e.width,u="horizontal"===o||"horizontal"===l?c:i,p=Math.max(0,a*s-u),d=Math.min(p,t*s),h=Math.max(0,t*s-u+s);switch("smart"===n&&(n=r>=h-u&&r<=d+u?"auto":"center"),n){case"start":return d;case"end":return h;case"center":var f=Math.round(h+(d-h)/2);return f<Math.ceil(u/2)?0:f>p+Math.floor(u/2)?p:f;default:return r>=h&&r<=d?r:r<h?h:d}},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,i=e.itemCount,a=e.itemSize,s=e.layout,l=e.width,c=t*a,u="horizontal"===r||"horizontal"===s?l:o,p=Math.ceil((u+n-c)/a);return Math.max(0,Math.min(i-1,t+p-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});var Yl=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Ql=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}}(),ec=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},tc=function(e){function t(){var e,n,r;Yl(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=ec(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),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},ec(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,f),Ql(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,i=n.minimumBatchSize,a=void 0===i?10:i,s=n.threshold,l=void 0===s?15:s,c=function(e){for(var t=e.isItemLoaded,n=e.itemCount,r=e.minimumBatchSize,o=e.startIndex,i=e.stopIndex,a=[],s=null,l=null,c=o;c<=i;c++)t(c)?null!==l&&(a.push(s,l),s=l=null):(l=c,null===s&&(s=c));if(null!==l){for(var u=Math.min(Math.max(l,s+r-1),n-1),p=l+1;p<=u&&!t(p);p++)l=p;a.push(s,l)}if(a.length)for(;a[1]-a[0]+1<r&&a[0]>0;){var d=a[0]-1;if(t(d))break;a[0]=d}return a}({isItemLoaded:r,itemCount:o,minimumBatchSize:a,startIndex:Math.max(0,e-l),stopIndex:Math.min(o-1,t+l)});(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],i=e[r+1],a=n(o,i);null!=a&&a.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:i})){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}();const nc=["S","XS"],rc=e=>e.reduce(((e,t)=>e.concat(t)));function oc(e){return nc.includes(e)}function ic(e){return Array.isArray(e)?Array.from(new Set(e)):void 0}async function ac(e){let{selections:t,elemNumbers:n,isSingleSelect:r=!1}=e,o=Promise.resolve(!1);if(!n.some((e=>Number.isNaN(e)))){const e=n;o=t.select({method:"selectListObjectValues",params:["/qListObjectDef",e,!r]}).then((e=>!1!==e)).catch((()=>!1))}return o}function sc(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)}function lc(e){let{layout:t,selections:n,pages:r=[],checkboxes:o=!1,selectDisabled:s,doc:l=document,isSingleSelect:c=!1}=e;const[u,d]=i(r),[h,f]=i(!1),[m,g]=i(!1),[y,b]=i(c),[v,E]=i([]),[x,C]=i(!1),[S,L]=i([]),w=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 rc(t)}(r);a((()=>{b(c)}),[c]);const k=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(s())return;g(!0);const r=t?e.filter((e=>!v.includes(e))):e;await ac({selections:n,elemNumbers:r,isSingleSelect:y}),g(!1),L([])},O=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];s()||L((n=>{const r=ic([...n,...e]),o=t?r.filter((e=>!v.includes(e))):r;return t?sc(r,w):o}))},R=e=>{(e.ctrlKey||e.metaKey)&&(b(!0),e.currentTarget.focus(),e.preventDefault())},q=p((e=>{if(m||s())return;const t=+e.currentTarget.getAttribute("data-n");L([t]),R(e)}),[m,s]),I=p((e=>{if(m||s())return;C(!1),f(!0);const t=+e.currentTarget.getAttribute("data-n");L([t]),R(e)}),[m,s]),_=p((e=>{const t=+e.currentTarget.getAttribute("data-n");y||!h||m||1===S.length&&S[0]===t||O([t])}),[h,m,S,v,x,s]),T=p((()=>{f(!1),g(!1),C(!1),b(c)}),[c]),N=p((e=>{if(y||!h||m||s())return;C(!0);const t=+e.currentTarget.getAttribute("data-n");O([t],!0)}),[h,m,x,S,v,s,t&&t.qListObject.qDimensionInfo.qIsOneAndOnlyOne]);a((()=>{const e=!h;S&&S.length&&!m&&e&&t&&k(S,x)}),[S,h,s()]),a((()=>(l.addEventListener("mouseup",T),()=>{l.removeEventListener("mouseup",T)})),[T]),a((()=>{if(m||h)return;const e=function(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[t]=e;return!!oc(t.qState)&&t.qElemNumber}));return t.filter((e=>!1!==e))}));return rc(t)}(r);E(e)}),[r]),a((()=>{if(m||!r||!o&&!h)return;const e=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=e=>t.length<=1&&oc(e)?"A":"S",o=e.map((e=>{const o=e.qMatrix.map((e=>{const[o]=e,i=t.includes(o.qElemNumber);let a;return a=n?i?"S":"A":i?r(o.qState):o.qState,[V(V({},o),{},{qState:a}),e.slice(1)]}));return V(V({},e),{},{qMatrix:o})}));return o}(r,S,y);d(e)}),[S]);const D={};return o?Object.assign(D,{onClick:q}):Object.assign(D,{onMouseUp:_,onMouseDown:I,onMouseEnter:N}),{instantPages:u,interactionEvents:D,select:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];C(!1),f(!0),O(e,t||x);const n=k(e,t||x);return f(!1),n}}}const cc=e=>V(V({},e),{},{shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]});var uc=e=>Al(cc(e));const pc="ListBoxCheckbox",dc={cbIcon:"".concat(pc,"-cbIcon"),cbIconChecked:"".concat(pc,"-cbIconChecked"),cbIconExcluded:"".concat(pc,"-cbIconExcluded"),cbIconAlternative:"".concat(pc,"-cbIconAlternative"),checkbox:"".concat(pc,"-checkbox"),dense:"".concat(pc,"-dense")},hc=Wa(S)((e=>{let{theme:t}=e;return{["& .".concat(dc.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(dc.cbIconChecked)]:{borderRadius:3,backgroundColor:t.palette.selected.main,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(dc.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:t.palette.selected.excluded},["& .".concat(dc.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:t.palette.selected.alternative},["&.".concat(dc.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(dc.dense)]:{padding:"4px 8px"}}})),fc=function(e){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.createElement("span",{className:e.cbIcon},r&&t.createElement("span",{className:n&&r?e.cbIconExcluded:""}))};function mc(e){let{checked:n,label:r,dense:o,excluded:i,showGray:a=!0}=e;return t.createElement(hc,{edge:"start",checked:n,disableRipple:!0,className:[dc.checkbox,o&&dc.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":r},name:r,icon:fc(dc,a,i),checkedIcon:t.createElement("span",{className:dc.cbIconChecked})})}const gc={denseRadioButton:"".concat("ListBoxRadioButton","-denseRadioButton"),radioButton:"".concat("ListBoxRadioButton","-radioButton")},yc=Wa(L)((()=>({["&.".concat(gc.radioButton)]:{right:"5px"}})));function bc(e){let{checked:n,label:r,dense:o}=e;return t.createElement(yc,{checked:n,value:r,name:r,className:gc.radioButton,style:{backgroundColor:"transparent"},disableRipple:!0,size:o?"small":"medium",sx:o&&{padding:"0px 0px 0px 12px"}})}const vc=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===vc.ARROW_UP||e===vc.ARROW_DOWN||e===vc.ARROW_LEFT||e===vc.ARROW_RIGHT});function Ec(e){let{setKeyboardActive:t}=e;return e=>{const{keyCode:n}=e.nativeEvent;switch(n){case vc.ENTER:case vc.SPACE:(e=>{const n=e.querySelector(".search input, .value.selector, .value");t(!0),n&&n.focus()})(e.currentTarget);break;case vc.ESCAPE:r=e.currentTarget,t(!1),r.focus();break;default:return}var r;e.preventDefault()}}const xc="RowColumn",Cc={row:"".concat(xc,"-row"),rowBorderBottom:"".concat(xc,"-rowBorderBottom"),column:"".concat(xc,"-column"),fieldRoot:"".concat(xc,"-fieldRoot"),cell:"".concat(xc,"-cell"),labelText:"".concat(xc,"-labelText"),labelDense:"".concat(xc,"-labelDense"),highlighted:"".concat(xc,"-highlighted"),checkboxLabel:"".concat(xc,"-checkboxLabel"),icon:"".concat(xc,"-icon"),S:"".concat(xc,"-S"),XS:"".concat(xc,"-XS"),A:"".concat(xc,"-A"),X:"".concat(xc,"-X"),frequencyCount:"".concat(xc,"-frequencyCount"),barContainer:"".concat(xc,"-barContainer"),bar:"".concat(xc,"-bar"),barSelected:"".concat(xc,"-barSelected"),barWithCheckbox:"".concat(xc,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(xc,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(xc,"-excludedTextWithCheckbox")},Sc={width:"100%",overflow:"hidden",textOverflow:"ellipsis"},Lc=e=>{let{theme:t}=e;return{background:t.palette.selected.main,color:t.palette.selected.mainContrastText,"&:focus":{boxShadow:"inset 0 0 0 2px rgba(0, 0, 0, 0.3)",outline:"none"},"& $cell":{paddingRight:0}}},wc=Wa("div")((e=>{let{theme:t}=e;return{["& .".concat(Cc.row)]:{flexWrap:"nowrap",color:t.palette.text.primary},["& .".concat(Cc.rowBorderBottom)]:{borderBottom:"1px solid ".concat(t.palette.divider)},["& .".concat(Cc.column)]:{flexWrap:"nowrap",borderRight:"1px solid ".concat(t.palette.divider),color:t.palette.text.primary},["& .".concat(Cc.fieldRoot)]:{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"}},["& .".concat(Cc.cell)]:{display:"flex",alignItems:"center",minWidth:0,flexGrow:1,paddingLeft:"9px",paddingRight:"9px"},["& .".concat(Cc.labelText)]:V({flexBasis:"max-content",lineHeight:"16px",userSelect:"none",whiteSpace:"pre"},Sc),["& .".concat(Cc.labelDense)]:{fontSize:12},["& .".concat(Cc.highlighted)]:{overflow:"visible",width:"100%","& > span":{width:"100%",backgroundColor:"#FFC72A"}},["& .".concat(Cc.checkboxLabel)]:{margin:0,width:"100%",height:"100%","& > span:nth-child(1)":{paddingRight:"8px"},"& > span:nth-child(2)":V(V({},Sc),{},{display:"flex",alignItems:"center",paddingLeft:0})},["& .".concat(Cc.icon)]:{display:"flex",padding:t.spacing(1,1,1,0)},["& .".concat(Cc.S)]:V({},Lc({theme:t})),["& .".concat(Cc.XS)]:V(V({},Lc({theme:t})),{},{background:t.palette.selected.excluded,color:t.palette.selected.mainContrastText}),["& .".concat(Cc.A)]:{background:t.palette.selected.alternative,color:t.palette.selected.alternativeContrastText},["& .".concat(Cc.X)]:{background:t.palette.selected.excluded,color:t.palette.selected.excludedContrastText},["& .".concat(Cc.frequencyCount)]:{paddingLeft:"8px",paddingRight:"8px"},["&.".concat(Cc.barContainer)]:{height:"100%",display:"inline-block"},["& .".concat(Cc.bar)]:{border:"".concat(1,"px solid"),borderColor:"#D9D9D9",height:"16px",position:"absolute",zIndex:"-1",alignSelf:"center",left:"".concat(4,"px"),transition:"width 0.2s",backgroundColor:"#FAFAFA"},["& .".concat(Cc.barSelected)]:{opacity:"30%",zIndex:"0",background:t.palette.background.lighter},["& .".concat(Cc.barWithCheckbox)]:{left:"".concat(29,"px")},["& .".concat(Cc.barSelectedWithCheckbox)]:{background:"#BFE5D0",borderColor:"#BFE5D0"},["& .".concat(Cc.excludedTextWithCheckbox)]:{color:"#828282",fontStyle:"italic"}}}));function kc(e){let{index:n,style:r,data:o}=e;const{onClick:s,onMouseDown:l,onMouseUp:c,onMouseEnter:u,pages:d,isLocked:h,column:f=!1,checkboxes:m=!1,dense:g=!1,frequencyMode:y="N",isSingleSelect:b,actions:v,frequencyMax:E="",histogram:x=!1,keyboard:C,showGray:S=!0}=o,L=p(function(e){let{select:t,confirm:n,cancel:r}=e;const o=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=e&&e.parentElement[t?"nextElementSibling":"previousElementSibling"];return n&&n.querySelector("[role]")};let i=!1;const a=e=>{i=e};return e=>{let s;const{keyCode:l,shiftKey:c=!1}=e.nativeEvent;switch(l){case vc.SHIFT:a(!0);break;case vc.SPACE:t([+e.currentTarget.getAttribute("data-n")]);break;case vc.ARROW_DOWN:case vc.ARROW_RIGHT:s=o(e.currentTarget,!0),c&&s&&(i&&(t([+e.currentTarget.getAttribute("data-n")],!0),a(!1)),t([+s.getAttribute("data-n")],!0));break;case vc.ARROW_UP:case vc.ARROW_LEFT:s=o(e.currentTarget,!1),c&&s&&(i&&(t([+e.currentTarget.getAttribute("data-n")],!0),a(!1)),t([+s.getAttribute("data-n")],!0));break;case vc.ENTER:n();break;case vc.ESCAPE:return void r();default:return}s&&s.focus(),e.preventDefault(),e.stopPropagation()}}(v),[v]),[R,q]=i(!1),[I,_]=i(),[T,N]=i([]);a((()=>{if(!d)return;let e;const t=d.filter((e=>e.qArea.qTop<=n&&n<e.qArea.qTop+e.qArea.qHeight))[0];if(t){const r=t.qArea;n>=r.qTop&&n<r.qTop+r.qHeight&&([e]=t.qMatrix[n-r.qTop])}_(e)}),[d]);const D=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,M=e=>e?"A"===e.qState:null;a((()=>{if(!I)return;const e="S"===I.qState||"XS"===I.qState||"L"===I.qState;q(e);const t=[f?Cc.column:Cc.row];x&&g||t.push(Cc.rowBorderBottom),m||("XS"===I.qState?t.push(S?Cc.XS:Cc.S):"S"===I.qState||"L"===I.qState?t.push(Cc.S):S&&M(I)?t.push(Cc.A):S&&D(I)&&t.push(Cc.X)),N(t)}),[I&&I.qState]);const P=e=>e.filter((e=>!!e)).join(" ").trim(),A=()=>(M(I)||D(I))&&m,j=e=>{let{lbl:n,ix:r,color:o,highlighted:i=!1}=e;return t.createElement(O,{component:"span",variant:"body2",key:r,className:P([Cc.labelText,i&&Cc.highlighted,g&&Cc.labelDense,S&&A()&&Cc.excludedTextWithCheckbox]),color:o},t.createElement("span",{style:{whiteSpace:"pre"}},n))},z=e=>{let{lbl:n,color:r,qElemNumber:o}=e;const i=t.createElement(mc,{label:n,checked:R,dense:g,excluded:D(I),showGray:S}),a=t.createElement(bc,{label:n,checked:R,dense:g}),s="string"==typeof n?j({lbl:n,color:r,highlighted:!1}):n;return t.createElement(k,{color:r,control:b?a:i,className:Cc.checkboxLabel,label:s,key:o})},F=I?I.qText:"",B=()=>I?I.qFrequency?I.qFrequency:"0":"",U=I&&I.qHighlightRanges&&I.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[],H=function(e,t){if(!t.length)return[];const n=t.reduce(((n,r,o)=>{const i=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,i=[];return r>n&&i.push([e.slice(n,r),!1]),i.push([e.slice(r,r+o),!0]),i}(e,r,i));const a=o===t.length-1,s=t[o].qCharPos+t[o].qCharCount;return a&&s<e.length&&n.push([e.slice(s),!1]),n}),[]);return n}(F,U),W=m?z:j,$={alignItems:"center",display:"flex"},V=R&&h,G=!m&&R&&!h,K={display:"flex",alignItems:"center",minWidth:0,flexGrow:1,padding:m?0:void 0},Z=0===n;return t.createElement(wc,{className:Cc.barContainer},t.createElement(w,{container:!0,gap:0,className:P(["value",...T]),classes:{root:Cc.fieldRoot},style:r,onClick:s,onMouseDown:l,onMouseUp:c,onMouseEnter:u,onKeyDown:L,onContextMenu:e=>{m&&s(e),e.preventDefault()},role:f?"column":"row",tabIndex:!Z||C.enabled&&!C.active?-1:0,"data-n":I&&I.qElemNumber},I&&x&&"0"!==B()&&t.createElement("div",{className:P([Cc.bar,m&&Cc.barWithCheckbox,R&&(m?Cc.barSelectedWithCheckbox:Cc.barSelected)]),style:{width:(e=>{const t=String(e),n="%"===t.substring(t.length-1),r=parseFloat(n?t:e),o=m?"(".concat(29,"px + ").concat(6,"px)"):"".concat(10,"px");return"calc(".concat(n?r:r/E*100,"% - ").concat(o,")")})(I.qFrequency)}}),t.createElement(w,{item:!0,style:K,className:P([Cc.cell,Cc.selectedCell]),title:"".concat(F)},0===U.length?W({lbl:F,color:"inherit"}):(e=>{let{lbls:t}=e;const n=t.map(((e,t)=>{let[n,r]=e;return j({ix:t,highlighted:r,lbl:n})}));return m?z({lbl:n}):n})({lbls:H})),"N"!==y&&t.createElement(w,{item:!0,style:{display:"flex",alignItems:"center"},className:Cc.frequencyCount},t.createElement(O,{noWrap:!0,color:"inherit",variant:"body2",className:P([g&&Cc.labelDense,Cc.labelText,S&&A()&&Cc.excludedTextWithCheckbox])},B())),(V||G)&&t.createElement(w,{item:!0,className:Cc.icon},V&&t.createElement(zl,{style:$,size:"small"}),G&&t.createElement(uc,{style:$,size:"small"}))))}const Oc={styledScrollbars:"".concat("ListBox","-styledScrollbars")},Rc=Wa(tc)((()=>({["& .".concat(Oc.styledScrollbars)]:{scrollbarColor:"".concat("#BBB"," ").concat("#f1f1f1"),"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:"#f1f1f1"},"&::-webkit-scrollbar-thumb":{backgroundColor:"#BBB",borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}}})));function qc(e){let{model:n,selections:r,direction:o,height:s,width:l,listLayout:c="vertical",frequencyMode:u="N",histogram:d=!1,checkboxes:h=!1,update:f,fetchStart:g,postProcessPages:y,calculatePagesHeight:b=!1,dense:v=!1,keyboard:E={},showGray:x=!0,scrollState:C,sortByState:S,selectDisabled:L=(()=>!1),setCount:w}=e;const[k]=bl(n),O=!(!k||!k.qListObject.qDimensionInfo.qIsOneAndOnlyOne),[R,q]=i(null),[I,_]=i(!1),{instantPages:T=[],interactionEvents:N,select:D}=lc({layout:k,selections:r,pages:R,checkboxes:h,selectDisabled:L,doc:document,isSingleSelect:O}),M=m(null),P=m({queue:[],validPages:!1}),A=m({pages:[]}),j=p((e=>{if(!R||!P.current.validPages)return!1;P.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=R.filter((e=>t(e)))[0];return n&&t(n)}),[k,R]),z=p(((e,t)=>{P.current.queue.push({start:e,stop:t});!!M.current&&M.current._listRef.state.isScrolling;return P.current.queue.length>10&&P.current.queue.shift(),clearTimeout(P.current.timeout),_(!0),new Promise((e=>{P.current.timeout=setTimeout((()=>{const t=P.current.queue.slice(-2).sort(((e,t)=>e.start-t.start)),r=n.getListObjectData("/qListObjectDef",t.map((e=>({qTop:e.start,qHeight:e.stop-e.start+1,qLeft:0,qWidth:1})))).then((t=>{const n=y?y(t):t;P.current.validPages=!0,A.current.pages=n,q(n),_(!1),e()}));g&&g(r)}),0)}))}),[k]),F=()=>{if(P.current.queue=[],P.current.validPages=!1,M.current){if(M.current.resetloadMoreItemsCache(!0),k&&k.qSelectionInfo.qInSelections||0===S)return;M.current._listRef.scrollToItem(0)}};f&&f.call(null,F),a((()=>{F(),"function"==typeof w&&k&&w(k.qListObject.qSize.qcy)}),[k,k&&k.qListObject.qSize.qcy]),a((()=>{T&&!I&&q(T)}),[T]);const[B,U]=i(!1);if(a((()=>{C&&!B&&M.current&&(M.current._listRef.scrollToItem(C.initScrollPos),U(!0))}),[M.current]),!k)return null;const H="horizontal"!==c;let W=k.qListObject.qSize.qcy;0===W&&(W=1);const $=R&&R.length&&b?(e=>{const t=e.some((e=>e.qArea.qHeight<100)),n=Math.max(...e.map((e=>e.qArea.qTop+e.qArea.qHeight)));return t?n:W})(R):W,{itemSize:G,listHeight:K}=function(e){let{isVertical:t,checkboxes:n,dense:r,height:o}=e,i=n?40:33;r&&(i=20);const a=t?i:200;return{itemSize:a,listHeight:o||8*a}}({isVertical:H,checkboxes:h,dense:v,height:s}),Z=k&&k.qListObject.qDimensionInfo.qLocked,{frequencyMax:X}=k;return t.createElement(Rc,{isItemLoaded:j,itemCount:W,loadMoreItems:z,threshold:0,minimumBatchSize:100,ref:M},(e=>{let{onItemsRendered:n,ref:i}=e;return P.current.listRef=i,t.createElement(Jl,{direction:o,"data-testid":"fixed-size-list",useIsScrolling:!0,style:{},height:K,width:l,itemCount:$,layout:c,className:Oc.styledScrollbars,itemData:V(V({isLocked:Z,column:!H,pages:R},Z||L()?{}:N),{},{checkboxes:h,dense:v,frequencyMode:u,isSingleSelect:O,actions:{select:D,confirm:()=>r&&r.confirm.call(r),cancel:()=>r&&r.cancel.call(r)},frequencyMax:X,histogram:d,keyboard:E,showGray:x}),itemSize:G,onItemsRendered:e=>{C&&C.setScrollPos(e.visibleStopIndex),n(V({},e))},ref:i},kc)}))}const Ic=e=>V(V({},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"}}]}),_c=e=>V(V({},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"}}]}),Tc=e=>V(V({},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"}}]}),Nc=e=>V(V({},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 Dc=e=>{let{layout:t,model:n,translator:r}=e;if(t.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];return[{key:"selectAll",type:"menu-icon-button",label:r.get("Selection.SelectAll"),getSvgIconShape:Ic,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{n.selectListObjectAll("/qListObjectDef")}},{key:"selectPossible",type:"menu-icon-button",label:r.get("Selection.SelectPossible"),getSvgIconShape:Tc,enabled:()=>["qOption"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{n.selectListObjectPossible("/qListObjectDef")}},{key:"selectAlternative",type:"menu-icon-button",label:r.get("Selection.SelectAlternative"),getSvgIconShape:_c,enabled:()=>["qAlternative"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{n.selectListObjectAlternative("/qListObjectDef")}},{key:"selectExcluded",type:"menu-icon-button",label:r.get("Selection.SelectExcluded"),getSvgIconShape:Nc,enabled:()=>["qAlternative","qExcluded"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{n.selectListObjectExcluded("/qListObjectDef")}}]};const Mc=e=>V(V({},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 Pc(e){const t=Ba(),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 Ac="njs-cell-action",jc=t.forwardRef(((e,n)=>{let{item:r,addAnchor:o=!1}=e;const i=Ba(),{hidden:a,disabled:s,style:l,hasSvgIconShape:c}=Pc(r);if(a)return null;const u=r.keyboardAction?e=>["Enter"," ","Spacebar"].includes(e.key)&&r.keyboardAction():null;return t.createElement(R,{ref:o?null:n,title:r.label,onClick:r.action,onKeyDown:u,disabled:s,style:l,className:Ac,size:"large"},c&&Al(r.getSvgIconShape()),o&&t.createElement("div",{ref:n,style:{bottom:-i.spacing(.5),right:0,position:"absolute",width:"100%",height:0}}))})),zc=e=>V(V({},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"}}]}),Fc=e=>V(V({},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 Bc=e=>Al(Fc(e));const Uc={icon:"".concat("More","-icon")},Hc=Wa(q)((e=>{let{theme:t}=e;return{["& .".concat(Uc.icon)]:{color:t.palette.text.primary}}}));function Wc(e){let{item:n,onActionClick:r=(()=>{})}=e;const{hidden:o,disabled:i,hasSvgIconShape:a}=Pc(n);return o?null:t.createElement(_,{title:n.label,onClick:()=>{n.action(),r()},disabled:i},a&&t.createElement(T,{className:Uc.icon},Al(n.getSvgIconShape())),t.createElement(O,{noWrap:!0},n.label))}const $c=t.forwardRef(((e,n)=>{let{actions:r=[],show:o=!0,alignTo:i,popoverProps:a={},popoverPaperStyle:s={},onCloseOrActionClick:l=(()=>{})}=e;return r.length>0&&t.createElement(Hc,K({},a,{onClose:l,ref:n,open:o,anchorEl:i.current,getContentAnchorEl:null,container:i.current,disablePortal:!0,hideBackdrop:!0,style:{pointerEvents:"none"},transitionDuration:0,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{style:V({pointerEvents:"auto",maxWidth:"250px"},s)}}),t.createElement(I,null,r.map(((e,n)=>t.createElement(Wc,{key:n,item:e,onActionClick:l})))))})),Vc={itemSpacing:"".concat("ActionsToolbar","-itemSpacing"),firstItemSpacing:"".concat("ActionsToolbar","-firstItemSpacing"),lastItemSpacing:"".concat("ActionsToolbar","-lastItemSpacing")},Gc=Wa(q)((e=>{let{theme:t}=e;return{["& .".concat(Vc.itemSpacing)]:{padding:t.spacing(0,.5)},["& .".concat(Vc.firstItemSpacing)]:{padding:t.spacing(0,.5,0,0)},["& .".concat(Vc.lastItemSpacing)]:{padding:t.spacing(0,0,0,.5)}}})),Kc="njs-action-toolbar-popover",Zc=t.forwardRef(((e,n)=>{let{actions:r=[],first:o=!1,last:i=!1,addAnchor:a=!1}=e;return r.length>0?t.createElement(w,{item:!0,container:!0,gap:0,wrap:"nowrap"},r.map(((e,s)=>{let l=[];const c=o&&0===s,u=i&&r.length-1===s;return c&&!u&&(l=[Vc.firstItemSpacing]),u&&!c&&(l=[...l,Vc.lastItemSpacing]),c||u||0!==l.length||(l=[Vc.itemSpacing]),t.createElement(w,{item:!0,key:e.key,className:l.join(" ").trim()},t.createElement(jc,{key:e.key,item:e,ref:0===s?n:null,addAnchor:a}))}))):null})),Xc={pointerEvents:"none"},Jc={vertical:"top",horizontal:"right"},Yc={vertical:"bottom",horizontal:"right"};function Qc(e){let{show:n=!0,actions:r=[],maxItems:o=3,selections:s={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},more:l={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{}},popover:u={show:!1,anchorEl:null},focusHandler:p=null,actionsRefMock:d=null}=e;const h=function(e){let{api:t,onConfirm:n=(()=>{}),onCancel:r=(()=>{}),onKeyDeactivate:o=(()=>{})}=e;const{translator:i}=g(el);return[{key:"clear",type:"icon-button",label:i.get("Selection.Clear"),enabled:()=>t.canClear(),action:()=>t.clear(),getSvgIconShape:Fc},{key:"cancel",type:"icon-button",label:i.get("Selection.Cancel"),enabled:()=>t.canCancel(),action:()=>{r(),t.cancel()},keyboardAction:e=>{o(e),r(),t.cancel()},getSvgIconShape:zc},{key:"confirm",type:"icon-button",label:i.get("Selection.Confirm"),enabled:()=>t.canConfirm(),action:()=>{n(),t.confirm()},keyboardAction:e=>{o(e),n(),t.confirm()},getSvgIconShape:cc}]}(s),{translator:f,keyboardNavigation:y}=g(el),[b,v]=i(!1),[E,x]=i(l.enabled),[C,S]=i(l.actions),[L,k]=i(l.alignTo),O=m(),R=m(),q=Ba(),I=c((()=>({margin:q.spacing(.5,0)}))),_=e=>{const t=R.current||d;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]};a((()=>()=>v(!1)),[u.show]),a((()=>{x(l.enabled)}),[l.enabled]),a((()=>{if(!p)return;p.on("focus_toolbar_first",(()=>{const e=_(!1);e&&e.focus()})),p.on("focus_toolbar_last",(()=>{const e=_(!0);e&&e.focus()}))}),[]);const T=c((()=>r.filter((e=>!e.hidden))),[r]);if(!s.show&&0===T.length)return null;const D={key:"more",label:f.get("Menu.More"),getSvgIconShape:Mc,hidden:!1,enabled:()=>E,action:()=>v(!b)};if(T.length>o){const e=T.splice(-(T.length-o)-1);x(!0),S([...e,...l.actions]),k(O)}const M=y&&p&&p.refocusContent?e=>{if("Tab"!==e.key)return;(e.shiftKey&&_(!1)===e.target||!e.shiftKey&&_(!0)===e.target)&&(e.preventDefault(),e.stopPropagation(),p.refocusContent())}:null,P=T.length>0,A=C.length>0,j=P&&s.show||A&&s.show,z=t.createElement(w,{ref:R,onKeyDown:M,container:!0,gap:0,wrap:"nowrap"},P&&t.createElement(Zc,{actions:T,first:!0,last:!A&&!s.show}),A&&t.createElement(Zc,{ref:O,actions:[D],first:!P,last:!s.show,addAnchor:!0}),j&&t.createElement(w,{item:!0,className:Vc.itemSpacing,style:I},t.createElement(N,{orientation:"vertical"})),s.show&&t.createElement(Zc,{actions:h,first:!P&&!A,last:!0}),b&&t.createElement($c,{show:b,actions:C,alignTo:L,popoverProps:l.popoverProps,popoverPaperStyle:l.popoverPaperStyle,onCloseOrActionClick:()=>{v(!1)}}));return u.show?t.createElement(Gc,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:u.show,anchorEl:u.anchorEl,anchorOrigin:Jc,transformOrigin:Yc,hideBackdrop:!0,style:Xc,PaperProps:{className:Kc,style:{pointerEvents:"auto",padding:q.spacing(1,1)}}},z):n&&z}var eu=e=>Al((e=>V(V({},e),{},{shapes:[{type:"path",attrs:{d:"M15.7873809,13.80959 C16.1870614,14.209868 15.9872212,15.1104934 15.4876205,15.5107714 C15.08794,15.9110493 14.1886588,16.2112578 13.7889782,15.8109798 L11.0911347,13.1091035 L10.9912145,12.5086866 L10.2917736,11.8082001 C9.19265216,12.5086866 7.89369045,13.0090341 6.49480859,13.0090341 C2.89768383,13.0090341 0,10.1070188 0,6.50451703 C0,2.90201529 2.89768383,0 6.49480859,0 C10.0919334,0 12.9896172,2.90201529 12.9896172,6.50451703 C12.9896172,7.90548992 12.4900165,9.20639333 11.7905756,10.3071577 L12.4900165,11.0076442 L13.0895373,11.1077137 L15.7873809,13.80959 Z M11.2909749,6.50451703 C11.2909749,5.20361362 10.7913743,4.00277971 9.89209309,3.00208478 C8.9928119,2.10145935 7.79377031,1.60111188 6.49480859,1.60111188 C5.19584688,1.60111188 3.99680529,2.10145935 2.99760397,3.00208478 C2.09832278,4.00277971 1.59872212,5.20361362 1.59872212,6.50451703 C1.59872212,7.80542043 2.09832278,9.00625434 2.99760397,9.90687978 C3.89688516,10.8075052 5.09592674,11.3078527 6.49480859,11.3078527 C7.79377031,11.4079222 8.9928119,10.9075747 9.89209309,9.90687978 C10.7913743,9.00625434 11.2909749,7.80542043 11.2909749,6.50451703 Z"}}]}))(e));function tu(e){let{model:n,keyboard:r,dense:o=!1,visible:s=!0}=e;const{translator:l}=g(el),[c,u]=i(""),[p,d]=i(!1),h=Ba(),f=async()=>{await n.abortListObjectSearch("/qListObjectDef"),d(!1)};a((()=>{!s&&p&&f()}),[s]);return s?t.createElement(D,{startAdornment:t.createElement(M,{position:"start"},t.createElement(eu,{size:o?"small":"normal"})),className:"search",sx:[{border:"none",borderRadius:0,"& fieldset":{border:"1px solid ".concat(h.palette.divider),borderWidth:"1px 0 1px 0",borderRadius:0},"&:hover":{border:"none"}},o&&{fontSize:12,paddingLeft:h.spacing(1),"& input":{paddingTop:"5px",paddingBottom:"5px"}}],size:"small",fullWidth:!0,placeholder:l.get("Listbox.Search"),value:c,onChange:e=>{u(e.target.value),0===e.target.value.length?f():(n.searchListObjectFor("/qListObjectDef",e.target.value),d(!0))},onKeyDown:e=>{switch(e.key){case"Enter":n.acceptListObjectSearch("/qListObjectDef",!0),u("");break;case"Escape":f(),u("")}},inputProps:{tabIndex:!r||r.enabled&&!r.active?-1:0}}):null}function nu(e){return Object.keys(re.prototype).forEach((t=>{e[t]=re.prototype[t]})),re.init(e),e}function ru(e,t){const[n]=Tl(e),[r]=bl(t),o=t?t.id:null,[i]=kl(),[s]=Rl(),l=i.get(e.id);let c=s.get(o);return a((()=>{n&&t&&!c&&(c=function(e){let t,{appSelections:n,appModal:r,model:o}=e,i=!1,a=!1;const s={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():(i=!0,this.emit("activated"),r.begin(o,e,!0))},clear(){return a=!1,this.emit("cleared"),t.qListObject?o.clearSelections("/qListObjectDef"):o.resetMadeSelections()},confirm(){return a=!1,i=!1,this.emit("confirmed"),this.emit("deactivated"),r.end(!0)},cancel(){return a=!1,i=!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 a="resetMadeSelections"!==e.method,!!r||(o.resetMadeSelections(),!1)},canClear:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked&&!t.qListObject.qDimensionInfo.qIsOneAndOnlyOne:a,canConfirm:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked:a,canCancel:()=>!(t&&t.qListObject&&t.qListObject.qDimensionInfo&&t.qListObject.qDimensionInfo.qLocked),isActive:()=>i,isModal:()=>n.isModal(o),goModal:e=>r.begin(o,e,!1),noModal:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return r.end(e)}};return nu(s),s}({appSelections:n,appModal:l,model:t}),s.set(o,c),s.dispatch(!0))}),[n,t]),a((()=>{c&&c.setLayout(r)}),[c,r]),[c]}function ou(e){let{alignTo:n,show:r,close:o,app:i,fieldName:s,stateName:l="$"}=e;const c=r&&Boolean(n.current),u=Ba(),[d]=El({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:l,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],qFieldDefs:[s]}}},i,s,l),h=p((()=>{d.lock("/qListObjectDef")}),[d]),f=p((()=>{d.unlock("/qListObjectDef")}),[d]),{translator:y}=g(el),b=m(),[v]=ru(i,d),[E]=bl(d);if(a((()=>{v&&c&&(v.isModal(d)||v.goModal("/qListObjectDef"))}),[v,c]),!d||!E||!y)return null;const x=!0===E.qListObject.qDimensionInfo.qLocked,C=(e,t)=>{const n="escapeKeyDown"!==t;v.noModal(n),o()},S=Dc({layout:E,model:d,translator:y}),L=E.qListObject.qDimensionInfo.qStateCounts,k=L.qSelected+L.qSelectedExcluded+L.qLocked+L.qLockedExcluded>0;return t.createElement(q,{open:c,onClose:C,anchorEl:n.current,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"250px"}}},t.createElement(w,{container:!0,direction:"column",gap:0},t.createElement(w,{item:!0,container:!0,style:{padding:u.spacing(1)}},t.createElement(w,{item:!0},x?t.createElement(R,{onClick:f,disabled:!x,size:"large"},t.createElement(zl,{title:y.get("Listbox.Unlock")})):t.createElement(R,{onClick:h,disabled:!k,size:"large"},t.createElement(Fl,{title:y.get("Listbox.Lock")}))),t.createElement(w,{item:!0,xs:!0}),t.createElement(w,{item:!0},t.createElement(Qc,{more:{enabled:!x,actions:S,alignTo:b,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:v,onConfirm:C,onCancel:()=>C(0,"escapeKeyDown")}}))),t.createElement(w,{item:!0,xs:!0},t.createElement("div",{ref:b}),t.createElement(tu,{model:d,visible:!0}),t.createElement(qc,{model:d,selections:v,direction:"ltr"}))))}function iu(e){let{field:n,api:r,stateIx:o=0,skipHandleShowListBoxPopover:a=!1,moreAlignTo:s=null,onClose:l=(()=>{})}=e;const{translator:c}=g(el),u=s||m(),p=Ba(),[d,h]=i(!1),f=e=>{e.currentTarget.contains(e.target)&&h(!d)},y=()=>{h(!1),l()},b=n.selections[o];void 0===b.qTotal&&(b.qTotal=0);const v=b.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},E=(v.qSelected+v.qLocked)/b.qTotal,x=v.qAlternative/b.qTotal,C=(v.qExcluded+v.qLockedExcluded+v.qSelectedExcluded)/b.qTotal,S=v.qSelected+v.qSelectedExcluded+v.qLocked+v.qLockedExcluded,L=0===S&&0===b.qTotal;let k="";b.qTotal===S&&b.qTotal>1?k=c.get("CurrentSelections.All"):S>1&&b.qTotal?k=c.get("CurrentSelections.Of",[S,b.qTotal]):b.qSelectedFieldSelectionInfo&&(k=b.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==n.states[o]&&(k="".concat(n.states[o],": ").concat(k));const q=[{color:p.palette.selected.main,ratio:E},{color:p.palette.selected.alternative,ratio:x},{color:p.palette.selected.excluded,ratio:C}];q.forEach(((e,t)=>{e.offset=t?q[t-1].offset+q[t-1].ratio:0}));let I=null,_=null,T=null,N=null;return s||(I=t.createElement(w,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:b.qLocked?"0.3":""}},t.createElement(O,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},b.qField),t.createElement(O,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},k)),b.qLocked?_=t.createElement(w,{item:!0},t.createElement(R,{size:"large"},t.createElement(zl,null))):b.qOneAndOnlyOne||(_=t.createElement(w,{item:!0},t.createElement(R,{title:c.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),r.clearField(b.qField,n.states[o])},size:"large"},t.createElement(jl,null)))),T=t.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===L&&q.map((e=>t.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,"%")}})))),N=t.createElement(w,{container:!0,gap:1,ref:u,sx:{backgroundColor:p.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:p.palette.action.hover}},onClick:!1===a&&f||null},I,_,T,d&&t.createElement(ou,{alignTo:u,show:d,close:y,app:r.model,fieldName:b.qField,stateName:n.states[o]}))),s?t.createElement(ou,{alignTo:u,show:!0,close:y,app:r.model,fieldName:b.qField,stateName:n.states[o]}):N}var au=e=>Al((e=>V(V({},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 su={item:"".concat("MultiState","-item")},lu=Wa(w)((e=>{let{theme:t}=e;return{["&.".concat(su.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"}}}));function cu(e){let{field:n,api:r,moreAlignTo:o=null,onClose:a=(()=>{})}=e;const[s,l]=i(!!o),[c,u]=i(-1),[p,d]=i(o?o.current:null),h=o||m(),{translator:f}=g(el),y=f.get("Selection.ClearAllStates"),b=()=>{u(-1),a()};let v=null;o||(v=t.createElement(t.Fragment,null,t.createElement(w,{item:!0,xs:!0,zeroMinWidth:!0},t.createElement(P,{style:{padding:"0px 8px"},color:"secondary",badgeContent:n.states.length},t.createElement(O,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},n.name))),t.createElement(w,{item:!0},t.createElement("div",{style:{width:"12px"}})),t.createElement(w,{item:!0},t.createElement(R,{size:"large"},t.createElement(au,null)))));const E=t.createElement(A,{dense:!0},t.createElement(j,{title:y,onClick:()=>{n.states.forEach((e=>r.clearField(n.name,e)))}},t.createElement(z,{variant:"contained",fullWidth:!0},y)),n.states.map(((e,o)=>t.createElement(j,{key:o,title:n.name,onClick:e=>((e,t)=>{e.stopPropagation(),l(!1),u(t)})(e,o)},t.createElement(F,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},t.createElement(iu,{field:n,api:r,stateIx:o,skipHandleShowListBoxPopover:!0})))))),x=t.createElement(q,{open:s,onClose:()=>{l(!1),a()},anchorEl:p,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},E),C=o?x:t.createElement(lu,{container:!0,gap:0,className:su.item,onClick:e=>{e.currentTarget.contains(e.target)&&(d(e.currentTarget),h.current=e.currentTarget,l(!s))}},v,s&&x,c>-1&&t.createElement(ou,{alignTo:h,show:c>-1,close:b,app:r.model,fieldName:n.selections[c].qField,stateName:n.states[c]}));return o&&c>-1?t.createElement(ou,{alignTo:h,show:c>-1,close:b,app:r.model,fieldName:n.selections[c].qField,stateName:n.states[c]}):C}const uu={item:"".concat("More","-item"),badge:"".concat("More","-badge")},pu=Wa(w)((e=>{let{theme:t}=e;return{["&.".concat(uu.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(uu.badge)]:{padding:t.spacing(0,1)}}}));function du(e){let{items:n=[],api:r}=e;const o=Ba(),[a,s]=i(!1),[l,c]=i(-1),[u,p]=i(null),d=m(),h=()=>{c(-1)};let f=null;return l>-1&&(f=n[l].states.length>1?t.createElement(cu,{field:n[l],api:r,moreAlignTo:d,onClose:h}):t.createElement(iu,{field:n[l],api:r,skipHandleShowListBoxPopover:!0,moreAlignTo:d,onClose:h})),t.createElement(pu,{container:!0,gap:0,className:uu.item,onClick:e=>{e.currentTarget.contains(e.target)&&(p(e.currentTarget),d.current=e.currentTarget,s(!a))}},t.createElement(w,{item:!0},t.createElement(F,{borderRadius:o.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:o.palette.selected.main,color:o.palette.selected.mainContrastText}},t.createElement(O,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",n.length))),t.createElement(w,{item:!0},t.createElement(R,{size:"large"},t.createElement(au,null))),a&&t.createElement(q,{open:a,onClose:()=>{s(!1)},anchorEl:u,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},t.createElement(A,{dense:!0},n.map(((e,n)=>t.createElement(j,{key:n,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),s(!1),c(t)})(e,n)},t.createElement(F,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?t.createElement(cu,{field:e,api:r}):t.createElement(iu,{field:e,api:r}))))))),f)}function hu(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 fu(e){let{api:n,app:r}=e;const o=Ba(),[s]=Cl(r),[l]=bl(s),[c,u]=i({items:[],more:[]}),[p]=Il(),[d,h]=Ml(),[f,m]=i(0);return a((()=>{if(!h)return;const{width:e}=h,t=Math.floor(e)-72,n=Math.floor(t/120);m(n)}),[h]),a((()=>{if(!(r&&s&&l&&f))return;const e=function(e){if(!e)return[];const t={};return e.qSelectionObject&&hu(e.qSelectionObject,t),e.alternateStates&&e.alternateStates.forEach((e=>hu(e.qSelectionObject,t,e.stateName))),Object.keys(t).map((e=>t[e]))}(l);u((t=>{const n=e;if((()=>{const e=p.get(r.id);return e&&"njsListbox"===e.genericType})()&&n.length+1===t.items.length){const e=t.items.filter((e=>!1===n.some((t=>e.name===t.name))))[0],{qField:r}=e.selections[0];e.selections=[{qField:r}];const o=t.items.indexOf(e);n.splice(o,0,e)}let o=[];return f<n.length&&(o=n.splice(f-n.length)),{items:n,more:o}}))}),[r,s,l,n.isInModal(),f]),t.createElement(w,{ref:d,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},c.items.map((e=>t.createElement(w,{item:!0,key:"".concat(e.states.join("::"),"::").concat(e.name),style:{position:"relative",maxWidth:"240px",minWidth:"".concat(120,"px"),background:o.palette.background.paper,borderRight:"1px solid ".concat(o.palette.divider)}},e.states.length>1?t.createElement(cu,{field:e,api:n}):t.createElement(iu,{field:e,api:n})))),c.more.length>0&&t.createElement(w,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(72,"px"),background:o.palette.background.paper,borderRight:"1px solid ".concat(o.palette.divider)}},t.createElement(du,{items:c.more,api:n})))}var mu=e=>Al((e=>V(V({},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 gu=e=>Al((e=>V(V({},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));function yu(e){let{api:n,app:r}=e;const{translator:o}=g(el),[i]=Sl(r);return t.createElement(w,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},t.createElement(w,{item:!0},t.createElement(R,{style:{marginRight:"8px"},disabled:!i||!i.canGoBack,title:o.get("Navigate.Back"),onClick:()=>n.back(),size:"large"},t.createElement(mu,null))),t.createElement(w,{item:!0},t.createElement(R,{style:{marginRight:"8px"},disabled:!i||!i.canGoForward,title:o.get("Navigate.Forward"),onClick:()=>n.forward(),size:"large"},t.createElement(gu,null))),t.createElement(w,{item:!0},t.createElement(R,{disabled:!i||!i.canClear,title:o.get("Selection.ClearAll"),onClick:()=>n.clear(),size:"large"},t.createElement(Bc,null))))}function bu(e){let{app:n}=e;const r=Ba(),[o]=Tl(n);return o?t.createElement(w,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:r.palette.background.paper,minHeight:"40px"}},t.createElement(w,{item:!0,style:{borderRight:"1px solid ".concat(r.palette.divider)}},t.createElement(yu,{api:o,app:n})),t.createElement(w,{item:!0,xs:!0,style:{backgroundColor:r.palette.background.darker,overflow:"hidden"}},t.createElement(fu,{api:o,app:n}))):null}function vu(e){let{element:n,app:r}=e;return y.createPortal(t.createElement(bu,{app:r}),n)}var Eu=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},xu=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}}(),Cu=Object.assign||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},Su=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},Lu=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},wu=void 0;wu="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;var ku=null,Ou=null,Ru=wu.clearTimeout,qu=wu.setTimeout,Iu=wu.cancelAnimationFrame||wu.mozCancelAnimationFrame||wu.webkitCancelAnimationFrame,_u=wu.requestAnimationFrame||wu.mozRequestAnimationFrame||wu.webkitRequestAnimationFrame;function Tu(e){var t=void 0,n=void 0,r=void 0,o=void 0,i=void 0,a=void 0,s=void 0,l="undefined"!=typeof document&&document.attachEvent;if(!l){a=function(e){var 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},i=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},s=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)){var t=this;a(this),this.__resizeRAF__&&ku(this.__resizeRAF__),this.__resizeRAF__=Ou((function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))}};var c=!1,u="";r="animationstart";var p="Webkit Moz O ms".split(" "),d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),h=document.createElement("fakeelement");if(void 0!==h.style.animationName&&(c=!0),!1===c)for(var f=0;f<p.length;f++)if(void 0!==h.style[p[f]+"AnimationName"]){u="-"+p[f].toLowerCase()+"-",r=d[f],c=!0;break}t="@"+u+"keyframes "+(n="resizeanim")+" { from { opacity: 0; } to { opacity: 0; } } ",o=u+"animation: 1ms "+n+"; "}return{addResizeListener:function(i,c){if(l)i.attachEvent("onresize",c);else{if(!i.__resizeTriggers__){var u=i.ownerDocument,p=wu.getComputedStyle(i);p&&"static"===p.position&&(i.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){var 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%; }',i=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),i.appendChild(a)}}(u),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=u.createElement("div")).className="resize-triggers";var d=u.createElement("div");d.className="expand-trigger",d.appendChild(u.createElement("div"));var h=u.createElement("div");h.className="contract-trigger",i.__resizeTriggers__.appendChild(d),i.__resizeTriggers__.appendChild(h),i.appendChild(i.__resizeTriggers__),a(i),i.addEventListener("scroll",s,!0),r&&(i.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(i)},i.__resizeTriggers__.addEventListener(r,i.__resizeTriggers__.__animationListener__))}i.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(l)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",s,!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==Iu||null==_u?(ku=Ru,Ou=function(e){return qu(e,20)}):(ku=function(e){var t=Lu(e,2),n=t[0],r=t[1];Iu(n),Ru(r)},Ou=function(e){var t=_u((function(){Ru(n),e()})),n=qu((function(){Iu(t),e()}),20);return[t,n]});var Nu=function(e){function t(){var e,n,r;Eu(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=Su(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.state={height:r.props.defaultHeight||0,width:r.props.defaultWidth||0},r._onResize=function(){var e=r.props,t=e.disableHeight,n=e.disableWidth,o=e.onResize;if(r._parentNode){var i=r._parentNode.offsetHeight||0,a=r._parentNode.offsetWidth||0,s=window.getComputedStyle(r._parentNode)||{},l=parseInt(s.paddingLeft,10)||0,c=parseInt(s.paddingRight,10)||0,u=parseInt(s.paddingTop,10)||0,p=parseInt(s.paddingBottom,10)||0,d=i-u-p,h=a-l-c;(!t&&r.state.height!==d||!n&&r.state.width!==h)&&(r.setState({height:i-u-p,width:a-l-c}),o({height:i,width:a}))}},r._setRef=function(e){r._autoSizer=e},Su(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,f),xu(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._detectElementResize=Tu(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.disableHeight,o=e.disableWidth,i=e.style,a=this.state,s=a.height,l=a.width,c={overflow:"visible"},u={},p=!1;return r||(0===s&&(p=!0),c.height=0,u.height=s),o||(0===l&&(p=!0),c.width=0,u.width=l),h("div",{className:n,ref:this._setRef,style:Cu({},c,i)},!p&&t(u))}}]),t}();Nu.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}};const Du={listBoxHeader:"".concat("ListBoxInline","-listBoxHeader")},Mu=Wa(w)((()=>({["& .".concat(Du.listBoxHeader)]:{alignSelf:"center",display:"inline-flex"}})));function Pu(e){let{app:n,fieldIdentifier:r,stateName:o="$",options:s={},fieldDef:l}=e;const{title:c,direction:u,listLayout:d,search:h=!0,focusSearch:f=!1,toolbar:y=!0,rangeSelect:b=!0,checkboxes:v=!1,properties:E={},sessionModel:x,selectionsApi:C,update:S,fetchStart:L,dense:k=!1,selectDisabled:q=(()=>!1),postProcessPages:I,calculatePagesHeight:_,showGray:T=!0,sortByState:N=1,scrollState:D,setCount:M,shouldConfirmOnBlur:P}=s;let{frequencyMode:A,histogram:j=!1}=s;switch(l&&l.failedToFetchFieldDef&&(j=!1,A="N"),!0){case["none","N","NX_FREQUENCY_NONE"].includes(A):A="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(A):A="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(A):A="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(A):A="R";break;default:A="N"}const z=V({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:o,qShowAlternatives:!0,qFrequencyMode:j&&"N"===A?"V":A,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:N,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},title:c},E);let F;if(r.qLibraryId?(z.qListObjectDef.qLibraryId=r.qLibraryId,F=r.qLibraryId):(z.qListObjectDef.qDef.qFieldDefs=[r],F=r),"N"!==A||j){const e=r.qLibraryId?l:F;z.frequencyMax={qValueExpression:"Max(AGGR(Count([".concat(e,"]), [").concat(e,"]))")}}let[B]=El(z,x?null:n,F,o);x&&(B=x);let U=ru(C?{}:n,B)[0];C&&(U=C);const H=Ba(),W=p((()=>{B.lock("/qListObjectDef")}),[B]),$=p((()=>{B.unlock("/qListObjectDef")}),[B]),{translator:G,keyboardNavigation:K}=g(el),Z=m(),[X,J]=(()=>{const[e,t]=i({}),n=p((e=>{t({current:e})}),[t]);return[e,n]})(),[Y]=bl(B),[Q,ee]=i(!1),[te,ne]=i(!1),[re,oe]=i(!1),ie=Ec({setKeyboardActive:oe}),ae={enabled:K,active:re};a((()=>{const e=()=>ee(!0),t=()=>ee(!1);return U&&(U.isModal(B)||(U.on("deactivated",t),U.on("activated",e))),()=>{U&&(U.removeListener("deactivated",e),U.removeListener("activated",t))}}),[U]),a((()=>{U&&ee(U.isActive())}),[U]);const se=m(null);if(function(e,t,n){const[r,o]=i(!1),s=m(r),l=e=>{s.current=e,o(e)};a((()=>{if(!n)return;const r=n=>{const r=e.current&&e.current.contains(n.target),o=s.current;r||o?r&&l(!1):(t&&t.confirm.call(t),l(!0))};return document.addEventListener("mousedown",r),document.addEventListener("keydown",r),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("keydown",r)}}),[e,t,n])}(se,U,P),a((()=>{if(X&&X.current&&(h&&f||"toggle"===h&&te)){const e=X.current.querySelector("input");e&&e.focus()}}),[X&&X.current,te,h,f]),!B||!Y||!G)return null;const le=!0===Y.qListObject.qDimensionInfo.qLocked,ce=y?Dc({layout:Y,model:B,translator:G}):[],ue=Y.qListObject.qDimensionInfo.qStateCounts,pe=ue.qSelected+ue.qSelectedExcluded+ue.qLocked+ue.qLockedExcluded>0,de=(!0===h||"toggle"===h&&te)&&!q(),he=49+(de?k?27:40:0)+(k?39:49),fe=()=>{ne(!te)};return t.createElement(Mu,{container:!0,tabIndex:ae.enabled&&!ae.active?0:-1,direction:"column",gap:0,style:{height:"100%",minHeight:"".concat(he,"px")},onKeyDown:ie,ref:se},y&&t.createElement(w,{item:!0,container:!0,style:{padding:H.spacing(1)}},t.createElement(w,{item:!0},le?t.createElement(R,{tabIndex:-1,onClick:$,disabled:!le,size:"large"},t.createElement(zl,{title:G.get("Listbox.Unlock")})):"toggle"!==h||pe?t.createElement(R,{onClick:W,tabIndex:-1,disabled:!pe,size:"large"},t.createElement(Fl,null)):t.createElement(R,{onClick:fe,tabIndex:-1,title:G.get("Listbox.Search"),size:"large"},t.createElement(eu,null))),t.createElement(w,{item:!0,className:Du.listBoxHeader},t.createElement(O,{variant:"h6",noWrap:!0},Y.title||Y.qListObject.qDimensionInfo.qFallbackTitle)),t.createElement(w,{item:!0,xs:!0}),t.createElement(w,{item:!0},t.createElement(Qc,{more:{enabled:!le,actions:ce,alignTo:Z,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:Q,api:U,onConfirm:()=>{},onCancel:()=>{}}}))),t.createElement(w,{item:!0,ref:J},t.createElement(tu,{model:B,dense:k,keyboard:ae,visible:de})),t.createElement(w,{item:!0,xs:!0},t.createElement("div",{ref:Z}),t.createElement(Nu,null,(e=>{let{height:n,width:r}=e;return t.createElement(qc,{model:B,selections:U,direction:u,listLayout:d,frequencyMode:A,histogram:j,rangeSelect:b,checkboxes:v,height:n,width:r,update:S,fetchStart:L,postProcessPages:I,calculatePagesHeight:_,dense:k,selectDisabled:q,keyboard:ae,showGray:T,scrollState:D,sortByState:N,setCount:M})}))))}function Au(e){let{app:n,fieldIdentifier:r,stateName:o="$",options:s={}}=e;const[l,c]=i(""),[u,p]=i(!1);return a((()=>{!async function(){p(!0);try{const e=await n.getDimension(r.qLibraryId),t=await e.getLayout();c(t.qDim.qFieldDefs?t.qDim.qFieldDefs[0]:""),p(!1)}catch(e){throw p(!1),c({failedToFetchFieldDef:!0}),new Error("Disabling frequency count and histogram: ".concat(e&&e.message))}}()}),[]),u?null:t.createElement(Pu,{app:n,fieldIdentifier:r,stateName:o,options:s,fieldDef:l})}function ju(e){let{app:n,fieldIdentifier:r,stateName:o,element:i,options:a}=e;const s=a.histogram||"N"!==a.frequencyMode,l=r.qLibraryId&&s?Au:Pu;return y.createPortal(t.createElement(l,{app:n,fieldIdentifier:r,stateName:o,element:i,options:a}),i)}const zu=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function Fu(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function Bu(){return zu.map(Fu).join("")}function Uu(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function Hu(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}function Wu(e){let{sn:t,properties:n,fields:r}=e;if(!r.length)return;const o=t.qae.data.targets[0];if(!o)return;const{propertyPath:i}=o,a=i.split("/");let s=n;for(let e=0;e<a.length;e++){const t=a[e];s=t?s[t]:s}const l=function(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?(e=>({qDef:{qFieldDefs:[e]}}))(e):V(V({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||Bu(),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),Uu(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))},removeDimension(e){const r=t.qDimensions.splice(e,1)[0];Hu(t.qInterColumnSortOrder,e),n.dimensions.removed(r,o,e)},addMeasure(e){const r="string"==typeof e?(e=>({qDef:{qDef:e}}))(e):V(V({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||Bu(),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),Uu(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];Hu(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}({dc:s,def:o,properties:n});r.forEach((e=>{const t=function(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"}(e);"measure"===t?l.addMeasure(e):l.addDimension(e)}))}var $u=(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},Vu=(e,t,n)=>{if(null==e||null==t)return;const r=t.split("."),o=r[r.length-1];let i=e;for(let e=0;e<r.length-1;++e){const t=r[e];void 0!==i[t]&&null!==i[t]||(i[t]=Number.isNaN(+r[e+1])?{}:[]),i=i[t]}void 0!==n&&"__proto__"!==o&&"constructor"!==o?i[o]=n:delete i[o]},Gu=e=>0===Object.keys(e).length&&e.constructor===Object;var Ku={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}};function Zu(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function Xu(e,t){const n=de(!0,{},t,e);return $u(n,"qOtherTotalSpec.qOtherCounted")||Vu(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),$u(n,"qOtherTotalSpec.qOtherLimit")||Vu(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function Ju(e,t){return de(!0,{},t,e)}function Yu(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var Qu={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===$u(e,t)&&Vu(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:Zu,importCommonProperties:function(e,t,n){const r="masterobject"===$u(t,"properties.qInfo.qType")?"masterobject":$u(n,"qInfo.qType");Vu(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:Xu,createDefaultMeasure:Ju,resolveValue:Yu,getHypercubePath:function(e){const t=$u(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 i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(Ku.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,Ku.indexRemoved(n.qInterColumnSortOrder,i))},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=de(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?Vu(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||Zu(e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),o=de(!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},i=n.measures||{max:0},a=Yu(i.max,r.dimensions.length,9007199254740991),s=Yu(i.min,r.dimensions.length,0);return{maxDimensions:Yu(o.max,a,9007199254740991),minDimensions:Yu(o.min,s,0),maxMeasures:a,minMeasures:s}},shouldInitLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:i}=e;const a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!n&&a.dimensions.length>0},initLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:i,newHyperCubeDef:a}=e;const s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>n&&n>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>o&&o>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},addDefaultDimensions:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,newHyperCubeDef:o,defaultDimension:i}=e;const a=t.data[0];let s;if(n>0)for(s=0;s<a.dimensions.length;++s)o.qDimensions.length<n?o.qDimensions.push(Xu(a.dimensions[s],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(Xu(a.dimensions[s],i));else if(a.dimensions.length)for(s=0;s<a.dimensions.length;++s)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(Xu(a.dimensions[s],i));if(a.excludedDimensions.length)for(s=0;s<a.excludedDimensions.length;++s)o.qDimensions.length<r?o.qDimensions.push(Xu(a.excludedDimensions[s],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(Xu(a.excludedDimensions[s],i))},addDefaultMeasures:function(e){let{exportFormat:t,maxMeasures:n,minMeasures:r,newHyperCubeDef:o,defaultMeasure:i}=e;const a=t.data[0];let s;if(n>0)for(s=0;s<a.measures.length;++s)o.qMeasures.length<n?o.qMeasures.push(Ju(a.measures[s],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(Ju(a.measures[s],i));else if(a.measures.length)for(s=0;s<a.measures.length;++s)o.qLayoutExclude.qHyperCubeDef.qMeasures.push(Ju(a.measures[s],i));if(a.excludedMeasures.length)for(s=0;s<a.excludedMeasures.length;++s)o.qMeasures.length<r?o.qMeasures.push(Ju(a.excludedMeasures[s],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(Ju(a.excludedMeasures[s],i))},updateDimensionsOnAdded:function(e){let{newProperties:t,dataDefinition:n,hypercubePath:r}=e;if(n.dimensions&&"function"==typeof n.dimensions.added){const e=$u(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=$u(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,i=$u(o,n||""),a=i.qHyperCubeDef,s=r.data[0];if(a.qInterColumnSortOrder||(a.qInterColumnSortOrder=[]),s.dimensions.push(...a.qDimensions),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qDimensions&&s.excludedDimensions.push(...a.qLayoutExclude.qHyperCubeDef.qDimensions),s.measures.push(...a.qMeasures),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qMeasures&&s.excludedMeasures.push(...a.qLayoutExclude.qHyperCubeDef.qMeasures),s.interColumnSortOrder=a.qInterColumnSortOrder.concat(),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const e=a.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();Ku.isOrderedSubset(e,s.interColumnSortOrder)&&(s.interColumnSortOrder=e)}return delete a.qLayoutExclude,Object.keys(o).forEach((e=>{r.properties[e]=o[e]})),n&&(r.properties.qHyperCubeDef=i.qHyperCubeDef,delete i.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&&(Qu.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!Gu(o.qLayoutExclude.quarantine)||delete o.qLayoutExclude,r}(e),importProperties:e=>function(e){let{exportFormat:t,initialProperties:n={},dataDefinition:r={},defaultPropertyValues:o={},hypercubePath:i}=e;const a={qChildren:[]},s=Qu.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:i}),l=$u(n,i||"").qHyperCubeDef,c=$u(s,i||"").qHyperCubeDef,{maxDimensions:u,minDimensions:p,maxMeasures:d,minMeasures:h}=Qu.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:f=Qu.getDefaultDimension(),defaultMeasure:m=Qu.getDefaultMeasure()}=o;return c.qDimensions.length=0,c.qMeasures.length=0,Qu.shouldInitLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:p,maxMeasures:d,minMeasures:h})&&Qu.initLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:p,maxMeasures:d,minMeasures:h,newHyperCubeDef:c}),Qu.addDefaultDimensions({exportFormat:t,maxDimensions:u,minDimensions:p,newHyperCubeDef:c,defaultDimension:f}),Qu.addDefaultMeasures({exportFormat:t,maxMeasures:d,minMeasures:h,newHyperCubeDef:c,defaultMeasure:m}),Qu.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:c}),Qu.copyPropertyIfExist("qMaxStackedCells",l,c),Qu.copyPropertyIfExist("qNoOfLeftDims",l,c),Qu.copyPropertyOrSetDefault("qInitialDataFetch",l,c,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),Qu.copyPropertyOrSetDefault("qMode",l,c,"S"),Qu.copyPropertyOrSetDefault("qReductionMode",l,c,"N"),Qu.copyPropertyOrSetDefault("qSortbyYValue",l,c),Qu.copyPropertyOrSetDefault("qIndentMode",l,c),Qu.copyPropertyOrSetDefault("qShowTotalsAbove",l,c),Qu.importCommonProperties(s,t,n),Qu.updateDimensionsOnAdded({newProperties:s,dataDefinition:r,hypercubePath:i}),Qu.updateMeasuresOnAdded({newProperties:s,dataDefinition:r,hypercubePath:i}),a.qProperty=s,a}(e)};const tp=e=>$u(e,"data.targets.0.propertyPath"),np=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return ep.exportProperties})(tp(e))},rp=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return ep.importProperties})(tp(e))},op=async e=>{let{halo:t,model:n,cellRef:r,newType:o}=e;const i=await n.getFullPropertyTree(),a=r.current.getQae(),s=np(a),l=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}),c=l.qae;return rp(c)({exportFormat:s({propertyTree:i,hypercubePath:Qu.getHypercubePath(a)}),initialProperties:V({qInfo:{qType:o},visualization:o},$u(c,"properties.initial",{})),dataDefinition:$u(c,"data.targets.0.",{}),hypercubePath:Qu.getHypercubePath(c)})},ip={hypercube:ep};var ap=e=>Al((e=>V(V({},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 sp(e){let{d:n}=e;const r=Ba();let o="inherit",i=r.palette.success.main;n.missing?i=r.palette.warning.main:n.error&&(o="error",i=r.palette.error.main);const a={color:i},s=t.createElement(O,{style:{lineHeight:"30px",paddingRight:r.spacing(1)}},t.createElement(B,null,n.missing||n.error?t.createElement(ap,{style:a}):t.createElement(uc,{style:a})));return t.createElement(w,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},t.createElement(w,{item:!0},s),t.createElement(w,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},t.createElement(O,{noWrap:!0,component:"p"},t.createElement(O,{component:"span",variant:"subtitle2",color:o},n.description),t.createElement(O,{component:"span"}," "),t.createElement(O,{component:"span",variant:"subtitle2",color:n.error?"error":"inherit",style:{fontWeight:400}},n.label))))}function lp(e){let{data:n}=e;const r=Ba();return t.createElement(w,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},n.map(((e,n)=>{const o=e.descriptions.map(((e,n)=>t.createElement(sp,{d:e,key:n})));return o.length>0&&t.createElement(w,{container:!0,item:!0,key:n,direction:"column",style:{paddingBottom:r.spacing(2)}},t.createElement(O,{noWrap:!0,key:n,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),o)})))}function cp(e){let{title:n="Error",message:r="",data:o=[]}=e;return t.createElement(w,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},t.createElement(w,{item:!0},t.createElement(ap,{style:{fontSize:"38px"}})),t.createElement(w,{item:!0},t.createElement(O,{variant:"h6",align:"center","data-tid":"error-title"},n)),t.createElement(w,{item:!0},t.createElement(O,{variant:"subtitle1",align:"center","data-tid":"error-message"},r)),t.createElement(lp,{data:o}))}const up=["size"],pp={root:"".concat("Progress","-root"),front:"".concat("Progress","-front"),back:"".concat("Progress","-back")},dp=Wa("div")((e=>{let{theme:t}=e;return{["&.".concat(pp.root)]:{position:"relative",display:"inline-block"},["& .".concat(pp.front)]:{color:t.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(pp.back)]:{color:t.palette.divider}}})),hp={small:16,medium:32,large:64,xlarge:128};function fp(e){let{size:n="medium"}=e,r=Z(e,up);const o=hp[n];return t.createElement(dp,{className:pp.root},t.createElement(U,K({variant:"determinate",value:100,className:pp.back,size:o,thickness:3},r)),t.createElement(U,K({variant:"indeterminate",disableShrink:!0,className:pp.front,size:o,thickness:3},r)))}const mp=["cancel","translator"],gp=["retry","translator"],yp={stripes:"".concat("LongRunningQuery","-stripes")},bp=Wa(w)((()=>({["& .".concat(yp.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 vp(e){let{cancel:n,translator:r}=e,o=Z(e,mp);return t.createElement(t.Fragment,null,t.createElement(bp,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},t.createElement(w,{item:!0},t.createElement(fp,null)),t.createElement(w,{item:!0},t.createElement(O,{variant:"h6",align:"center","data-tid":"update-active"},r.get("Object.Update.Active")))),t.createElement(w,K({item:!0},o),t.createElement(z,{variant:"contained",onClick:n},r.get("Cancel"))))}function Ep(e){let{retry:n,translator:r}=e,o=Z(e,gp);return t.createElement(t.Fragment,null,t.createElement(w,{item:!0},t.createElement(ap,{style:{fontSize:"38px"}})),t.createElement(w,{item:!0},t.createElement(O,{variant:"h6",align:"center","data-tid":"update-cancelled"},r.get("Object.Update.Cancelled"))),t.createElement(w,{item:!0},t.createElement(z,K({variant:"contained",onClick:n},o),r.get("Retry"))))}function xp(e){let{canCancel:n,canRetry:r,api:o}=e;const{translator:i}=g(el);return t.createElement(w,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:yp.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},n&&t.createElement(vp,{cancel:o.cancel,translator:i,className:yp.cancel}),r&&t.createElement(Ep,{retry:o.retry,translator:i,className:yp.retry}))}function Cp(){return t.createElement(w,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t.createElement(fp,{size:"large"}))}const Sp={containerStyle:"".concat("Header","-containerStyle"),containerTitleStyle:"".concat("Header","-containerTitleStyle")},Lp=Wa(w)((e=>{let{theme:t}=e;return{["& .".concat(Sp.containerStyle)]:{flexGrow:0},["& .".concat(Sp.containerTitleStyle)]:{paddingBottom:t.spacing(1)}}})),wp="njs-cell-title",kp="njs-cell-sub-title";function Op(e){let{layout:n,sn:r,anchorEl:o,hovering:s,focusHandler:l}=e;const c=n.showTitles&&!!n.title,u=n.showTitles&&!!n.subtitle,p=n.qSelectionInfo&&n.qSelectionInfo.qInSelections,[d,h]=i([]),[f,m]=Ml(),[g,y]=i(!1);a((()=>{r&&r.component&&r.component.isHooked&&r.component.observeActions((e=>{h([...e,...r&&r.selectionToolbar&&r.selectionToolbar.items||[]])}))}),[r]),a((()=>{if(!m)return;const{width:e}=m;y(e<221)}),[m]);const b=c||u,v=[Sp.containerStyle,...b?[Sp.containerTitleStyle]:[]],E=(s||p)&&(g||!b),x=b&&!E&&!g,C=t.createElement(Qc,{show:x,selections:{show:p,api:r.component.selections,onKeyDeactivate:l.refocusContent},actions:d,popover:{show:E,anchorEl:o},focusHandler:l});return t.createElement(Lp,{ref:f,item:!0,container:!0,wrap:"nowrap",className:v.join(" ")},t.createElement(w,{item:!0,zeroMinWidth:!0,xs:!0},t.createElement(w,{container:!0,wrap:"nowrap",direction:"column"},c&&t.createElement(O,{variant:"h6",noWrap:!0,className:wp},n.title),u&&t.createElement(O,{variant:"body2",noWrap:!0,className:kp},n.subtitle))),t.createElement(w,{item:!0},C))}const Rp={itemStyle:"".concat("Footer","-itemStyle")},qp=Wa(w)((e=>{let{theme:t}=e;return{["& .".concat(Rp.itemStyle)]:{minWidth:0,paddingTop:t.spacing(1)}}})),Ip="njs-cell-footer";function _p(e){let{layout:n}=e;return n&&n.showTitles&&n.footnote?t.createElement(qp,{container:!0},t.createElement(w,{item:!0,className:Rp.itemStyle},t.createElement(O,{noWrap:!0,variant:"body2",className:Ip},n.footnote))):null}class Tp{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 Np="njs-viz";function Dp(e){let{sn:n,snOptions:r,snPlugins:o,layout:s,appLayout:l,halo:c}=e;const{component:u}=n,{theme:d,language:h,constraints:f,keyboardNavigation:m}=g(el),[y]=i((()=>new Tp)),[b,v]=i(!1),[E,x]=i(0),[C,S,L]=Ml(),[w,k]=i(null),O=p((e=>{e&&k(e)}),[]);return a((()=>{if(w)return u.created({options:r}),u.mounted(w),v(!0),()=>{y.stop(),u.willUnmount()}}),[w,u]),a((()=>{b&&w&&S&&(!u.isHooked&&s&&s.qSelectionInfo&&s.qSelectionInfo.qInSelections||y.schedule((()=>{const e=[];return f.passive||e.push("passive"),f.active||e.push("interact"),f.select||e.push("select"),c.app&&c.app.session&&e.push("fetch"),Promise.resolve(u.render({layout:s,options:r,plugins:o,embed:c.public.nebbie,context:V({constraints:f,theme:c.public.theme,appLayout:l,keyboardNavigation:m},u.isHooked?{}:{logicalSize:n.logicalSize({layout:s}),localeInfo:(l||{}).qLocaleInfo,permissions:e})})).then((e=>{!1!==e&&(0===E&&"function"==typeof r.onInitialRender&&r.onInitialRender.call(null),x(E+1))}))})))}),[S,r,o,w,L,s,l,d,h,f,b,m]),t.createElement("div",{ref:C,"data-render-count":E,style:{position:"relative",height:"100%"},className:Np},t.createElement("div",{ref:O,style:{position:"absolute",width:"100%",height:"100%"}}))}const Mp="njs-cell",Pp=(e,t)=>{switch(t.type){case"LOADING":return V(V({},e),{},{loading:!0});case"LOADED":return V(V({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization});case"RENDER":return V(V({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null});case"LONG_RUNNING_QUERY":return V(V({},e),{},{longRunningQuery:!0});case"ERROR":return V(V({},e),{},{loading:!1,longRunningQuery:!1,error:t.error});default:throw new Error("Unhandled type: ".concat(t.type))}};function Ap(e){let{delay:n=750}=e;const[r,o]=i(!1);return a((()=>{const e=setTimeout((()=>o(!0)),n);return()=>clearTimeout(e)}),[]),r?t.createElement(Cp,null):null}const jp=e=>!e.qError||7005===e.qError.qErrorCode,zp=(e,t,n,r,o)=>[...Array(e).keys()].map((e=>{const i=!(!t||!t[e]),a=i&&t[e].qError&&7005===t[e].qError.qErrorCode,s=i&&!a&&t[e].qError,l=a&&t[e].qCalcCondMsg,c="".concat(s?r:a?l||o:i&&t[e].qFallbackTitle||""),u=n(e);return{description:u?"".concat(u).concat(c.length?":":""):null,label:c,missing:t&&!i&&!s&&e>=t.length||a,error:s}})),Fp=e=>e&&(Array.isArray(e)?e:[e])||[],Bp=(e,t,n,r)=>{const o=r.dimensions.min(),i=r.measures.min(),a=r.resolveLayout(t);return{reqDimErrors:zp(o,Fp(a.qDimensionInfo),(e=>r.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:zp(i,Fp(a.qMeasureInfo),(e=>r.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},Up=async(e,t,n,r)=>{let{targets:o}=n;const{hasUnfulfilledErrors:i,aggMinD:a,aggMinM:s,hasLayoutErrors:l,layoutErrors:c}=((e,t,n)=>{let r=!1,o=0,i=0,a=!1,s=!1;const l=[];for(let c=0;c<t.length;++c){const u=t[c],p=u.dimensions.min(),d=u.measures.min(),h=u.resolveLayout(n),f=Fp(h.qDimensionInfo).filter(jp),m=Fp(h.qMeasureInfo).filter(jp);if(o+=p,i+=d,(f.length<p||m.length<d)&&(r=!0),h.qError){a=!0,s=7005===h.qError.qErrorCode;const t=s&&h.qCalcCondMsg?h.qCalcCondMsg:s?e.get("Visualization.UnfulfilledCalculationCondition"):e.get("Visualization.LayoutError");l.push({title:t,descriptions:[]})}}return{hasUnfulfilledErrors:r,aggMinD:o,aggMinM:i,hasLayoutErrors:a,layoutErrors:l}})(e,o,t),u=[],p=[];let d=null;for(let n=0;n<o.length;++n){const a=o[n];if(!l&&i){const n=d||await r.getProperties();d=n;const o=Bp(e,t,n,a);u.push(...o.reqDimErrors),p.push(...o.reqMeasErrors)}}const h=u.filter((e=>!(e.missing||e.error))).length,f=e.get("Visualization.Incomplete.Dimensions",[h,a]),m=p.filter((e=>!(e.missing||e.error))).length,g=e.get("Visualization.Incomplete.Measures",[m,s]),y=[{title:f,descriptions:[...u]},{title:g,descriptions:[...p]}],b=l?c:y;return[l||i,{title:l?c[0].title:e.get("Visualization.Incomplete"),data:b}]},Hp=l(((e,n)=>{let{halo:r,model:o,initialSnOptions:l,initialSnPlugins:c,initialError:p,onMount:d,currentId:h}=e;const{app:f,types:y}=r,{nebbie:b}=r.public,{disableCellPadding:v=!1}=r.context||{},{translator:E,language:x,keyboardNavigation:C}=g(el),S=Ba(),[L,k,O]=Ml(),[R,q]=s(Pp,{loading:!1,loaded:!1,longRunningQuery:!1,error:(I=p)?{title:I.message}:null,sn:null,visualization:null});var I;const[_,{validating:T,canCancel:N,canRetry:D},M]=bl(o),[P]=vl(f),[A,j,z]=Ml(),[F,B]=i(l),[U,W]=i(c),[$]=ru(f,o),[G,K]=i(!1),Z=m({enter:null,leave:null}),X=m({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});a((()=>{nu(X.current)}),[]),X.current.blurCallback=e=>{r.root.toggleFocusOfCells(),e&&z&&z.focus()},X.current.refocusContent=()=>{R.sn.component&&"function"==typeof R.sn.component.focus&&R.sn.component.focus()};a((()=>{if(p||!P||!_)return;if(R.visualization===_.visualization&&R.sn)return void(async e=>{const[t,n]=await Up(E,_,e.generator.qae.data,o);q(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:R.sn,layout:_,model:o})})(R.sn);const e=y.getSupportedVersion(_.visualization,_.version);if(e)return(async(e,t)=>{q({type:"LOADING"});const n=await(async e=>{let{dispatch:t,types:n,visualization:r,version:o,model:i,app:a,selections:s,nebbie:l,focusHandler:c}=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});return e.create({model:i,app:a,selections:s,nebbie:l,focusHandler:c})}catch(e){t({type:"ERROR",error:{title:e.message}})}})({dispatch:q,types:y,visualization:e,version:t,model:o,app:f,selections:$,nebbie:b,focusHandler:X.current});n&&(q({type:"LOADED",sn:n,visualization:e}),d())})(_.visualization,e),()=>{};q({type:"ERROR",error:{title:"Could not find a version of '".concat(_.visualization,"' that supports current object version. Did you forget to register ").concat(_.visualization,"?")}})}),[y,R.sn,o,$,_,P,x]),a((()=>{if(!T)return;const e=setTimeout((()=>q({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[T]),u(n,(()=>({getQae:()=>R.sn.generator.qae,toggleFocus(e){"function"==typeof R.sn.component.focus&&(e?R.sn.component.focus():R.sn.component.blur())},setSnOptions:B,setSnPlugins:W,async takeSnapshot(){const{width:e,height:t}=k;let n=JSON.parse(JSON.stringify(_));return"function"==typeof R.sn.component.setSnapshotData&&(n=await R.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:E.language(),theme:S.name,appLayout:P,size:{width:Math.round(e),height:Math.round(t)}},layout:n}},async exportImage(){if("function"!=typeof r.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const e=await this.takeSnapshot();return r.config.snapshot.capture(e)}})),[R.sn,j,k,_,S.name,P]);let J=null;return R.loading&&!R.longRunningQuery?J=t.createElement(Ap,null):R.error?J=t.createElement(cp,R.error):R.loaded&&(J=t.createElement(Dp,{key:_.visualization,sn:R.sn,halo:r,snOptions:F,snPlugins:U,layout:_,appLayout:P})),t.createElement(H,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden"},elevation:0,square:!0,className:Mp,ref:L,onMouseEnter:()=>{Z.current.leave&&clearTimeout(Z.current.leave),Z.enter||(Z.current.enter=setTimeout((()=>{K(!0),Z.current.enter=null}),250))},onMouseLeave:()=>{Z.current.enter&&clearTimeout(Z.current.enter),Z.current.leave||(Z.current.leave=setTimeout((()=>{K(!1),Z.current.leave=null}),750))}},t.createElement(w,{container:!0,direction:"column",gap:0,style:V(V({position:"relative",width:"100%",height:"100%"},v?{}:{padding:S.spacing(1)}),R.longRunningQuery?{opacity:"0.3"}:{})},O&&_&&R.sn&&t.createElement(Op,{layout:_,sn:R.sn,anchorEl:O,hovering:G,focusHandler:X.current}," "),t.createElement(w,{tabIndex:C?0:-1,onKeyDown:C?e=>{["Enter"," ","Spacebar"].includes(e.key)&&r.root.toggleFocusOfCells(h)}:null,item:!0,xs:!0,style:{height:"100%"},ref:A},J),t.createElement(_p,{layout:_})),R.longRunningQuery&&t.createElement(xp,{canCancel:N,canRetry:D,api:M}))}));function Wp(e){let{halo:n,element:r,model:o,initialSnOptions:i,initialSnPlugins:a,onMount:s,initialError:l}=e;const{root:c}=n,u=t.createRef(),p=Bu(),d=y.createPortal(t.createElement(Hp,{ref:u,halo:n,model:o,currentId:p,initialSnOptions:i,initialSnPlugins:a,initialError:l,onMount:s}),r,o.id),h=()=>{c.remove(d),o.removeListener("closed",h)};return o.on("closed",h),c.add(d),c.addCell(p,u),[h,u]}function $p(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Vp(e,t){return $p(e)&&$p(t)?JSON.stringify(e)===JSON.stringify(t):!Array.isArray(e)&&!Array.isArray(t)&&e===t}function Gp(){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 i=t[o];"object"!=typeof n[o]||"object"!=typeof i||Array.isArray(i)?Vp(i,n[o])||r.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])}):r.push(...Gp("".concat(e).concat(o,"/"),t[o],n[o]))})),r}function Kp(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 Zp=()=>{};function Xp(){let{model:e,halo:t,initialError:n,onDestroy:r=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=Zp,i=null,a=null,s=null;const l=new Promise((e=>{s=e}));let c={},u=[];const p=async e=>{a?(async()=>{await l,i.current.setSnOptions(V(V({},c),e))})():c=V(V({},c),e)},d=async e=>{Kp(e),a?(async()=>{await l,i.current.setSnPlugins(e)})():u=e},h={id:e.id,async destroy(){await r(),o(),o=Zp},async convertTo(n){let r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const o=await op({halo:t,model:e,cellRef:i,newType:n});return r&&(e.__snInterceptor?await e.__snInterceptor.setProperties.call(e,o.qProperty):await e.setProperties(o.qProperty)),o},__DO_NOT_USE__:{mount(r){if(a)throw new Error("Already mounted");return a=r,[o,i]=Wp({halo:t,element:r,model:e,initialSnOptions:c,initialSnPlugins:u,initialError:n,onMount:s}),l},async applyProperties(t){const n=Gp("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){p(e)},plugins(e){d(e)},exportImage:()=>i.current.exportImage(),takeSnapshot:()=>i.current.takeSnapshot(),getModel:()=>e}};return h}async function Jp(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:async()=>{};const i=Xp({model:e,halo:n,initialError:r,onDestroy:o});return t.options&&i.__DO_NOT_USE__.options(t.options),t.plugins&&i.__DO_NOT_USE__.plugins(t.plugins),t.element&&await i.__DO_NOT_USE__.mount(t.element),i}async function Yp(e,t){let n,{type:r,version:o,fields:i,properties:a,options:s,plugins:l,element:c}=e,u={};try{const e=t.types.get({name:r,version:o});u=await e.initialProperties(a);const n=await e.supernova();i&&Wu({sn:n,properties:u,fields:i}),a&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},u)}catch(e){n=e,u={qInfo:{qType:r},visualization:r}}const p=await t.app.createSessionObject(u);ml.set(p.id,p);const d=(e=>{const t=hl({type:"SET",value:e});return()=>{t(),ml.clear(e.id)}})(p);return Jp(p,{options:s,plugins:l,element:c},t,n,(async()=>{await t.app.destroySessionObject(p.id),d()}))}async function Qp(e,t){let{id:n,options:r,plugins:o,element:i}=e;const a="".concat(n);let s=cl.get(a);s||(s=t.app.getObject(n),cl.set(a,s));const l=await s;return ml.set(a,l),Jp(l,{options:r,plugins:o,element:i},t)}function ed(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}const td=de.bind(null,!0),nd={},{isArray:rd}=Array;function od(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function id(e){return void 0===e}function ad(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function sd(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 i=isNaN(r)?{}:[];e[r||t]=id(e[r||t])?i:e[t],e=e[r||t]})),e}function ld(e,t){let n=!0;if(od(e)&&od(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{ld(e[r],t[r])||(n=!1)})),n);if(rd(e)&&rd(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!ld(e[n],t[n]))return!1;return!0}return e===t}nd.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const i=function(e){return e?td({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(n,"/").concat(o);ld(i,a)||ad(t,o)||(id(a)?r.push({op:"add",path:s,value:i}):od(i)&&od(a)?r=r.concat(nd.generate(a,i,s)):rd(i)&&rd(a)?r=r.concat(function(e,t,n){let r=[];const o=e.slice();let i=-1;function a(e,t,n){if(e[n]&&id(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(ld(t,o))return r;if(!id(t[0])&&id(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(let e=o.length-1;e>=0;e-=1)i=a(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===i?(r.push({op:"remove",path:"".concat(n,"/").concat(e)}),o.splice(e,1)):r=r.concat(nd.generate(o[e],t[i],"".concat(n,"/").concat(e)));for(let e=0,s=t.length;e<s;e+=1)i=a(o,t[e].qInfo&&t[e].qInfo.qId),-1===i?(r.push({op:"add",path:"".concat(n,"/").concat(e),value:t[e]}),o.splice(e,0,t[e])):i!==e&&(r.push({op:"move",path:"".concat(n,"/").concat(e),from:"".concat(n,"/").concat(i)}),o.splice(e,0,o.splice(i,1)[0]));return r}(a,i,s)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((o=>{id(t[o])&&!ad(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},nd.apply=function(e,t){t.forEach((t=>{let n=sd(e,t.path),r=t.path.split("/").splice(-1)[0],o=r&&isNaN(+r)?n[r]:n[+r]||n;const i=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(rd(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(rd(o)&&rd(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(od(o)&&od(t.value))a=o,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!ad(a,e)&&delete a[e]})),td(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=sd(e,t.from);rd(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(rd(n)?n.splice(+r,1):delete n[r]);var a}))},nd.clone=function(e){return td({},e)},nd.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},nd.updateObject=function(e,t){Object.keys(e).length?nd.apply(e,nd.generate(e,t)):td(e,t)};const cd=e=>t=>{const n=(r=V(V({},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(re.prototype).forEach((e=>{r[e]=re.prototype[e]})),re.init(r),r);var r;return n};let ud,pd;function dd(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 hd(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:[],actions:{list:[]},pendingEffects:[],pendingLayoutEffects:[],pendingPromises:[],resizer:{setters:[],explicitResize:t},accessibility:{setter:null}}}function fd(e){gd(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 md(e){if(e.__hooks.obsolete)return Promise.resolve();pd=-1,ud=e,ud.__hooks.initiated&&ud.__hooks.list.length;try{ud.fn.call(null)}catch(e){console.error(e)}ud.__hooks.initiated=!0;const t=ud.__hooks;return vd(ud),pd=void 0,ud=void 0,t.chain.promise||(t.chain.promise=new Promise((e=>{t.chain.resolve=e}))),function(e){gd(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame((()=>{!function(e){gd(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 gd(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 yd(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 bd(e){return e.__hooks.imperativeHandle}function vd(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function Ed(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,vd(e))}function xd(e){if(void 0===ud)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=ud.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function Cd(e){xd(++pd);return ud.context[e]}function Sd(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function Ld(e){return{__hooked:!0,fn:e,initiate:hd,run:md,teardown:fd,runSnaps:yd,focus:Jd,blur:Yd,observeActions:Ed,getImperativeHandle:bd,updateRectOnNextRun:Sd}}function wd(e){const t=xd(++pd);if(!t.value){t.component=ud;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,md(r)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function kd(e,t){const n=xd(++pd);dd(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===ud.__hooks.pendingEffects.indexOf(n)&&ud.__hooks.pendingEffects.push(n))}function Od(e,t){const n=xd(++pd);dd(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],ud.__hooks.pendingLayoutEffects.push(n))}function Rd(e,t){const n=xd(++pd);return dd(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function qd(e,t){const[n,r]=wd((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=xd(++pd);return o.component||(o.component=ud),Od((()=>{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]}function Id(){return Cd("element")}function _d(){const e=Id(),t=ud.__hooks.resizer,[n,r]=wd((()=>{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()),Od((()=>{if(t.initiated)return;t.initiated=!0;const n=()=>{const{left:n,top:r,width:o,height:i}=e.getBoundingClientRect(),a=t.current;a.width===o&&a.height===i&&a.left===n&&a.top===r||t.setters.forEach((e=>e({left:n,top:r,width:o,height:i})))};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}function Td(){return Cd("layout")}function Nd(){const e=Cd("layout"),[t]=wd({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current}function Dd(){return Cd("appLayout")}function Md(){const e=Cd("model");return e&&e.session?e:void 0}function Pd(){const e=Cd("app");return e&&e.session?e:void 0}function Ad(){const e=Cd("global");return e&&e.session?e:void 0}function jd(){return Cd("selections")}function zd(){return Cd("theme")}function Fd(){return Cd("nebbie")}function Bd(){return Cd("translator")}function Ud(){return Cd("deviceType")}function Hd(){return Cd("plugins")}function Wd(e,t){const[n]=wd({action(){n._config.action.call(null)}});return n.component||(n.component=ud,ud.__hooks.actions.list.push(n)),Rd((()=>{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}function $d(){return Cd("constraints")}function Vd(){return Cd("options")}function Gd(e,t){const n=xd(++pd);if(n.imperative||(n.imperative=!0),dd(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],ud.__hooks.imperativeHandle=r}}function Kd(e){const t=xd(++pd);t.value||(t.value=1,ud.__hooks.snaps.push(t)),t.fn=e}function Zd(){xd(++pd);const e=ud.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}}function Xd(){const e=Cd("keyboardNavigation"),t=Cd("focusHandler");if(!ud.__hooks.accessibility.exitFunction){const e=function(e){const n=this.__hooks.accessibility;n.enabled&&n.active&&(Yd(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(ud);ud.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),Jd(this))}.bind(ud);ud.__hooks.accessibility.focusFunction=n;const r=function(e){this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(ud);ud.__hooks.accessibility.focusSelectionFunction=r}const n=ud.__hooks.accessibility.focusFunction,r=ud.__hooks.accessibility.exitFunction,o=ud.__hooks.accessibility.focusSelectionFunction,[i,a]=wd({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return ud.__hooks.accessibility.setter=a,ud.__hooks.accessibility.enabled=e,kd((()=>a({active:!1,enabled:e,blur:r,focus:n,focusSelection:o})),[e]),i}function Jd(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 Yd(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 Qd={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},eh=Object.keys(Qd);function th(e,t){const n=V({},Qd);var r;r=n,Object.keys(re.prototype).forEach((e=>{r[e]=re.prototype[e]})),re.init(r);const o={emit(){n.emit(...arguments)}};Object.keys(e.component||{}).forEach((t=>{-1!==eh.indexOf(t)?n[t]=e.component[t].bind(o):o[t]=e.component[t]}));const i=function(e){let{sn:t,component:n}=e;const r={},o=[],i=cd(n);return((t.definition.selectionToolbar||{}).items||[]).forEach((e=>{const t=i(e);r[e.key]=t,o.push(t)})),(t.definition.actions||[]).forEach((e=>{const t=i(e);r[e.key]=t})),{actions:r,selectionToolbarItems:o,destroy(){o.length=0}}}({sn:e,component:o}),a=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(o,{model:t.model,app:t.app,global:a,selections:t.selections,actions:i.actions}),Object.assign(n,{actions:i.actions,model:t.model,app:t.app,selections:t.selections}),[n,i]}function nh(e,t,n){"function"==typeof e.component&&(e.component=Ld(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={},a=["appLayout","constraints"],s={};t.model&&t.model.session||(s.select=!0);const l={context:{model:t.model,app:t.app,global:r,selections:t.selections,nebbie:t.nebbie,element:void 0,deviceType:n.deviceType,theme:void 0,translator:n.translator,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,focusHandler:t.focusHandler,constraints:s,options:{},plugins:[]},fn:e.component.fn,created(){},mounted(n){this.context.element=n,e.component.initiate(l,{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)}a.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(V(V({},r[e]),s))),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=l.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)},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 a.forEach((e=>{i[e]=JSON.stringify(l.context[e])})),i.themeName=l.context.theme?l.context.theme.name():void 0,i.language=l.context.translator?l.context.translator.language():void 0,Object.assign(l,{selections:t.selections}),[l,null]}(e,t,n):th(e,t),i=[];return t.model.__snInterceptor&&t.model.__snInterceptor.teardown(),e.qae.properties.onChange&&(t.model.__snInterceptor={setProperties:t.model.setProperties,applyPatches:t.model.applyPatches,teardown:void 0},t.model.setProperties=function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return e.qae.properties.onChange.call({model:t.model},...r),t.model.__snInterceptor.setProperties.call(this,...r)},t.model.applyPatches=function(n,r){const o=r?"getEffectiveProperties":"getProperties";return t.model[o]().then((o=>{const i=nd.clone(o),a=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));nd.apply(o,a),e.qae.properties.onChange.call({model:t.model},o);const s=nd.generate(i,o).map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path})));return t.model.__snInterceptor.applyPatches.call(this,s,r)}))},t.model.__snInterceptor.teardown=()=>{t.model.setProperties=t.model.__snInterceptor.setProperties,delete t.model.__snInterceptor},i.push(t.model.__snInterceptor.teardown)),{generator:e,component:r,selectionToolbar:{items:o?o.selectionToolbarItems:[]},destroy(){i.forEach((e=>e()))},logicalSize:e.definition.logicalSize||(()=>!1)}}const rh=()=>{};function oh(e,t){return void 0===e?()=>t:()=>e}function ih(e){const t=e||{};return{min:"function"==typeof t.min?t.min:oh(t.min,0),max:"function"==typeof t.max?t.max:oh(t.max,1e3),added:t.added||t.add||rh,description:t.description||rh,moved:t.moved||t.move||rh,removed:t.removed||t.remove||rh,replaced:t.replaced||t.replace||rh,isDefined:()=>!!e}}function ah(e){const t=e.path||"/qHyperCubeDef",n=t.slice(0,-3);if(!1===/\/(qHyperCube|qListObject)$/.test(n)){const e=n.includes("/qHyperCube")?"qHyperCubeDef":"qListObjectDef";throw new Error("Incorrect definition for ".concat(e," at ").concat(t,". Valid paths include /qHyperCubeDef or /qListObjectDef, e.g. data/qHyperCubeDef"))}return{propertyPath:t,layoutPath:n,resolveLayout:e=>((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})(e,n,{}),dimensions:ih(e.dimensions),measures:ih(e.measures)}}function sh(){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);const r={properties:{initial:n,onChange:e},data:{targets:((t.data||{}).targets||[]).map(ah)},exportProperties:t.exportProperties,importProperties:t.importProperties};return r}function lh(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:sh(n.qae),component:n.component||{},create:e=>nh(r,e,t),definition:{}};return Object.keys(n).forEach((e=>{r[e]||(r.definition[e]=n[e])})),r}var ch={exports:{}};!function(e,t){var n;t=e.exports=p,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var r=Number.MAX_SAFE_INTEGER||9007199254740991,o=t.re=[],i=t.src=[],a=t.tokens={},s=0;function l(e){a[e]=s++}l("NUMERICIDENTIFIER"),i[a.NUMERICIDENTIFIER]="0|[1-9]\\d*",l("NUMERICIDENTIFIERLOOSE"),i[a.NUMERICIDENTIFIERLOOSE]="[0-9]+",l("NONNUMERICIDENTIFIER"),i[a.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",l("MAINVERSION"),i[a.MAINVERSION]="("+i[a.NUMERICIDENTIFIER]+")\\.("+i[a.NUMERICIDENTIFIER]+")\\.("+i[a.NUMERICIDENTIFIER]+")",l("MAINVERSIONLOOSE"),i[a.MAINVERSIONLOOSE]="("+i[a.NUMERICIDENTIFIERLOOSE]+")\\.("+i[a.NUMERICIDENTIFIERLOOSE]+")\\.("+i[a.NUMERICIDENTIFIERLOOSE]+")",l("PRERELEASEIDENTIFIER"),i[a.PRERELEASEIDENTIFIER]="(?:"+i[a.NUMERICIDENTIFIER]+"|"+i[a.NONNUMERICIDENTIFIER]+")",l("PRERELEASEIDENTIFIERLOOSE"),i[a.PRERELEASEIDENTIFIERLOOSE]="(?:"+i[a.NUMERICIDENTIFIERLOOSE]+"|"+i[a.NONNUMERICIDENTIFIER]+")",l("PRERELEASE"),i[a.PRERELEASE]="(?:-("+i[a.PRERELEASEIDENTIFIER]+"(?:\\."+i[a.PRERELEASEIDENTIFIER]+")*))",l("PRERELEASELOOSE"),i[a.PRERELEASELOOSE]="(?:-?("+i[a.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+i[a.PRERELEASEIDENTIFIERLOOSE]+")*))",l("BUILDIDENTIFIER"),i[a.BUILDIDENTIFIER]="[0-9A-Za-z-]+",l("BUILD"),i[a.BUILD]="(?:\\+("+i[a.BUILDIDENTIFIER]+"(?:\\."+i[a.BUILDIDENTIFIER]+")*))",l("FULL"),l("FULLPLAIN"),i[a.FULLPLAIN]="v?"+i[a.MAINVERSION]+i[a.PRERELEASE]+"?"+i[a.BUILD]+"?",i[a.FULL]="^"+i[a.FULLPLAIN]+"$",l("LOOSEPLAIN"),i[a.LOOSEPLAIN]="[v=\\s]*"+i[a.MAINVERSIONLOOSE]+i[a.PRERELEASELOOSE]+"?"+i[a.BUILD]+"?",l("LOOSE"),i[a.LOOSE]="^"+i[a.LOOSEPLAIN]+"$",l("GTLT"),i[a.GTLT]="((?:<|>)?=?)",l("XRANGEIDENTIFIERLOOSE"),i[a.XRANGEIDENTIFIERLOOSE]=i[a.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",l("XRANGEIDENTIFIER"),i[a.XRANGEIDENTIFIER]=i[a.NUMERICIDENTIFIER]+"|x|X|\\*",l("XRANGEPLAIN"),i[a.XRANGEPLAIN]="[v=\\s]*("+i[a.XRANGEIDENTIFIER]+")(?:\\.("+i[a.XRANGEIDENTIFIER]+")(?:\\.("+i[a.XRANGEIDENTIFIER]+")(?:"+i[a.PRERELEASE]+")?"+i[a.BUILD]+"?)?)?",l("XRANGEPLAINLOOSE"),i[a.XRANGEPLAINLOOSE]="[v=\\s]*("+i[a.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+i[a.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+i[a.XRANGEIDENTIFIERLOOSE]+")(?:"+i[a.PRERELEASELOOSE]+")?"+i[a.BUILD]+"?)?)?",l("XRANGE"),i[a.XRANGE]="^"+i[a.GTLT]+"\\s*"+i[a.XRANGEPLAIN]+"$",l("XRANGELOOSE"),i[a.XRANGELOOSE]="^"+i[a.GTLT]+"\\s*"+i[a.XRANGEPLAINLOOSE]+"$",l("COERCE"),i[a.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",l("COERCERTL"),o[a.COERCERTL]=new RegExp(i[a.COERCE],"g"),l("LONETILDE"),i[a.LONETILDE]="(?:~>?)",l("TILDETRIM"),i[a.TILDETRIM]="(\\s*)"+i[a.LONETILDE]+"\\s+",o[a.TILDETRIM]=new RegExp(i[a.TILDETRIM],"g");l("TILDE"),i[a.TILDE]="^"+i[a.LONETILDE]+i[a.XRANGEPLAIN]+"$",l("TILDELOOSE"),i[a.TILDELOOSE]="^"+i[a.LONETILDE]+i[a.XRANGEPLAINLOOSE]+"$",l("LONECARET"),i[a.LONECARET]="(?:\\^)",l("CARETTRIM"),i[a.CARETTRIM]="(\\s*)"+i[a.LONECARET]+"\\s+",o[a.CARETTRIM]=new RegExp(i[a.CARETTRIM],"g");l("CARET"),i[a.CARET]="^"+i[a.LONECARET]+i[a.XRANGEPLAIN]+"$",l("CARETLOOSE"),i[a.CARETLOOSE]="^"+i[a.LONECARET]+i[a.XRANGEPLAINLOOSE]+"$",l("COMPARATORLOOSE"),i[a.COMPARATORLOOSE]="^"+i[a.GTLT]+"\\s*("+i[a.LOOSEPLAIN]+")$|^$",l("COMPARATOR"),i[a.COMPARATOR]="^"+i[a.GTLT]+"\\s*("+i[a.FULLPLAIN]+")$|^$",l("COMPARATORTRIM"),i[a.COMPARATORTRIM]="(\\s*)"+i[a.GTLT]+"\\s*("+i[a.LOOSEPLAIN]+"|"+i[a.XRANGEPLAIN]+")",o[a.COMPARATORTRIM]=new RegExp(i[a.COMPARATORTRIM],"g");l("HYPHENRANGE"),i[a.HYPHENRANGE]="^\\s*("+i[a.XRANGEPLAIN]+")\\s+-\\s+("+i[a.XRANGEPLAIN]+")\\s*$",l("HYPHENRANGELOOSE"),i[a.HYPHENRANGELOOSE]="^\\s*("+i[a.XRANGEPLAINLOOSE]+")\\s+-\\s+("+i[a.XRANGEPLAINLOOSE]+")\\s*$",l("STAR"),i[a.STAR]="(<|>)?=?\\s*\\*";for(var c=0;c<s;c++)n(c,i[c]),o[c]||(o[c]=new RegExp(i[c]));function u(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof p)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?o[a.LOOSE]:o[a.FULL]).test(e))return null;try{return new p(e,t)}catch(e){return null}}function p(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof p){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>256)throw new TypeError("version is longer than 256 characters");if(!(this instanceof p))return new p(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var i=e.trim().match(t.loose?o[a.LOOSE]:o[a.FULL]);if(!i)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<r)return t}return e})):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}t.parse=u,t.valid=function(e,t){var n=u(e,t);return n?n.version:null},t.clean=function(e,t){var n=u(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},t.SemVer=p,p.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},p.prototype.toString=function(){return this.version},p.prototype.compare=function(e){return n("SemVer.compare",this.version,this.options,e),e instanceof p||(e=new p(e,this.options)),this.compareMain(e)||this.comparePre(e)},p.prototype.compareMain=function(e){return e instanceof p||(e=new p(e,this.options)),h(this.major,e.major)||h(this.minor,e.minor)||h(this.patch,e.patch)},p.prototype.comparePre=function(e){if(e instanceof p||(e=new p(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],o=e.prerelease[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return h(r,o)}while(++t)},p.prototype.compareBuild=function(e){e instanceof p||(e=new p(e,this.options));var t=0;do{var r=this.build[t],o=e.build[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return h(r,o)}while(++t)},p.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);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":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new p(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(y(e,t))return null;var n=u(e),r=u(t),o="";if(n.prerelease.length||r.prerelease.length){o="pre";var i="prerelease"}for(var a in n)if(("major"===a||"minor"===a||"patch"===a)&&n[a]!==r[a])return o+a;return i},t.compareIdentifiers=h;var d=/^[0-9]+$/;function h(e,t){var n=d.test(e),r=d.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function f(e,t,n){return new p(e,n).compare(new p(t,n))}function m(e,t,n){return f(e,t,n)>0}function g(e,t,n){return f(e,t,n)<0}function y(e,t,n){return 0===f(e,t,n)}function b(e,t,n){return 0!==f(e,t,n)}function v(e,t,n){return f(e,t,n)>=0}function E(e,t,n){return f(e,t,n)<=0}function x(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 y(e,n,r);case"!=":return b(e,n,r);case">":return m(e,n,r);case">=":return v(e,n,r);case"<":return g(e,n,r);case"<=":return E(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function C(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof C){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof C))return new C(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===S?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return h(t,e)},t.major=function(e,t){return new p(e,t).major},t.minor=function(e,t){return new p(e,t).minor},t.patch=function(e,t){return new p(e,t).patch},t.compare=f,t.compareLoose=function(e,t){return f(e,t,!0)},t.compareBuild=function(e,t,n){var r=new p(e,n),o=new p(t,n);return r.compare(o)||r.compareBuild(o)},t.rcompare=function(e,t,n){return f(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=m,t.lt=g,t.eq=y,t.neq=b,t.gte=v,t.lte=E,t.cmp=x,t.Comparator=C;var S={};function L(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof L)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new L(e.raw,t);if(e instanceof C)return new L(e.value,t);if(!(this instanceof L))return new L(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function w(e,t){for(var n=!0,r=e.slice(),o=r.pop();n&&r.length;)n=r.every((function(e){return o.intersects(e,t)})),o=r.pop();return n}function k(e){return!e||"x"===e.toLowerCase()||"*"===e}function O(e,t,n,r,o,i,a,s,l,c,u,p,d){return((t=k(n)?"":k(r)?">="+n+".0.0":k(o)?">="+n+"."+r+".0":">="+t)+" "+(s=k(l)?"":k(c)?"<"+(+l+1)+".0.0":k(u)?"<"+l+"."+(+c+1)+".0":p?"<="+l+"."+c+"."+u+"-"+p:"<="+s)).trim()}function R(e,t,r){for(var o=0;o<e.length;o++)if(!e[o].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(o=0;o<e.length;o++)if(n(e[o].semver),e[o].semver!==S&&e[o].semver.prerelease.length>0){var i=e[o].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}function q(e,t,n){try{t=new L(t,n)}catch(e){return!1}return t.test(e)}function I(e,t,n,r){var o,i,a,s,l;switch(e=new p(e,r),t=new L(t,r),n){case">":o=m,i=E,a=g,s=">",l=">=";break;case"<":o=g,i=v,a=m,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(q(e,t,r))return!1;for(var c=0;c<t.set.length;++c){var u=t.set[c],d=null,h=null;if(u.forEach((function(e){e.semver===S&&(e=new C(">=0.0.0")),d=d||e,h=h||e,o(e.semver,d.semver,r)?d=e:a(e.semver,h.semver,r)&&(h=e)})),d.operator===s||d.operator===l)return!1;if((!h.operator||h.operator===s)&&i(e,h.semver))return!1;if(h.operator===l&&a(e,h.semver))return!1}return!0}C.prototype.parse=function(e){var t=this.options.loose?o[a.COMPARATORLOOSE]:o[a.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new p(n[2],this.options.loose):this.semver=S},C.prototype.toString=function(){return this.value},C.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===S||e===S)return!0;if("string"==typeof e)try{e=new p(e,this.options)}catch(e){return!1}return x(e,this.operator,this.semver,this.options)},C.prototype.intersects=function(e,t){if(!(e instanceof C))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new L(e.value,t),q(this.value,n,t));if(""===e.operator)return""===e.value||(n=new L(this.value,t),q(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=x(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=x(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||o||i&&a||s||l},t.Range=L,L.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},L.prototype.toString=function(){return this.range},L.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?o[a.HYPHENRANGELOOSE]:o[a.HYPHENRANGE];e=e.replace(r,O),n("hyphen replace",e),e=e.replace(o[a.COMPARATORTRIM],"$1$2$3"),n("comparator trim",e,o[a.COMPARATORTRIM]),e=(e=(e=e.replace(o[a.TILDETRIM],"$1~")).replace(o[a.CARETTRIM],"$1^")).split(/\s+/).join(" ");var i=t?o[a.COMPARATORLOOSE]:o[a.COMPARATOR],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?o[a.CARETLOOSE]:o[a.CARET];return e.replace(r,(function(t,r,o,i,a){var s;return n("caret",e,t,r,o,i,a),k(r)?s="":k(o)?s=">="+r+".0.0 <"+(+r+1)+".0.0":k(i)?s="0"===r?">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":">="+r+"."+o+".0 <"+(+r+1)+".0.0":a?(n("replaceCaret pr",a),s="0"===r?"0"===o?">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+o+"."+(+i+1):">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+i+"-"+a+" <"+(+r+1)+".0.0"):(n("no pr"),s="0"===r?"0"===o?">="+r+"."+o+"."+i+" <"+r+"."+o+"."+(+i+1):">="+r+"."+o+"."+i+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+i+" <"+(+r+1)+".0.0"),n("caret return",s),s}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?o[a.TILDELOOSE]:o[a.TILDE];return e.replace(r,(function(t,r,o,i,a){var s;return n("tilde",e,t,r,o,i,a),k(r)?s="":k(o)?s=">="+r+".0.0 <"+(+r+1)+".0.0":k(i)?s=">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":a?(n("replaceTilde pr",a),s=">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+(+o+1)+".0"):s=">="+r+"."+o+"."+i+" <"+r+"."+(+o+1)+".0",n("tilde return",s),s}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?o[a.XRANGELOOSE]:o[a.XRANGE];return e.replace(r,(function(r,o,i,a,s,l){n("xRange",e,r,o,i,a,s,l);var c=k(i),u=c||k(a),p=u||k(s),d=p;return"="===o&&d&&(o=""),l=t.includePrerelease?"-0":"",c?r=">"===o||"<"===o?"<0.0.0-0":"*":o&&d?(u&&(a=0),s=0,">"===o?(o=">=",u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):"<="===o&&(o="<",u?i=+i+1:a=+a+1),r=o+i+"."+a+"."+s+l):u?r=">="+i+".0.0"+l+" <"+(+i+1)+".0.0"+l:p&&(r=">="+i+"."+a+".0"+l+" <"+i+"."+(+a+1)+".0"+l),n("xRange return",r),r}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(o[a.STAR],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(i)}))),s=s.map((function(e){return new C(e,this.options)}),this)},L.prototype.intersects=function(e,t){if(!(e instanceof L))throw new TypeError("a Range is required");return this.set.some((function(n){return w(n,t)&&e.set.some((function(e){return w(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new L(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},L.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new p(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(R(this.set[t],e,this.options))return!0;return!1},t.satisfies=q,t.maxSatisfying=function(e,t,n){var r=null,o=null;try{var i=new L(t,n)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(r&&-1!==o.compare(e)||(o=new p(r=e,n)))})),r},t.minSatisfying=function(e,t,n){var r=null,o=null;try{var i=new L(t,n)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(r&&1!==o.compare(e)||(o=new p(r=e,n)))})),r},t.minVersion=function(e,t){e=new L(e,t);var n=new p("0.0.0");if(e.test(n))return n;if(n=new p("0.0.0-0"),e.test(n))return n;n=null;for(var r=0;r<e.set.length;++r){e.set[r].forEach((function(e){var t=new p(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!m(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new L(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return I(e,t,"<",n)},t.gtr=function(e,t,n){return I(e,t,">",n)},t.outside=I,t.prerelease=function(e,t){var n=u(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new L(e,n),t=new L(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof p)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=o[a.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),o[a.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;o[a.COERCERTL].lastIndex=-1}else n=e.match(o[a.COERCE]);if(null===n)return null;return u(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}}(ch,ch.exports);const uh={};async function ph(e,t,n,r){let{config:o}=n;const i="".concat(e,"__").concat(t);if(!uh[i]){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 a=(r||o.load)({name:e,version:t}),s=Promise.resolve(a);uh[i]=s.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 uh[i]}function dh(e,t){const n={};let r=null;return{get:e=>n[e],register:(o,i)=>{if(n[o])throw new Error("Supernova '".concat(e,"@").concat(o,"' already registered."));n[o]=function(e,t){let n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{meta:i}=o,a={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&i&&i.deps&&i.deps.properties)||ch.exports.satisfies(e,i.deps.properties),supernova:()=>ph(a.name,a.version,t,o.load).then((e=>(n=n||lh(e,t.public.galaxy),r=JSON.stringify(n.qae.properties.initial),n))),initialProperties(e){return this.supernova().then((()=>V(V({qInfo:{qType:a.name},visualization:a.name,version:a.version,showTitles:!0},JSON.parse(r)),e)))}};return a}({name:e,version:o},t,i),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 hh(e){let{halo:t,parent:n}=e;const r={},o=n||{get:()=>{}};return{register:(e,n)=>{r[e.name]||(r[e.name]=dh(e.name,t)),r[e.name].register(e.version,n)},getSupportedVersion:(e,t)=>r[e]?r[e].getMatchingVersionFromProperties(t):null,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(uh).forEach((t=>{t.split("__")[0]===e&&(uh[t]=void 0)}))}(e)}}}const fh=["__DO_NOT_USE__"],mh=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return V(V({},e),t)},gh=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[...e,...t].filter(((e,t,n)=>n.indexOf(e)===t))},yh=(e,t)=>({context:mh(e.context,t.context),load:t.load||e.load,snapshot:V({},t.snapshot||e.snapshot),types:gh(e.types,t.types),themes:gh(e.themes,t.themes),flags:mh(e.flags,t.flags),anything:mh(e.anything,t.anything)}),bh=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{__DO_NOT_USE__:t={}}=e,n=Z(e,fh),r={update:void 0,fetchStart:void 0,showGray:!0,focusSearch:!1,sessionModel:void 0,selectionsApi:void 0,selectDisabled:void 0,postProcessPages:void 0,calculatePagesHeight:!1},o=V(V(V({},n),r),t);return o};var vh=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=ee(t.context.language);function r(e,o){if(o)return r.createConfiguration(o)(e);let i=V(V({},t.context),{},{translator:n.translator});const[a]=Dl({app:e,context:i}),s=It({themes:t.themes,root:a}),l={galaxy:{translator:n.translator,flags:ed(t.flags),deviceType:_t(t.context.deviceType),anything:t.anything},theme:s.externalAPI,translator:n.translator,nebbie:null},c={app:e,root:a,config:t,public:l,context:i,types:null},u=hh({halo:c});t.types.forEach((e=>u.register({name:e.name,version:e.version},{meta:e.meta,load:e.load})));let p=s.setTheme(t.context.theme),d=null,h=null;const f={render:async e=>(await p,e.id?Qp(e,c):Yp(e,c)),context:async e=>{let t;["theme","language","constraints","keyboardNavigation"].forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==i[n]&&(t||(t={}),t[n]=e[n])})),t&&(i=V(V(V({},i),t),{},{translator:n.translator}),c.context=i,t.theme&&(p=s.setTheme(t.theme),await p),t.language&&c.public.translator.language(t.language),a.context(i))},selections:async()=>(d||(d={mount(t){h||(h=vu({element:t,app:e}),a.add(h))},unmount(){h&&(a.remove(h),h=null)}}),d),field:async t=>{const n="string"==typeof t?t:t.qLibraryId;if(!n)throw new Error("Field identifier must be provided");const r={fieldName:n,mount(r){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!r)throw new Error("Element for ".concat(n," not provided"));if(this._instance)throw new Error("Field ".concat(n," already mounted"));this._instance=ju({element:r,app:e,fieldIdentifier:t,options:bh(o),stateName:o.stateName||"$"}),a.add(this._instance)},unmount(){this._instance&&(a.remove(this._instance),this._instance=null)}};return r},getRegisteredTypes:u.getList,__DO_NOT_USE__:{types:u}};return c.public.nebbie=f,c.types=u,f}return r.createConfiguration=n=>e(yh(t,n)),r.config=t,r}({context:{theme:"light",language:"en-US",deviceType:"auto",constraints:{},keyboardNavigation:!1,disableCellPadding:!1},load:()=>{},types:[],themes:[],anything:{},snapshot:{get:async e=>{const t=await fetch("/njs/snapshot/".concat(e));if(!t.ok)throw new Error(t.statusText);return t.json()},capture:e=>fetch("/njs/capture",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then((e=>e.json()))}}),Eh={exports:{}},xh={exports:{}};xh.exports=function(){function e(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}function t(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 n(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?t(Object(o),!0).forEach((function(t){r(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var i=Object.prototype.hasOwnProperty,a=Object.prototype.toString,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===a.call(e)},u=function(e){if(!e||"[object Object]"!==a.call(e))return!1;var t,n=i.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&i.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||i.call(e,t)},p=function(e,t){s&&"__proto__"===t.name?s(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},d=function(e,t){if("__proto__"===t){if(!i.call(e,t))return;if(l)return l(e,t).value}return e[t]},h=function e(){var t,n,r,o,i,a,s=arguments[0],l=1,h=arguments.length,f=!1;for("boolean"==typeof s&&(f=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<h;++l)if(null!=(t=arguments[l]))for(n in t)r=d(s,n),s!==(o=d(t,n))&&(f&&o&&(u(o)||(i=c(o)))?(i?(i=!1,a=r&&c(r)?r:[]):a=r&&u(r)?r:{},p(s,{name:n,newValue:e(f,a,o)})):void 0!==o&&p(s,{name:n,newValue:o}));return s};const f=globalThis.crypto||{getRandomValues:()=>123456};function m(){return e=>{const t=h({},e);t.qInfo=t.qInfo||{},t.qInfo.qId=t.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^f.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))));const r=t._mock;let o=t;return r&&(delete t._mock,o=h({},t,r)),Promise.resolve(n({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(o),getProperties:()=>Promise.resolve(t),getEffectiveProperties:()=>Promise.resolve(t),id:t.qInfo.qId},t))}}const g=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},y=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,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];const s=g(e,{defaultValue:t,args:i});return n?new Promise((e=>{setTimeout((()=>e(s)),r)})):s}},b=["id","session"],v=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function E(e){return!v.includes(e)}function x(e){const t=g(e.getLayout);return t.qInfo&&t.qInfo.qId}function C(e,t){return e.reduce(((e,r)=>n(n({},e),function(e,t){const r=x(e),{delay:i}=t,{id:a,session:s}=e,l=o(e,b);return{[r]:n({id:g(a,{defaultValue:"object - ".concat(+Date.now())}),session:g(s,{defaultValue:!0}),on:()=>{},once:()=>{}},Object.entries(l).reduce(((e,t)=>{let[r,o]=t;return n(n({},e),{},{[r]:y(o,{async:E(r),delay:i})})}),{}))}}(r,t))),{})}function S(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!x(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function L(){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(S);const n=C(e,t);return async e=>Promise.resolve(n[e])}function w(){return()=>Promise.resolve({id:"app-layout"})}var k={fromGenericObjects:function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=new e,o=new m,i=new L(t,n),a=new w,s={id:"app - ".concat(+Date.now()),session:r,createSessionObject:o,getObject:i,getAppLayout:a};return Promise.resolve(s)}};return k}();const Ch={generator:lh,hook:Ld,theme:Rt,locale:Y,EnigmaMocker:W(Eh.exports=xh.exports)};export{Ch as __DO_NOT_USE__,ip as conversion,vh as embed,Kd as onTakeSnapshot,Wd as useAction,Pd as useApp,Dd as useAppLayout,$d as useConstraints,Ud as useDeviceType,kd as useEffect,Id as useElement,Fd as useEmbed,Ad as useGlobal,Gd as useImperativeHandle,Xd as useKeyboard,Td as useLayout,Rd as useMemo,Md as useModel,Vd as useOptions,Hd as usePlugins,qd as usePromise,_d as useRect,Zd as useRenderState,jd as useSelections,Nd as useStaleLayout,wd as useState,zd as useTheme,Bd as useTranslator};
8
87
  //# sourceMappingURL=index.js.map