@nebula.js/stardust 3.0.3 → 3.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/esm/dev.js +887 -5731
- package/core/esm/dev.js.map +1 -1
- package/core/esm/index.js +4 -78
- package/core/esm/index.js.map +1 -1
- package/core/package.json +2 -2
- package/dist/stardust.dev.js +8422 -21344
- package/dist/stardust.dev.js.map +1 -1
- package/dist/stardust.js +14 -117
- package/dist/stardust.js.map +1 -1
- package/package.json +12 -12
package/core/esm/index.js
CHANGED
|
@@ -1,87 +1,13 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/stardust v3.0.
|
|
2
|
+
* @nebula.js/stardust v3.0.4
|
|
3
3
|
* Copyright (c) 2022 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
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 f,PureComponent as h,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 w,Grid as L,Typography as k,FormControlLabel as O,IconButton as R,Popover as q,MenuList as I,MenuItem as _,ListItemIcon as T,Divider as A,OutlinedInput as D,InputAdornment as N,Badge as P,List as M,ListItem as j,Button as z,Box as F,Icon as B,CircularProgress as $,Paper as U}from"@mui/material";"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 W(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?W(Object(n),!0).forEach((function(t){G(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(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===f)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return I()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=L(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=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var l=u(e,t,n);if("normal"===l.type){if(r=n.done?h:d,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=h,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",f="executing",h="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 w(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 L(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,L(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(w.prototype),l(w.prototype,a,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new w(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},fe={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"]}]}},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:"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})$/,we=new RegExp("^rgb\\("+[Ee,Ee,Ee]+"\\)$"),Le=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 Ae(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?Ne(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ne(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=we.exec(e))?new je(t[1],t[2],t[3],1):(t=Le.exec(e))?new je(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ke.exec(e))?Ne(t[1],t[2],t[3],t[4]):(t=Oe.exec(e))?Ne(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Re.exec(e))?$e(t[1],t[2]/100,t[3]/100,1):(t=qe.exec(e))?$e(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 Ne(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=Ae(e)),e?new je((e=e.rgb()).r,e.g,e.b,e.opacity):new je}function Me(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 $e(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 Ue(e){if(e instanceof He)return new He(e.h,e.s,e.l,e.opacity);if(e instanceof be||(e=Ae(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 We(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,Ae,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:_e,formatHex:_e,formatHsl:function(){return Ue(this).formatHsl()},formatRgb:Te,toString:Te}),ge(je,Me,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(He,(function(e,t,n,r){return 1===arguments.length?Ue(e):new He(e,t,n,null==r?1:r)}),ye(be,{brighter:function(e){return e=null==e?ve:Math.pow(ve,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 je(We(e>=240?e-240:e+120,o,r),We(e,o,r),We(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,ft=st*lt-ct*at;function ht(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=(ft*r+pt*t-dt*n)/(ft+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?ht(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=Ae(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([Ae(e),Ae(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 Me(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(Ae(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 wt(e,t){const n=e.split(".");return{getStyle:(e,r)=>St(e,r,n.concat(),t)}}function Lt(e,t){Object.keys(e).forEach((n=>{"object"==typeof e[n]&&null!==e[n]?Lt(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])}))}function kt(e){const t=Ae(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)}wt.resolveRawTheme=e=>{const t=de(!0,{},e);return Lt(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]=wt(t,e)),r[t].getStyle(n,o))},i={setTheme(i,a){e=function(e,t){const n="dark"===e.type?me:he,r=de(!0,{},fe,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,wt.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 At(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 Nt(){}function Pt(){}Pt.resetWarningCache=Nt;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:Nt};return n.PropTypes=n,n}();var Mt=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,$t=String.fromCharCode,Ut=Object.assign;function Ht(e){return e.trim()}function Wt(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 Ut(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 fn(e){return Yt=Qt=1,en=Zt(rn=e),tn=0,[]}function hn(e){return rn="",e}function mn(e){return Ht(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)+"*"+$t(47===e?e:ln())}function En(e){for(;!dn(cn());)ln();return pn(e,tn)}function xn(e){return hn(Cn("",null,null,null,[""],e=fn(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,f=0,h=0,m=1,g=1,y=1,b=0,v="",E=o,x=i,C=r,S=v;g;)switch(h=b,b=ln()){case 40:if(108!=h&&58==S.charCodeAt(p-1)){-1!=Vt(S+=Wt(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(h);break;case 92:S+=yn(un()-1,7);continue;case 47:switch(cn()){case 42:case 47:Jt(wn(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:f>0&&Zt(S)-p&&Jt(f>32?Ln(S+";",r,n,p-1):Ln(Wt(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=f=0,m=y=1,v=S="",p=a;break;case 58:p=1+Zt(S),f=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==sn())continue;switch(S+=$t(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===h&&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:[""],f=Xt(d),h=0,m=0,g=0;h<r;++h)for(var y=0,b=Kt(e,p+1,p=Bt(m=a[h])),v=e;y<f;++y)(v=Ht(m>0?d[y]+" "+b:Wt(b,/&\f/g,d[y])))&&(l[g++]=v);return on(e,t,n,0===o?"rule":s,l,c,u)}function wn(e,t,n){return on(e,t,n,"comm",$t(nn),Kt(e,2,-2),0)}function Ln(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+Wt(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return Ft+e+jt+"flex-item-"+Wt(e,/flex-|-self/,"")+e;case 4675:return Ft+e+jt+"flex-line-pack"+Wt(e,/align-content|flex-|-self/,"")+e;case 5548:return Ft+e+jt+Wt(e,"shrink","negative")+e;case 5292:return Ft+e+jt+Wt(e,"basis","preferred-size")+e;case 6060:return Ft+"box-"+Wt(e,"-grow","")+Ft+e+jt+Wt(e,"grow","positive")+e;case 4554:return Ft+Wt(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return Wt(Wt(Wt(e,/(zoom-|grab)/,Ft+"$1"),/(image-set)/,Ft+"$1"),e,"")+e;case 5495:case 3959:return Wt(e,/(image-set\([^]*)/,Ft+"$1$`$1");case 4968:return Wt(Wt(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 Wt(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 Wt(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+zt+(108==Gt(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Vt(e,"stretch")?kn(Wt(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 Wt(e,":",":"+Ft)+e;case 101:return Wt(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+Wt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ft+e+jt+Wt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ft+e+jt+Wt(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 hn(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]+=$t(r)}}while(r=ln());return e}(fn(e),t))},Tn=new WeakMap,An=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="")}},Nn="undefined"!=typeof document,Pn=Nn?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]}}))})),Mn=[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:Wt(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:[Wt(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return On([an(e,{props:[Wt(t,/:(plac\w+)/,":-webkit-input-$1")]}),an(e,{props:[Wt(t,/:(plac\w+)/,":-moz-$1")]}),an(e,{props:[Wt(t,/:(plac\w+)/,jt+"input-$1")]})],r)}return""}))}}],jn={exports:{}},zn={},Fn=t,Bn=Symbol.for("react.element"),$n=Symbol.for("react.fragment"),Un=Object.prototype.hasOwnProperty,Hn=Fn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Wn={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)Un.call(t,r)&&!Wn.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:Hn.current}}zn.Fragment=$n,zn.jsx=Vn,zn.jsxs=Vn,jn.exports=zn;const Gn=function(e){var t=e.key;if(Nn&&"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||Mn,a={},s=[];Nn&&(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=[An,Dn];if(Nn){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 f=[Rn],h=qn(c.concat(i,f)),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),h)),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 Mt({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.10.
|
|
7
|
+
import*as e from"react";import t,{useState as n,useEffect as r,useReducer as o,forwardRef as i,useMemo as a,useImperativeHandle as s,useCallback as l,useLayoutEffect as c,createElement as u,PureComponent as p,useRef as d,useContext as f}from"react";import h from"react-dom";import{CacheProvider as m,ThemeContext as g}from"@emotion/react";import{Checkbox as y,Radio as b,Grid as v,Typography as E,FormControlLabel as C,IconButton as x,Popover as L,MenuList as S,MenuItem as w,ListItemIcon as O,Divider as q,OutlinedInput as R,InputAdornment as k,Badge as I,List as _,ListItem as D,Button as T,Box as A,Icon as P,CircularProgress as N,Paper as M}from"@mui/material";import j from"@emotion/styled";"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function z(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function F(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 B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F(Object(n),!0).forEach((function(t){H(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function H(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U(){return U=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},U.apply(this,arguments)}function W(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===f)throw new Error("Generator is already running");if(r===h){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=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var l=u(e,t,n);if("normal"===l.type){if(r=n.done?h:d,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=h,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",f="executing",h="completed",m={};function g(){}function y(){}function b(){}var v={};l(v,i,(function(){return this}));var E=Object.getPrototypeOf,C=E&&E(E(k([])));C&&C!==n&&r.call(C,i)&&(v=C);var x=b.prototype=g.prototype=Object.create(v);function L(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function S(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 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 k(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(x,"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(x),e},e.awrap=function(e){return{__await:e}},L(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()}))},L(x),l(x,s,"Generator"),l(x,i,(function(){return this})),l(x,"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=k,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:k(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 $=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 V(){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?$(i,o):i}};return o}const G=function(){let{initial:e="en-US",fallback:t="en-US"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=V({initial:e,fallback:t});return{translator:n}};var K={Cancel:{id:"Cancel",locale:{"de-DE":"Abbrechen","en-US":"Cancel","es-ES":"Cancelar","fr-FR":"Annuler","it-IT":"Annulla","ja-JP":"キャンセル","ko-KR":"취소","nl-NL":"Annuleren","pl-PL":"Anuluj","pt-BR":"Cancelar","ru-RU":"Отмена","sv-SE":"Avbryt","tr-TR":"İptal","zh-CN":"取消","zh-TW":"取消"}},CurrentSelections_All:{id:"CurrentSelections.All",locale:{"de-DE":"ALLES","en-US":"ALL","es-ES":"TODOS","fr-FR":"TOUS","it-IT":"TUTTI","ja-JP":"すべて","ko-KR":"모두","nl-NL":"ALLE","pl-PL":"WSZYSTKO","pt-BR":"TODOS","ru-RU":"ВСЕ","sv-SE":"ALLA","tr-TR":"TÜMÜ","zh-CN":"全部","zh-TW":"全部"}},CurrentSelections_Of:{id:"CurrentSelections.Of",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0}/ {1}","ko-KR":"{0} / {1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0}/ {1}","zh-TW":"{0}/ {1}"}},Listbox_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 Z(e){const t=G({initial:e});return Object.keys(K).forEach((e=>{t.translator.add(K[e])})),{translator:t.translator}}var X={};function J(){J.init.call(this)}X.isObject=function(e){return"object"==typeof e&&null!==e},X.isNumber=function(e){return"number"==typeof e},X.isUndefined=function(e){return void 0===e},X.isFunction=function(e){return"function"==typeof e};var Y=J;J.EventEmitter=J,J.prototype._events=void 0,J.prototype._maxListeners=void 0,J.defaultMaxListeners=10,J.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},J.prototype.setMaxListeners=function(e){if(!X.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},J.prototype.emit=function(e){var t,n,r,o,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],X.isUndefined(n))return!1;if(X.isFunction(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:for(r=arguments.length,o=new Array(r-1),i=1;i<r;i++)o[i-1]=arguments[i];n.apply(this,o)}else if(X.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},J.prototype.addListener=function(e,t){var n;if(!X.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,X.isFunction(t.listener)?t.listener:t),this._events[e]?X.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,X.isObject(this._events[e])&&!this._events[e].warned)&&((n=X.isUndefined(this._maxListeners)?J.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,X.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),X.isFunction(console.trace)&&console.trace()));return this},J.prototype.on=J.prototype.addListener,J.prototype.once=function(e,t){if(!X.isFunction(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},J.prototype.removeListener=function(e,t){var n,r,o,i;if(!X.isFunction(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(o=(n=this._events[e]).length,r=-1,n===t||X.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(X.isObject(n)){for(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},J.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],X.isFunction(n))this.removeListener(e,n);else if(Array.isArray(n))for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},J.prototype.listeners=function(e){return this._events&&this._events[e]?X.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},J.listenerCount=function(e,t){return e._events&&e._events[t]?X.isFunction(e._events[t])?1:e._events[t].length:0};var Q=Object.prototype.hasOwnProperty,ee=Object.prototype.toString,te=Object.defineProperty,ne=Object.getOwnPropertyDescriptor,re=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===ee.call(e)},oe=function(e){if(!e||"[object Object]"!==ee.call(e))return!1;var t,n=Q.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Q.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Q.call(e,t)},ie=function(e,t){te&&"__proto__"===t.name?te(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},ae=function(e,t){if("__proto__"===t){if(!Q.call(e,t))return;if(ne)return ne(e,t).value}return e[t]},se=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=ae(s,n),s!==(o=ae(t,n))&&(u&&o&&(oe(o)||(i=re(o)))?(i?(i=!1,a=r&&re(r)?r:[]):a=r&&oe(r)?r:{},ie(s,{name:n,newValue:e(u,a,o)})):void 0!==o&&ie(s,{name:n,newValue:o}));return s},le={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"]}]}},ce={_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"},ue={_variables:{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},type:"dark",color:"@B98"};function pe(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function de(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function fe(){}var he=1/.7,me="\\s*([+-]?\\d+)\\s*",ge="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ye="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",be=/^#([0-9a-f]{3,8})$/,ve=new RegExp("^rgb\\("+[me,me,me]+"\\)$"),Ee=new RegExp("^rgb\\("+[ye,ye,ye]+"\\)$"),Ce=new RegExp("^rgba\\("+[me,me,me,ge]+"\\)$"),xe=new RegExp("^rgba\\("+[ye,ye,ye,ge]+"\\)$"),Le=new RegExp("^hsl\\("+[ge,ye,ye]+"\\)$"),Se=new RegExp("^hsla\\("+[ge,ye,ye,ge]+"\\)$"),we={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 Oe(){return this.rgb().formatHex()}function qe(){return this.rgb().formatRgb()}function Re(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=be.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?ke(t):3===n?new Te(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ie(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ie(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=ve.exec(e))?new Te(t[1],t[2],t[3],1):(t=Ee.exec(e))?new Te(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ce.exec(e))?Ie(t[1],t[2],t[3],t[4]):(t=xe.exec(e))?Ie(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Le.exec(e))?Me(t[1],t[2]/100,t[3]/100,1):(t=Se.exec(e))?Me(t[1],t[2]/100,t[3]/100,t[4]):we.hasOwnProperty(e)?ke(we[e]):"transparent"===e?new Te(NaN,NaN,NaN,0):null}function ke(e){return new Te(e>>16&255,e>>8&255,255&e,1)}function Ie(e,t,n,r){return r<=0&&(e=t=n=NaN),new Te(e,t,n,r)}function _e(e){return e instanceof fe||(e=Re(e)),e?new Te((e=e.rgb()).r,e.g,e.b,e.opacity):new Te}function De(e,t,n,r){return 1===arguments.length?_e(e):new Te(e,t,n,null==r?1:r)}function Te(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Ae(){return"#"+Ne(this.r)+Ne(this.g)+Ne(this.b)}function Pe(){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 Ne(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Me(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ze(e,t,n,r)}function je(e){if(e instanceof ze)return new ze(e.h,e.s,e.l,e.opacity);if(e instanceof fe||(e=Re(e)),!e)return new ze;if(e instanceof ze)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 ze(a,s,l,e.opacity)}function ze(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Fe(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}pe(fe,Re,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Oe,formatHex:Oe,formatHsl:function(){return je(this).formatHsl()},formatRgb:qe,toString:qe}),pe(Te,De,de(fe,{brighter:function(e){return e=null==e?he:Math.pow(he,e),new Te(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Te(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:Ae,formatHex:Ae,formatRgb:Pe,toString:Pe})),pe(ze,(function(e,t,n,r){return 1===arguments.length?je(e):new ze(e,t,n,null==r?1:r)}),de(fe,{brighter:function(e){return e=null==e?he:Math.pow(he,e),new ze(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new ze(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 Te(Fe(e>=240?e-240:e+120,o,r),Fe(e,o,r),Fe(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+")")}}));class Be{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=Re(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([Re(e),Re(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 De(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 He(e,t,n){const r=.25+(t+1)/n*.25,o=.5-r;return o+e/1*(.5+r-o)}function Ue(e,t,n){const r=[],o=new Be(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 We(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=He(1/t*o,t,n);i=e.getColor(r);break}}r.push(Re(i).formatHex())}return r}function $e(e,t,n){const r=Ue(e,n,!0),o=Ue(We(r,t-1,t),n,!1),i=[null];for(let e=0;e<t;e++)i.push(We(o,e,t));return i}function Ve(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 Ge(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 Ke(e,t,n,r){let o;if(""===e)o=Ve(null,n);else{o=Ve(e.split("."),n)}return function(e,t,n){const r=t.split(".");for(let t=0;t<e.length;t++){const o=Ge(n,[...e[t],...r]);if(void 0!==o)return o}}(o,t,r)}function Ze(e,t){const n=e.split(".");return{getStyle:(e,r)=>Ke(e,r,n.concat(),t)}}function Xe(e,t){Object.keys(e).forEach((n=>{"object"==typeof e[n]&&null!==e[n]?Xe(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])}))}function Je(e){const t=Re(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 Ye(e,t){return+((Math.max(e,t)+.05)/(Math.min(e,t)+.05)).toFixed(5)}Ze.resolveRawTheme=e=>{const t=se(!0,{},e);return Xe(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=$e(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 Qe(){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]=Ze(t,e)),r[t].getStyle(n,o))},i={setTheme(i,a){e=function(e,t){const n="dark"===e.type?ue:ce,r=se(!0,{},le,n),o=se(!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,Ze.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=Je(s);n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["#333333","#ffffff"],t={},n=0;const r=e.map(Je);return{getBestContrastColor(o){if(!t[o]){n>1e3&&(t={},n=0);const i=Je(o),a=r.map((e=>Ye(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(Y.prototype).forEach((e=>{o[e]=Y.prototype[e]})),Y.init(o),i.setTheme({},"light"),{externalAPI:o,internalAPI:i}}const et=(e,t)=>new Promise((n=>{setTimeout((()=>n(t)),e)}));function tt(){let{themes:e=[],root:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=Qe(),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(),et(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 nt(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 rt(){return rt=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},rt.apply(this,arguments)}function ot(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 it=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}(),at="-ms-",st="-moz-",lt="-webkit-",ct=Math.abs,ut=String.fromCharCode,pt=Object.assign;function dt(e){return e.trim()}function ft(e,t,n){return e.replace(t,n)}function ht(e,t){return e.indexOf(t)}function mt(e,t){return 0|e.charCodeAt(t)}function gt(e,t,n){return e.slice(t,n)}function yt(e){return e.length}function bt(e){return e.length}function vt(e,t){return t.push(e),e}var Et=1,Ct=1,xt=0,Lt=0,St=0,wt="";function Ot(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Et,column:Ct,length:a,return:""}}function qt(e,t){return pt(Ot("",null,null,"",null,null,0),e,{length:-e.length},t)}function Rt(){return St=Lt>0?mt(wt,--Lt):0,Ct--,10===St&&(Ct=1,Et--),St}function kt(){return St=Lt<xt?mt(wt,Lt++):0,Ct++,10===St&&(Ct=1,Et++),St}function It(){return mt(wt,Lt)}function _t(){return Lt}function Dt(e,t){return gt(wt,e,t)}function Tt(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 At(e){return Et=Ct=1,xt=yt(wt=e),Lt=0,[]}function Pt(e){return wt="",e}function Nt(e){return dt(Dt(Lt-1,zt(91===e?e+2:40===e?e+1:e)))}function Mt(e){for(;(St=It())&&St<33;)kt();return Tt(e)>2||Tt(St)>3?"":" "}function jt(e,t){for(;--t&&kt()&&!(St<48||St>102||St>57&&St<65||St>70&&St<97););return Dt(e,_t()+(t<6&&32==It()&&32==kt()))}function zt(e){for(;kt();)switch(St){case e:return Lt;case 34:case 39:34!==e&&39!==e&&zt(St);break;case 40:41===e&&zt(e);break;case 92:kt()}return Lt}function Ft(e,t){for(;kt()&&e+St!==57&&(e+St!==84||47!==It()););return"/*"+Dt(t,Lt-1)+"*"+ut(47===e?e:kt())}function Bt(e){for(;!Tt(It());)kt();return Dt(e,Lt)}function Ht(e){return Pt(Ut("",null,null,null,[""],e=At(e),0,[0],e))}function Ut(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,p=a,d=0,f=0,h=0,m=1,g=1,y=1,b=0,v="",E=o,C=i,x=r,L=v;g;)switch(h=b,b=kt()){case 40:if(108!=h&&58==L.charCodeAt(p-1)){-1!=ht(L+=ft(Nt(b),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:L+=Nt(b);break;case 9:case 10:case 13:case 32:L+=Mt(h);break;case 92:L+=jt(_t()-1,7);continue;case 47:switch(It()){case 42:case 47:vt($t(Ft(kt(),_t()),t,n),l);break;default:L+="/"}break;case 123*m:s[c++]=yt(L)*y;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:f>0&&yt(L)-p&&vt(f>32?Vt(L+";",r,n,p-1):Vt(ft(L," ","")+";",r,n,p-2),l);break;case 59:L+=";";default:if(vt(x=Wt(L,t,n,c,u,o,s,v,E=[],C=[],p),i),123===b)if(0===u)Ut(L,t,x,x,E,i,p,s,C);else switch(d){case 100:case 109:case 115:Ut(e,x,x,r&&vt(Wt(e,x,x,0,0,o,s,v,o,E=[],p),C),o,C,p,s,r?E:C);break;default:Ut(L,x,x,x,[""],C,0,s,C)}}c=u=f=0,m=y=1,v=L="",p=a;break;case 58:p=1+yt(L),f=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==Rt())continue;switch(L+=ut(b),b*m){case 38:y=u>0?1:(L+="\f",-1);break;case 44:s[c++]=(yt(L)-1)*y,y=1;break;case 64:45===It()&&(L+=Nt(kt())),d=It(),u=p=yt(v=L+=Bt(_t())),b++;break;case 45:45===h&&2==yt(L)&&(m=0)}}return i}function Wt(e,t,n,r,o,i,a,s,l,c,u){for(var p=o-1,d=0===o?i:[""],f=bt(d),h=0,m=0,g=0;h<r;++h)for(var y=0,b=gt(e,p+1,p=ct(m=a[h])),v=e;y<f;++y)(v=dt(m>0?d[y]+" "+b:ft(b,/&\f/g,d[y])))&&(l[g++]=v);return Ot(e,t,n,0===o?"rule":s,l,c,u)}function $t(e,t,n){return Ot(e,t,n,"comm",ut(St),gt(e,2,-2),0)}function Vt(e,t,n,r){return Ot(e,t,n,"decl",gt(e,0,r),gt(e,r+1,-1),r)}function Gt(e,t){switch(function(e,t){return(((t<<2^mt(e,0))<<2^mt(e,1))<<2^mt(e,2))<<2^mt(e,3)}(e,t)){case 5103:return lt+"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 lt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return lt+e+st+e+at+e+e;case 6828:case 4268:return lt+e+at+e+e;case 6165:return lt+e+at+"flex-"+e+e;case 5187:return lt+e+ft(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return lt+e+at+"flex-item-"+ft(e,/flex-|-self/,"")+e;case 4675:return lt+e+at+"flex-line-pack"+ft(e,/align-content|flex-|-self/,"")+e;case 5548:return lt+e+at+ft(e,"shrink","negative")+e;case 5292:return lt+e+at+ft(e,"basis","preferred-size")+e;case 6060:return lt+"box-"+ft(e,"-grow","")+lt+e+at+ft(e,"grow","positive")+e;case 4554:return lt+ft(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return ft(ft(ft(e,/(zoom-|grab)/,lt+"$1"),/(image-set)/,lt+"$1"),e,"")+e;case 5495:case 3959:return ft(e,/(image-set\([^]*)/,lt+"$1$`$1");case 4968:return ft(ft(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+lt+e+e;case 4095:case 3583:case 4068:case 2532:return ft(e,/(.+)-inline(.+)/,lt+"$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(yt(e)-1-t>6)switch(mt(e,t+1)){case 109:if(45!==mt(e,t+4))break;case 102:return ft(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+st+(108==mt(e,t+3)?"$3":"$2-$3"))+e;case 115:return~ht(e,"stretch")?Gt(ft(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==mt(e,t+1))break;case 6444:switch(mt(e,yt(e)-3-(~ht(e,"!important")&&10))){case 107:return ft(e,":",":"+lt)+e;case 101:return ft(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+lt+(45===mt(e,14)?"inline-":"")+"box$3$1"+lt+"$2$3$1"+at+"$2box$3")+e}break;case 5936:switch(mt(e,t+11)){case 114:return lt+e+at+ft(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return lt+e+at+ft(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return lt+e+at+ft(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return lt+e+at+e+e}return e}function Kt(e,t){for(var n="",r=bt(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Zt(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+"{"+Kt(e.children,r)+"}";case"rule":e.value=e.props.join(",")}return yt(n=Kt(e.children,r))?e.return=e.value+"{"+n+"}":""}function Xt(e){var t=bt(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 Jt=function(e,t,n){for(var r=0,o=0;r=o,o=It(),38===r&&12===o&&(t[n]=1),!Tt(o);)kt();return Dt(e,Lt)},Yt=function(e,t){return Pt(function(e,t){var n=-1,r=44;do{switch(Tt(r)){case 0:38===r&&12===It()&&(t[n]=1),e[n]+=Jt(Lt-1,t,n);break;case 2:e[n]+=Nt(r);break;case 4:if(44===r){e[++n]=58===It()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=ut(r)}}while(r=kt());return e}(At(e),t))},Qt=new WeakMap,en=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)||Qt.get(n))&&!r){Qt.set(e,!0);for(var o=[],i=Yt(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]}}},tn=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},nn="undefined"!=typeof document,rn=nn?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]}}))})),on=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case"decl":e.return=Gt(e.value,e.length);break;case"@keyframes":return Kt([qt(e,{value:ft(e.value,"@","@"+lt)})],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 Kt([qt(e,{props:[ft(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Kt([qt(e,{props:[ft(t,/:(plac\w+)/,":-webkit-input-$1")]}),qt(e,{props:[ft(t,/:(plac\w+)/,":-moz-$1")]}),qt(e,{props:[ft(t,/:(plac\w+)/,at+"input-$1")]})],r)}return""}))}}],an=function(e){var t=e.key;if(nn&&"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||on,a={},s=[];nn&&(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=[en,tn];if(nn){var u,p=[Zt,(l=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],d=Xt(c.concat(i,p));o=function(e,t,n,r){u=n,Kt(Ht(e?e+"{"+t.styles+"}":t.styles),d),r&&(y.inserted[t.name]=!0)}}else{var f=[Zt],h=Xt(c.concat(i,f)),m=rn(i)(t),g=function(e,t){var n=t.name;return void 0===m[n]&&(m[n]=Kt(Ht(e?e+"{"+t.styles+"}":t.styles),h)),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 it({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},sn={exports:{}},ln={},cn=t,un=Symbol.for("react.element"),pn=Symbol.for("react.fragment"),dn=Object.prototype.hasOwnProperty,fn=cn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,hn={key:!0,ref:!0,__self:!0,__source:!0};function mn(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)dn.call(t,r)&&!hn.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:un,type:e,key:i,ref:a,props:o,_owner:fn.current}}ln.Fragment=pn,ln.jsx=mn,ln.jsxs=mn,sn.exports=ln;const gn=an({key:"css",prepend:!0});function yn(e){const{injectFirst:t,children:n}=e;return t?sn.exports.jsx(m,{value:gn,children:n}):n}
|
|
8
|
+
/** @license MUI v5.10.8
|
|
9
9
|
*
|
|
10
10
|
* This source code is licensed under the MIT license found in the
|
|
11
11
|
* LICENSE file in the root directory of this source tree.
|
|
12
|
-
*/
|
|
13
|
-
function Zn(e,t){return b(e,t)}function Xn(){return Xn=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},Xn.apply(this,arguments)}function Jn(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function Yn(e,t,n={clone:!0}){const r=n.clone?Xn({},e):e;return Jn(e)&&Jn(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Jn(t[o])&&o in e&&Jn(e[o])?r[o]=Yn(e[o],t[o],n):r[o]=t[o])})),r}function Qn(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 er,tr={},nr=Symbol.for("react.element"),rr=Symbol.for("react.portal"),or=Symbol.for("react.fragment"),ir=Symbol.for("react.strict_mode"),ar=Symbol.for("react.profiler"),sr=Symbol.for("react.provider"),lr=Symbol.for("react.context"),cr=Symbol.for("react.server_context"),ur=Symbol.for("react.forward_ref"),pr=Symbol.for("react.suspense"),dr=Symbol.for("react.suspense_list"),fr=Symbol.for("react.memo"),hr=Symbol.for("react.lazy"),mr=Symbol.for("react.offscreen");function gr(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case nr:switch(e=e.type){case or:case ar:case ir:case pr:case dr:return e;default:switch(e=e&&e.$$typeof){case cr:case lr:case ur:case hr:case fr:case sr:return e;default:return t}}case rr:return t}}}function yr(e){if("string"!=typeof e)throw new Error(Qn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function br(e,t){"function"==typeof e?e(t):e&&(e.current=t)}er=Symbol.for("react.module.reference"),tr.ContextConsumer=lr,tr.ContextProvider=sr,tr.Element=nr,tr.ForwardRef=ur,tr.Fragment=or,tr.Lazy=hr,tr.Memo=fr,tr.Portal=rr,tr.Profiler=ar,tr.StrictMode=ir,tr.Suspense=pr,tr.SuspenseList=dr,tr.isAsyncMode=function(){return!1},tr.isConcurrentMode=function(){return!1},tr.isContextConsumer=function(e){return gr(e)===lr},tr.isContextProvider=function(e){return gr(e)===sr},tr.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===nr},tr.isForwardRef=function(e){return gr(e)===ur},tr.isFragment=function(e){return gr(e)===or},tr.isLazy=function(e){return gr(e)===hr},tr.isMemo=function(e){return gr(e)===fr},tr.isPortal=function(e){return gr(e)===rr},tr.isProfiler=function(e){return gr(e)===ar},tr.isStrictMode=function(e){return gr(e)===ir},tr.isSuspense=function(e){return gr(e)===pr},tr.isSuspenseList=function(e){return gr(e)===dr},tr.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===or||e===ar||e===ir||e===pr||e===dr||e===mr||"object"==typeof e&&null!==e&&(e.$$typeof===hr||e.$$typeof===fr||e.$$typeof===sr||e.$$typeof===lr||e.$$typeof===ur||e.$$typeof===er||void 0!==e.getModuleId)},tr.typeOf=gr,"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 vr="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;function Er(t){const n=e.useRef(t);return vr((()=>{n.current=t})),e.useCallback(((...e)=>(0,n.current)(...e)),[])}function xr(t,n){return e.useMemo((()=>null==t&&null==n?null:e=>{br(t,e),br(n,e)}),[t,n])}let Cr,Sr=!0,wr=!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 kr(e){e.metaKey||e.altKey||e.ctrlKey||(Sr=!0)}function Or(){Sr=!1}function Rr(){"hidden"===this.visibilityState&&wr&&(Sr=!0)}function qr(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Sr||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Lr[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Ir(){const t=e.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",kr,!0),t.addEventListener("mousedown",Or,!0),t.addEventListener("pointerdown",Or,!0),t.addEventListener("touchstart",Or,!0),t.addEventListener("visibilitychange",Rr,!0))}),[]),n=e.useRef(!1);return{isFocusVisibleRef:n,onFocus:function(e){return!!qr(e)&&(n.current=!0,!0)},onBlur:function(){return!!n.current&&(wr=!0,window.clearTimeout(Cr),Cr=window.setTimeout((()=>{wr=!1}),100),n.current=!1,!0)},ref:t}}function _r(){return null}function Tr(e,t,n){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>(r&&(e.push(t(r)),n&&n[r]&&e.push(n[r])),e)),[]).join(" ")})),r}_r.isRequired=_r;const Ar=e=>e,Dr=(()=>{let e=Ar;return{configure(t){e=t},generate:t=>e(t),reset(){e=Ar}}})(),Nr={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Pr(e,t,n="Mui"){const r=Nr[t];return r?`${n}-${r}`:`${Dr.generate(e)}-${t}`}function Mr(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Pr(e,t,n)})),r}function jr(){return jr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jr.apply(this,arguments)}function zr(e,t){return t?Yn(e,t,{clone:!1}):e}const Fr={xs:0,sm:600,md:900,lg:1200,xl:1536},Br={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Fr[e]}px)`};function $r(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||Br;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||Br;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||Fr).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function Ur(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function Hr(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function Wr({values:e,breakpoints:t,base:n}){const r=n||function(e,t){if("object"!=typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r<e.length&&(n[t]=!0)})):r.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(e,t),o=Object.keys(r);if(0===o.length)return e;let i;return o.reduce(((t,n,r)=>(Array.isArray(e)?(t[n]=null!=e[r]?e[r]:e[i],i=r):"object"==typeof e?(t[n]=null!=e[n]?e[n]:e[i],i=n):t[n]=e,t)),{})}function Vr(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 Gr(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:Vr(e,n)||r,t&&(o=t(o)),o}function Kr(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=Vr(e.theme,r)||{};return $r(e,i,(e=>{let r=Gr(a,o,e);return e===r&&"string"==typeof e&&(r=Gr(a,o,`${t}${"default"===e?"":yr(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}function Zr(...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]?zr(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}const Xr={m:"margin",p:"padding"},Jr={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Yr={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Qr=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!Yr[e])return[e];e=Yr[e]}const[t,n]=e.split(""),r=Xr[t],o=Jr[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),eo=["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 to(e,t,n,r){var o;const i=null!=(o=Vr(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 no(e){return to(e,"spacing",8)}function ro(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 oo(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=ro(t,n),e)),{})}(Qr(n),r);return $r(e,e[n],o)}function io(e){return function(e,t){const n=no(e.theme);return Object.keys(e).map((r=>oo(e,t,r,n))).reduce(zr,{})}(e,eo)}function ao(e){return"number"!=typeof e?e:`${e}px solid`}io.propTypes={},io.filterProps=eo;const so=Kr({prop:"border",themeKey:"borders",transform:ao}),lo=Kr({prop:"borderTop",themeKey:"borders",transform:ao}),co=Kr({prop:"borderRight",themeKey:"borders",transform:ao}),uo=Kr({prop:"borderBottom",themeKey:"borders",transform:ao}),po=Kr({prop:"borderLeft",themeKey:"borders",transform:ao}),fo=Kr({prop:"borderColor",themeKey:"palette"}),ho=Kr({prop:"borderTopColor",themeKey:"palette"}),mo=Kr({prop:"borderRightColor",themeKey:"palette"}),go=Kr({prop:"borderBottomColor",themeKey:"palette"}),yo=Kr({prop:"borderLeftColor",themeKey:"palette"}),bo=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=to(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:ro(t,e)});return $r(e,e.borderRadius,n)}return null};bo.propTypes={},bo.filterProps=["borderRadius"];const vo=Zr(so,lo,co,uo,po,fo,ho,mo,go,yo,bo);var Eo=Zr(Kr({prop:"displayPrint",cssProperty:!1,transform:e=>({"@media print":{display:e}})}),Kr({prop:"display"}),Kr({prop:"overflow"}),Kr({prop:"textOverflow"}),Kr({prop:"visibility"}),Kr({prop:"whiteSpace"}));const xo=Zr(Kr({prop:"flexBasis"}),Kr({prop:"flexDirection"}),Kr({prop:"flexWrap"}),Kr({prop:"justifyContent"}),Kr({prop:"alignItems"}),Kr({prop:"alignContent"}),Kr({prop:"order"}),Kr({prop:"flex"}),Kr({prop:"flexGrow"}),Kr({prop:"flexShrink"}),Kr({prop:"alignSelf"}),Kr({prop:"justifyItems"}),Kr({prop:"justifySelf"})),Co=e=>{if(void 0!==e.gap&&null!==e.gap){const t=to(e.theme,"spacing",8),n=e=>({gap:ro(t,e)});return $r(e,e.gap,n)}return null};Co.propTypes={},Co.filterProps=["gap"];const So=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=to(e.theme,"spacing",8),n=e=>({columnGap:ro(t,e)});return $r(e,e.columnGap,n)}return null};So.propTypes={},So.filterProps=["columnGap"];const wo=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=to(e.theme,"spacing",8),n=e=>({rowGap:ro(t,e)});return $r(e,e.rowGap,n)}return null};wo.propTypes={},wo.filterProps=["rowGap"];const Lo=Zr(Co,So,wo,Kr({prop:"gridColumn"}),Kr({prop:"gridRow"}),Kr({prop:"gridAutoFlow"}),Kr({prop:"gridAutoColumns"}),Kr({prop:"gridAutoRows"}),Kr({prop:"gridTemplateColumns"}),Kr({prop:"gridTemplateRows"}),Kr({prop:"gridTemplateAreas"}),Kr({prop:"gridArea"})),ko=Zr(Kr({prop:"color",themeKey:"palette"}),Kr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),Kr({prop:"backgroundColor",themeKey:"palette"}));var Oo=Zr(Kr({prop:"position"}),Kr({prop:"zIndex",themeKey:"zIndex"}),Kr({prop:"top"}),Kr({prop:"right"}),Kr({prop:"bottom"}),Kr({prop:"left"}));const Ro=Kr({prop:"boxShadow",themeKey:"shadows"});function qo(e){return e<=1&&0!==e?100*e+"%":e}const Io=Kr({prop:"width",transform:qo}),_o=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])||Fr[t]||qo(t)}};return $r(e,e.maxWidth,t)}return null};_o.filterProps=["maxWidth"];const To=Kr({prop:"minWidth",transform:qo}),Ao=Kr({prop:"height",transform:qo}),Do=Kr({prop:"maxHeight",transform:qo}),No=Kr({prop:"minHeight",transform:qo});Kr({prop:"size",cssProperty:"width",transform:qo}),Kr({prop:"size",cssProperty:"height",transform:qo});const Po=Zr(Io,_o,To,Ao,Do,No,Kr({prop:"boxSizing"})),Mo=Kr({prop:"fontFamily",themeKey:"typography"}),jo=Kr({prop:"fontSize",themeKey:"typography"}),zo=Kr({prop:"fontStyle",themeKey:"typography"}),Fo=Kr({prop:"fontWeight",themeKey:"typography"}),Bo=Kr({prop:"letterSpacing"}),$o=Kr({prop:"textTransform"}),Uo=Kr({prop:"lineHeight"}),Ho=Kr({prop:"textAlign"}),Wo=Zr(Kr({prop:"typography",cssProperty:!1,themeKey:"typography"}),Mo,jo,zo,Fo,Bo,Uo,Ho,$o),Vo={borders:vo.filterProps,display:Eo.filterProps,flexbox:xo.filterProps,grid:Lo.filterProps,positions:Oo.filterProps,palette:ko.filterProps,shadows:Ro.filterProps,sizing:Po.filterProps,spacing:io.filterProps,typography:Wo.filterProps},Go={borders:vo,display:Eo,flexbox:xo,grid:Lo,positions:Oo,palette:ko,shadows:Ro,sizing:Po,spacing:io,typography:Wo},Ko=Object.keys(Vo).reduce(((e,t)=>(Vo[t].forEach((n=>{e[n]=Go[t]})),e)),{});const Zo=function(e=Go){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=Ur(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=zr(l,n(r,a,i));else{const t=$r({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=zr(l,t):l[r]=e({sx:a,theme:i})}else l=zr(l,n(r,a,i))})),Hr(s,l)}return Array.isArray(o)?o.map(a):a(o)}}();function Xo(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}Zo.filterProps=["sx"];const Jo=["sx"];function Yo(e){const{sx:t}=e,n=Xo(e,Jo),{systemProps:r,otherProps:o}=(e=>{const t={systemProps:{},otherProps:{}};return Object.keys(e).forEach((n=>{Ko[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 Jn(n)?jr({},r,n):r}:jr({},r,t),jr({},o,{sx:i})}function Qo(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=Qo(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function ei(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Qo(e))&&(r&&(r+=" "),r+=t);return r}const ti=["values","unit","step"];function ni(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Xo(e,ti),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)=>jr({},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 jr({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 ri={borderRadius:4};function oi(e=8){if(e.mui)return e;const t=no({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 ii=["breakpoints","palette","spacing","shape"];function ai(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Xo(e,ii),s=ni(n),l=oi(o);let c=Yn({breakpoints:s,direction:"ltr",components:{},palette:jr({mode:"light"},r),spacing:l,shape:jr({},ri,i)},a);return c=t.reduce(((e,t)=>Yn(e,t)),c),c}function si(){return si=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},si.apply(this,arguments)}const li=e.createContext(null);function ci(){return e.useContext(li)}var ui="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function pi(t){const{children:n,theme:r}=t,o=ci(),i=e.useMemo((()=>{const e=null===o?r:function(e,t){if("function"==typeof t)return t(e);return si({},e,t)}(o,r);return null!=e&&(e[ui]=null!==o),e}),[r,o]);return jn.exports.jsx(li.Provider,{value:i,children:n})}function di(e=null){const t=ci();return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const fi=ai();function hi(e=fi){return di(e)}const mi=["className","component"];!function(t={}){const{defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o,styleFunctionSx:i=Zo}=t,a=Zn("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(i),s=e.forwardRef((function(e,t){const i=hi(n),s=Yo(e),{className:l,component:c="div"}=s,u=Xo(s,mi);return jn.exports.jsx(a,jr({as:c,ref:t,className:ei(l,o?o(r):r),theme:i},u))}))}();const gi=["variant"];function yi(e){return 0===e.length}function bi(e){const{variant:t}=e,n=Xo(e,gi);let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?yi(r)?e[t]:yr(e[t]):`${yi(r)?t:yr(t)}${yr(e[t].toString())}`})),r}const vi=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],Ei=["theme"],xi=["theme"];function Ci(e){return 0===Object.keys(e).length}function Si(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const wi=ai();function Li(e={}){const{defaultTheme:t=wi,rootShouldForwardProp:n=Si,slotShouldForwardProp:r=Si,styleFunctionSx:o=Zo}=e,i=e=>{const n=Ci(e.theme)?t:e.theme;return o(jr({},e,{theme:n}))};return i.__mui_systemSx=!0,(e,o={})=>{((e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:a,slot:s,skipVariantsResolver:l,skipSx:c,overridesResolver:u}=o,p=Xo(o,vi),d=void 0!==l?l:s&&"Root"!==s||!1,f=c||!1;let h=Si;"Root"===s?h=n:s?h=r:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const m=Zn(e,jr({shouldForwardProp:h,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=Xo(n,Ei);return e(jr({theme:Ci(r)?t:r},o))}:e)):[];let o=e;a&&u&&r.push((e=>{const n=Ci(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(jr({},e,{theme:n})):o})),u(e,t)}return null})),a&&!d&&r.push((e=>{const n=Ci(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[bi(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=bi(e.props);r[t]=e.style})),r})(a,n),n,a)})),f||r.push(i);const s=r.length-n.length;if(Array.isArray(e)&&s>0){const t=new Array(s).fill("");o=[...e,...t],o.raw=[...e.raw,...t]}else"function"==typeof e&&e.__emotion_real!==e&&(o=n=>{let{theme:r}=n,o=Xo(n,xi);return e(jr({theme:Ci(r)?t:r},o))});return m(o,...r)};return m.withConfig&&(g.withConfig=m.withConfig),g}}const ki=Li();function Oi(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=Xn({},t);return Object.keys(e).forEach((t=>{void 0===n[t]&&(n[t]=e[t])})),n}(t.components[n].defaultProps,r):r}function Ri({props:e,name:t,defaultTheme:n}){return Oi({theme:hi(n),name:t,props:e})}function qi(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function Ii(e){if(e.type)return e;if("#"===e.charAt(0))return Ii(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(Qn(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(Qn(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const _i=e=>{const t=Ii(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};function Ti(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 Ai(e){let t="hsl"===(e=Ii(e)).type?Ii(function(e){e=Ii(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])),Ti({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 Di(e,t){return e=Ii(e),t=qi(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Ti(e)}function Ni(e,t){if(e=Ii(e),t=qi(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 Ti(e)}function Pi(e,t){if(e=Ii(e),t=qi(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 Ti(e)}function Mi(e,t=.15){return Ai(e)>.5?Ni(e,t):Pi(e,t)}function ji(e){const t=hi();return jn.exports.jsx(x.Provider,{value:"object"==typeof t?t:{},children:e.children})}function zi(e){const{children:t,theme:n}=e;return jn.exports.jsx(pi,{theme:n,children:jn.exports.jsx(ji,{children:t})})}const Fi="mode",Bi="color-scheme",$i="data-color-scheme";function Ui(e=""){function t(...n){if(!n.length)return"";const r=n[0];return"string"!=typeof r||r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))/)?`, ${r}`:`, var(--${e?`${e}-`:""}${r}${t(...n.slice(1))})`}return(n,...r)=>`var(--${e?`${e}-`:""}${n}${t(...r)})`}const Hi=["className","component","disableGutters","fixed","maxWidth","classes"],Wi=ai(),Vi=ki("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${yr(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),Gi=e=>Ri({props:e,name:"MuiContainer",defaultTheme:Wi});!function(t={}){const{createStyledComponent:n=Vi,useThemeProps:r=Gi,componentName:o="MuiContainer"}=t,i=n((({theme:e,ownerState:t})=>jr({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})=>jr({},"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=Xo(n,Hi),d=jr({},n,{component:s,disableGutters:l,fixed:c,maxWidth:u}),f=((e,t)=>{const{classes:n,fixed:r,disableGutters:o,maxWidth:i}=e;return Tr({root:["root",i&&`maxWidth${yr(String(i))}`,r&&"fixed",o&&"disableGutters"]},(e=>Pr(t,e)),n)})(d,o);return jn.exports.jsx(i,jr({as:s,ownerState:d,className:ei(f.root,a),ref:t},p))}))}(),Mr("MuiContainer",["root","disableGutters","fixed","maxWidthXs","maxWidthSm","maxWidthMd","maxWidthLg","maxWidthXl"]);const Ki=(e,t,n)=>{const r=e.keys[0];if(Array.isArray(t))t.forEach(((t,r)=>{n(((t,n)=>{r<=e.keys.length-1&&(0===r?Object.assign(t,n):t[e.up(e.keys[r])]=n)}),t)}));else if(t&&"object"==typeof t){(Object.keys(t).length>e.keys.length?e.keys:Object.keys(t)).forEach((o=>{if(-1!==e.keys.indexOf(o)){const i=t[o];void 0!==i&&n(((t,n)=>{r===o?Object.assign(t,n):t[e.up(o)]=n}),i)}}))}else"number"!=typeof t&&"string"!=typeof t||n(((e,t)=>{Object.assign(e,t)}),t)},Zi=({theme:e,ownerState:t})=>{const n={};return Ki(e.breakpoints,t.gridSize,((e,r)=>{let o={};!0===r&&(o={flexBasis:0,flexGrow:1,maxWidth:"100%"}),"auto"===r&&(o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),"number"==typeof r&&(o={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${r} / var(--Grid-columns)${t.nested&&t.container?" + var(--Grid-columnSpacing)":""})`}),e(n,o)})),n},Xi=({theme:e,ownerState:t})=>{const n={};return Ki(e.breakpoints,t.gridOffset,((e,t)=>{let r={};"auto"===t&&(r={marginLeft:"auto"}),"number"==typeof t&&(r={marginLeft:0===t?"0px":`calc(100% * ${t} / var(--Grid-columns))`}),e(n,r)})),n},Ji=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={"--Grid-columns":12};return Ki(e.breakpoints,t.columns,((e,t)=>{e(n,{"--Grid-columns":t})})),n},Yi=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Ki(e.breakpoints,t.rowSpacing,((t,r)=>{var o;t(n,{"--Grid-rowSpacing":"string"==typeof r?r:null==(o=e.spacing)?void 0:o.call(e,r)})})),n},Qi=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Ki(e.breakpoints,t.columnSpacing,((t,r)=>{var o;t(n,{"--Grid-columnSpacing":"string"==typeof r?r:null==(o=e.spacing)?void 0:o.call(e,r)})})),n},ea=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Ki(e.breakpoints,t.direction,((e,t)=>{e(n,{flexDirection:t})})),n},ta=({ownerState:e})=>jr({minWidth:0,boxSizing:"border-box"},e.container?jr({display:"flex",flexWrap:"wrap"},e.wrap&&"wrap"!==e.wrap&&{flexWrap:e.wrap},{margin:"calc(var(--Grid-rowSpacing) / -2) calc(var(--Grid-columnSpacing) / -2)"},e.disableEqualOverflow&&{margin:"calc(var(--Grid-rowSpacing) * -1) 0px 0px calc(var(--Grid-columnSpacing) * -1)"},e.nested?jr({padding:"calc(var(--Grid-nested-rowSpacing) / 2) calc(var(--Grid-nested-columnSpacing) / 2)"},(e.disableEqualOverflow||e.parentDisableEqualOverflow)&&{padding:"calc(var(--Grid-nested-rowSpacing)) 0px 0px calc(var(--Grid-nested-columnSpacing))"}):{"--Grid-nested-rowSpacing":"var(--Grid-rowSpacing)","--Grid-nested-columnSpacing":"var(--Grid-columnSpacing)"}):jr({padding:"calc(var(--Grid-rowSpacing) / 2) calc(var(--Grid-columnSpacing) / 2)"},e.disableEqualOverflow&&{padding:"calc(var(--Grid-rowSpacing)) 0px 0px calc(var(--Grid-columnSpacing))"})),na=e=>{const t=[];return Object.entries(e).forEach((([e,n])=>{!1!==n&&void 0!==n&&t.push(`grid-${e}-${String(n)}`)})),t},ra=(e,t="xs")=>{function n(e){return void 0!==e&&("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e&&e>0)}if(n(e))return[`spacing-${t}-${String(e)}`];if("object"==typeof e&&!Array.isArray(e)){const t=[];return Object.entries(e).forEach((([e,r])=>{n(r)&&t.push(`spacing-${e}-${String(r)}`)})),t}return[]},oa=["className","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow"],ia=ai(),aa=ki("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>t.root});function sa(e){return Ri({props:e,name:"MuiGrid",defaultTheme:ia})}!function(t={}){const{createStyledComponent:n=aa,useThemeProps:r=sa,componentName:o="MuiGrid"}=t,i=e.createContext(!1),a=e.createContext(void 0),s=n(Ji,Qi,Yi,Zi,ea,ta,Xi),l=e.forwardRef((function(t,n){var l,c,u,p,d,f,h,m;const g=hi(),y=Yo(r(t)),b=e.useContext(i),v=e.useContext(a),{className:E,columns:x=12,container:C=!1,component:S="div",direction:w="row",wrap:L="wrap",spacing:k=0,rowSpacing:O=k,columnSpacing:R=k,disableEqualOverflow:q}=y,I=Xo(y,oa);let _=q;b&&void 0!==q&&(_=t.disableEqualOverflow);const T={},A={},D={};Object.entries(I).forEach((([e,t])=>{void 0!==g.breakpoints.values[e]?T[e]=t:void 0!==g.breakpoints.values[e.replace("Offset","")]?A[e.replace("Offset","")]=t:D[e]=t}));const N=jr({},y,{nested:b,columns:null!=(l=t.columns)?l:b?void 0:x,container:C,direction:w,wrap:L,spacing:null!=(c=t.spacing)?c:b?void 0:k,rowSpacing:null!=(u=null!=(p=t.rowSpacing)?p:t.spacing)?u:b?void 0:O,columnSpacing:null!=(d=null!=(f=t.columnSpacing)?f:t.spacing)?d:b?void 0:R,gridSize:T,gridOffset:A,disableEqualOverflow:null!=(h=null!=(m=_)?m:v)&&h,parentDisableEqualOverflow:v}),P=((e,t)=>{const{container:n,direction:r,spacing:i,wrap:a,gridSize:s}=e;return Tr({root:["root",n&&"container","row"!==r&&`direction-xs-${String(r)}`,"wrap"!==a&&`wrap-xs-${String(a)}`,...na(s),...n?ra(i,t.breakpoints.keys[0]):[]]},(e=>Pr(o,e)),{})})(N,g);let M=jn.exports.jsx(s,jr({ref:n,as:S,ownerState:N,className:ei(P.root,E)},D));return b||(M=jn.exports.jsx(i.Provider,{value:!0,children:M})),void 0!==_&&_!==(null!=v&&v)&&(M=jn.exports.jsx(a.Provider,{value:_,children:M})),M}))}();const la=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];Mr("MuiGrid",["root","container","item",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>`spacing-xs-${e}`)),...["column-reverse","column","row-reverse","row"].map((e=>`direction-xs-${e}`)),...["nowrap","wrap-reverse","wrap"].map((e=>`wrap-xs-${e}`)),...la.map((e=>`grid-xs-${e}`)),...la.map((e=>`grid-sm-${e}`)),...la.map((e=>`grid-md-${e}`)),...la.map((e=>`grid-lg-${e}`)),...la.map((e=>`grid-xl-${e}`))]);const ca=["component","direction","spacing","divider","children","className"],ua=ai(),pa=ki("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function da(e){return Ri({props:e,name:"MuiStack",defaultTheme:ua})}function fa(t,n){const r=e.Children.toArray(t).filter(Boolean);return r.reduce(((t,o,i)=>(t.push(o),i<r.length-1&&t.push(e.cloneElement(n,{key:`separator-${i}`})),t)),[])}const ha=({ownerState:e,theme:t})=>{let n=jr({display:"flex",flexDirection:"column"},$r({theme:t},Wr({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const r=no(t),o=Object.keys(t.breakpoints.values).reduce(((t,n)=>(("object"==typeof e.spacing&&null!=e.spacing[n]||"object"==typeof e.direction&&null!=e.direction[n])&&(t[n]=!0),t)),{}),i=Wr({values:e.direction,base:o}),a=Wr({values:e.spacing,base:o});"object"==typeof i&&Object.keys(i).forEach(((e,t,n)=>{if(!i[e]){const r=t>0?i[n[t-1]]:"column";i[e]=r}}));n=Yn(n,$r({theme:t},a,((t,n)=>{return{"& > :not(style) + :not(style)":{margin:0,[`margin${o=n?i[n]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:ro(r,t)}};var o})))}return n=function(e,...t){const n=Ur(e),r=[n,...t].reduce(((e,t)=>Yn(e,t)),{});return Hr(Object.keys(n),r)}(t.breakpoints,n),n};!function(t={}){const{createStyledComponent:n=pa,useThemeProps:r=da,componentName:o="MuiStack"}=t,i=n(ha),a=e.forwardRef((function(e,t){const n=Yo(r(e)),{component:a="div",direction:s="column",spacing:l=0,divider:c,children:u,className:p}=n,d=Xo(n,ca),f={direction:s,spacing:l},h=Tr({root:["root"]},(e=>Pr(o,e)),{});return jn.exports.jsx(i,jr({as:a,ownerState:f,ref:t,className:ei(h.root,p)},d,{children:c?fa(u,c):u}))}))}(),Mr("MuiStack",["root"]);const ma=["defaultProps","mixins","overrides","palette","props","styleOverrides"],ga=["type","mode"];var ya;Mr("BaseBadge",["root","badge","invisible"]),Mr("ButtonUnstyled",["root","active","disabled","focusVisible"]),Mr("BaseFormControl",["root","disabled","error","filled","focused","required"]),Mr("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"}(ya||(ya={}));e.createContext(null).displayName="MenuUnstyledContext",Mr("MuiMenuUnstyled",["root","listbox","expanded"]),Mr("MuiPopperUnstyled",["root"]),Mr("MuiMenuItemUnstyled",["root","disabled","focusVisible"]),Mr("MuiModal",["root","hidden"]),Mr("MuiSelectUnstyled",["root","button","listbox","popper","active","expanded","disabled","focusVisible"]),Mr("MuiOptionGroupUnstyled",["root","label","list"]),Mr("MuiOptionUnstyled",["root","disabled","selected","highlighted"]),Mr("MuiSlider",["root","active","focusVisible","disabled","dragging","marked","vertical","trackInverted","trackFalse","rail","track","mark","markActive","markLabel","markLabelActive","thumb","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel"]),Mr("MuiSwitch",["root","input","track","thumb","checked","disabled","focusVisible","readOnly"]),Mr("MuiTablePaginationUnstyled",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),Mr("TabPanelUnstyled",["root","hidden"]),Mr("TabsUnstyled",["root","horizontal","vertical"]),Mr("TabsListUnstyled",["root","horizontal","vertical"]),Mr("TabUnstyled",["root","selected","disabled"]);const ba={black:"#000",white:"#fff"},va={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"},Ea="#f3e5f5",xa="#ce93d8",Ca="#ba68c8",Sa="#ab47bc",wa="#9c27b0",La="#7b1fa2",ka="#e57373",Oa="#ef5350",Ra="#f44336",qa="#d32f2f",Ia="#c62828",_a="#ffb74d",Ta="#ffa726",Aa="#ff9800",Da="#f57c00",Na="#e65100",Pa="#e3f2fd",Ma="#90caf9",ja="#42a5f5",za="#1976d2",Fa="#1565c0",Ba="#4fc3f7",$a="#29b6f6",Ua="#03a9f4",Ha="#0288d1",Wa="#01579b",Va="#81c784",Ga="#66bb6a",Ka="#4caf50",Za="#388e3c",Xa="#2e7d32",Ja="#1b5e20",Ya=["mode","contrastThreshold","tonalOffset"],Qa={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:ba.white,default:ba.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}},es={text:{primary:ba.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:ba.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 ts(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=Pi(e.main,o):"dark"===t&&(e.dark=Ni(e.main,i)))}function ns(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=At(e,Ya),i=e.primary||function(e="light"){return"dark"===e?{main:Ma,light:Pa,dark:ja}:{main:za,light:ja,dark:Fa}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:xa,light:Ea,dark:Sa}:{main:wa,light:Ca,dark:La}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Ra,light:ka,dark:qa}:{main:qa,light:Oa,dark:Ia}}(t),l=e.info||function(e="light"){return"dark"===e?{main:$a,light:Ba,dark:Ha}:{main:Ha,light:Ua,dark:Wa}}(t),c=e.success||function(e="light"){return"dark"===e?{main:Ga,light:Va,dark:Za}:{main:Xa,light:Ka,dark:Ja}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:Ta,light:_a,dark:Da}:{main:"#ed6c02",light:Aa,dark:Na}}(t);function p(e){const t=function(e,t){const n=Ai(e),r=Ai(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,es.text.primary)>=n?es.text.primary:Qa.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(Qn(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Qn(12,t?` (${t})`:"",JSON.stringify(e.main)));return ts(e,"light",o,r),ts(e,"dark",i,r),e.contrastText||(e.contrastText=p(e.main)),e},f={dark:es,light:Qa};return Yn(Tt({common:Tt({},ba),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:va,contrastThreshold:n,getContrastText:p,augmentColor:d,tonalOffset:r},f[t]),o)}const rs=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const os={textTransform:"uppercase"},is='"Roboto", "Helvetica", "Arial", sans-serif';function as(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=is,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:p}=n,d=At(n,rs),f=o/14,h=p||(e=>e/c*f+"rem"),m=(e,t,n,o,i)=>{return Tt({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===is?{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,os),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,os)};return Yn(Tt({htmlFontSize:c,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),d,{clone:!1})}function ss(...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 ls=["none",ss(0,2,1,-1,0,1,1,0,0,1,3,0),ss(0,3,1,-2,0,2,2,0,0,1,5,0),ss(0,3,3,-2,0,3,4,0,0,1,8,0),ss(0,2,4,-1,0,4,5,0,0,1,10,0),ss(0,3,5,-1,0,5,8,0,0,1,14,0),ss(0,3,5,-1,0,6,10,0,0,1,18,0),ss(0,4,5,-2,0,7,10,1,0,2,16,1),ss(0,5,5,-3,0,8,10,1,0,3,14,2),ss(0,5,6,-3,0,9,12,1,0,3,16,2),ss(0,6,6,-3,0,10,14,1,0,4,18,3),ss(0,6,7,-4,0,11,15,1,0,4,20,3),ss(0,7,8,-4,0,12,17,2,0,5,22,4),ss(0,7,8,-4,0,13,19,2,0,5,24,4),ss(0,7,9,-4,0,14,21,2,0,5,26,4),ss(0,8,9,-5,0,15,22,2,0,6,28,5),ss(0,8,10,-5,0,16,24,2,0,6,30,5),ss(0,8,11,-5,0,17,26,2,0,6,32,5),ss(0,9,11,-5,0,18,28,2,0,7,34,6),ss(0,9,12,-6,0,19,29,2,0,7,36,6),ss(0,10,13,-6,0,20,31,3,0,8,38,7),ss(0,10,13,-6,0,21,33,3,0,8,40,7),ss(0,10,14,-6,0,22,35,3,0,8,42,7),ss(0,11,14,-7,0,23,36,3,0,9,44,8),ss(0,11,15,-7,0,24,38,3,0,9,46,8)],cs=["duration","easing","delay"],us={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)"},ps={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ds(e){return`${Math.round(e)}ms`}function fs(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function hs(e){const t=Tt({},us,e.easing),n=Tt({},ps,e.duration);return Tt({getAutoHeightDuration:fs,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return At(r,cs),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:ds(o)} ${i} ${"string"==typeof a?a:ds(a)}`)).join(",")}},e,{easing:t,duration:n})}const ms={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},gs=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function ys(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=At(e,gs);if(e.vars)throw new Error(Qn(18));const s=ns(r),l=ai(e);let c=Yn(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:ls.slice(),typography:as(s,i),transitions:hs(o),zIndex:Tt({},ms)});var u,p;return c=Yn(c,a),c=t.reduce(((e,t)=>Yn(e,t)),c),c}const bs=ys();function vs(){return hi(bs)}function Es({props:e,name:t}){return Ri({props:e,name:t,defaultTheme:bs})}const xs=e=>Si(e)&&"classes"!==e,Cs=Li({defaultTheme:bs,rootShouldForwardProp:xs});function Ss(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=Ss(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function ws(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Ss(e))&&(r&&(r+=" "),r+=t);return r}Mr("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 Ls=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};Cs("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(${Di("#fff",Ls(t.elevation))}, ${Di("#fff",Ls(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));const ks=["colorSchemes","cssVarPrefix"],Os=["palette"],Rs=[...Array(25)].map(((e,t)=>{if(0===t)return;const n=Ls(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`}));function qs(e,t,n){e[t]=e[t]||n}const Is=function(e={},...t){var n,r,o,i,a,s;const{colorSchemes:l={},cssVarPrefix:c="mui"}=e,u=At(e,ks),p=((e="mui")=>Ui(e))(c),d=ys(Tt({},u,l.light&&{palette:null==(n=l.light)?void 0:n.palette})),{palette:f}=d,h=At(d,Os),{palette:m}=ys({palette:Tt({mode:"dark"},null==(r=l.dark)?void 0:r.palette)});let g=Tt({},h,{cssVarPrefix:c,getCssVar:p,colorSchemes:Tt({},l,{light:Tt({},l.light,{palette:f,opacity:Tt({inputPlaceholder:.42,inputUnderline:.42,switchTrackDisabled:.12,switchTrack:.38},null==(o=l.light)?void 0:o.opacity),overlays:(null==(i=l.light)?void 0:i.overlays)||[]}),dark:Tt({},l.dark,{palette:m,opacity:Tt({inputPlaceholder:.5,inputUnderline:.7,switchTrackDisabled:.2,switchTrack:.3},null==(a=l.dark)?void 0:a.opacity),overlays:(null==(s=l.dark)?void 0:s.overlays)||Rs})})});return Object.keys(g.colorSchemes).forEach((e=>{const t=g.colorSchemes[e].palette;var n;if("light"===e?(qs(t.common,"background","#fff"),qs(t.common,"onBackground","#000")):(qs(t.common,"background","#000"),qs(t.common,"onBackground","#fff")),n=t,["Alert","AppBar","Avatar","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach((e=>{n[e]||(n[e]={})})),"light"===e){qs(t.Alert,"errorColor",Ni(t.error.light,.6)),qs(t.Alert,"infoColor",Ni(t.info.light,.6)),qs(t.Alert,"successColor",Ni(t.success.light,.6)),qs(t.Alert,"warningColor",Ni(t.warning.light,.6)),qs(t.Alert,"errorFilledBg",p("palette-error-main")),qs(t.Alert,"infoFilledBg",p("palette-info-main")),qs(t.Alert,"successFilledBg",p("palette-success-main")),qs(t.Alert,"warningFilledBg",p("palette-warning-main")),qs(t.Alert,"errorFilledColor",f.getContrastText(t.error.main)),qs(t.Alert,"infoFilledColor",f.getContrastText(t.info.main)),qs(t.Alert,"successFilledColor",f.getContrastText(t.success.main)),qs(t.Alert,"warningFilledColor",f.getContrastText(t.warning.main)),qs(t.Alert,"errorStandardBg",Pi(t.error.light,.9)),qs(t.Alert,"infoStandardBg",Pi(t.info.light,.9)),qs(t.Alert,"successStandardBg",Pi(t.success.light,.9)),qs(t.Alert,"warningStandardBg",Pi(t.warning.light,.9)),qs(t.Alert,"errorIconColor",p("palette-error-light")),qs(t.Alert,"infoIconColor",p("palette-info-light")),qs(t.Alert,"successIconColor",p("palette-success-light")),qs(t.Alert,"warningIconColor",p("palette-warning-light")),qs(t.AppBar,"defaultBg",p("palette-grey-100")),qs(t.Avatar,"defaultBg",p("palette-grey-400")),qs(t.Chip,"defaultBorder",p("palette-grey-400")),qs(t.Chip,"defaultAvatarColor",p("palette-grey-700")),qs(t.Chip,"defaultIconColor",p("palette-grey-700")),qs(t.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),qs(t.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),qs(t.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),qs(t.LinearProgress,"primaryBg",Pi(t.primary.main,.62)),qs(t.LinearProgress,"secondaryBg",Pi(t.secondary.main,.62)),qs(t.LinearProgress,"errorBg",Pi(t.error.main,.62)),qs(t.LinearProgress,"infoBg",Pi(t.info.main,.62)),qs(t.LinearProgress,"successBg",Pi(t.success.main,.62)),qs(t.LinearProgress,"warningBg",Pi(t.warning.main,.62)),qs(t.Skeleton,"bg",`rgba(${p("palette-text-primaryChannel")} / 0.11)`),qs(t.Slider,"primaryTrack",Pi(t.primary.main,.62)),qs(t.Slider,"secondaryTrack",Pi(t.secondary.main,.62)),qs(t.Slider,"errorTrack",Pi(t.error.main,.62)),qs(t.Slider,"infoTrack",Pi(t.info.main,.62)),qs(t.Slider,"successTrack",Pi(t.success.main,.62)),qs(t.Slider,"warningTrack",Pi(t.warning.main,.62));const e=Mi(t.background.default,.8);qs(t.SnackbarContent,"bg",e),qs(t.SnackbarContent,"color",f.getContrastText(e)),qs(t.SpeedDialAction,"fabHoverBg",Mi(t.background.paper,.15)),qs(t.StepConnector,"border",p("palette-grey-400")),qs(t.StepContent,"border",p("palette-grey-400")),qs(t.Switch,"defaultColor",p("palette-common-white")),qs(t.Switch,"defaultDisabledColor",p("palette-grey-100")),qs(t.Switch,"primaryDisabledColor",Pi(t.primary.main,.62)),qs(t.Switch,"secondaryDisabledColor",Pi(t.secondary.main,.62)),qs(t.Switch,"errorDisabledColor",Pi(t.error.main,.62)),qs(t.Switch,"infoDisabledColor",Pi(t.info.main,.62)),qs(t.Switch,"successDisabledColor",Pi(t.success.main,.62)),qs(t.Switch,"warningDisabledColor",Pi(t.warning.main,.62)),qs(t.TableCell,"border",Pi(Di(t.divider,1),.88)),qs(t.Tooltip,"bg",Di(t.grey[700],.92))}else{qs(t.Alert,"errorColor",Pi(t.error.light,.6)),qs(t.Alert,"infoColor",Pi(t.info.light,.6)),qs(t.Alert,"successColor",Pi(t.success.light,.6)),qs(t.Alert,"warningColor",Pi(t.warning.light,.6)),qs(t.Alert,"errorFilledBg",p("palette-error-dark")),qs(t.Alert,"infoFilledBg",p("palette-info-dark")),qs(t.Alert,"successFilledBg",p("palette-success-dark")),qs(t.Alert,"warningFilledBg",p("palette-warning-dark")),qs(t.Alert,"errorFilledColor",m.getContrastText(t.error.dark)),qs(t.Alert,"infoFilledColor",m.getContrastText(t.info.dark)),qs(t.Alert,"successFilledColor",m.getContrastText(t.success.dark)),qs(t.Alert,"warningFilledColor",m.getContrastText(t.warning.dark)),qs(t.Alert,"errorStandardBg",Ni(t.error.light,.9)),qs(t.Alert,"infoStandardBg",Ni(t.info.light,.9)),qs(t.Alert,"successStandardBg",Ni(t.success.light,.9)),qs(t.Alert,"warningStandardBg",Ni(t.warning.light,.9)),qs(t.Alert,"errorIconColor",p("palette-error-main")),qs(t.Alert,"infoIconColor",p("palette-info-main")),qs(t.Alert,"successIconColor",p("palette-success-main")),qs(t.Alert,"warningIconColor",p("palette-warning-main")),qs(t.AppBar,"defaultBg",p("palette-grey-900")),qs(t.AppBar,"darkBg",p("palette-background-paper")),qs(t.AppBar,"darkColor",p("palette-text-primary")),qs(t.Avatar,"defaultBg",p("palette-grey-600")),qs(t.Chip,"defaultBorder",p("palette-grey-700")),qs(t.Chip,"defaultAvatarColor",p("palette-grey-300")),qs(t.Chip,"defaultIconColor",p("palette-grey-300")),qs(t.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),qs(t.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),qs(t.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),qs(t.LinearProgress,"primaryBg",Ni(t.primary.main,.5)),qs(t.LinearProgress,"secondaryBg",Ni(t.secondary.main,.5)),qs(t.LinearProgress,"errorBg",Ni(t.error.main,.5)),qs(t.LinearProgress,"infoBg",Ni(t.info.main,.5)),qs(t.LinearProgress,"successBg",Ni(t.success.main,.5)),qs(t.LinearProgress,"warningBg",Ni(t.warning.main,.5)),qs(t.Skeleton,"bg",`rgba(${p("palette-text-primaryChannel")} / 0.13)`),qs(t.Slider,"primaryTrack",Ni(t.primary.main,.5)),qs(t.Slider,"secondaryTrack",Ni(t.secondary.main,.5)),qs(t.Slider,"errorTrack",Ni(t.error.main,.5)),qs(t.Slider,"infoTrack",Ni(t.info.main,.5)),qs(t.Slider,"successTrack",Ni(t.success.main,.5)),qs(t.Slider,"warningTrack",Ni(t.warning.main,.5));const e=Mi(t.background.default,.98);qs(t.SnackbarContent,"bg",e),qs(t.SnackbarContent,"color",m.getContrastText(e)),qs(t.SpeedDialAction,"fabHoverBg",Mi(t.background.paper,.15)),qs(t.StepConnector,"border",p("palette-grey-600")),qs(t.StepContent,"border",p("palette-grey-600")),qs(t.Switch,"defaultColor",p("palette-grey-300")),qs(t.Switch,"defaultDisabledColor",p("palette-grey-600")),qs(t.Switch,"primaryDisabledColor",Ni(t.primary.main,.55)),qs(t.Switch,"secondaryDisabledColor",Ni(t.secondary.main,.55)),qs(t.Switch,"errorDisabledColor",Ni(t.error.main,.55)),qs(t.Switch,"infoDisabledColor",Ni(t.info.main,.55)),qs(t.Switch,"successDisabledColor",Ni(t.success.main,.55)),qs(t.Switch,"warningDisabledColor",Ni(t.warning.main,.55)),qs(t.TableCell,"border",Ni(Di(t.divider,1),.68)),qs(t.Tooltip,"bg",Di(t.grey[700],.92))}t.common.backgroundChannel=_i(t.common.background),t.common.onBackgroundChannel=_i(t.common.onBackground),t.dividerChannel=_i(t.divider),Object.keys(t).forEach((e=>{const n=t[e];n.main&&(t[e].mainChannel=_i(n.main)),n.light&&(t[e].lightChannel=_i(n.light)),n.dark&&(t[e].darkChannel=_i(n.dark)),n.contrastText&&(t[e].contrastTextChannel=_i(n.contrastText)),n.primary&&(t[e].primaryChannel=_i(n.primary)),n.secondary&&(t[e].secondaryChannel=_i(n.secondary)),n.active&&(t[e].activeChannel=_i(n.active)),n.selected&&(t[e].selectedChannel=_i(n.selected))}))})),g=t.reduce(((e,t)=>Yn(e,t)),g),g}();function _s(){return _s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_s.apply(this,arguments)}function Ts(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}function As(e,t){return As=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},As(e,t)}function Ds(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,As(e,t)}function Ns(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=$i,modeStorageKey:o=Fi,colorSchemeStorageKey:i=Bi,defaultMode:a="light",defaultColorScheme:s,disableTransitionOnChange:l=!1,enableColorScheme:c=!0,shouldSkipGeneratingVar:u,resolveTheme:p}=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 d=e.createContext(void 0)}({theme:Is,attribute:"data-mui-color-scheme",modeStorageKey:"mui-mode",colorSchemeStorageKey:"mui-color-scheme",defaultColorScheme:{light:"light",dark:"dark"},resolveTheme:e=>Tt({},e,{typography:as(e.palette,e.typography)}),shouldSkipGeneratingVar:e=>{var t;return!!e[0].match(/(typography|mixins|breakpoints|direction|transitions)/)||"palette"===e[0]&&!(null==(t=e[1])||!t.match(/(mode|contrastThreshold|tonalOffset)/))}});var Ps=!1,Ms=t.createContext(null),js=function(e){return e.scrollTop},zs="entering",Fs="entered",Bs=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=zs):o=Fs:o=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",r.state={status:o},r.nextCallback=null,r}Ds(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!==zs&&n!==Fs&&(t=zs):n!==zs&&n!==Fs||(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){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===zs){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:y.findDOMNode(this);n&&js(n)}this.performEnter(e)}else this.performExit();else 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||Ps?this.safeSetState({status:Fs},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:zs},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:Fs},(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&&!Ps?(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=Ts(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return t.createElement(Ms.Provider,{value:null},"function"==typeof r?r(e,o):t.cloneElement(t.Children.only(r),o))},n}(t.Component);function $s(){}Bs.contextType=Ms,Bs.propTypes={},Bs.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:$s,onEntering:$s,onEntered:$s,onExit:$s,onExiting:$s,onExited:$s},Bs.UNMOUNTED="unmounted",Bs.EXITED="exited",Bs.ENTERING=zs,Bs.ENTERED=Fs,Bs.EXITING="exiting";var Us=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}))},Hs=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=Ns(n.className,r):n.setAttribute("class",Ns(n.className&&n.className.baseVal||"",r)));var n,r}))},Ws=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}Ds(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&&js(e),r&&(this.appliedClasses[t][n]=r,Us(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&&Hs(e,r),o&&Hs(e,o),i&&Hs(e,i)},r.render=function(){var e=this.props;e.classNames;var n=Ts(e,["classNames"]);return t.createElement(Bs,_s({},n,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},n}(t.Component);function Vs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gs(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 Ks(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Zs(e,t,n){var i=Gs(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:Ks(l,"exit",e),enter:Ks(l,"enter",e)})):a[s]=o(l,{in:!1}):a[s]=o(l,{onExited:n.bind(null,l),in:!0,exit:Ks(l,"exit",e),enter:Ks(l,"enter",e)})}})),a}Ws.defaultProps={classNames:""},Ws.propTypes={};var Xs,Js,Ys=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Qs=function(e){function n(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Vs(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Ds(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,Gs(n.children,(function(e){return o(e,{onExited:r.bind(null,e),in:!0,appear:Ks(e,"appear",n),enter:Ks(e,"enter",n),exit:Ks(e,"exit",n)})}))):Zs(e,i,a),firstRender:!1}},r.handleExited=function(e,t){var n=Gs(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=_s({},t.children);return delete n[e.key],{children:n}})))},r.render=function(){var e=this.props,n=e.component,r=e.childFactory,o=Ts(e,["component","childFactory"]),i=this.state.contextValue,a=Ys(this.state.children).map(r);return delete o.appear,delete o.enter,delete o.exit,null===n?t.createElement(Ms.Provider,{value:i},a):t.createElement(Ms.Provider,{value:i},t.createElement(n,o,a))},n}(t.Component);Qs.propTypes={},Qs.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}Ds(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=Ts(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(Qs,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 el="out-in",tl="in-out",nl=function(e,t,n){return function(){var r;e.props[t]&&(r=e.props)[t].apply(r,arguments),n()}},rl=((Xs={})[el]=function(e){var n=e.current,r=e.changeState;return t.cloneElement(n,{in:!1,onExited:nl(n,"onExited",(function(){r(zs,null)}))})},Xs[tl]=function(e){var n=e.current,r=e.changeState,o=e.children;return[n,t.cloneElement(o,{in:!0,onEntered:nl(o,"onEntered",(function(){r(zs)}))})]},Xs),ol=((Js={})[el]=function(e){var n=e.children,r=e.changeState;return t.cloneElement(n,{in:!0,onEntered:nl(n,"onEntered",(function(){r(Fs,t.cloneElement(n,{in:!0}))}))})},Js[tl]=function(e){var n=e.current,r=e.children,o=e.changeState;return[t.cloneElement(n,{in:!1,onExited:nl(n,"onExited",(function(){o(Fs,t.cloneElement(r,{in:!0}))}))}),t.cloneElement(r,{in:!0})]},Js),il=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:Fs,current:null},t.appeared=!1,t.changeState=function(e,n){void 0===n&&(n=t.state.current),t.setState({status:e,current:n})},t}Ds(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===zs&&e.mode===tl?{status:zs}:!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 zs:e=ol[o](l);break;case"exiting":e=rl[o](l);break;case Fs:e=s}return t.createElement(Ms.Provider,{value:{isMounting:!this.appeared}},e)},n}(t.Component);il.propTypes={},il.defaultProps={mode:el};const al=Mr("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),sl=["center","classes","className"];let ll,cl,ul,pl,dl=e=>e;const fl=C(ll||(ll=dl`
|
|
14
|
-
0% {
|
|
15
|
-
transform: scale(0);
|
|
16
|
-
opacity: 0.1;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
100% {
|
|
20
|
-
transform: scale(1);
|
|
21
|
-
opacity: 0.3;
|
|
22
|
-
}
|
|
23
|
-
`)),hl=C(cl||(cl=dl`
|
|
24
|
-
0% {
|
|
25
|
-
opacity: 1;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
100% {
|
|
29
|
-
opacity: 0;
|
|
30
|
-
}
|
|
31
|
-
`)),ml=C(ul||(ul=dl`
|
|
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
|
-
`)),gl=Cs("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),yl=Cs((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),f=ws(n,r.ripple,r.rippleVisible,o&&r.ripplePulsate),h={width:s,height:s,top:-s/2+a,left:-s/2+i},m=ws(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:f,style:h,children:jn.exports.jsx("span",{className:m})})}),{name:"MuiTouchRipple",slot:"Ripple"})(pl||(pl=dl`
|
|
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
|
-
`),al.rippleVisible,fl,550,(({theme:e})=>e.transitions.easing.easeInOut),al.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),al.child,al.childLeaving,hl,550,(({theme:e})=>e.transitions.easing.easeInOut),al.childPulsate,ml,(({theme:e})=>e.transitions.easing.easeInOut)),bl=e.forwardRef((function(t,n){const r=Es({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,s=At(r,sl),[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),f=e.useRef(null),h=e.useRef(null),m=e.useRef(null);e.useEffect((()=>()=>{clearTimeout(f.current)}),[]);const g=e.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:o,cb:a}=e;c((e=>[...e,jn.exports.jsx(yl,{classes:{ripple:ws(i.ripple,al.ripple),rippleVisible:ws(i.rippleVisible,al.rippleVisible),ripplePulsate:ws(i.ripplePulsate,al.ripplePulsate),child:ws(i.child,al.child),childLeaving:ws(i.childLeaving,al.childLeaving),childPulsate:ws(i.childPulsate,al.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.length>0?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===h.current&&(h.current=()=>{g({pulsate:r,rippleX:c,rippleY:u,rippleSize:p,cb:n})},f.current=setTimeout((()=>{h.current&&(h.current(),h.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(f.current),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void(f.current=setTimeout((()=>{v(e,t)})));h.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(gl,Tt({className:ws(al.root,i.root,a),ref:m},s,{children:jn.exports.jsx(Qs,{component:null,exit:!0,children:l})}))}));function vl(e){return Pr("MuiButtonBase",e)}const El=Mr("MuiButtonBase",["root","disabled","focusVisible"]),xl=["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"],Cl=Cs("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"},[`&.${El.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Sl=e.forwardRef((function(t,n){const r=Es({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:f="a",onBlur:h,onClick:m,onContextMenu:g,onDragLeave:y,onFocus:b,onFocusVisible:v,onKeyDown:E,onKeyUp:x,onMouseDown:C,onMouseLeave:S,onMouseUp:w,onTouchEnd:L,onTouchMove:k,onTouchStart:O,tabIndex:R=0,TouchRippleProps:q,touchRippleRef:I,type:_}=r,T=At(r,xl),A=e.useRef(null),D=e.useRef(null),N=xr(D,I),{isFocusVisibleRef:P,onFocus:M,onBlur:j,ref:z}=Ir(),[F,B]=e.useState(!1);c&&F&&B(!1),e.useImperativeHandle(o,(()=>({focusVisible:()=>{B(!0),A.current.focus()}})),[]);const[$,U]=e.useState(!1);e.useEffect((()=>{U(!0)}),[]);const H=$&&!u&&!c;function W(e,t,n=p){return Er((r=>{t&&t(r);return!n&&D.current&&D.current[e](r),!0}))}e.useEffect((()=>{F&&d&&!u&&$&&D.current.pulsate()}),[u,d,F,$]);const V=W("start",C),G=W("stop",g),K=W("stop",y),Z=W("stop",w),X=W("stop",(e=>{F&&e.preventDefault(),S&&S(e)})),J=W("start",O),Y=W("stop",L),Q=W("stop",k),ee=W("stop",(e=>{j(e),!1===P.current&&B(!1),h&&h(e)}),!1),te=Er((e=>{A.current||(A.current=e.currentTarget),M(e),!0===P.current&&(B(!0),v&&v(e)),b&&b(e)})),ne=()=>{const e=A.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=e.useRef(!1),oe=Er((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=Er((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=f);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=xr(z,A),ce=xr(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=Tr({root:["root",t&&"disabled",n&&"focusVisible"]},vl,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return jn.exports.jsxs(Cl,Tt({as:ae,className:ws(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,H?jn.exports.jsx(bl,Tt({ref:N,center:i},q)):null]}))})),wl=Mr("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Ll=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}});Cs(Sl,{shouldForwardProp:e=>xs(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${yr(n.color)}`],t[`size${yr(n.size)}`],t[`${n.variant}Size${yr(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;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})`:Di(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})`:Di(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})`:Di(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]}),[`&.${wl.focusVisible}`]:Tt({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${wl.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 ${Di(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"},[`&.${wl.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${wl.disabled}`]:{boxShadow:"none"}})),Cs("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${yr(n.size)}`]]}})((({ownerState:e})=>Tt({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Ll(e)))),Cs("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${yr(n.size)}`]]}})((({ownerState:e})=>Tt({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Ll(e))));var kl={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 Ol="#009845",Rl="#3F8AB3",ql="#ffffff",Il="#404040",_l="#333333",Tl="#1A1A1A",Al={mode:"light",palette:{primary:{main:Il,contrastText:ql},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:Il,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)"},action:{active:Il,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:ql,default:ql,lightest:ql,lighter:"#FBFBFB",darker:"#F2F2F2",darkest:"#E6E6E6"},custom:{focusBorder:Rl,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)"},selected:{main:Ol,alternative:"#E4E4E4",excluded:"#BEBEBE",mainContrastText:ql,alternativeContrastText:Il,excludedContrastText:Il},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)"}}},Dl={mode:"dark",palette:{primary:{main:_l,contrastText:ql},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:ql,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)"},action:{active:ql,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:Il,lighter:_l,darker:"#262626",darkest:Tl},custom:{focusBorder:Rl,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)"},selected:{main:Ol,alternative:_l,excluded:Tl,mainContrastText:ql,alternativeContrastText:ql,excludedContrastText:ql},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)"}}},Nl={},Pl=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(wl.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(wl.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(wl.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(wl.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function Ml(e){let t=Al,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=Dl));const r=JSON.stringify(t);if(Nl[r])return Nl[r];const o={palette:V(V({type:t.mode},kl.palette),t.palette),typography:V({},kl.typography),shadows:kl.shadows,props:V({},kl.props),shape:V({},kl.shape)};return Nl[r]=ys(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:i={},styleOverrides:a={}}=e,s=Tt({},At(e,ma),{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=oi(e.spacing);const l=ni(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=At(o,ga),f=p||u||"light";return s.palette=Tt({text:{hint:"dark"===f?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:f,type:f},d),s}(V(V({},o),{},{overrides:Pl(o)}))),Nl[r].name=n,Nl[r]}Dr.configure((e=>"njs-".concat("8956","-").concat(e.replace("Mui",""))));var jl=t.createContext({language:null,theme:null,translator:null,constraints:{}}),zl=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[Fl,Bl]=zl({}),[$l,Ul]=zl({}),[Hl,Wl]=zl({}),[Vl,Gl]=zl({}),[Kl,Zl]=zl({}),[,Xl]=zl({}),Jl=e=>{let{type:t,value:n}=e;const r=Xl.get(n.id);Xl.set(n.id,{});const o=()=>{Ul.clear(n.id),Zl.set(n.id,{}),Zl.dispatch(!0)},i=()=>{n.removeListener("changed",o),Bl.clear(n.id),Ul.clear(n.id),Wl.clear(n.id),Gl.clear(n.id),Zl.clear(n.id),Xl.clear(n.id)};if("SET"===t)r||(n.on("changed",o),n.once("closed",(()=>{i()})));return i},[Yl,Ql]=zl({},Jl),ec=(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 tc(e,t){const n=e?"".concat(e.id):null,[r]=Fl(),[o,i]=s(ec,n?r.get(n):null),[l]=Kl(),[c]=$l();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 nc(e){return tc(e,"getLayout")}function rc(e){return tc(e,"getAppLayout")}function oc(e,t){const n=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[r]=Yl(),[o]=Hl(),[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 ic={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function ac(e){return oc(ic,e)}function sc(e){const[t]=ac(e),[n]=nc(t),[r]=rc(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[lc,cc]=zl({}),[uc,pc]=zl({}),[dc,fc]=zl({}),[hc,mc]=zl({});function gc(e){if(!e.session)return[];const[t,n,r]=sc(e),[o]=lc(),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=mc.get(o);t&&(await t.endSelections(e),mc.clear(o),fc.get(t.id).emit("deactivated"))},a={begin:async function(e,n){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e===mc.get(o))return;i(r),mc.set(o,e);const a=Array.isArray(n)?n:[n],s=async n=>{try{await e.beginSelections(a),mc.set(o,e)}catch(e){6003!==e.code||n?mc.clear(o):(await t.abortModal(r),s(!0))}};await s()},end:i};pc.set(o,a);const s={model:t,isInModal:()=>!!mc.get(o),isModal:e=>e?mc.get(o)===e:!!mc.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 yc=l(((e,n)=>{let{initialContext:r,app:o}=e;const[a]=gc(o),[s,l]=i(r),[p,d]=i(),{theme:f}=c((()=>({theme:Ml(p)})),[p]),[h,m]=i([]);return u(n,(()=>({addComponent(e){m([...h,e])},removeComponent(e){const t=h.indexOf(e);-1!==t&&(h.splice(t,1),m([...h]))},setMuiThemeName:d,setContext:l,getAppSelections:()=>a}))),t.createElement(Kn,{injectFirst:!0},t.createElement(zi,{theme:f},t.createElement(jl.Provider,{value:s},h)))}));function bc(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.3"),s.setAttribute("data-app-id",r.id),document.body.appendChild(s),y.render(t.createElement(yc,{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 vc(){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 Ec(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function xc(e){let{size:n,style:r={},viewBox:o="0 0 16 16",shapes:i=[]}=e;const a=V({fontSize:Ec(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 Cc=e=>xc((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 Sc=e=>xc((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 wc=e=>xc((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)),Lc=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function kc(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||Lc(r)&&Lc(o)))return!1;var r,o;return!0}function Oc(e,t){var n;void 0===t&&(t=kc);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 Rc="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function qc(e){cancelAnimationFrame(e.id)}var Ic=null;function _c(e){if(void 0===e&&(e=!1),null===Ic||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?Ic="positive-descending":(t.scrollLeft=1,Ic=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),Ic}return Ic}var Tc=function(e,t){return e};function Ac(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,Vs(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Vs(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=Oc((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=Oc((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),f="horizontal"===a||"horizontal"===l,h="rtl"===a,m=f?p:0;u[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:p,height:f?"100%":d,width:f?d:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=Oc((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(_c()){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&&qc(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=(e=r._resetIsScrolling,t=150,n=Rc(),o={id:requestAnimationFrame((function r(){Rc()-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}Ds(t,e),t.getDerivedStateFromProps=function(e,t){return Dc(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(_c()){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&&qc(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?Tc:p,h=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"===h,C=x?this._onScrollHorizontal:this._onScrollVertical,S=this._getRangeToRender(),w=S[0],L=S[1],k=[];if(c>0)for(var O=w;O<=L;O++)k.push(f(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 f(m||g||"div",{className:n,onScroll:C,ref:this._outerRefSetter,style:_s({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},y)},f(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}(h),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var Dc=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},Nc=Ac({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),f=Math.max(0,t*s-u+s);switch("smart"===n&&(n=r>=f-u&&r<=d+u?"auto":"center"),n){case"start":return d;case"end":return f;case"center":var h=Math.round(f+(d-f)/2);return h<Math.ceil(u/2)?0:h>p+Math.floor(u/2)?p:h;default:return r>=f&&r<=d?r:r<f?f: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 Pc=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Mc=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}}(),jc=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},zc=function(e){function t(){var e,n,r;Pc(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=jc(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},jc(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,h),Mc(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 Fc=["S","XS"],Bc=e=>e.reduce(((e,t)=>e.concat(t)));function $c(e){return Fc.includes(e)}function Uc(e){return Array.isArray(e)?Array.from(new Set(e)):void 0}async function Hc(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 Wc(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 Vc(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),[f,h]=i(!1),[m,g]=i(!1),[y,b]=i(c),[v,E]=i([]),[x,C]=i(!1),[S,w]=i([]),L=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 Bc(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 Hc({selections:n,elemNumbers:r,isSingleSelect:y}),g(!1),w([])},O=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];s()||w((n=>{const r=Uc([...n,...e]),o=t?r.filter((e=>!v.includes(e))):r;return t?Wc(r,L):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");w([t]),R(e)}),[m,s]),I=p((e=>{if(m||s())return;C(!1),h(!0);const t=+e.currentTarget.getAttribute("data-n");w([t]),R(e)}),[m,s]),_=p((e=>{const t=+e.currentTarget.getAttribute("data-n");y||!f||m||1===S.length&&S[0]===t||O([t])}),[f,m,S,v,x,s]),T=p((()=>{h(!1),g(!1),C(!1),b(c)}),[c]),A=p((e=>{if(y||!f||m||s())return;C(!0);const t=+e.currentTarget.getAttribute("data-n");O([t],!0)}),[f,m,x,S,v,s,t&&t.qListObject.qDimensionInfo.qIsOneAndOnlyOne]);a((()=>{const e=!f;S&&S.length&&!m&&e&&t&&k(S,x)}),[S,f,s()]),a((()=>(l.addEventListener("mouseup",T),()=>{l.removeEventListener("mouseup",T)})),[T]),a((()=>{if(m||f)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!!$c(t.qState)&&t.qElemNumber}));return t.filter((e=>!1!==e))}));return Bc(t)}(r);E(e)}),[r]),a((()=>{if(m||!r||!o&&!f)return;const e=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=e=>t.length<=1&&$c(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:A}),{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),h(!0),O(e,t||x);const n=k(e,t||x);return h(!1),n}}}const Gc=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 Kc=e=>xc(Gc(e));const Zc="ListBoxCheckbox",Xc={cbIcon:"".concat(Zc,"-cbIcon"),cbIconChecked:"".concat(Zc,"-cbIconChecked"),cbIconExcluded:"".concat(Zc,"-cbIconExcluded"),cbIconAlternative:"".concat(Zc,"-cbIconAlternative"),checkbox:"".concat(Zc,"-checkbox"),dense:"".concat(Zc,"-dense")},Jc=Cs(S)((e=>{let{theme:t}=e;return{["& .".concat(Xc.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(Xc.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(Xc.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:t.palette.selected.excluded},["& .".concat(Xc.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:t.palette.selected.alternative},["&.".concat(Xc.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(Xc.dense)]:{padding:"4px 8px"}}})),Yc=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 Qc(e){let{checked:n,label:r,dense:o,excluded:i,showGray:a=!0}=e;return t.createElement(Jc,{edge:"start",checked:n,disableRipple:!0,className:[Xc.checkbox,o&&Xc.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":r},name:r,icon:Yc(Xc,a,i),checkedIcon:t.createElement("span",{className:Xc.cbIconChecked})})}const eu={denseRadioButton:"".concat("ListBoxRadioButton","-denseRadioButton"),radioButton:"".concat("ListBoxRadioButton","-radioButton")},tu=Cs(w)((()=>({["&.".concat(eu.radioButton)]:{right:"5px"}})));function nu(e){let{checked:n,label:r,dense:o}=e;return t.createElement(tu,{checked:n,value:r,name:r,className:eu.radioButton,style:{backgroundColor:"transparent"},disableRipple:!0,size:o?"small":"medium",sx:o&&{padding:"0px 0px 0px 12px"}})}const ru=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===ru.ARROW_UP||e===ru.ARROW_DOWN||e===ru.ARROW_LEFT||e===ru.ARROW_RIGHT});function ou(e){let{setKeyboardActive:t}=e;return e=>{const{keyCode:n}=e.nativeEvent;switch(n){case ru.ENTER:case ru.SPACE:(e=>{const n=e.querySelector(".search input, .value.selector, .value");t(!0),n&&n.focus()})(e.currentTarget);break;case ru.ESCAPE:r=e.currentTarget,t(!1),r.focus();break;default:return}var r;e.preventDefault()}}const iu="RowColumn",au={row:"".concat(iu,"-row"),rowBorderBottom:"".concat(iu,"-rowBorderBottom"),column:"".concat(iu,"-column"),fieldRoot:"".concat(iu,"-fieldRoot"),cell:"".concat(iu,"-cell"),labelText:"".concat(iu,"-labelText"),labelDense:"".concat(iu,"-labelDense"),highlighted:"".concat(iu,"-highlighted"),checkboxLabel:"".concat(iu,"-checkboxLabel"),icon:"".concat(iu,"-icon"),S:"".concat(iu,"-S"),XS:"".concat(iu,"-XS"),A:"".concat(iu,"-A"),X:"".concat(iu,"-X"),frequencyCount:"".concat(iu,"-frequencyCount"),barContainer:"".concat(iu,"-barContainer"),bar:"".concat(iu,"-bar"),barSelected:"".concat(iu,"-barSelected"),barWithCheckbox:"".concat(iu,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(iu,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(iu,"-excludedTextWithCheckbox")},su={width:"100%",overflow:"hidden",textOverflow:"ellipsis"},lu=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}}},cu=Cs("div")((e=>{let{theme:t}=e;return{["& .".concat(au.row)]:{flexWrap:"nowrap",color:t.palette.text.primary},["& .".concat(au.rowBorderBottom)]:{borderBottom:"1px solid ".concat(t.palette.divider)},["& .".concat(au.column)]:{flexWrap:"nowrap",borderRight:"1px solid ".concat(t.palette.divider),color:t.palette.text.primary},["& .".concat(au.fieldRoot)]:{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"}},["& .".concat(au.cell)]:{display:"flex",alignItems:"center",minWidth:0,flexGrow:1,paddingLeft:"9px",paddingRight:"9px"},["& .".concat(au.labelText)]:V({flexBasis:"max-content",lineHeight:"16px",userSelect:"none",whiteSpace:"pre"},su),["& .".concat(au.labelDense)]:{fontSize:12},["& .".concat(au.highlighted)]:{overflow:"visible",width:"100%","& > span":{width:"100%",backgroundColor:"#FFC72A"}},["& .".concat(au.checkboxLabel)]:{margin:0,width:"100%",height:"100%","& > span:nth-child(1)":{paddingRight:"8px"},"& > span:nth-child(2)":V(V({},su),{},{display:"flex",alignItems:"center",paddingLeft:0})},["& .".concat(au.icon)]:{display:"flex",padding:t.spacing(1,1,1,0)},["& .".concat(au.S)]:V({},lu({theme:t})),["& .".concat(au.XS)]:V(V({},lu({theme:t})),{},{background:t.palette.selected.excluded,color:t.palette.selected.mainContrastText}),["& .".concat(au.A)]:{background:t.palette.selected.alternative,color:t.palette.selected.alternativeContrastText},["& .".concat(au.X)]:{background:t.palette.selected.excluded,color:t.palette.selected.excludedContrastText},["& .".concat(au.frequencyCount)]:{paddingLeft:"8px",paddingRight:"8px"},["&.".concat(au.barContainer)]:{height:"100%",display:"inline-block"},["& .".concat(au.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(au.barSelected)]:{opacity:"30%",zIndex:"0",background:t.palette.background.lighter},["& .".concat(au.barWithCheckbox)]:{left:"".concat(29,"px")},["& .".concat(au.barSelectedWithCheckbox)]:{background:"#BFE5D0",borderColor:"#BFE5D0"},["& .".concat(au.excludedTextWithCheckbox)]:{color:"#828282",fontStyle:"italic"}}}));function uu(e){let{index:n,style:r,data:o}=e;const{onClick:s,onMouseDown:l,onMouseUp:c,onMouseEnter:u,pages:d,isLocked:f,column:h=!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,w=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 ru.SHIFT:a(!0);break;case ru.SPACE:t([+e.currentTarget.getAttribute("data-n")]);break;case ru.ARROW_DOWN:case ru.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 ru.ARROW_UP:case ru.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 ru.ENTER:n();break;case ru.ESCAPE:return void r();default:return}s&&s.focus(),e.preventDefault(),e.stopPropagation()}}(v),[v]),[R,q]=i(!1),[I,_]=i(),[T,A]=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,N=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=[h?au.column:au.row];x&&g||t.push(au.rowBorderBottom),m||("XS"===I.qState?t.push(S?au.XS:au.S):"S"===I.qState||"L"===I.qState?t.push(au.S):S&&N(I)?t.push(au.A):S&&D(I)&&t.push(au.X)),A(t)}),[I&&I.qState]);const P=e=>e.filter((e=>!!e)).join(" ").trim(),M=()=>(N(I)||D(I))&&m,j=e=>{let{lbl:n,ix:r,color:o,highlighted:i=!1}=e;return t.createElement(k,{component:"span",variant:"body2",key:r,className:P([au.labelText,i&&au.highlighted,g&&au.labelDense,S&&M()&&au.excludedTextWithCheckbox]),color:o},t.createElement("span",{style:{whiteSpace:"pre"}},n))},z=e=>{let{lbl:n,color:r,qElemNumber:o}=e;const i=t.createElement(Qc,{label:n,checked:R,dense:g,excluded:D(I),showGray:S}),a=t.createElement(nu,{label:n,checked:R,dense:g}),s="string"==typeof n?j({lbl:n,color:r,highlighted:!1}):n;return t.createElement(O,{color:r,control:b?a:i,className:au.checkboxLabel,label:s,key:o})},F=I?I.qText:"",B=()=>I?I.qFrequency?I.qFrequency:"0":"",$=I&&I.qHighlightRanges&&I.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[],U=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,$),H=m?z:j,W={alignItems:"center",display:"flex"},V=R&&f,G=!m&&R&&!f,K={display:"flex",alignItems:"center",minWidth:0,flexGrow:1,padding:m?0:void 0},Z=0===n;return t.createElement(cu,{className:au.barContainer},t.createElement(L,{container:!0,gap:0,className:P(["value",...T]),classes:{root:au.fieldRoot},style:r,onClick:s,onMouseDown:l,onMouseUp:c,onMouseEnter:u,onKeyDown:w,onContextMenu:e=>{m&&s(e),e.preventDefault()},role:h?"column":"row",tabIndex:!Z||C.enabled&&!C.active?-1:0,"data-n":I&&I.qElemNumber},I&&x&&"0"!==B()&&t.createElement("div",{className:P([au.bar,m&&au.barWithCheckbox,R&&(m?au.barSelectedWithCheckbox:au.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(L,{item:!0,style:K,className:P([au.cell,au.selectedCell]),title:"".concat(F)},0===$.length?H({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:U})),"N"!==y&&t.createElement(L,{item:!0,style:{display:"flex",alignItems:"center"},className:au.frequencyCount},t.createElement(k,{noWrap:!0,color:"inherit",variant:"body2",className:P([g&&au.labelDense,au.labelText,S&&M()&&au.excludedTextWithCheckbox])},B())),(V||G)&&t.createElement(L,{item:!0,className:au.icon},V&&t.createElement(Sc,{style:W,size:"small"}),G&&t.createElement(Kc,{style:W,size:"small"}))))}const pu={styledScrollbars:"".concat("ListBox","-styledScrollbars")},du=Cs(Nc)((()=>({["&.".concat(pu.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 fu(e){let{model:n,selections:r,direction:o,height:s,width:l,listLayout:c="vertical",frequencyMode:u="N",histogram:d=!1,checkboxes:f=!1,update:h,fetchStart:g,postProcessPages:y,calculatePagesHeight:b=!1,dense:v=!1,keyboard:E={},showGray:x=!0,scrollState:C,sortByState:S,selectDisabled:w=(()=>!1),setCount:L}=e;const[k]=nc(n),O=!(!k||!k.qListObject.qDimensionInfo.qIsOneAndOnlyOne),[R,q]=i(null),[I,_]=i(!1),{instantPages:T=[],interactionEvents:A,select:D}=Vc({layout:k,selections:r,pages:R,checkboxes:f,selectDisabled:w,doc:document,isSingleSelect:O}),N=m(null),P=m({queue:[],validPages:!1}),M=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});!!N.current&&N.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(-1)[0],r=n.getListObjectData("/qListObjectDef",[{qTop:t.start>100?t.start-100:0,qHeight:100,qLeft:0,qWidth:1},{qTop:t.start,qHeight:100,qLeft:0,qWidth:1}]).then((t=>{const n=y?y(t):t;P.current.validPages=!0,M.current.pages=n,q(n),_(!1),e()}));g&&g(r)}),0)}))}),[k]),F=()=>{if(P.current.queue=[],P.current.validPages=!1,N.current){if(N.current.resetloadMoreItemsCache(!0),k&&k.qSelectionInfo.qInSelections||0===S)return;N.current._listRef.scrollToItem(0)}};h&&h.call(null,F),a((()=>{F(),"function"==typeof L&&k&&L(k.qListObject.qSize.qcy)}),[k,k&&k.qListObject.qSize.qcy]),a((()=>{T&&!I&&q(T)}),[T]);const[B,$]=i(!1);if(a((()=>{C&&!B&&N.current&&(N.current._listRef.scrollToItem(C.initScrollPos),$(!0))}),[N.current]),!k)return null;const U="horizontal"!==c,H=k.qListObject.qSize.qcy,W=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:H})(R):H,{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:U,checkboxes:f,dense:v,height:s}),Z=k&&k.qListObject.qDimensionInfo.qLocked,{frequencyMax:X}=k;return t.createElement(zc,{isItemLoaded:j,itemCount:W||1,loadMoreItems:z,threshold:0,minimumBatchSize:100,ref:N},(e=>{let{onItemsRendered:n,ref:i}=e;return P.current.listRef=i,t.createElement(du,{direction:"rtl"===o?"rtl":"ltr","data-testid":"fixed-size-list",useIsScrolling:!0,height:K,width:l,itemCount:W,layout:c,className:pu.styledScrollbars,itemData:V(V({isLocked:Z,column:!U,pages:R},Z||w()?{}:A),{},{checkboxes:f,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},uu)}))}const hu=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"}}]}),mu=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"}}]}),gu=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"}}]}),yu=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 bu=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:hu,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:gu,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:mu,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:yu,enabled:()=>["qAlternative","qExcluded"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{n.selectListObjectExcluded("/qListObjectDef")}}]};const vu=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 Eu(e){const t=vs(),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 xu="njs-cell-action",Cu=t.forwardRef(((e,n)=>{let{item:r,addAnchor:o=!1}=e;const i=vs(),{hidden:a,disabled:s,style:l,hasSvgIconShape:c}=Eu(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:xu,size:"large"},c&&xc(r.getSvgIconShape()),o&&t.createElement("div",{ref:n,style:{bottom:-i.spacing(.5),right:0,position:"absolute",width:"100%",height:0}}))})),Su=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"}}]}),wu=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 Lu=e=>xc(wu(e));const ku={icon:"".concat("More","-icon")},Ou=Cs(q)((e=>{let{theme:t}=e;return{["& .".concat(ku.icon)]:{color:t.palette.text.primary}}}));function Ru(e){let{item:n,onActionClick:r=(()=>{})}=e;const{hidden:o,disabled:i,hasSvgIconShape:a}=Eu(n);return o?null:t.createElement(_,{title:n.label,onClick:()=>{n.action(),r()},disabled:i},a&&t.createElement(T,{className:ku.icon},xc(n.getSvgIconShape())),t.createElement(k,{noWrap:!0},n.label))}const qu=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(Ou,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(Ru,{key:n,item:e,onActionClick:l})))))})),Iu={itemSpacing:"".concat("ActionsToolbar","-itemSpacing"),firstItemSpacing:"".concat("ActionsToolbar","-firstItemSpacing"),lastItemSpacing:"".concat("ActionsToolbar","-lastItemSpacing")},_u=Cs(q)((e=>{let{theme:t}=e;return{["& .".concat(Iu.itemSpacing)]:{padding:t.spacing(0,.5)},["& .".concat(Iu.firstItemSpacing)]:{padding:t.spacing(0,.5,0,0)},["& .".concat(Iu.lastItemSpacing)]:{padding:t.spacing(0,0,0,.5)}}})),Tu="njs-action-toolbar-popover",Au=t.forwardRef(((e,n)=>{let{actions:r=[],first:o=!1,last:i=!1,addAnchor:a=!1}=e;return r.length>0?t.createElement(L,{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=[Iu.firstItemSpacing]),u&&!c&&(l=[...l,Iu.lastItemSpacing]),c||u||0!==l.length||(l=[Iu.itemSpacing]),t.createElement(L,{item:!0,key:e.key,className:l.join(" ").trim()},t.createElement(Cu,{key:e.key,item:e,ref:0===s?n:null,addAnchor:a}))}))):null})),Du={pointerEvents:"none"},Nu={vertical:"top",horizontal:"right"},Pu={vertical:"bottom",horizontal:"right"};function Mu(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 f=function(e){let{api:t,onConfirm:n=(()=>{}),onCancel:r=(()=>{}),onKeyDeactivate:o=(()=>{})}=e;const{translator:i}=g(jl);return[{key:"clear",type:"icon-button",label:i.get("Selection.Clear"),enabled:()=>t.canClear(),action:()=>t.clear(),getSvgIconShape:wu},{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:Su},{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:Gc}]}(s),{translator:h,keyboardNavigation:y}=g(jl),[b,v]=i(!1),[E,x]=i(l.enabled),[C,S]=i(l.actions),[w,k]=i(l.alignTo),O=m(),R=m(),q=vs(),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:h.get("Menu.More"),getSvgIconShape:vu,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 N=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,M=C.length>0,j=P&&s.show||M&&s.show,z=t.createElement(L,{ref:R,onKeyDown:N,container:!0,gap:0,wrap:"nowrap"},P&&t.createElement(Au,{actions:T,first:!0,last:!M&&!s.show}),M&&t.createElement(Au,{ref:O,actions:[D],first:!P,last:!s.show,addAnchor:!0}),j&&t.createElement(L,{item:!0,className:Iu.itemSpacing,style:I},t.createElement(A,{orientation:"vertical"})),s.show&&t.createElement(Au,{actions:f,first:!P&&!M,last:!0}),b&&t.createElement(qu,{show:b,actions:C,alignTo:w,popoverProps:l.popoverProps,popoverPaperStyle:l.popoverPaperStyle,onCloseOrActionClick:()=>{v(!1)}}));return u.show?t.createElement(_u,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:u.show,anchorEl:u.anchorEl,anchorOrigin:Nu,transformOrigin:Pu,hideBackdrop:!0,style:Du,PaperProps:{className:Tu,style:{pointerEvents:"auto",padding:q.spacing(1,1)}}},z):n&&z}var ju=e=>xc((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 zu(e){let{selections:n,model:r,keyboard:o,dense:s=!1,visible:l=!0}=e;const{translator:c}=g(jl),[u,p]=i(""),d=vs(),f=async()=>{if(n.isModal())try{await r.abortListObjectSearch("/qListObjectDef")}finally{p("")}};a((()=>{l||f()}),[l]),a((()=>(n.on("deactivated",f),()=>{n.removeListener&&n.removeListener("deactivated",f)})),[]);return l?t.createElement(D,{startAdornment:t.createElement(N,{position:"start"},t.createElement(ju,{size:s?"small":"normal"})),className:"search",sx:[{border:"none",borderRadius:0,"& fieldset":{border:"1px solid ".concat(d.palette.divider),borderWidth:"1px 0 1px 0",borderRadius:0},"&:hover":{border:"none"}},s&&{fontSize:12,paddingLeft:d.spacing(1),"& input":{paddingTop:"5px",paddingBottom:"5px"}}],size:"small",fullWidth:!0,placeholder:c.get("Listbox.Search"),value:u,onFocus:()=>{n.isModal()||n.begin(["/qListObjectDef"])},onChange:async e=>(p(e.target.value),e.target.value.length?r.searchListObjectFor("/qListObjectDef",e.target.value):f()),onKeyDown:e=>{let t;switch(e.key){case"Enter":t=r.acceptListObjectSearch("/qListObjectDef",!0),p("");break;case"Escape":t=n.isActive()&&n.cancel(),e.preventDefault(),e.stopPropagation()}return t},inputProps:{tabIndex:!o||o.enabled&&!o.active?-1:0}}):null}function Fu(e){return Object.keys(re.prototype).forEach((t=>{e[t]=re.prototype[t]})),re.init(e),e}function Bu(e,t){const[n]=gc(e),[r]=nc(t),o=t?t.id:null,[i]=uc(),[s]=dc(),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 Fu(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 $u(e){let{alignTo:n,show:r,close:o,app:i,fieldName:s,stateName:l="$"}=e;const c=r&&Boolean(n.current),u=vs(),[d]=oc({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),f=p((()=>{d.lock("/qListObjectDef")}),[d]),h=p((()=>{d.unlock("/qListObjectDef")}),[d]),{translator:y}=g(jl),b=m(),[v]=Bu(i,d),[E]=nc(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=bu({layout:E,model:d,translator:y}),w=E.qListObject.qDimensionInfo.qStateCounts,k=w.qSelected+w.qSelectedExcluded+w.qLocked+w.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(L,{container:!0,direction:"column",gap:0},t.createElement(L,{item:!0,container:!0,style:{padding:u.spacing(1)}},t.createElement(L,{item:!0},x?t.createElement(R,{onClick:h,disabled:!x,size:"large"},t.createElement(Sc,{title:y.get("Listbox.Unlock")})):t.createElement(R,{onClick:f,disabled:!k,size:"large"},t.createElement(wc,{title:y.get("Listbox.Lock")}))),t.createElement(L,{item:!0,xs:!0}),t.createElement(L,{item:!0},t.createElement(Mu,{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(L,{item:!0,xs:!0},t.createElement("div",{ref:b}),t.createElement(zu,{selections:v,model:d,visible:!0}),t.createElement(fu,{model:d,selections:v,direction:"ltr"}))))}function Uu(e){let{field:n,api:r,stateIx:o=0,skipHandleShowListBoxPopover:a=!1,moreAlignTo:s=null,onClose:l=(()=>{})}=e;const{translator:c}=g(jl),u=s||m(),p=vs(),[d,f]=i(!1),h=e=>{e.currentTarget.contains(e.target)&&f(!d)},y=()=>{f(!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,w=0===S&&0===b.qTotal;let O="";b.qTotal===S&&b.qTotal>1?O=c.get("CurrentSelections.All"):S>1&&b.qTotal?O=c.get("CurrentSelections.Of",[S,b.qTotal]):b.qSelectedFieldSelectionInfo&&(O=b.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==n.states[o]&&(O="".concat(n.states[o],": ").concat(O));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,A=null;return s||(I=t.createElement(L,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:b.qLocked?"0.3":""}},t.createElement(k,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},b.qField),t.createElement(k,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},O)),b.qLocked?_=t.createElement(L,{item:!0},t.createElement(R,{size:"large"},t.createElement(Sc,null))):b.qOneAndOnlyOne||(_=t.createElement(L,{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(Cc,null)))),T=t.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===w&&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,"%")}})))),A=t.createElement(L,{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&&h||null},I,_,T,d&&t.createElement($u,{alignTo:u,show:d,close:y,app:r.model,fieldName:b.qField,stateName:n.states[o]}))),s?t.createElement($u,{alignTo:u,show:!0,close:y,app:r.model,fieldName:b.qField,stateName:n.states[o]}):A}var Hu=e=>xc((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 Wu={item:"".concat("MultiState","-item")},Vu=Cs(L)((e=>{let{theme:t}=e;return{["&.".concat(Wu.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"}}}));function Gu(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),f=o||m(),{translator:h}=g(jl),y=h.get("Selection.ClearAllStates"),b=()=>{u(-1),a()};let v=null;o||(v=t.createElement(t.Fragment,null,t.createElement(L,{item:!0,xs:!0,zeroMinWidth:!0},t.createElement(P,{style:{padding:"0px 8px"},color:"secondary",badgeContent:n.states.length},t.createElement(k,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},n.name))),t.createElement(L,{item:!0},t.createElement("div",{style:{width:"12px"}})),t.createElement(L,{item:!0},t.createElement(R,{size:"large"},t.createElement(Hu,null)))));const E=t.createElement(M,{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(Uu,{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(Vu,{container:!0,gap:0,className:Wu.item,onClick:e=>{e.currentTarget.contains(e.target)&&(d(e.currentTarget),f.current=e.currentTarget,l(!s))}},v,s&&x,c>-1&&t.createElement($u,{alignTo:f,show:c>-1,close:b,app:r.model,fieldName:n.selections[c].qField,stateName:n.states[c]}));return o&&c>-1?t.createElement($u,{alignTo:f,show:c>-1,close:b,app:r.model,fieldName:n.selections[c].qField,stateName:n.states[c]}):C}const Ku={item:"".concat("More","-item"),badge:"".concat("More","-badge")},Zu=Cs(L)((e=>{let{theme:t}=e;return{["&.".concat(Ku.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(Ku.badge)]:{padding:t.spacing(0,1)}}}));function Xu(e){let{items:n=[],api:r}=e;const o=vs(),[a,s]=i(!1),[l,c]=i(-1),[u,p]=i(null),d=m(),f=()=>{c(-1)};let h=null;return l>-1&&(h=n[l].states.length>1?t.createElement(Gu,{field:n[l],api:r,moreAlignTo:d,onClose:f}):t.createElement(Uu,{field:n[l],api:r,skipHandleShowListBoxPopover:!0,moreAlignTo:d,onClose:f})),t.createElement(Zu,{container:!0,gap:0,className:Ku.item,onClick:e=>{e.currentTarget.contains(e.target)&&(p(e.currentTarget),d.current=e.currentTarget,s(!a))}},t.createElement(L,{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(k,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",n.length))),t.createElement(L,{item:!0},t.createElement(R,{size:"large"},t.createElement(Hu,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(M,{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(Gu,{field:e,api:r}):t.createElement(Uu,{field:e,api:r}))))))),h)}function Ju(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 Yu(e){let{api:n,app:r}=e;const o=vs(),[s]=ac(r),[l]=nc(s),[c,u]=i({items:[],more:[]}),[p]=hc(),[d,f]=vc(),[h,m]=i(0);return a((()=>{if(!f)return;const{width:e}=f,t=Math.floor(e)-72,n=Math.floor(t/120);m(n)}),[f]),a((()=>{if(!(r&&s&&l&&h))return;const e=function(e){if(!e)return[];const t={};return e.qSelectionObject&&Ju(e.qSelectionObject,t),e.alternateStates&&e.alternateStates.forEach((e=>Ju(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 h<n.length&&(o=n.splice(h-n.length)),{items:n,more:o}}))}),[r,s,l,n.isInModal(),h]),t.createElement(L,{ref:d,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},c.items.map((e=>t.createElement(L,{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(Gu,{field:e,api:n}):t.createElement(Uu,{field:e,api:n})))),c.more.length>0&&t.createElement(L,{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(Xu,{items:c.more,api:n})))}var Qu=e=>xc((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 ep=e=>xc((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 tp(e){let{api:n,app:r}=e;const{translator:o}=g(jl),[i]=sc(r);return t.createElement(L,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},t.createElement(L,{item:!0},t.createElement(R,{style:{marginRight:"8px"},disabled:!i||!i.canGoBack,title:o.get("Navigate.Back"),onClick:()=>n.back(),size:"large"},t.createElement(Qu,null))),t.createElement(L,{item:!0},t.createElement(R,{style:{marginRight:"8px"},disabled:!i||!i.canGoForward,title:o.get("Navigate.Forward"),onClick:()=>n.forward(),size:"large"},t.createElement(ep,null))),t.createElement(L,{item:!0},t.createElement(R,{disabled:!i||!i.canClear,title:o.get("Selection.ClearAll"),onClick:()=>n.clear(),size:"large"},t.createElement(Lu,null))))}function np(e){let{app:n}=e;const r=vs(),[o]=gc(n);return o?t.createElement(L,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:r.palette.background.paper,minHeight:"40px"}},t.createElement(L,{item:!0,style:{borderRight:"1px solid ".concat(r.palette.divider)}},t.createElement(tp,{api:o,app:n})),t.createElement(L,{item:!0,xs:!0,style:{backgroundColor:r.palette.background.darker,overflow:"hidden"}},t.createElement(Yu,{api:o,app:n}))):null}function rp(e){let{element:n,app:r}=e;return y.createPortal(t.createElement(np,{app:r}),n)}var op=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},ip=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}}(),ap=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},sp=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},lp=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")},cp=void 0;cp="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;var up=null,pp=null,dp=cp.clearTimeout,fp=cp.setTimeout,hp=cp.cancelAnimationFrame||cp.mozCancelAnimationFrame||cp.webkitCancelAnimationFrame,mp=cp.requestAnimationFrame||cp.mozRequestAnimationFrame||cp.webkitRequestAnimationFrame;function gp(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__&&up(this.__resizeRAF__),this.__resizeRAF__=pp((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(" "),f=document.createElement("fakeelement");if(void 0!==f.style.animationName&&(c=!0),!1===c)for(var h=0;h<p.length;h++)if(void 0!==f.style[p[h]+"AnimationName"]){u="-"+p[h].toLowerCase()+"-",r=d[h],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=cp.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 f=u.createElement("div");f.className="contract-trigger",i.__resizeTriggers__.appendChild(d),i.__resizeTriggers__.appendChild(f),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==hp||null==mp?(up=dp,pp=function(e){return fp(e,20)}):(up=function(e){var t=lp(e,2),n=t[0],r=t[1];hp(n),dp(r)},pp=function(e){var t=mp((function(){dp(n),e()})),n=fp((function(){hp(t),e()}),20);return[t,n]});var yp=function(e){function t(){var e,n,r;op(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=sp(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,f=a-l-c;(!t&&r.state.height!==d||!n&&r.state.width!==f)&&(r.setState({height:i-u-p,width:a-l-c}),o({height:i,width:a}))}},r._setRef=function(e){r._autoSizer=e},sp(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,h),ip(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=gp(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),f("div",{className:n,ref:this._setRef,style:ap({},c,i)},!p&&t(u))}}]),t}();yp.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}};const bp={listBoxHeader:"".concat("ListBoxInline","-listBoxHeader")},vp=Cs(L)((()=>({["& .".concat(bp.listBoxHeader)]:{alignSelf:"center",display:"inline-flex"}})));function Ep(e){let{app:n,fieldIdentifier:r,stateName:o="$",options:s={},fieldDef:l}=e;const{title:c,direction:u,listLayout:d,search:f=!0,focusSearch:h=!1,toolbar:y=!0,rangeSelect:b=!0,checkboxes:v=!1,properties:E={},sessionModel:x,selectionsApi:C,update:S,fetchStart:w,dense:O=!1,selectDisabled:q=(()=>!1),postProcessPages:I,calculatePagesHeight:_,showGray:T=!0,scrollState:A,setCount:D,shouldConfirmOnBlur:N}=s;let{frequencyMode:P,histogram:M=!1}=s;switch(l&&l.failedToFetchFieldDef&&(M=!1,P="N"),!0){case["none","N","NX_FREQUENCY_NONE"].includes(P):P="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(P):P="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(P):P="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(P):P="R";break;default:P="N"}const j={qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:o,qShowAlternatives:!0,qFrequencyMode:M&&"N"===P?"V":P,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},title:c};let z;if(de(!0,j,E),r.qLibraryId?(j.qListObjectDef.qLibraryId=r.qLibraryId,z=r.qLibraryId):(j.qListObjectDef.qDef.qFieldDefs=[r],z=r),"N"!==P||M){const e=r.qLibraryId?l:z;j.frequencyMax={qValueExpression:"Max(AGGR(Count([".concat(e,"]), [").concat(e,"]))")}}let[F]=oc(j,x?null:n,z,o);x&&(F=x);let B=Bu(C?{}:n,F)[0];C&&(B=C);const $=vs(),U=p((()=>{F.lock("/qListObjectDef")}),[F]),H=p((()=>{F.unlock("/qListObjectDef")}),[F]),{translator:W,keyboardNavigation:V}=g(jl),G=m(),[K,Z]=(()=>{const[e,t]=i({}),n=p((e=>{t({current:e})}),[t]);return[e,n]})(),[X]=nc(F),[J,Y]=i(!1),[Q,ee]=i(!1),[te,ne]=i(!1),re=ou({setKeyboardActive:ne}),oe={enabled:V,active:te};a((()=>{const e=()=>{Y(!0)},t=()=>{Y(!1),"toggle"===f&&ee(!1)};return B&&(B.isModal()||(B.on("deactivated",t),B.on("activated",e)),Y(B.isActive())),()=>{B&&(B.removeListener("deactivated",e),B.removeListener("activated",t))}}),[B]);const ie=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])}(ie,B,N),a((()=>{if(K&&K.current&&(f&&h||"toggle"===f&&Q)){const e=K.current.querySelector("input");e&&e.focus()}}),[K&&K.current,Q,f,h]),!F||!X||!W)return null;const ae=!0===X.qListObject.qDimensionInfo.qLocked,se=y?bu({layout:X,model:F,translator:W}):[],le=X.qListObject.qDimensionInfo.qStateCounts,ce=le.qSelected+le.qSelectedExcluded+le.qLocked+le.qLockedExcluded>0,ue=(!0===f||"toggle"===f&&Q)&&!q(),pe=49+(ue?O?27:40:0)+(O?39:49),fe=()=>{ee(!Q)};return t.createElement(vp,{container:!0,tabIndex:oe.enabled&&!oe.active?0:-1,direction:"column",gap:0,style:{height:"100%",minHeight:"".concat(pe,"px")},onKeyDown:re,ref:ie},y&&t.createElement(L,{item:!0,container:!0,style:{padding:$.spacing(1)}},t.createElement(L,{item:!0},ae?t.createElement(R,{tabIndex:-1,onClick:H,disabled:!ae,size:"large"},t.createElement(Sc,{title:W.get("Listbox.Unlock")})):"toggle"!==f||ce?t.createElement(R,{onClick:U,tabIndex:-1,disabled:!ce,size:"large"},t.createElement(wc,null)):t.createElement(R,{onClick:fe,tabIndex:-1,title:W.get("Listbox.Search"),size:"large"},t.createElement(ju,null))),t.createElement(L,{item:!0,className:bp.listBoxHeader},t.createElement(k,{variant:"h6",noWrap:!0},X.title||X.qListObject.qDimensionInfo.qFallbackTitle)),t.createElement(L,{item:!0,xs:!0}),t.createElement(L,{item:!0},t.createElement(Mu,{more:{enabled:!ae,actions:se,alignTo:G,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:J,api:B,onConfirm:()=>{},onCancel:()=>{}}}))),t.createElement(L,{item:!0,ref:Z},t.createElement(zu,{selections:B,model:F,dense:O,keyboard:oe,visible:ue,searchContainerRef:Z})),t.createElement(L,{item:!0,xs:!0},t.createElement("div",{ref:G}),t.createElement(yp,null,(e=>{let{height:n,width:r}=e;return t.createElement(fu,{model:F,selections:B,direction:u,listLayout:d,frequencyMode:P,histogram:M,rangeSelect:b,checkboxes:v,height:n,width:r,update:S,fetchStart:w,postProcessPages:I,calculatePagesHeight:_,dense:O,selectDisabled:q,keyboard:oe,showGray:T,scrollState:A,sortByState:j.qListObjectDef.qDef.qSortCriterias[0].qSortByState,setCount:D})}))))}function xp(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(Ep,{app:n,fieldIdentifier:r,stateName:o,options:s,fieldDef:l})}function Cp(e){let{app:n,fieldIdentifier:r,stateName:o,element:i,options:a}=e;const s=a.histogram||"N"!==a.frequencyMode,l=r.qLibraryId&&s?xp:Ep;return y.createPortal(t.createElement(l,{app:n,fieldIdentifier:r,stateName:o,element:i,options:a}),i)}const Sp=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function wp(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function Lp(){return Sp.map(wp).join("")}function kp(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function Op(e,t){let n=0;for(let r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n}function Rp(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||Lp(),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),kp(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];Op(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||Lp(),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),kp(t.qInterColumnSortOrder,t.qDimensions.length+t.qMeasures.length-1),n.measures.added(r,o)):(t.qLayoutExclude=t.qLayoutExclude||{},t.qLayoutExclude.qHyperCubeDef=t.qLayoutExclude.qHyperCubeDef||{},t.qLayoutExclude.qHyperCubeDef.qDimensions=t.qLayoutExclude.qHyperCubeDef.qDimensions||[],t.qLayoutExclude.qHyperCubeDef.qMeasures=t.qLayoutExclude.qHyperCubeDef.qMeasures||[],t.qLayoutExclude.qHyperCubeDef.qMeasures.push(r))},removeMeasure(e){const r=t.qMeasures.splice(e,1)[0];Op(t.qInterColumnSortOrder,t.qDimensions.length+e),n.measures.removed(r,o,e)},maxDimensions:()=>n.dimensions.max(t.qMeasures.length),maxMeasures:()=>n.measures.max(t.qDimensions.length),canAddDimension:()=>t.qDimensions.length<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 qp=(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},Ip=(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]},_p=e=>0===Object.keys(e).length&&e.constructor===Object;var Tp={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 Ap(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function Dp(e,t){const n=de(!0,{},t,e);return qp(n,"qOtherTotalSpec.qOtherCounted")||Ip(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),qp(n,"qOtherTotalSpec.qOtherLimit")||Ip(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function Np(e,t){return de(!0,{},t,e)}function Pp(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var Mp={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===qp(e,t)&&Ip(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:Ap,importCommonProperties:function(e,t,n){const r="masterobject"===qp(t,"properties.qInfo.qType")?"masterobject":qp(n,"qInfo.qType");Ip(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:Dp,createDefaultMeasure:Np,resolveValue:Pp,getHypercubePath:function(e){const t=qp(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?(Tp.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,Tp.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?Ip(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||Ap(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=Pp(i.max,r.dimensions.length,9007199254740991),s=Pp(i.min,r.dimensions.length,0);return{maxDimensions:Pp(o.max,a,9007199254740991),minDimensions:Pp(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(Dp(a.dimensions[s],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(Dp(a.dimensions[s],i));else if(a.dimensions.length)for(s=0;s<a.dimensions.length;++s)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(Dp(a.dimensions[s],i));if(a.excludedDimensions.length)for(s=0;s<a.excludedDimensions.length;++s)o.qDimensions.length<r?o.qDimensions.push(Dp(a.excludedDimensions[s],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(Dp(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(Np(a.measures[s],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(Np(a.measures[s],i));else if(a.measures.length)for(s=0;s<a.measures.length;++s)o.qLayoutExclude.qHyperCubeDef.qMeasures.push(Np(a.measures[s],i));if(a.excludedMeasures.length)for(s=0;s<a.excludedMeasures.length;++s)o.qMeasures.length<r?o.qMeasures.push(Np(a.excludedMeasures[s],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(Np(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=qp(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=qp(t,r||"").qHyperCubeDef,o=[...e.qMeasures];e.qMeasures=[],o.forEach((r=>{e.qMeasures.push(r),n.measures.added(r,t)}))}}};var jp={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=qp(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();Tp.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&&(Mp.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!_p(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=Mp.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:i}),l=qp(n,i||"").qHyperCubeDef,c=qp(s,i||"").qHyperCubeDef,{maxDimensions:u,minDimensions:p,maxMeasures:d,minMeasures:f}=Mp.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:h=Mp.getDefaultDimension(),defaultMeasure:m=Mp.getDefaultMeasure()}=o;return c.qDimensions.length=0,c.qMeasures.length=0,Mp.shouldInitLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:p,maxMeasures:d,minMeasures:f})&&Mp.initLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:p,maxMeasures:d,minMeasures:f,newHyperCubeDef:c}),Mp.addDefaultDimensions({exportFormat:t,maxDimensions:u,minDimensions:p,newHyperCubeDef:c,defaultDimension:h}),Mp.addDefaultMeasures({exportFormat:t,maxMeasures:d,minMeasures:f,newHyperCubeDef:c,defaultMeasure:m}),Mp.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:c}),Mp.copyPropertyIfExist("qMaxStackedCells",l,c),Mp.copyPropertyIfExist("qNoOfLeftDims",l,c),Mp.copyPropertyOrSetDefault("qInitialDataFetch",l,c,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),Mp.copyPropertyOrSetDefault("qMode",l,c,"S"),Mp.copyPropertyOrSetDefault("qReductionMode",l,c,"N"),Mp.copyPropertyOrSetDefault("qSortbyYValue",l,c),Mp.copyPropertyOrSetDefault("qIndentMode",l,c),Mp.copyPropertyOrSetDefault("qShowTotalsAbove",l,c),Mp.importCommonProperties(s,t,n),Mp.updateDimensionsOnAdded({newProperties:s,dataDefinition:r,hypercubePath:i}),Mp.updateMeasuresOnAdded({newProperties:s,dataDefinition:r,hypercubePath:i}),a.qProperty=s,a}(e)};const zp=e=>qp(e,"data.targets.0.propertyPath"),Fp=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return jp.exportProperties})(zp(e))},Bp=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return jp.importProperties})(zp(e))},$p=async e=>{let{halo:t,model:n,cellRef:r,newType:o}=e;const i=await n.getFullPropertyTree(),a=r.current.getQae(),s=Fp(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 Bp(c)({exportFormat:s({propertyTree:i,hypercubePath:Mp.getHypercubePath(a)}),initialProperties:V({qInfo:{qType:o},visualization:o},qp(c,"properties.initial",{})),dataDefinition:qp(c,"data.targets.0.",{}),hypercubePath:Mp.getHypercubePath(c)})},Up={hypercube:jp};var Hp=e=>xc((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 Wp(e){let{d:n}=e;const r=vs();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(k,{style:{lineHeight:"30px",paddingRight:r.spacing(1)}},t.createElement(B,null,n.missing||n.error?t.createElement(Hp,{style:a}):t.createElement(Kc,{style:a})));return t.createElement(L,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},t.createElement(L,{item:!0},s),t.createElement(L,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},t.createElement(k,{noWrap:!0,component:"p"},t.createElement(k,{component:"span",variant:"subtitle2",color:o},n.description),t.createElement(k,{component:"span"}," "),t.createElement(k,{component:"span",variant:"subtitle2",color:n.error?"error":"inherit",style:{fontWeight:400}},n.label))))}function Vp(e){let{data:n}=e;const r=vs();return t.createElement(L,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},n.map(((e,n)=>{const o=e.descriptions.map(((e,n)=>t.createElement(Wp,{d:e,key:n})));return o.length>0&&t.createElement(L,{container:!0,item:!0,key:n,direction:"column",style:{paddingBottom:r.spacing(2)}},t.createElement(k,{noWrap:!0,key:n,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),o)})))}function Gp(e){let{title:n="Error",message:r="",data:o=[]}=e;return t.createElement(L,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},t.createElement(L,{item:!0},t.createElement(Hp,{style:{fontSize:"38px"}})),t.createElement(L,{item:!0},t.createElement(k,{variant:"h6",align:"center","data-tid":"error-title"},n)),t.createElement(L,{item:!0},t.createElement(k,{variant:"subtitle1",align:"center","data-tid":"error-message"},r)),t.createElement(Vp,{data:o}))}const Kp=["size"],Zp={root:"".concat("Progress","-root"),front:"".concat("Progress","-front"),back:"".concat("Progress","-back")},Xp=Cs("div")((e=>{let{theme:t}=e;return{["&.".concat(Zp.root)]:{position:"relative",display:"inline-block"},["& .".concat(Zp.front)]:{color:t.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(Zp.back)]:{color:t.palette.divider}}})),Jp={small:16,medium:32,large:64,xlarge:128};function Yp(e){let{size:n="medium"}=e,r=Z(e,Kp);const o=Jp[n];return t.createElement(Xp,{className:Zp.root},t.createElement($,K({variant:"determinate",value:100,className:Zp.back,size:o,thickness:3},r)),t.createElement($,K({variant:"indeterminate",disableShrink:!0,className:Zp.front,size:o,thickness:3},r)))}const Qp=["cancel","translator"],ed=["retry","translator"],td={stripes:"".concat("LongRunningQuery","-stripes")},nd=Cs(L)((()=>({["& .".concat(td.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 rd(e){let{cancel:n,translator:r}=e,o=Z(e,Qp);return t.createElement(t.Fragment,null,t.createElement(nd,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},t.createElement(L,{item:!0},t.createElement(Yp,null)),t.createElement(L,{item:!0},t.createElement(k,{variant:"h6",align:"center","data-tid":"update-active"},r.get("Object.Update.Active")))),t.createElement(L,K({item:!0},o),t.createElement(z,{variant:"contained",onClick:n},r.get("Cancel"))))}function od(e){let{retry:n,translator:r}=e,o=Z(e,ed);return t.createElement(t.Fragment,null,t.createElement(L,{item:!0},t.createElement(Hp,{style:{fontSize:"38px"}})),t.createElement(L,{item:!0},t.createElement(k,{variant:"h6",align:"center","data-tid":"update-cancelled"},r.get("Object.Update.Cancelled"))),t.createElement(L,{item:!0},t.createElement(z,K({variant:"contained",onClick:n},o),r.get("Retry"))))}function id(e){let{canCancel:n,canRetry:r,api:o}=e;const{translator:i}=g(jl);return t.createElement(L,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:td.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},n&&t.createElement(rd,{cancel:o.cancel,translator:i,className:td.cancel}),r&&t.createElement(od,{retry:o.retry,translator:i,className:td.retry}))}function ad(){return t.createElement(L,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t.createElement(Yp,{size:"large"}))}const sd={containerStyle:"".concat("Header","-containerStyle"),containerTitleStyle:"".concat("Header","-containerTitleStyle")},ld=Cs(L)((e=>{let{theme:t}=e;return{["&.".concat(sd.containerStyle)]:{flexGrow:0},["&.".concat(sd.containerTitleStyle)]:{paddingBottom:t.spacing(1)}}})),cd="njs-cell-title",ud="njs-cell-sub-title";function pd(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,f]=i([]),[h,m]=vc(),[g,y]=i(!1);a((()=>{r&&r.component&&r.component.isHooked&&r.component.observeActions((e=>{f([...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=[sd.containerStyle,...b?[sd.containerTitleStyle]:[]],E=(s||p)&&(g||!b),x=b&&!E&&!g,C=t.createElement(Mu,{show:x,selections:{show:p,api:r.component.selections,onKeyDeactivate:l.refocusContent},actions:d,popover:{show:E,anchorEl:o},focusHandler:l});return t.createElement(ld,{ref:h,item:!0,container:!0,wrap:"nowrap",className:v.join(" ")},t.createElement(L,{item:!0,zeroMinWidth:!0,xs:!0},t.createElement(L,{container:!0,wrap:"nowrap",direction:"column"},c&&t.createElement(k,{variant:"h6",noWrap:!0,className:cd},n.title),u&&t.createElement(k,{variant:"body2",noWrap:!0,className:ud},n.subtitle))),t.createElement(L,{item:!0},C))}const dd={itemStyle:"".concat("Footer","-itemStyle")},fd=Cs(L)((e=>{let{theme:t}=e;return{["& .".concat(dd.itemStyle)]:{minWidth:0,paddingTop:t.spacing(1)}}})),hd="njs-cell-footer";function md(e){let{layout:n}=e;return n&&n.showTitles&&n.footnote?t.createElement(fd,{container:!0},t.createElement(L,{item:!0,className:dd.itemStyle},t.createElement(k,{noWrap:!0,variant:"body2",className:hd},n.footnote))):null}class gd{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 yd="njs-viz";function bd(e){let{sn:n,snOptions:r,snPlugins:o,layout:s,appLayout:l,halo:c}=e;const{component:u}=n,{theme:d,language:f,constraints:h,keyboardNavigation:m}=g(jl),[y]=i((()=>new gd)),[b,v]=i(!1),[E,x]=i(0),[C,S,w]=vc(),[L,k]=i(null),O=p((e=>{e&&k(e)}),[]);return a((()=>{if(L)return u.created({options:r}),u.mounted(L),v(!0),()=>{y.stop(),u.willUnmount()}}),[L,u]),a((()=>{b&&L&&S&&(!u.isHooked&&s&&s.qSelectionInfo&&s.qSelectionInfo.qInSelections||y.schedule((()=>{const e=[];return h.passive||e.push("passive"),h.active||e.push("interact"),h.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:h,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,L,w,s,l,d,f,h,b,m]),t.createElement("div",{ref:C,"data-render-count":E,style:{position:"relative",height:"100%"},className:yd},t.createElement("div",{ref:O,style:{position:"absolute",width:"100%",height:"100%"}}))}const vd="njs-cell",Ed=(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 xd(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(ad,null):null}const Cd=e=>!e.qError||7005===e.qError.qErrorCode,Sd=(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}})),wd=e=>e&&(Array.isArray(e)?e:[e])||[],Ld=(e,t,n,r)=>{const o=r.dimensions.min(),i=r.measures.min(),a=r.resolveLayout(t);return{reqDimErrors:Sd(o,wd(a.qDimensionInfo),(e=>r.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:Sd(i,wd(a.qMeasureInfo),(e=>r.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},kd=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(),f=u.resolveLayout(n),h=wd(f.qDimensionInfo).filter(Cd),m=wd(f.qMeasureInfo).filter(Cd);if(o+=p,i+=d,(h.length<p||m.length<d)&&(r=!0),f.qError){a=!0,s=7005===f.qError.qErrorCode;const t=s&&f.qCalcCondMsg?f.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=Ld(e,t,n,a);u.push(...o.reqDimErrors),p.push(...o.reqMeasErrors)}}const f=u.filter((e=>!(e.missing||e.error))).length,h=e.get("Visualization.Incomplete.Dimensions",[f,a]),m=p.filter((e=>!(e.missing||e.error))).length,g=e.get("Visualization.Incomplete.Measures",[m,s]),y=[{title:h,descriptions:[...u]},{title:g,descriptions:[...p]}],b=l?c:y;return[l||i,{title:l?c[0].title:e.get("Visualization.Incomplete"),data:b}]},Od=l(((e,n)=>{let{halo:r,model:o,initialSnOptions:l,initialSnPlugins:c,initialError:p,onMount:d,currentId:f}=e;const{app:h,types:y}=r,{nebbie:b}=r.public,{disableCellPadding:v=!1}=r.context||{},{translator:E,language:x,keyboardNavigation:C}=g(jl),S=vs(),[w,k,O]=vc(),[R,q]=s(Ed,{loading:!1,loaded:!1,longRunningQuery:!1,error:(I=p)?{title:I.message}:null,sn:null,visualization:null});var I;const[_,{validating:T,canCancel:A,canRetry:D},N]=nc(o),[P]=rc(h),[M,j,z]=vc(),[F,B]=i(l),[$,H]=i(c),[W]=Bu(h,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((()=>{Fu(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 kd(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:h,selections:W,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,W,_,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:H,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(xd,null):R.error?J=t.createElement(Gp,R.error):R.loaded&&(J=t.createElement(bd,{key:_.visualization,sn:R.sn,halo:r,snOptions:F,snPlugins:$,layout:_,appLayout:P})),t.createElement(U,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden"},elevation:0,square:!0,className:vd,ref:w,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(L,{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(pd,{layout:_,sn:R.sn,anchorEl:O,hovering:G,focusHandler:X.current}," "),t.createElement(L,{tabIndex:C?0:-1,onKeyDown:C?e=>{["Enter"," ","Spacebar"].includes(e.key)&&r.root.toggleFocusOfCells(f)}:null,item:!0,xs:!0,style:{height:"100%"},ref:M},J),t.createElement(md,{layout:_})),R.longRunningQuery&&t.createElement(id,{canCancel:A,canRetry:D,api:N}))}));function Rd(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=Lp(),d=y.createPortal(t.createElement(Od,{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 qd(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Id(e,t){return qd(e)&&qd(t)?JSON.stringify(e)===JSON.stringify(t):!Array.isArray(e)&&!Array.isArray(t)&&e===t}function _d(){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)?Id(i,n[o])||r.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])}):r.push(..._d("".concat(e).concat(o,"/"),t[o],n[o]))})),r}function Td(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 Ad=()=>{};function Dd(){let{model:e,halo:t,initialError:n,onDestroy:r=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=Ad,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=>{Td(e),a?(async()=>{await l,i.current.setSnPlugins(e)})():u=e},f={id:e.id,async destroy(){await r(),o(),o=Ad},async convertTo(n){let r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const o=await $p({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]=Rd({halo:t,element:r,model:e,initialSnOptions:c,initialSnPlugins:u,initialError:n,onMount:s}),l},async applyProperties(t){const n=_d("/",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 f}async function Nd(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:async()=>{};const i=Dd({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 Pd(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&&Rp({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);Ql.set(p.id,p);const d=(e=>{const t=Jl({type:"SET",value:e});return()=>{t(),Ql.clear(e.id)}})(p);return Nd(p,{options:s,plugins:l,element:c},t,n,(async()=>{await t.app.destroySessionObject(p.id),d()}))}async function Md(e,t){let{id:n,options:r,plugins:o,element:i}=e;const a="".concat(n);let s=Gl.get(a);s||(s=t.app.getObject(n),Gl.set(a,s));const l=await s;return Ql.set(a,l),Nd(l,{options:r,plugins:o,element:i},t)}function jd(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}const zd=de.bind(null,!0),Fd={},{isArray:Bd}=Array;function $d(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Ud(e){return void 0===e}function Hd(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function Wd(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]=Ud(e[r||t])?i:e[t],e=e[r||t]})),e}function Vd(e,t){let n=!0;if($d(e)&&$d(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{Vd(e[r],t[r])||(n=!1)})),n);if(Bd(e)&&Bd(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!Vd(e[n],t[n]))return!1;return!0}return e===t}Fd.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const i=function(e){return e?zd({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(n,"/").concat(o);Vd(i,a)||Hd(t,o)||(Ud(a)?r.push({op:"add",path:s,value:i}):$d(i)&&$d(a)?r=r.concat(Fd.generate(a,i,s)):Bd(i)&&Bd(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]&&Ud(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(Vd(t,o))return r;if(!Ud(t[0])&&Ud(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(Fd.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=>{Ud(t[o])&&!Hd(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},Fd.apply=function(e,t){t.forEach((t=>{let n=Wd(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(Bd(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(Bd(o)&&Bd(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if($d(o)&&$d(t.value))a=o,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!Hd(a,e)&&delete a[e]})),zd(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=Wd(e,t.from);Bd(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(Bd(n)?n.splice(+r,1):delete n[r]);var a}))},Fd.clone=function(e){return zd({},e)},Fd.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},Fd.updateObject=function(e,t){Object.keys(e).length?Fd.apply(e,Fd.generate(e,t)):zd(e,t)};const Gd=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 Kd,Zd;function Xd(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 Jd(e){let{explicitResize:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.__hooks={obsolete:!1,error:!1,waitForData:!1,chain:{promise:null,resolve:()=>{}},list:[],snaps:[],menus:[],actions:{list:[]},pendingEffects:[],pendingLayoutEffects:[],pendingPromises:[],resizer:{setters:[],explicitResize:t},accessibility:{setter:null}}}function Yd(e){ef(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 Qd(e){if(e.__hooks.obsolete)return Promise.resolve();Zd=-1,Kd=e,Kd.__hooks.initiated&&Kd.__hooks.list.length;try{Kd.fn.call(null)}catch(e){console.error(e)}Kd.__hooks.initiated=!0;const t=Kd.__hooks;return of(Kd),Zd=void 0,Kd=void 0,t.chain.promise||(t.chain.promise=new Promise((e=>{t.chain.resolve=e}))),function(e){ef(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame((()=>{!function(e){ef(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 ef(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 tf(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 nf(e,t,n){try{return Promise.all(e.__hooks.menus.map((e=>Promise.resolve(e.fn(t,n))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function rf(e){return e.__hooks.imperativeHandle}function of(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function af(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,of(e))}function sf(e){if(void 0===Kd)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=Kd.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function lf(e){sf(++Zd);return Kd.context[e]}function cf(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function uf(e){return{__hooked:!0,fn:e,initiate:Jd,run:Qd,teardown:Yd,runSnaps:tf,runMenu:nf,focus:jf,blur:zf,observeActions:af,getImperativeHandle:rf,updateRectOnNextRun:cf}}function pf(e){const t=sf(++Zd);if(!t.value){t.component=Kd;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,Qd(r)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function df(e,t){const n=sf(++Zd);Xd(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===Kd.__hooks.pendingEffects.indexOf(n)&&Kd.__hooks.pendingEffects.push(n))}function ff(e,t){const n=sf(++Zd);Xd(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],Kd.__hooks.pendingLayoutEffects.push(n))}function hf(e,t){const n=sf(++Zd);return Xd(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function mf(e,t){const[n,r]=pf((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=sf(++Zd);return o.component||(o.component=Kd),ff((()=>{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 gf(){return lf("element")}function yf(){const e=gf(),t=Kd.__hooks.resizer,[n,r]=pf((()=>{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()),ff((()=>{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 bf(){return lf("layout")}function vf(){const e=lf("layout"),[t]=pf({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current}function Ef(){return lf("appLayout")}function xf(){const e=lf("model");return e&&e.session?e:void 0}function Cf(){const e=lf("app");return e&&e.session?e:void 0}function Sf(){const e=lf("global");return e&&e.session?e:void 0}function wf(){return lf("selections")}function Lf(){return lf("theme")}function kf(){return lf("nebbie")}function Of(){return lf("translator")}function Rf(){return lf("deviceType")}function qf(){return lf("plugins")}function If(e,t){const[n]=pf({action(){n._config.action.call(null)}});return n.component||(n.component=Kd,Kd.__hooks.actions.list.push(n)),hf((()=>{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 _f(){return lf("constraints")}function Tf(){return lf("options")}function Af(e,t){const n=sf(++Zd);if(n.imperative||(n.imperative=!0),Xd(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],Kd.__hooks.imperativeHandle=r}}function Df(e){const t=sf(++Zd);t.value||(t.value=1,Kd.__hooks.snaps.push(t)),t.fn=e}function Nf(e){const t=sf(++Zd);t.value||(t.value=1,Kd.__hooks.menus.push(t)),t.fn=e}function Pf(){sf(++Zd);const e=Kd.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}}function Mf(){const e=lf("keyboardNavigation"),t=lf("focusHandler");if(!Kd.__hooks.accessibility.exitFunction){const e=function(e){const n=this.__hooks.accessibility;n.enabled&&n.active&&(zf(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(Kd);Kd.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),jf(this))}.bind(Kd);Kd.__hooks.accessibility.focusFunction=n;const r=function(e){this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(Kd);Kd.__hooks.accessibility.focusSelectionFunction=r}const n=Kd.__hooks.accessibility.focusFunction,r=Kd.__hooks.accessibility.exitFunction,o=Kd.__hooks.accessibility.focusSelectionFunction,[i,a]=pf({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return Kd.__hooks.accessibility.setter=a,Kd.__hooks.accessibility.enabled=e,df((()=>a({active:!1,enabled:e,blur:r,focus:n,focusSelection:o})),[e]),i}function jf(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 zf(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 Ff={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},Bf=Object.keys(Ff);function $f(e,t){const n=V({},Ff);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!==Bf.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=Gd(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 Uf(e,t,n){"function"==typeof e.component&&(e.component=uf(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)},onContextMenu(t,n){return e.component.runMenu(this,t,n)},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):$f(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=Fd.clone(o),a=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));Fd.apply(o,a),e.qae.properties.onChange.call({model:t.model},o);const s=Fd.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 Hf=()=>{};function Wf(e,t){return void 0===e?()=>t:()=>e}function Vf(e){const t=e||{};return{min:"function"==typeof t.min?t.min:Wf(t.min,0),max:"function"==typeof t.max?t.max:Wf(t.max,1e3),added:t.added||t.add||Hf,description:t.description||Hf,moved:t.moved||t.move||Hf,removed:t.removed||t.remove||Hf,replaced:t.replaced||t.replace||Hf,isDefined:()=>!!e}}function Gf(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:Vf(e.dimensions),measures:Vf(e.measures)}}function Kf(){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(Gf)},exportProperties:t.exportProperties,importProperties:t.importProperties};return r}function Zf(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:Kf(n.qae),component:n.component||{},create:e=>Uf(r,e,t),definition:{}};return Object.keys(n).forEach((e=>{r[e]||(r.definition[e]=n[e])})),r}var Xf={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)),f(this.major,e.major)||f(this.minor,e.minor)||f(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 f(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 f(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=f;var d=/^[0-9]+$/;function f(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 h(e,t,n){return new p(e,n).compare(new p(t,n))}function m(e,t,n){return h(e,t,n)>0}function g(e,t,n){return h(e,t,n)<0}function y(e,t,n){return 0===h(e,t,n)}function b(e,t,n){return 0!==h(e,t,n)}function v(e,t,n){return h(e,t,n)>=0}function E(e,t,n){return h(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 f(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=h,t.compareLoose=function(e,t){return h(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 h(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 w(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof w)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new w(e.raw,t);if(e instanceof C)return new w(e.value,t);if(!(this instanceof w))return new w(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 L(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 w(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 w(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,f=null;if(u.forEach((function(e){e.semver===S&&(e=new C(">=0.0.0")),d=d||e,f=f||e,o(e.semver,d.semver,r)?d=e:a(e.semver,f.semver,r)&&(f=e)})),d.operator===s||d.operator===l)return!1;if((!f.operator||f.operator===s)&&i(e,f.semver))return!1;if(f.operator===l&&a(e,f.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 w(e.value,t),q(this.value,n,t));if(""===e.operator)return""===e.value||(n=new w(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=w,w.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},w.prototype.toString=function(){return this.range},w.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)},w.prototype.intersects=function(e,t){if(!(e instanceof w))throw new TypeError("a Range is required");return this.set.some((function(n){return L(n,t)&&e.set.some((function(e){return L(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new w(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},w.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 w(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 w(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 w(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 w(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 w(e,n),t=new w(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)}}(Xf,Xf.exports);const Jf={};async function Yf(e,t,n,r){let{config:o}=n;const i="".concat(e,"__").concat(t);if(!Jf[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);Jf[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 Jf[i]}function Qf(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)||Xf.exports.satisfies(e,i.deps.properties),supernova:()=>Yf(a.name,a.version,t,o.load).then((e=>(n=n||Zf(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 eh(e){let{halo:t,parent:n}=e;const r={},o=n||{get:()=>{}};return{register:(e,n)=>{r[e.name]||(r[e.name]=Qf(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(Jf).forEach((t=>{t.split("__")[0]===e&&(Jf[t]=void 0)}))}(e)}}}const th=["__DO_NOT_USE__"],nh=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)},rh=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))},oh=(e,t)=>({context:nh(e.context,t.context),load:t.load||e.load,snapshot:V({},t.snapshot||e.snapshot),types:rh(e.types,t.types),themes:rh(e.themes,t.themes),flags:nh(e.flags,t.flags),anything:nh(e.anything,t.anything)}),ih=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{__DO_NOT_USE__:t={}}=e,n=Z(e,th),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 ah=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]=bc({app:e,context:i}),s=It({themes:t.themes,root:a}),l={galaxy:{translator:n.translator,flags:jd(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=eh({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,f=null;const h={render:async e=>(await p,e.id?Md(e,c):Pd(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){f||(f=rp({element:t,app:e}),a.add(f))},unmount(){f&&(a.remove(f),f=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=Cp({element:r,app:e,fieldIdentifier:t,options:ih(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=h,c.types=u,h}return r.createConfiguration=n=>e(oh(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()))}}),sh={exports:{}},lh={exports:{}};lh.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]},f=function e(){var t,n,r,o,i,a,s=arguments[0],l=1,f=arguments.length,h=!1;for("boolean"==typeof s&&(h=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<f;++l)if(null!=(t=arguments[l]))for(n in t)r=d(s,n),s!==(o=d(t,n))&&(h&&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(h,a,o)})):void 0!==o&&p(s,{name:n,newValue:o}));return s};const h=globalThis.crypto||{getRandomValues:()=>123456};function m(){return e=>{const t=f({},e);t.qInfo=t.qInfo||{},t.qInfo.qId=t.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^h.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))));const r=t._mock;let o=t;return r&&(delete t._mock,o=f({},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 w(){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 L(){return()=>Promise.resolve({id:"app-layout"})}const k={fromGenericObjects(t){return function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=new e,o=new m,i=new w(t,n),a=new L,s={id:"app - ".concat(+Date.now()),session:r,createSessionObject:o,getObject:i,getAppLayout:a};return Promise.resolve(s)}(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}};return k}();var ch=H(sh.exports=lh.exports);const uh={generator:Zf,hook:uf,theme:Rt,locale:Y};export{ch as EnigmaMocker,uh as __DO_NOT_USE__,Up as conversion,ah as embed,Nf as onContextMenu,Df as onTakeSnapshot,If as useAction,Cf as useApp,Ef as useAppLayout,_f as useConstraints,Rf as useDeviceType,df as useEffect,gf as useElement,kf as useEmbed,Sf as useGlobal,Af as useImperativeHandle,Mf as useKeyboard,bf as useLayout,hf as useMemo,xf as useModel,Tf as useOptions,qf as usePlugins,mf as usePromise,yf as useRect,Pf as useRenderState,wf as useSelections,vf as useStaleLayout,pf as useState,Lf as useTheme,Of as useTranslator};
|
|
12
|
+
*/function bn(){return bn=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},bn.apply(this,arguments)}function vn(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function En(e,t,n={clone:!0}){const r=n.clone?bn({},e):e;return vn(e)&&vn(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(vn(t[o])&&o in e&&vn(e[o])?r[o]=En(e[o],t[o],n):r[o]=t[o])})),r}function Cn(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."}function xn(e){if("string"!=typeof e)throw new Error(Cn(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Ln=e=>e;var Sn=(()=>{let e=Ln;return{configure(t){e=t},generate:t=>e(t),reset(){e=Ln}}})();const wn={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function On(){return On=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},On.apply(this,arguments)}function qn(e,t){return t?En(e,t,{clone:!1}):e}const Rn={xs:0,sm:600,md:900,lg:1200,xl:1536},kn={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Rn[e]}px)`};function In(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||kn;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||kn;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||Rn).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function _n(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 Dn(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:_n(e,n)||r,t&&(o=t(o)),o}function Tn(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=_n(e.theme,r)||{};return In(e,i,(e=>{let r=Dn(a,o,e);return e===r&&"string"==typeof e&&(r=Dn(a,o,`${t}${"default"===e?"":xn(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}function An(...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]?qn(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}const Pn={m:"margin",p:"padding"},Nn={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Mn={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},jn=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!Mn[e])return[e];e=Mn[e]}const[t,n]=e.split(""),r=Pn[t],o=Nn[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),zn=["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 Fn(e,t,n,r){var o;const i=null!=(o=_n(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 Bn(e){return Fn(e,"spacing",8)}function Hn(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 Un(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Hn(t,n),e)),{})}(jn(n),r);return In(e,e[n],o)}function Wn(e){return function(e,t){const n=Bn(e.theme);return Object.keys(e).map((r=>Un(e,t,r,n))).reduce(qn,{})}(e,zn)}function $n(e){return"number"!=typeof e?e:`${e}px solid`}Wn.propTypes={},Wn.filterProps=zn;const Vn=Tn({prop:"border",themeKey:"borders",transform:$n}),Gn=Tn({prop:"borderTop",themeKey:"borders",transform:$n}),Kn=Tn({prop:"borderRight",themeKey:"borders",transform:$n}),Zn=Tn({prop:"borderBottom",themeKey:"borders",transform:$n}),Xn=Tn({prop:"borderLeft",themeKey:"borders",transform:$n}),Jn=Tn({prop:"borderColor",themeKey:"palette"}),Yn=Tn({prop:"borderTopColor",themeKey:"palette"}),Qn=Tn({prop:"borderRightColor",themeKey:"palette"}),er=Tn({prop:"borderBottomColor",themeKey:"palette"}),tr=Tn({prop:"borderLeftColor",themeKey:"palette"}),nr=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Fn(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Hn(t,e)});return In(e,e.borderRadius,n)}return null};nr.propTypes={},nr.filterProps=["borderRadius"];var rr=An(Vn,Gn,Kn,Zn,Xn,Jn,Yn,Qn,er,tr,nr);var or=An(Tn({prop:"displayPrint",cssProperty:!1,transform:e=>({"@media print":{display:e}})}),Tn({prop:"display"}),Tn({prop:"overflow"}),Tn({prop:"textOverflow"}),Tn({prop:"visibility"}),Tn({prop:"whiteSpace"}));var ir=An(Tn({prop:"flexBasis"}),Tn({prop:"flexDirection"}),Tn({prop:"flexWrap"}),Tn({prop:"justifyContent"}),Tn({prop:"alignItems"}),Tn({prop:"alignContent"}),Tn({prop:"order"}),Tn({prop:"flex"}),Tn({prop:"flexGrow"}),Tn({prop:"flexShrink"}),Tn({prop:"alignSelf"}),Tn({prop:"justifyItems"}),Tn({prop:"justifySelf"}));const ar=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Fn(e.theme,"spacing",8),n=e=>({gap:Hn(t,e)});return In(e,e.gap,n)}return null};ar.propTypes={},ar.filterProps=["gap"];const sr=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Fn(e.theme,"spacing",8),n=e=>({columnGap:Hn(t,e)});return In(e,e.columnGap,n)}return null};sr.propTypes={},sr.filterProps=["columnGap"];const lr=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Fn(e.theme,"spacing",8),n=e=>({rowGap:Hn(t,e)});return In(e,e.rowGap,n)}return null};lr.propTypes={},lr.filterProps=["rowGap"];var cr=An(ar,sr,lr,Tn({prop:"gridColumn"}),Tn({prop:"gridRow"}),Tn({prop:"gridAutoFlow"}),Tn({prop:"gridAutoColumns"}),Tn({prop:"gridAutoRows"}),Tn({prop:"gridTemplateColumns"}),Tn({prop:"gridTemplateRows"}),Tn({prop:"gridTemplateAreas"}),Tn({prop:"gridArea"}));var ur=An(Tn({prop:"color",themeKey:"palette"}),Tn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),Tn({prop:"backgroundColor",themeKey:"palette"}));var pr=An(Tn({prop:"position"}),Tn({prop:"zIndex",themeKey:"zIndex"}),Tn({prop:"top"}),Tn({prop:"right"}),Tn({prop:"bottom"}),Tn({prop:"left"}));var dr=Tn({prop:"boxShadow",themeKey:"shadows"});function fr(e){return e<=1&&0!==e?100*e+"%":e}const hr=Tn({prop:"width",transform:fr}),mr=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])||Rn[t]||fr(t)}};return In(e,e.maxWidth,t)}return null};mr.filterProps=["maxWidth"];const gr=Tn({prop:"minWidth",transform:fr}),yr=Tn({prop:"height",transform:fr}),br=Tn({prop:"maxHeight",transform:fr}),vr=Tn({prop:"minHeight",transform:fr});Tn({prop:"size",cssProperty:"width",transform:fr}),Tn({prop:"size",cssProperty:"height",transform:fr});var Er=An(hr,mr,gr,yr,br,vr,Tn({prop:"boxSizing"}));const Cr=Tn({prop:"fontFamily",themeKey:"typography"}),xr=Tn({prop:"fontSize",themeKey:"typography"}),Lr=Tn({prop:"fontStyle",themeKey:"typography"}),Sr=Tn({prop:"fontWeight",themeKey:"typography"}),wr=Tn({prop:"letterSpacing"}),Or=Tn({prop:"textTransform"}),qr=Tn({prop:"lineHeight"}),Rr=Tn({prop:"textAlign"});var kr=An(Tn({prop:"typography",cssProperty:!1,themeKey:"typography"}),Cr,xr,Lr,Sr,wr,qr,Rr,Or);const Ir={borders:rr.filterProps,display:or.filterProps,flexbox:ir.filterProps,grid:cr.filterProps,positions:pr.filterProps,palette:ur.filterProps,shadows:dr.filterProps,sizing:Er.filterProps,spacing:Wn.filterProps,typography:kr.filterProps},_r={borders:rr,display:or,flexbox:ir,grid:cr,positions:pr,palette:ur,shadows:dr,sizing:Er,spacing:Wn,typography:kr};Object.keys(Ir).reduce(((e,t)=>(Ir[t].forEach((n=>{e[n]=_r[t]})),e)),{});const Dr=function(e=_r){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==(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=qn(l,n(r,a,i));else{const t=In({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=qn(l,t):l[r]=e({sx:a,theme:i})}else l=qn(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)}}();Dr.filterProps=["sx"];var Tr=Dr;function Ar(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}const Pr=["values","unit","step"];function Nr(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Ar(e,Pr),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)=>On({},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 On({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)}var Mr={borderRadius:4};function jr(e=8){if(e.mui)return e;const t=Bn({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 zr=["breakpoints","palette","spacing","shape"];function Fr(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Ar(e,zr),s=Nr(n),l=jr(o);let c=En({breakpoints:s,direction:"ltr",components:{},palette:On({mode:"light"},r),spacing:l,shape:On({},Mr,i)},a);return c=t.reduce(((e,t)=>En(e,t)),c),c}function Br(){return Br=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},Br.apply(this,arguments)}var Hr=e.createContext(null);function Ur(){return e.useContext(Hr)}var Wr="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function $r(t){const{children:n,theme:r}=t,o=Ur(),i=e.useMemo((()=>{const e=null===o?r:function(e,t){if("function"==typeof t)return t(e);return Br({},e,t)}(o,r);return null!=e&&(e[Wr]=null!==o),e}),[r,o]);return sn.exports.jsx(Hr.Provider,{value:i,children:n})}function Vr(e=null){const t=Ur();return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const Gr=Fr();function Kr(e=Gr){return Vr(e)}const Zr=["variant"];function Xr(e){return 0===e.length}function Jr(e){const{variant:t}=e,n=Ar(e,Zr);let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?Xr(r)?e[t]:xn(e[t]):`${Xr(r)?t:xn(t)}${xn(e[t].toString())}`})),r}const Yr=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],Qr=["theme"],eo=["theme"];function to(e){return 0===Object.keys(e).length}function no(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const ro=Fr();function oo(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function io(e){if(e.type)return e;if("#"===e.charAt(0))return io(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(Cn(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(Cn(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function ao(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 so(e){let t="hsl"===(e=io(e)).type||"hsla"===e.type?io(function(e){e=io(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])),ao({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 lo(e){const t=Kr();return sn.exports.jsx(g.Provider,{value:"object"==typeof t?t:{},children:e.children})}function co(e){const{children:t,theme:n}=e;return sn.exports.jsx($r,{theme:n,children:sn.exports.jsx(lo,{children:t})})}const uo=["defaultProps","mixins","overrides","palette","props","styleOverrides"],po=["type","mode"];var fo={black:"#000",white:"#fff"};var ho={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};var mo={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var go={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var yo={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var bo={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var vo={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var Eo={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};const Co=["mode","contrastThreshold","tonalOffset"],xo={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:fo.white,default:fo.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}},Lo={text:{primary:fo.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:fo.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 So(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=io(e),t=oo(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 ao(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=io(e),t=oo(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 ao(e)}(e.main,i)))}function wo(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=ot(e,Co),i=e.primary||function(e="light"){return"dark"===e?{main:bo[200],light:bo[50],dark:bo[400]}:{main:bo[700],light:bo[400],dark:bo[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:mo[200],light:mo[50],dark:mo[400]}:{main:mo[500],light:mo[300],dark:mo[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:go[500],light:go[300],dark:go[700]}:{main:go[700],light:go[400],dark:go[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:vo[400],light:vo[300],dark:vo[700]}:{main:vo[700],light:vo[500],dark:vo[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:Eo[400],light:Eo[300],dark:Eo[700]}:{main:Eo[800],light:Eo[500],dark:Eo[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:yo[400],light:yo[300],dark:yo[700]}:{main:"#ed6c02",light:yo[500],dark:yo[900]}}(t);function p(e){const t=function(e,t){const n=so(e),r=so(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Lo.text.primary)>=n?Lo.text.primary:xo.text.primary;return t}const d=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=rt({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Cn(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Cn(12,t?` (${t})`:"",JSON.stringify(e.main)));return So(e,"light",o,r),So(e,"dark",i,r),e.contrastText||(e.contrastText=p(e.main)),e},f={dark:Lo,light:xo};return En(rt({common:rt({},fo),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:ho,contrastThreshold:n,getContrastText:p,augmentColor:d,tonalOffset:r},f[t]),o)}const Oo=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const qo={textTransform:"uppercase"},Ro='"Roboto", "Helvetica", "Arial", sans-serif';function ko(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Ro,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:p}=n,d=ot(n,Oo),f=o/14,h=p||(e=>e/c*f+"rem"),m=(e,t,n,o,i)=>{return rt({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===Ro?{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,qo),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,qo)};return En(rt({htmlFontSize:c,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),d,{clone:!1})}function Io(...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(",")}var _o=["none",Io(0,2,1,-1,0,1,1,0,0,1,3,0),Io(0,3,1,-2,0,2,2,0,0,1,5,0),Io(0,3,3,-2,0,3,4,0,0,1,8,0),Io(0,2,4,-1,0,4,5,0,0,1,10,0),Io(0,3,5,-1,0,5,8,0,0,1,14,0),Io(0,3,5,-1,0,6,10,0,0,1,18,0),Io(0,4,5,-2,0,7,10,1,0,2,16,1),Io(0,5,5,-3,0,8,10,1,0,3,14,2),Io(0,5,6,-3,0,9,12,1,0,3,16,2),Io(0,6,6,-3,0,10,14,1,0,4,18,3),Io(0,6,7,-4,0,11,15,1,0,4,20,3),Io(0,7,8,-4,0,12,17,2,0,5,22,4),Io(0,7,8,-4,0,13,19,2,0,5,24,4),Io(0,7,9,-4,0,14,21,2,0,5,26,4),Io(0,8,9,-5,0,15,22,2,0,6,28,5),Io(0,8,10,-5,0,16,24,2,0,6,30,5),Io(0,8,11,-5,0,17,26,2,0,6,32,5),Io(0,9,11,-5,0,18,28,2,0,7,34,6),Io(0,9,12,-6,0,19,29,2,0,7,36,6),Io(0,10,13,-6,0,20,31,3,0,8,38,7),Io(0,10,13,-6,0,21,33,3,0,8,40,7),Io(0,10,14,-6,0,22,35,3,0,8,42,7),Io(0,11,14,-7,0,23,36,3,0,9,44,8),Io(0,11,15,-7,0,24,38,3,0,9,46,8)];const Do=["duration","easing","delay"],To={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)"},Ao={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Po(e){return`${Math.round(e)}ms`}function No(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Mo(e){const t=rt({},To,e.easing),n=rt({},Ao,e.duration);return rt({getAutoHeightDuration:No,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return ot(r,Do),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Po(o)} ${i} ${"string"==typeof a?a:Po(a)}`)).join(",")}},e,{easing:t,duration:n})}var jo={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const zo=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Fo(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=ot(e,zo);if(e.vars)throw new Error(Cn(18));const s=wo(r),l=Fr(e);let c=En(l,{mixins:(u=l.breakpoints,p=n,rt({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},p)),palette:s,shadows:_o.slice(),typography:ko(s,i),transitions:Mo(o),zIndex:rt({},jo)});var u,p;return c=En(c,a),c=t.reduce(((e,t)=>En(e,t)),c),c}var Bo=Fo();function Ho(){return Kr(Bo)}const Uo=function(e={}){const{defaultTheme:t=ro,rootShouldForwardProp:n=no,slotShouldForwardProp:r=no,styleFunctionSx:o=Tr}=e,i=e=>{const n=to(e.theme)?t:e.theme;return o(On({},e,{theme:n}))};return i.__mui_systemSx=!0,(e,o={})=>{((e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))})(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:a,slot:s,skipVariantsResolver:l,skipSx:c,overridesResolver:u}=o,p=Ar(o,Yr),d=void 0!==l?l:s&&"Root"!==s||!1,f=c||!1;let h=no;"Root"===s?h=n:s?h=r:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(h=void 0);const m=function(e,t){return j(e,t)}(e,On({shouldForwardProp:h,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=Ar(n,Qr);return e(On({theme:to(r)?t:r},o))}:e)):[];let o=e;a&&u&&r.push((e=>{const n=to(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(On({},e,{theme:n})):o})),u(e,t)}return null})),a&&!d&&r.push((e=>{const n=to(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[Jr(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=Jr(e.props);r[t]=e.style})),r})(a,n),n,a)})),f||r.push(i);const s=r.length-n.length;if(Array.isArray(e)&&s>0){const t=new Array(s).fill("");o=[...e,...t],o.raw=[...e.raw,...t]}else"function"==typeof e&&e.__emotion_real!==e&&(o=n=>{let{theme:r}=n,o=Ar(n,eo);return e(On({theme:to(r)?t:r},o))});return m(o,...r)};return m.withConfig&&(g.withConfig=m.withConfig),g}}({defaultTheme:Bo,rootShouldForwardProp:e=>no(e)&&"classes"!==e});var Wo=Uo;function $o(){return $o=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},$o.apply(this,arguments)}function Vo(e,t){return Vo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Vo(e,t)}function Go(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Ko=function(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=function(e,t,n="Mui"){const r=wn[t];return r?`${n}-${r}`:`${Sn.generate(e)}-${t}`}(e,t,n)})),r}("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Zo={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 Xo="#009845",Jo="#3F8AB3",Yo="#ffffff",Qo="#404040",ei="#333333",ti="#1A1A1A",ni={mode:"light",palette:{primary:{main:Qo,contrastText:Yo},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:Qo,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)"},action:{active:Qo,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:Yo,default:Yo,lightest:Yo,lighter:"#FBFBFB",darker:"#F2F2F2",darkest:"#E6E6E6"},custom:{focusBorder:Jo,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)"},selected:{main:Xo,alternative:"#E4E4E4",excluded:"#BEBEBE",mainContrastText:Yo,alternativeContrastText:Qo,excludedContrastText:Qo},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)"}}},ri={mode:"dark",palette:{primary:{main:ei,contrastText:Yo},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:Yo,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)"},action:{active:Yo,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:Qo,lighter:ei,darker:"#262626",darkest:ti},custom:{focusBorder:Jo,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)"},selected:{main:Xo,alternative:ei,excluded:ti,mainContrastText:Yo,alternativeContrastText:Yo,excludedContrastText:Yo},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)"}}},oi={},ii=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(Ko.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(Ko.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(Ko.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(Ko.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function ai(e){let t=ni,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=ri));const r=JSON.stringify(t);if(oi[r])return oi[r];const o={palette:B(B({type:t.mode},Zo.palette),t.palette),typography:B({},Zo.typography),shadows:Zo.shadows,props:B({},Zo.props),shape:B({},Zo.shape)};return oi[r]=Fo(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:i={},styleOverrides:a={}}=e,s=rt({},ot(e,uo),{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=jr(e.spacing);const l=Nr(e.breakpoints||{}),c=s.spacing;s.mixins=rt({gutters:(e={})=>rt({paddingLeft:c(2),paddingRight:c(2)},e,{[l.up("sm")]:rt({paddingLeft:c(3),paddingRight:c(3)},e[l.up("sm")])})},n);const{type:u,mode:p}=o,d=ot(o,po),f=p||u||"light";return s.palette=rt({text:{hint:"dark"===f?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:f,type:f},d),s}(B(B({},o),{},{overrides:ii(o)}))),oi[r].name=n,oi[r]}Sn.configure((e=>"njs-".concat("85ad","-").concat(e.replace("Mui",""))));var si=t.createContext({language:null,theme:null,translator:null,constraints:{}}),li=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};const o=e,i=[],a={get:e=>o[e],set:(e,n)=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));return o[e]=n,t({type:"SET",value:n}),n},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]=n(o);return r((()=>(i.push(e),()=>{const t=i.indexOf(e);i.splice(t,1)})),[e]),[a]};return[s,a]};const[ci,ui]=li({}),[pi,di]=li({}),[fi,hi]=li({}),[mi,gi]=li({}),[yi,bi]=li({}),[,vi]=li({}),Ei=e=>{let{type:t,value:n}=e;const r=vi.get(n.id);vi.set(n.id,{});const o=()=>{di.clear(n.id),bi.set(n.id,{}),bi.dispatch(!0)},i=()=>{n.removeListener("changed",o),ui.clear(n.id),di.clear(n.id),hi.clear(n.id),gi.clear(n.id),bi.clear(n.id),vi.clear(n.id)};if("SET"===t)r||(n.on("changed",o),n.once("closed",(()=>{i()})));return i},[Ci,xi]=li({},Ei),Li=(e,t)=>{const{rpcResultStore:n,key:r,method:o}=t;let i;switch(t.type){case"INVALID":i=B(B({},e),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":i={result:B({},t.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":i=B(B({},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 Si(e,t){const n=e?"".concat(e.id):null,[i]=ci(),[a,s]=o(Li,n?i.get(n):null),[l]=yi(),[c]=pi();let u;n&&(u=c.get(n),u||(u={},c.set(n,u)));const p=async r=>{let o=u[t];if(!o||o&&o.rpcRetry){o={rpc:e[t](),rpcRetry:!1},u[t]=o,s({type:"INVALID",method:t,key:n,model:e,rpcResultStore:i,canCancel:!0})}try{const r=await o.rpc;s({type:"VALID",result:r,key:n,method:t,model:e,rpcResultStore:i})}catch(e){15!==e.code||r||(o.rpcRetry||(o.rpcRetry=!0),p(!0))}},d={cancel:async()=>{const r=e.session.getObjectApi({handle:-1});await r.cancelRequest(u[t].rpc.requestId),s({type:"CANCELLED",key:n,method:t,model:e,rpcResultStore:i})},retry:()=>{u[t].rpcRetry=!0,p()}};return r((()=>{e&&p()}),[e,l.get(e&&e.id),n,t]),[a&&a.result,{validating:a&&a.validating,canCancel:a&&a.canCancel,canRetry:a&&a.canRetry},d]}function wi(e){return Si(e,"getLayout")}function Oi(e){return Si(e,"getAppLayout")}function qi(e,t){const o=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[i]=Ci(),[a]=fi(),[s,l]=n();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 r((()=>{if(!t)return;(async()=>{if(!c){const n=t.createSessionObject(e);c=n,a.set(o,c)}const n=await c;i.set(o,n),l(n)})()}),[t,...p]),[s]}const Ri={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function ki(e){return qi(Ri,e)}function Ii(e){const[t]=ki(e),[o]=wi(t),[i]=Oi(e),[a,s]=n(null);return r((()=>{i&&t&&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)})(t,o,i)}),[i,t,o]),r((()=>{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,t,o]}const[_i,Di]=li({}),[Ti,Ai]=li({}),[Pi,Ni]=li({}),[Mi,ji]=li({});function zi(e){if(!e.session)return[];const[t,n,o]=Ii(e),[i]=_i(),a=e?e.id:null;let s=i.get(a);return r((()=>{e&&n&&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=ji.get(o);t&&(await t.endSelections(e),ji.clear(o),Ni.get(t.id).emit("deactivated"))},a={begin:async function(e,n){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e===ji.get(o))return;i(r),ji.set(o,e);const a=Array.isArray(n)?n:[n],s=async n=>{try{await e.beginSelections(a),ji.set(o,e)}catch(e){6003!==e.code||n?ji.clear(o):(await t.abortModal(r),s(!0))}};await s()},end:i};Ai.set(o,a);const s={model:t,isInModal:()=>!!ji.get(o),isModal:e=>e?ji.get(o)===e:!!ji.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:o,navState:t}),i.set(a,s),i.dispatch(!0))}),[e,n,o,t]),[s,t]}const Fi=i(((e,r)=>{let{initialContext:o,app:i}=e;const[l]=zi(i),[c,u]=n(o),[p,d]=n(),{theme:f}=a((()=>({theme:ai(p)})),[p]),[h,m]=n([]);return s(r,(()=>({addComponent(e){m([...h,e])},removeComponent(e){const t=h.indexOf(e);-1!==t&&(h.splice(t,1),m([...h]))},setMuiThemeName:d,setContext:u,getAppSelections:()=>l}))),t.createElement(yn,{injectFirst:!0},t.createElement(co,{theme:f},t.createElement(si.Provider,{value:c},h)))}));function Bi(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.4"),s.setAttribute("data-app-id",r.id),document.body.appendChild(s),h.render(t.createElement(Fi,{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 Hi(){const[e,t]=n(),[r,o]=n(),i=l((e=>{e&&t(e)}),[]),a=()=>{const{left:t,top:n,width:r,height:i}=e.getBoundingClientRect();o({left:t,top:n,width:r,height:i})};return c((()=>{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 Ui(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function Wi(e){let{size:n,style:r={},viewBox:o="0 0 16 16",shapes:i=[]}=e;const a=B({fontSize:Ui(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,U({key:n},o))}))))}var $i=e=>Wi((e=>B(B({},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 Vi=e=>Wi((e=>B(B({},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 Gi=e=>Wi((e=>B(B({},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)),Ki=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Zi(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||Ki(r)&&Ki(o)))return!1;var r,o;return!0}function Xi(e,t){var n;void 0===t&&(t=Zi);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 Ji="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function Yi(e){cancelAnimationFrame(e.id)}var Qi=null;function ea(e){if(void 0===e&&(e=!1),null===Qi||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?Qi="positive-descending":(t.scrollLeft=1,Qi=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),Qi}return Qi}var ta=function(e,t){return e};function na(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,d=e.validateProps;return t=function(e){var t,p;function f(t){var r;return(r=e.call(this,t)||this)._instanceProps=l(r.props,Go(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Go(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=Xi((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=Xi((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),f="horizontal"===a||"horizontal"===l,h="rtl"===a,m=f?p:0;u[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:p,height:f?"100%":d,width:f?d:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=Xi((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(ea()){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&&Yi(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=(e=r._resetIsScrolling,t=150,n=Ji(),o={id:requestAnimationFrame((function r(){Ji()-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}p=e,(t=f).prototype=Object.create(p.prototype),t.prototype.constructor=t,Vo(t,p),f.getDerivedStateFromProps=function(e,t){return ra(e,t),d(e),null};var h=f.prototype;return h.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)},h.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))},h.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()},h.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(ea()){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()},h.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&Yi(this._resetIsScrollingTimeoutId)},h.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,p=e.itemData,d=e.itemKey,f=void 0===d?ta:d,h=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"===h,x=C?this._onScrollHorizontal:this._onScrollVertical,L=this._getRangeToRender(),S=L[0],w=L[1],O=[];if(c>0)for(var q=S;q<=w;q++)O.push(u(t,{data:p,key:f(q,p),index:q,isScrolling:b?E:void 0,style:this._getItemStyle(q)}));var R=r(this.props,this._instanceProps);return u(m||g||"div",{className:n,onScroll:x,ref:this._outerRefSetter,style:$o({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},y)},u(s||l||"div",{children:O,ref:a,style:{height:C?"100%":R,pointerEvents:E?"none":void 0,width:C?R:"100%"}}))},h._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)}},h._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]},f}(p),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var ra=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},oa=na({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),f=Math.max(0,t*s-u+s);switch("smart"===n&&(n=r>=f-u&&r<=d+u?"auto":"center"),n){case"start":return d;case"end":return f;case"center":var h=Math.round(f+(d-f)/2);return h<Math.ceil(u/2)?0:h>p+Math.floor(u/2)?p:h;default:return r>=f&&r<=d?r:r<f?f: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 ia=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},aa=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}}(),sa=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},la=function(e){function t(){var e,n,r;ia(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=sa(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},sa(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,p),aa(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 ca=["S","XS"],ua=e=>e.reduce(((e,t)=>e.concat(t)));function pa(e){return ca.includes(e)}function da(e){return Array.isArray(e)?Array.from(new Set(e)):void 0}async function fa(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 ha(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 ma(e){let{layout:t,selections:o,pages:i=[],checkboxes:a=!1,selectDisabled:s,doc:c=document,isSingleSelect:u=!1}=e;const[p,d]=n(i),[f,h]=n(!1),[m,g]=n(!1),[y,b]=n(u),[v,E]=n([]),[C,x]=n(!1),[L,S]=n([]),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 ua(t)}(i);r((()=>{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(s())return;g(!0);const n=t?e.filter((e=>!v.includes(e))):e;await fa({selections:o,elemNumbers:n,isSingleSelect:y}),g(!1),S([])},q=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];s()||S((n=>{const r=da([...n,...e]),o=t?r.filter((e=>!v.includes(e))):r;return t?ha(r,w):o}))},R=e=>{(e.ctrlKey||e.metaKey)&&(b(!0),e.currentTarget.focus(),e.preventDefault())},k=l((e=>{if(m||s())return;const t=+e.currentTarget.getAttribute("data-n");S([t]),R(e)}),[m,s]),I=l((e=>{if(m||s())return;x(!1),h(!0);const t=+e.currentTarget.getAttribute("data-n");S([t]),R(e)}),[m,s]),_=l((e=>{const t=+e.currentTarget.getAttribute("data-n");y||!f||m||1===L.length&&L[0]===t||q([t])}),[f,m,L,v,C,s]),D=l((()=>{h(!1),g(!1),x(!1),b(u)}),[u]),T=l((e=>{if(y||!f||m||s())return;x(!0);const t=+e.currentTarget.getAttribute("data-n");q([t],!0)}),[f,m,C,L,v,s,t&&t.qListObject.qDimensionInfo.qIsOneAndOnlyOne]);r((()=>{const e=!f;L&&L.length&&!m&&e&&t&&O(L,C)}),[L,f,s()]),r((()=>(c.addEventListener("mouseup",D),()=>{c.removeEventListener("mouseup",D)})),[D]),r((()=>{if(m||f)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!!pa(t.qState)&&t.qElemNumber}));return t.filter((e=>!1!==e))}));return ua(t)}(i);E(e)}),[i]),r((()=>{if(m||!i||!a&&!f)return;const e=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=e=>t.length<=1&&pa(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,[B(B({},o),{},{qState:a}),e.slice(1)]}));return B(B({},e),{},{qMatrix:o})}));return o}(i,L,y);d(e)}),[L]);const A={};return a?Object.assign(A,{onClick:k}):Object.assign(A,{onMouseUp:_,onMouseDown:I,onMouseEnter:T}),{instantPages:p,interactionEvents:A,select:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];x(!1),h(!0),q(e,t||C);const n=O(e,t||C);return h(!1),n}}}const ga=e=>B(B({},e),{},{shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]});var ya=e=>Wi(ga(e));const ba="ListBoxCheckbox",va={cbIcon:"".concat(ba,"-cbIcon"),cbIconChecked:"".concat(ba,"-cbIconChecked"),cbIconExcluded:"".concat(ba,"-cbIconExcluded"),cbIconAlternative:"".concat(ba,"-cbIconAlternative"),checkbox:"".concat(ba,"-checkbox"),dense:"".concat(ba,"-dense")},Ea=Wo(y)((e=>{let{theme:t}=e;return{["& .".concat(va.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(va.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(va.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:t.palette.selected.excluded},["& .".concat(va.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:t.palette.selected.alternative},["&.".concat(va.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(va.dense)]:{padding:"4px 8px"}}})),Ca=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 xa(e){let{checked:n,label:r,dense:o,excluded:i,showGray:a=!0}=e;return t.createElement(Ea,{edge:"start",checked:n,disableRipple:!0,className:[va.checkbox,o&&va.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":r},name:r,icon:Ca(va,a,i),checkedIcon:t.createElement("span",{className:va.cbIconChecked})})}const La={denseRadioButton:"".concat("ListBoxRadioButton","-denseRadioButton"),radioButton:"".concat("ListBoxRadioButton","-radioButton")},Sa=Wo(b)((()=>({["&.".concat(La.radioButton)]:{right:"5px"}})));function wa(e){let{checked:n,label:r,dense:o}=e;return t.createElement(Sa,{checked:n,value:r,name:r,className:La.radioButton,style:{backgroundColor:"transparent"},disableRipple:!0,size:o?"small":"medium",sx:o&&{padding:"0px 0px 0px 12px"}})}const Oa=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===Oa.ARROW_UP||e===Oa.ARROW_DOWN||e===Oa.ARROW_LEFT||e===Oa.ARROW_RIGHT});function qa(e){let{setKeyboardActive:t}=e;return e=>{const{keyCode:n}=e.nativeEvent;switch(n){case Oa.ENTER:case Oa.SPACE:if(!e.target.classList.contains("listbox-container"))return;(e=>{const n=e.querySelector(".search input, .value.selector, .value");t(!0),n&&n.focus()})(e.currentTarget);break;case Oa.ESCAPE:r=e.currentTarget,t(!1),r.focus();break;default:return}var r;e.preventDefault()}}const Ra="RowColumn",ka={row:"".concat(Ra,"-row"),rowBorderBottom:"".concat(Ra,"-rowBorderBottom"),column:"".concat(Ra,"-column"),fieldRoot:"".concat(Ra,"-fieldRoot"),cell:"".concat(Ra,"-cell"),labelText:"".concat(Ra,"-labelText"),labelDense:"".concat(Ra,"-labelDense"),highlighted:"".concat(Ra,"-highlighted"),checkboxLabel:"".concat(Ra,"-checkboxLabel"),icon:"".concat(Ra,"-icon"),S:"".concat(Ra,"-S"),XS:"".concat(Ra,"-XS"),A:"".concat(Ra,"-A"),X:"".concat(Ra,"-X"),frequencyCount:"".concat(Ra,"-frequencyCount"),barContainer:"".concat(Ra,"-barContainer"),bar:"".concat(Ra,"-bar"),barSelected:"".concat(Ra,"-barSelected"),barWithCheckbox:"".concat(Ra,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(Ra,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(Ra,"-excludedTextWithCheckbox")},Ia={width:"100%",overflow:"hidden",textOverflow:"ellipsis"},_a=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}}},Da=Wo("div")((e=>{let{theme:t}=e;return{["& .".concat(ka.row)]:{flexWrap:"nowrap",color:t.palette.text.primary},["& .".concat(ka.rowBorderBottom)]:{borderBottom:"1px solid ".concat(t.palette.divider)},["& .".concat(ka.column)]:{flexWrap:"nowrap",borderRight:"1px solid ".concat(t.palette.divider),color:t.palette.text.primary},["& .".concat(ka.fieldRoot)]:{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"}},["& .".concat(ka.cell)]:{display:"flex",alignItems:"center",minWidth:0,flexGrow:1,paddingLeft:"9px",paddingRight:"9px"},["& .".concat(ka.labelText)]:B({flexBasis:"max-content",lineHeight:"16px",userSelect:"none",whiteSpace:"pre"},Ia),["& .".concat(ka.labelDense)]:{fontSize:12},["& .".concat(ka.highlighted)]:{overflow:"visible",width:"100%","& > span":{width:"100%",backgroundColor:"#FFC72A"}},["& .".concat(ka.checkboxLabel)]:{margin:0,width:"100%",height:"100%","& > span:nth-child(1)":{paddingRight:"8px"},"& > span:nth-child(2)":B(B({},Ia),{},{display:"flex",alignItems:"center",paddingLeft:0})},["& .".concat(ka.icon)]:{display:"flex",padding:t.spacing(1,1,1,0)},["& .".concat(ka.S)]:B({},_a({theme:t})),["& .".concat(ka.XS)]:B(B({},_a({theme:t})),{},{background:t.palette.selected.excluded,color:t.palette.selected.mainContrastText}),["& .".concat(ka.A)]:{background:t.palette.selected.alternative,color:t.palette.selected.alternativeContrastText},["& .".concat(ka.X)]:{background:t.palette.selected.excluded,color:t.palette.selected.excludedContrastText},["& .".concat(ka.frequencyCount)]:{paddingLeft:"8px",paddingRight:"8px"},["&.".concat(ka.barContainer)]:{height:"100%",display:"inline-block"},["& .".concat(ka.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(ka.barSelected)]:{opacity:"30%",zIndex:"0",background:t.palette.background.lighter},["& .".concat(ka.barWithCheckbox)]:{left:"".concat(29,"px")},["& .".concat(ka.barSelectedWithCheckbox)]:{background:"#BFE5D0",borderColor:"#BFE5D0"},["& .".concat(ka.excludedTextWithCheckbox)]:{color:"#828282",fontStyle:"italic"}}}));function Ta(e){let{index:o,style:i,data:a}=e;const{onClick:s,onMouseDown:c,onMouseUp:u,onMouseEnter:p,pages:d,isLocked:f,column:h=!1,checkboxes:m=!1,dense:g=!1,frequencyMode:y="N",isSingleSelect:b,actions:x,frequencyMax:L="",histogram:S=!1,keyboard:w,showGray:O=!0}=a,q=l(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 Oa.SHIFT:a(!0);break;case Oa.SPACE:t([+e.currentTarget.getAttribute("data-n")]);break;case Oa.ARROW_DOWN:case Oa.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 Oa.ARROW_UP:case Oa.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 Oa.ENTER:n();break;case Oa.ESCAPE:return void r();default:return}s&&s.focus(),e.preventDefault(),e.stopPropagation()}}(x),[x]),[R,k]=n(!1),[I,_]=n(),[D,T]=n([]);r((()=>{if(!d)return;let e;const t=d.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])}_(e)}),[d]);const A=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,P=e=>e?"A"===e.qState:null;r((()=>{if(!I)return;const e="S"===I.qState||"XS"===I.qState||"L"===I.qState;k(e);const t=[h?ka.column:ka.row];S&&g||t.push(ka.rowBorderBottom),m||("XS"===I.qState?t.push(O?ka.XS:ka.S):"S"===I.qState||"L"===I.qState?t.push(ka.S):O&&P(I)?t.push(ka.A):O&&A(I)&&t.push(ka.X)),T(t)}),[I&&I.qState]);const N=e=>e.filter((e=>!!e)).join(" ").trim(),M=()=>(P(I)||A(I))&&m,j=e=>{let{lbl:n,ix:r,color:o,highlighted:i=!1}=e;return t.createElement(E,{component:"span",variant:"body2",key:r,className:N([ka.labelText,i&&ka.highlighted,g&&ka.labelDense,O&&M()&&ka.excludedTextWithCheckbox]),color:o},t.createElement("span",{style:{whiteSpace:"pre"}},n))},z=e=>{let{lbl:n,color:r,qElemNumber:o}=e;const i=t.createElement(xa,{label:n,checked:R,dense:g,excluded:A(I),showGray:O}),a=t.createElement(wa,{label:n,checked:R,dense:g}),s="string"==typeof n?j({lbl:n,color:r,highlighted:!1}):n;return t.createElement(C,{color:r,control:b?a:i,className:ka.checkboxLabel,label:s,key:o})},F=I?I.qText:"",B=()=>I?I.qFrequency?I.qFrequency:"0":"",H=I&&I.qHighlightRanges&&I.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[],U=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,H),W=m?z:j,$={alignItems:"center",display:"flex"},V=R&&f,G=!m&&R&&!f,K={display:"flex",alignItems:"center",minWidth:0,flexGrow:1,padding:m?0:void 0},Z=0===o;return t.createElement(Da,{className:ka.barContainer},t.createElement(v,{container:!0,gap:0,className:N(["value",...D]),classes:{root:ka.fieldRoot},style:i,onClick:s,onMouseDown:c,onMouseUp:u,onMouseEnter:p,onKeyDown:q,onContextMenu:e=>{m&&s(e),e.preventDefault()},role:h?"column":"row",tabIndex:!Z||w.enabled&&!w.active?-1:0,"data-n":I&&I.qElemNumber},I&&S&&"0"!==B()&&t.createElement("div",{className:N([ka.bar,m&&ka.barWithCheckbox,R&&(m?ka.barSelectedWithCheckbox:ka.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/L*100,"% - ").concat(o,")")})(I.qFrequency)}}),t.createElement(v,{item:!0,style:K,className:N([ka.cell,ka.selectedCell]),title:"".concat(F)},0===H.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:U})),"N"!==y&&t.createElement(v,{item:!0,style:{display:"flex",alignItems:"center"},className:ka.frequencyCount},t.createElement(E,{noWrap:!0,color:"inherit",variant:"body2",className:N([g&&ka.labelDense,ka.labelText,O&&M()&&ka.excludedTextWithCheckbox])},B())),(V||G)&&t.createElement(v,{item:!0,className:ka.icon},V&&t.createElement(Vi,{style:$,size:"small"}),G&&t.createElement(ya,{style:$,size:"small"}))))}const Aa={styledScrollbars:"".concat("ListBox","-styledScrollbars")},Pa=Wo(oa)((()=>({["&.".concat(Aa.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 Na(e){let{model:o,selections:i,direction:a,height:s,width:c,listLayout:u="vertical",frequencyMode:p="N",histogram:f=!1,checkboxes:h=!1,update:m,fetchStart:g,postProcessPages:y,calculatePagesHeight:b=!1,dense:v=!1,keyboard:E={},showGray:C=!0,scrollState:x,sortByState:L,selectDisabled:S=(()=>!1),setCount:w}=e;const[O]=wi(o),q=!(!O||!O.qListObject.qDimensionInfo.qIsOneAndOnlyOne),[R,k]=n(null),[I,_]=n(!1),{instantPages:D=[],interactionEvents:T,select:A}=ma({layout:O,selections:i,pages:R,checkboxes:h,selectDisabled:S,doc:document,isSingleSelect:q}),P=d(null),N=d({queue:[],validPages:!1}),M=d({pages:[]}),j=l((e=>{if(!R||!N.current.validPages)return!1;N.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)}),[O,R]),z=l(((e,t)=>{N.current.queue.push({start:e,stop:t});!!P.current&&P.current._listRef.state.isScrolling;return N.current.queue.length>10&&N.current.queue.shift(),clearTimeout(N.current.timeout),_(!0),new Promise((e=>{N.current.timeout=setTimeout((()=>{const t=N.current.queue.slice(-1)[0],n=o.getListObjectData("/qListObjectDef",[{qTop:t.start>100?t.start-100:0,qHeight:100,qLeft:0,qWidth:1},{qTop:t.start,qHeight:100,qLeft:0,qWidth:1}]).then((t=>{const n=y?y(t):t;N.current.validPages=!0,M.current.pages=n,k(n),_(!1),e()}));g&&g(n)}),0)}))}),[O]),F=()=>{if(N.current.queue=[],N.current.validPages=!1,P.current){if(P.current.resetloadMoreItemsCache(!0),O&&O.qSelectionInfo.qInSelections||0===L)return;P.current._listRef.scrollToItem(0)}};m&&m.call(null,F),r((()=>{F(),"function"==typeof w&&O&&w(O.qListObject.qSize.qcy)}),[O,O&&O.qListObject.qSize.qcy]),r((()=>{D&&!I&&k(D)}),[D]);const[H,U]=n(!1);if(r((()=>{x&&!H&&P.current&&(P.current._listRef.scrollToItem(x.initScrollPos),U(!0))}),[P.current]),!O)return null;const W="horizontal"!==u,$=O.qListObject.qSize.qcy,V=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:$})(R):$,{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:W,checkboxes:h,dense:v,height:s}),Z=O&&O.qListObject.qDimensionInfo.qLocked,{frequencyMax:X}=O;return t.createElement(la,{isItemLoaded:j,itemCount:V||1,loadMoreItems:z,threshold:0,minimumBatchSize:100,ref:P},(e=>{let{onItemsRendered:n,ref:r}=e;return N.current.listRef=r,t.createElement(Pa,{direction:"rtl"===a?"rtl":"ltr","data-testid":"fixed-size-list",useIsScrolling:!0,height:K,width:c,itemCount:V,layout:u,className:Aa.styledScrollbars,itemData:B(B({isLocked:Z,column:!W,pages:R},Z||S()?{}:T),{},{checkboxes:h,dense:v,frequencyMode:p,isSingleSelect:q,actions:{select:A,confirm:()=>i&&i.confirm.call(i),cancel:()=>i&&i.cancel.call(i)},frequencyMax:X,histogram:f,keyboard:E,showGray:C}),itemSize:G,onItemsRendered:e=>{x&&x.setScrollPos(e.visibleStopIndex),n(B({},e))},ref:r},Ta)}))}const Ma=e=>B(B({},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"}}]}),ja=e=>B(B({},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"}}]}),za=e=>B(B({},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"}}]}),Fa=e=>B(B({},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 Ba=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:Ma,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:za,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:ja,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:Fa,enabled:()=>["qAlternative","qExcluded"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{n.selectListObjectExcluded("/qListObjectDef")}}]};const Ha=e=>B(B({},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 Ua(e){const t=Ho(),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 Wa="njs-cell-action",$a=t.forwardRef(((e,n)=>{let{item:r,addAnchor:o=!1}=e;const i=Ho(),{hidden:a,disabled:s,style:l,hasSvgIconShape:c}=Ua(r);if(a)return null;const u=r.keyboardAction?e=>["Enter"," ","Spacebar"].includes(e.key)&&r.keyboardAction():null;return t.createElement(x,{ref:o?null:n,title:r.label,onClick:r.action,onKeyDown:u,disabled:s,style:l,className:Wa,size:"large"},c&&Wi(r.getSvgIconShape()),o&&t.createElement("div",{ref:n,style:{bottom:-i.spacing(.5),right:0,position:"absolute",width:"100%",height:0}}))})),Va=e=>B(B({},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"}}]}),Ga=e=>B(B({},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 Ka=e=>Wi(Ga(e));const Za={icon:"".concat("More","-icon")},Xa=Wo(L)((e=>{let{theme:t}=e;return{["& .".concat(Za.icon)]:{color:t.palette.text.primary}}}));function Ja(e){let{item:n,onActionClick:r=(()=>{})}=e;const{hidden:o,disabled:i,hasSvgIconShape:a}=Ua(n);return o?null:t.createElement(w,{title:n.label,onClick:()=>{n.action(),r()},disabled:i},a&&t.createElement(O,{className:Za.icon},Wi(n.getSvgIconShape())),t.createElement(E,{noWrap:!0},n.label))}const Ya=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(Xa,U({},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:B({pointerEvents:"auto",maxWidth:"250px"},s)}}),t.createElement(S,null,r.map(((e,n)=>t.createElement(Ja,{key:n,item:e,onActionClick:l})))))})),Qa={itemSpacing:"".concat("ActionsToolbar","-itemSpacing"),firstItemSpacing:"".concat("ActionsToolbar","-firstItemSpacing"),lastItemSpacing:"".concat("ActionsToolbar","-lastItemSpacing")},es=Wo(L)((e=>{let{theme:t}=e;return{["& .".concat(Qa.itemSpacing)]:{padding:t.spacing(0,.5)},["& .".concat(Qa.firstItemSpacing)]:{padding:t.spacing(0,.5,0,0)},["& .".concat(Qa.lastItemSpacing)]:{padding:t.spacing(0,0,0,.5)}}})),ts="njs-action-toolbar-popover",ns=t.forwardRef(((e,n)=>{let{actions:r=[],first:o=!1,last:i=!1,addAnchor:a=!1}=e;return r.length>0?t.createElement(v,{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=[Qa.firstItemSpacing]),u&&!c&&(l=[...l,Qa.lastItemSpacing]),c||u||0!==l.length||(l=[Qa.itemSpacing]),t.createElement(v,{item:!0,key:e.key,className:l.join(" ").trim()},t.createElement($a,{key:e.key,item:e,ref:0===s?n:null,addAnchor:a}))}))):null})),rs={pointerEvents:"none"},os={vertical:"top",horizontal:"right"},is={vertical:"bottom",horizontal:"right"};function as(e){let{show:o=!0,actions:i=[],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:p=null,actionsRefMock:h=null}=e;const m=function(e){let{api:t,onConfirm:n=(()=>{}),onCancel:r=(()=>{}),onKeyDeactivate:o=(()=>{})}=e;const{translator:i}=f(si);return[{key:"clear",type:"icon-button",label:i.get("Selection.Clear"),enabled:()=>t.canClear(),action:()=>t.clear(),getSvgIconShape:Ga},{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:Va},{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:ga}]}(l),{translator:g,keyboardNavigation:y}=f(si),[b,E]=n(!1),[C,x]=n(c.enabled),[L,S]=n(c.actions),[w,O]=n(c.alignTo),R=d(),k=d(),I=Ho(),_=a((()=>({margin:I.spacing(.5,0)}))),D=e=>{const t=k.current||h;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]};r((()=>()=>E(!1)),[u.show]),r((()=>{x(c.enabled)}),[c.enabled]),r((()=>{if(!p)return;p.on("focus_toolbar_first",(()=>{const e=D(!1);e&&e.focus()})),p.on("focus_toolbar_last",(()=>{const e=D(!0);e&&e.focus()}))}),[]);const T=a((()=>i.filter((e=>!e.hidden))),[i]);if(!l.show&&0===T.length)return null;const A={key:"more",label:g.get("Menu.More"),getSvgIconShape:Ha,hidden:!1,enabled:()=>C,action:()=>E(!b)};if(T.length>s){const e=T.splice(-(T.length-s)-1);x(!0),S([...e,...c.actions]),O(R)}const P=y&&p&&p.refocusContent?e=>{if("Tab"!==e.key)return;(e.shiftKey&&D(!1)===e.target||!e.shiftKey&&D(!0)===e.target)&&(e.preventDefault(),e.stopPropagation(),p.refocusContent())}:null,N=T.length>0,M=L.length>0,j=N&&l.show||M&&l.show,z=t.createElement(v,{ref:k,onKeyDown:P,container:!0,gap:0,wrap:"nowrap"},N&&t.createElement(ns,{actions:T,first:!0,last:!M&&!l.show}),M&&t.createElement(ns,{ref:R,actions:[A],first:!N,last:!l.show,addAnchor:!0}),j&&t.createElement(v,{item:!0,className:Qa.itemSpacing,style:_},t.createElement(q,{orientation:"vertical"})),l.show&&t.createElement(ns,{actions:m,first:!N&&!M,last:!0}),b&&t.createElement(Ya,{show:b,actions:L,alignTo:w,popoverProps:c.popoverProps,popoverPaperStyle:c.popoverPaperStyle,onCloseOrActionClick:()=>{E(!1)}}));return u.show?t.createElement(es,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:u.show,anchorEl:u.anchorEl,anchorOrigin:os,transformOrigin:is,hideBackdrop:!0,style:rs,PaperProps:{className:ts,style:{pointerEvents:"auto",padding:I.spacing(1,1)}}},z):o&&z}var ss=e=>Wi((e=>B(B({},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 ls(e){let{selections:o,model:i,keyboard:a,dense:s=!1,visible:l=!0}=e;const{translator:c}=f(si),[u,p]=n(""),d=Ho(),h=async()=>{if(o.isModal())try{await i.abortListObjectSearch("/qListObjectDef")}finally{p("")}};r((()=>{l||h()}),[l]),r((()=>(o.on("deactivated",h),()=>{o.removeListener&&o.removeListener("deactivated",h)})),[]);return l?t.createElement(R,{startAdornment:t.createElement(k,{position:"start"},t.createElement(ss,{size:s?"small":"normal"})),className:"search",sx:[{border:"none",borderRadius:0,"& fieldset":{border:"1px solid ".concat(d.palette.divider),borderWidth:"1px 0 1px 0",borderRadius:0},"&:hover":{border:"none"}},s&&{fontSize:12,paddingLeft:d.spacing(1),"& input":{paddingTop:"5px",paddingBottom:"5px"}}],size:"small",fullWidth:!0,placeholder:c.get("Listbox.Search"),value:u,onFocus:()=>{o.isModal()||o.begin(["/qListObjectDef"])},onChange:async e=>(p(e.target.value),e.target.value.length?i.searchListObjectFor("/qListObjectDef",e.target.value):h()),onKeyDown:e=>{let t;switch(e.key){case"Enter":t=i.acceptListObjectSearch("/qListObjectDef",!0),p("");break;case"Escape":t=o.isActive()&&o.cancel(),e.preventDefault(),e.stopPropagation()}return t},inputProps:{tabIndex:!a||a.enabled&&!a.active?-1:0}}):null}function cs(e){return Object.keys(Y.prototype).forEach((t=>{e[t]=Y.prototype[t]})),Y.init(e),e}function us(e,t){const[n]=zi(e),[o]=wi(t),i=t?t.id:null,[a]=Ti(),[s]=Pi(),l=a.get(e.id);let c=s.get(i);return r((()=>{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 cs(s),s}({appSelections:n,appModal:l,model:t}),s.set(i,c),s.dispatch(!0))}),[n,t]),r((()=>{c&&c.setLayout(o)}),[c,o]),[c]}function ps(e){let{alignTo:n,show:o,close:i,app:a,fieldName:s,stateName:c="$"}=e;const u=o&&Boolean(n.current),p=Ho(),[h]=qi({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:[s]}}},a,s,c),m=l((()=>{h.lock("/qListObjectDef")}),[h]),g=l((()=>{h.unlock("/qListObjectDef")}),[h]),{translator:y}=f(si),b=d(),[E]=us(a,h),[C]=wi(h);if(r((()=>{E&&u&&(E.isModal(h)||E.goModal("/qListObjectDef"))}),[E,u]),!h||!C||!y)return null;const S=!0===C.qListObject.qDimensionInfo.qLocked,w=(e,t)=>{const n="escapeKeyDown"!==t;E.noModal(n),i()},O=Ba({layout:C,model:h,translator:y}),q=C.qListObject.qDimensionInfo.qStateCounts,R=q.qSelected+q.qSelectedExcluded+q.qLocked+q.qLockedExcluded>0;return t.createElement(L,{open:u,onClose:w,anchorEl:n.current,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"250px"}}},t.createElement(v,{container:!0,direction:"column",gap:0},t.createElement(v,{item:!0,container:!0,style:{padding:p.spacing(1)}},t.createElement(v,{item:!0},S?t.createElement(x,{onClick:g,disabled:!S,size:"large"},t.createElement(Vi,{title:y.get("Listbox.Unlock")})):t.createElement(x,{onClick:m,disabled:!R,size:"large"},t.createElement(Gi,{title:y.get("Listbox.Lock")}))),t.createElement(v,{item:!0,xs:!0}),t.createElement(v,{item:!0},t.createElement(as,{more:{enabled:!S,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:w,onCancel:()=>w(0,"escapeKeyDown")}}))),t.createElement(v,{item:!0,xs:!0},t.createElement("div",{ref:b}),t.createElement(ls,{selections:E,model:h,visible:!0}),t.createElement(Na,{model:h,selections:E,direction:"ltr"}))))}function ds(e){let{field:r,api:o,stateIx:i=0,skipHandleShowListBoxPopover:a=!1,moreAlignTo:s=null,onClose:l=(()=>{})}=e;const{translator:c}=f(si),u=s||d(),p=Ho(),[h,m]=n(!1),g=e=>{e.currentTarget.contains(e.target)&&m(!h)},y=()=>{m(!1),l()},b=r.selections[i];void 0===b.qTotal&&(b.qTotal=0);const C=b.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},L=(C.qSelected+C.qLocked)/b.qTotal,S=C.qAlternative/b.qTotal,w=(C.qExcluded+C.qLockedExcluded+C.qSelectedExcluded)/b.qTotal,O=C.qSelected+C.qSelectedExcluded+C.qLocked+C.qLockedExcluded,q=0===O&&0===b.qTotal;let R="";b.qTotal===O&&b.qTotal>1?R=c.get("CurrentSelections.All"):O>1&&b.qTotal?R=c.get("CurrentSelections.Of",[O,b.qTotal]):b.qSelectedFieldSelectionInfo&&(R=b.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==r.states[i]&&(R="".concat(r.states[i],": ").concat(R));const k=[{color:p.palette.selected.main,ratio:L},{color:p.palette.selected.alternative,ratio:S},{color:p.palette.selected.excluded,ratio:w}];k.forEach(((e,t)=>{e.offset=t?k[t-1].offset+k[t-1].ratio:0}));let I=null,_=null,D=null,T=null;return s||(I=t.createElement(v,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:b.qLocked?"0.3":""}},t.createElement(E,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},b.qField),t.createElement(E,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},R)),b.qLocked?_=t.createElement(v,{item:!0},t.createElement(x,{size:"large"},t.createElement(Vi,null))):b.qOneAndOnlyOne||(_=t.createElement(v,{item:!0},t.createElement(x,{title:c.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),o.clearField(b.qField,r.states[i])},size:"large"},t.createElement($i,null)))),D=t.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===q&&k.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,"%")}})))),T=t.createElement(v,{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&&g||null},I,_,D,h&&t.createElement(ps,{alignTo:u,show:h,close:y,app:o.model,fieldName:b.qField,stateName:r.states[i]}))),s?t.createElement(ps,{alignTo:u,show:!0,close:y,app:o.model,fieldName:b.qField,stateName:r.states[i]}):T}var fs=e=>Wi((e=>B(B({},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 hs={item:"".concat("MultiState","-item")},ms=Wo(v)((e=>{let{theme:t}=e;return{["&.".concat(hs.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"}}}));function gs(e){let{field:r,api:o,moreAlignTo:i=null,onClose:a=(()=>{})}=e;const[s,l]=n(!!i),[c,u]=n(-1),[p,h]=n(i?i.current:null),m=i||d(),{translator:g}=f(si),y=g.get("Selection.ClearAllStates"),b=()=>{u(-1),a()};let C=null;i||(C=t.createElement(t.Fragment,null,t.createElement(v,{item:!0,xs:!0,zeroMinWidth:!0},t.createElement(I,{style:{padding:"0px 8px"},color:"secondary",badgeContent:r.states.length},t.createElement(E,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},r.name))),t.createElement(v,{item:!0},t.createElement("div",{style:{width:"12px"}})),t.createElement(v,{item:!0},t.createElement(x,{size:"large"},t.createElement(fs,null)))));const S=t.createElement(_,{dense:!0},t.createElement(D,{title:y,onClick:()=>{r.states.forEach((e=>o.clearField(r.name,e)))}},t.createElement(T,{variant:"contained",fullWidth:!0},y)),r.states.map(((e,n)=>t.createElement(D,{key:n,title:r.name,onClick:e=>((e,t)=>{e.stopPropagation(),l(!1),u(t)})(e,n)},t.createElement(A,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},t.createElement(ds,{field:r,api:o,stateIx:n,skipHandleShowListBoxPopover:!0})))))),w=t.createElement(L,{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"}}},S),O=i?w:t.createElement(ms,{container:!0,gap:0,className:hs.item,onClick:e=>{e.currentTarget.contains(e.target)&&(h(e.currentTarget),m.current=e.currentTarget,l(!s))}},C,s&&w,c>-1&&t.createElement(ps,{alignTo:m,show:c>-1,close:b,app:o.model,fieldName:r.selections[c].qField,stateName:r.states[c]}));return i&&c>-1?t.createElement(ps,{alignTo:m,show:c>-1,close:b,app:o.model,fieldName:r.selections[c].qField,stateName:r.states[c]}):O}const ys={item:"".concat("More","-item"),badge:"".concat("More","-badge")},bs=Wo(v)((e=>{let{theme:t}=e;return{["&.".concat(ys.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(ys.badge)]:{padding:t.spacing(0,1)}}}));function vs(e){let{items:r=[],api:o}=e;const i=Ho(),[a,s]=n(!1),[l,c]=n(-1),[u,p]=n(null),f=d(),h=()=>{c(-1)};let m=null;return l>-1&&(m=r[l].states.length>1?t.createElement(gs,{field:r[l],api:o,moreAlignTo:f,onClose:h}):t.createElement(ds,{field:r[l],api:o,skipHandleShowListBoxPopover:!0,moreAlignTo:f,onClose:h})),t.createElement(bs,{container:!0,gap:0,className:ys.item,onClick:e=>{e.currentTarget.contains(e.target)&&(p(e.currentTarget),f.current=e.currentTarget,s(!a))}},t.createElement(v,{item:!0},t.createElement(A,{borderRadius:i.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:i.palette.selected.main,color:i.palette.selected.mainContrastText}},t.createElement(E,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",r.length))),t.createElement(v,{item:!0},t.createElement(x,{size:"large"},t.createElement(fs,null))),a&&t.createElement(L,{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(_,{dense:!0},r.map(((e,n)=>t.createElement(D,{key:n,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),s(!1),c(t)})(e,n)},t.createElement(A,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?t.createElement(gs,{field:e,api:o}):t.createElement(ds,{field:e,api:o}))))))),m)}function Es(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 Cs(e){let{api:o,app:i}=e;const a=Ho(),[s]=ki(i),[l]=wi(s),[c,u]=n({items:[],more:[]}),[p]=Mi(),[d,f]=Hi(),[h,m]=n(0);return r((()=>{if(!f)return;const{width:e}=f,t=Math.floor(e)-72,n=Math.floor(t/120);m(n)}),[f]),r((()=>{if(!(i&&s&&l&&h))return;const e=function(e){if(!e)return[];const t={};return e.qSelectionObject&&Es(e.qSelectionObject,t),e.alternateStates&&e.alternateStates.forEach((e=>Es(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 h<n.length&&(r=n.splice(h-n.length)),{items:n,more:r}}))}),[i,s,l,o.isInModal(),h]),t.createElement(v,{ref:d,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},c.items.map((e=>t.createElement(v,{item:!0,key:"".concat(e.states.join("::"),"::").concat(e.name),style:{position:"relative",maxWidth:"240px",minWidth:"".concat(120,"px"),background:a.palette.background.paper,borderRight:"1px solid ".concat(a.palette.divider)}},e.states.length>1?t.createElement(gs,{field:e,api:o}):t.createElement(ds,{field:e,api:o})))),c.more.length>0&&t.createElement(v,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(72,"px"),background:a.palette.background.paper,borderRight:"1px solid ".concat(a.palette.divider)}},t.createElement(vs,{items:c.more,api:o})))}var xs=e=>Wi((e=>B(B({},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 Ls=e=>Wi((e=>B(B({},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 Ss(e){let{api:n,app:r}=e;const{translator:o}=f(si),[i]=Ii(r);return t.createElement(v,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},t.createElement(v,{item:!0},t.createElement(x,{style:{marginRight:"8px"},disabled:!i||!i.canGoBack,title:o.get("Navigate.Back"),onClick:()=>n.back(),size:"large"},t.createElement(xs,null))),t.createElement(v,{item:!0},t.createElement(x,{style:{marginRight:"8px"},disabled:!i||!i.canGoForward,title:o.get("Navigate.Forward"),onClick:()=>n.forward(),size:"large"},t.createElement(Ls,null))),t.createElement(v,{item:!0},t.createElement(x,{disabled:!i||!i.canClear,title:o.get("Selection.ClearAll"),onClick:()=>n.clear(),size:"large"},t.createElement(Ka,null))))}function ws(e){let{app:n}=e;const r=Ho(),[o]=zi(n);return o?t.createElement(v,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:r.palette.background.paper,minHeight:"40px"}},t.createElement(v,{item:!0,style:{borderRight:"1px solid ".concat(r.palette.divider)}},t.createElement(Ss,{api:o,app:n})),t.createElement(v,{item:!0,xs:!0,style:{backgroundColor:r.palette.background.darker,overflow:"hidden"}},t.createElement(Cs,{api:o,app:n}))):null}function Os(e){let{element:n,app:r}=e;return h.createPortal(t.createElement(ws,{app:r}),n)}var qs=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Rs=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}}(),ks=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},Is=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},_s=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")},Ds=void 0;Ds="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;var Ts=null,As=null,Ps=Ds.clearTimeout,Ns=Ds.setTimeout,Ms=Ds.cancelAnimationFrame||Ds.mozCancelAnimationFrame||Ds.webkitCancelAnimationFrame,js=Ds.requestAnimationFrame||Ds.mozRequestAnimationFrame||Ds.webkitRequestAnimationFrame;function zs(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__&&Ts(this.__resizeRAF__),this.__resizeRAF__=As((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(" "),f=document.createElement("fakeelement");if(void 0!==f.style.animationName&&(c=!0),!1===c)for(var h=0;h<p.length;h++)if(void 0!==f.style[p[h]+"AnimationName"]){u="-"+p[h].toLowerCase()+"-",r=d[h],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=Ds.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 f=u.createElement("div");f.className="contract-trigger",i.__resizeTriggers__.appendChild(d),i.__resizeTriggers__.appendChild(f),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==Ms||null==js?(Ts=Ps,As=function(e){return Ns(e,20)}):(Ts=function(e){var t=_s(e,2),n=t[0],r=t[1];Ms(n),Ps(r)},As=function(e){var t=js((function(){Ps(n),e()})),n=Ns((function(){Ms(t),e()}),20);return[t,n]});var Fs=function(e){function t(){var e,n,r;qs(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=Is(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,f=a-l-c;(!t&&r.state.height!==d||!n&&r.state.width!==f)&&(r.setState({height:i-u-p,width:a-l-c}),o({height:i,width:a}))}},r._setRef=function(e){r._autoSizer=e},Is(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,p),Rs(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=zs(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"},p={},d=!1;return r||(0===s&&(d=!0),c.height=0,p.height=s),o||(0===l&&(d=!0),c.width=0,p.width=l),u("div",{className:n,ref:this._setRef,style:ks({},c,i)},!d&&t(p))}}]),t}();Fs.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}};const Bs={listBoxHeader:"".concat("ListBoxInline","-listBoxHeader")},Hs=Wo(v)((()=>({["& .".concat(Bs.listBoxHeader)]:{alignSelf:"center",display:"inline-flex"}})));function Us(e){let{app:o,fieldIdentifier:i,stateName:a="$",options:s={},fieldDef:c}=e;const{title:u,direction:p,listLayout:h,search:m=!0,focusSearch:g=!1,toolbar:y=!0,rangeSelect:b=!0,checkboxes:C=!1,properties:L={},sessionModel:S,selectionsApi:w,update:O,fetchStart:q,dense:R=!1,selectDisabled:k=(()=>!1),postProcessPages:I,calculatePagesHeight:_,showGray:D=!0,scrollState:T,setCount:A,shouldConfirmOnBlur:P}=s;let{frequencyMode:N,histogram:M=!1}=s;switch(c&&c.failedToFetchFieldDef&&(M=!1,N="N"),!0){case["none","N","NX_FREQUENCY_NONE"].includes(N):N="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(N):N="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(N):N="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(N):N="R";break;default:N="N"}const j={qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:a,qShowAlternatives:!0,qFrequencyMode:M&&"N"===N?"V":N,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},title:u};let z;if(se(!0,j,L),i.qLibraryId?(j.qListObjectDef.qLibraryId=i.qLibraryId,z=i.qLibraryId):(j.qListObjectDef.qDef.qFieldDefs=[i],z=i),"N"!==N||M){const e=i.qLibraryId?c:z;j.frequencyMax={qValueExpression:"Max(AGGR(Count([".concat(e,"]), [").concat(e,"]))")}}let[F]=qi(j,S?null:o,z,a);S&&(F=S);let B=us(w?{}:o,F)[0];w&&(B=w);const H=Ho(),U=l((()=>{F.lock("/qListObjectDef")}),[F]),W=l((()=>{F.unlock("/qListObjectDef")}),[F]),{translator:$,keyboardNavigation:V}=f(si),G=d(),[K,Z]=(()=>{const[e,t]=n({}),r=l((e=>{t({current:e})}),[t]);return[e,r]})(),[X]=wi(F),[J,Y]=n(!1),[Q,ee]=n(!1),[te,ne]=n(!1),re=qa({setKeyboardActive:ne}),oe={enabled:V,active:te};r((()=>{const e=()=>{Y(!0)},t=()=>{Y(!1),"toggle"===m&&ee(!1)};return B&&(B.isModal()||(B.on("deactivated",t),B.on("activated",e)),Y(B.isActive())),()=>{B&&(B.removeListener("deactivated",e),B.removeListener("activated",t))}}),[B]);const ie=d(null);if(function(e,t,o){const[i,a]=n(!1),s=d(i),l=e=>{s.current=e,a(e)};r((()=>{if(!o)return;const n=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",n),document.addEventListener("keydown",n),()=>{document.removeEventListener("mousedown",n),document.removeEventListener("keydown",n)}}),[e,t,o])}(ie,B,P),r((()=>{if(K&&K.current&&(m&&g||"toggle"===m&&Q)){const e=K.current.querySelector("input");e&&e.focus()}}),[K&&K.current,Q,m,g]),!F||!X||!$)return null;const ae=!0===X.qListObject.qDimensionInfo.qLocked,le=y?Ba({layout:X,model:F,translator:$}):[],ce=X.qListObject.qDimensionInfo.qStateCounts,ue=ce.qSelected+ce.qSelectedExcluded+ce.qLocked+ce.qLockedExcluded>0,pe=(!0===m||"toggle"===m&&Q)&&!k(),de=49+(pe?R?27:40:0)+(R?39:49),fe=()=>{ee(!Q)};return t.createElement(Hs,{className:"listbox-container",container:!0,tabIndex:oe.enabled&&!oe.active?0:-1,direction:"column",gap:0,style:{height:"100%",minHeight:"".concat(de,"px")},onKeyDown:re,ref:ie},y&&t.createElement(v,{item:!0,container:!0,style:{padding:H.spacing(1)}},t.createElement(v,{item:!0},ae?t.createElement(x,{tabIndex:-1,onClick:W,disabled:!ae,size:"large"},t.createElement(Vi,{title:$.get("Listbox.Unlock")})):"toggle"!==m||ue?t.createElement(x,{onClick:U,tabIndex:-1,disabled:!ue,size:"large"},t.createElement(Gi,null)):t.createElement(x,{onClick:fe,tabIndex:-1,title:$.get("Listbox.Search"),size:"large"},t.createElement(ss,null))),t.createElement(v,{item:!0,className:Bs.listBoxHeader},t.createElement(E,{variant:"h6",noWrap:!0},X.title||X.qListObject.qDimensionInfo.qFallbackTitle)),t.createElement(v,{item:!0,xs:!0}),t.createElement(v,{item:!0},t.createElement(as,{more:{enabled:!ae,actions:le,alignTo:G,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:J,api:B,onConfirm:()=>{},onCancel:()=>{}}}))),t.createElement(v,{item:!0,ref:Z},t.createElement(ls,{selections:B,model:F,dense:R,keyboard:oe,visible:pe,searchContainerRef:Z})),t.createElement(v,{item:!0,xs:!0},t.createElement("div",{ref:G}),t.createElement(Fs,null,(e=>{let{height:n,width:r}=e;return t.createElement(Na,{model:F,selections:B,direction:p,listLayout:h,frequencyMode:N,histogram:M,rangeSelect:b,checkboxes:C,height:n,width:r,update:O,fetchStart:q,postProcessPages:I,calculatePagesHeight:_,dense:R,selectDisabled:k,keyboard:oe,showGray:D,scrollState:T,sortByState:j.qListObjectDef.qDef.qSortCriterias[0].qSortByState,setCount:A})}))))}function Ws(e){let{app:o,fieldIdentifier:i,stateName:a="$",options:s={}}=e;const[l,c]=n(""),[u,p]=n(!1);return r((()=>{!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:t.createElement(Us,{app:o,fieldIdentifier:i,stateName:a,options:s,fieldDef:l})}function $s(e){let{app:n,fieldIdentifier:r,stateName:o,element:i,options:a}=e;const s=a.histogram||"N"!==a.frequencyMode,l=r.qLibraryId&&s?Ws:Us;return h.createPortal(t.createElement(l,{app:n,fieldIdentifier:r,stateName:o,element:i,options:a}),i)}const Vs=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function Gs(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function Ks(){return Vs.map(Gs).join("")}function Zs(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function Xs(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 Js(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):B(B({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||Ks(),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),Zs(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];Xs(t.qInterColumnSortOrder,e),n.dimensions.removed(r,o,e)},addMeasure(e){const r="string"==typeof e?(e=>({qDef:{qDef:e}}))(e):B(B({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||Ks(),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),Zs(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];Xs(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 Ys=(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},Qs=(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]},el=e=>0===Object.keys(e).length&&e.constructor===Object;var tl={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 nl(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function rl(e,t){const n=se(!0,{},t,e);return Ys(n,"qOtherTotalSpec.qOtherCounted")||Qs(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),Ys(n,"qOtherTotalSpec.qOtherLimit")||Qs(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function ol(e,t){return se(!0,{},t,e)}function il(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var al={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===Ys(e,t)&&Qs(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:nl,importCommonProperties:function(e,t,n){const r="masterobject"===Ys(t,"properties.qInfo.qType")?"masterobject":Ys(n,"qInfo.qType");Qs(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:rl,createDefaultMeasure:ol,resolveValue:il,getHypercubePath:function(e){const t=Ys(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?(tl.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,tl.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=se(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?Qs(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||nl(e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),o=se(!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=il(i.max,r.dimensions.length,9007199254740991),s=il(i.min,r.dimensions.length,0);return{maxDimensions:il(o.max,a,9007199254740991),minDimensions:il(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(rl(a.dimensions[s],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(rl(a.dimensions[s],i));else if(a.dimensions.length)for(s=0;s<a.dimensions.length;++s)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(rl(a.dimensions[s],i));if(a.excludedDimensions.length)for(s=0;s<a.excludedDimensions.length;++s)o.qDimensions.length<r?o.qDimensions.push(rl(a.excludedDimensions[s],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(rl(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(ol(a.measures[s],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(ol(a.measures[s],i));else if(a.measures.length)for(s=0;s<a.measures.length;++s)o.qLayoutExclude.qHyperCubeDef.qMeasures.push(ol(a.measures[s],i));if(a.excludedMeasures.length)for(s=0;s<a.excludedMeasures.length;++s)o.qMeasures.length<r?o.qMeasures.push(ol(a.excludedMeasures[s],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(ol(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=Ys(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=Ys(t,r||"").qHyperCubeDef,o=[...e.qMeasures];e.qMeasures=[],o.forEach((r=>{e.qMeasures.push(r),n.measures.added(r,t)}))}}};var sl={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=Ys(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();tl.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&&(al.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!el(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=al.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:i}),l=Ys(n,i||"").qHyperCubeDef,c=Ys(s,i||"").qHyperCubeDef,{maxDimensions:u,minDimensions:p,maxMeasures:d,minMeasures:f}=al.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:h=al.getDefaultDimension(),defaultMeasure:m=al.getDefaultMeasure()}=o;return c.qDimensions.length=0,c.qMeasures.length=0,al.shouldInitLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:p,maxMeasures:d,minMeasures:f})&&al.initLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:p,maxMeasures:d,minMeasures:f,newHyperCubeDef:c}),al.addDefaultDimensions({exportFormat:t,maxDimensions:u,minDimensions:p,newHyperCubeDef:c,defaultDimension:h}),al.addDefaultMeasures({exportFormat:t,maxMeasures:d,minMeasures:f,newHyperCubeDef:c,defaultMeasure:m}),al.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:c}),al.copyPropertyIfExist("qMaxStackedCells",l,c),al.copyPropertyIfExist("qNoOfLeftDims",l,c),al.copyPropertyOrSetDefault("qInitialDataFetch",l,c,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),al.copyPropertyOrSetDefault("qMode",l,c,"S"),al.copyPropertyOrSetDefault("qReductionMode",l,c,"N"),al.copyPropertyOrSetDefault("qSortbyYValue",l,c),al.copyPropertyOrSetDefault("qIndentMode",l,c),al.copyPropertyOrSetDefault("qShowTotalsAbove",l,c),al.importCommonProperties(s,t,n),al.updateDimensionsOnAdded({newProperties:s,dataDefinition:r,hypercubePath:i}),al.updateMeasuresOnAdded({newProperties:s,dataDefinition:r,hypercubePath:i}),a.qProperty=s,a}(e)};const ll=e=>Ys(e,"data.targets.0.propertyPath"),cl=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return sl.exportProperties})(ll(e))},ul=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return sl.importProperties})(ll(e))},pl=async e=>{let{halo:t,model:n,cellRef:r,newType:o}=e;const i=await n.getFullPropertyTree(),a=r.current.getQae(),s=cl(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 ul(c)({exportFormat:s({propertyTree:i,hypercubePath:al.getHypercubePath(a)}),initialProperties:B({qInfo:{qType:o},visualization:o},Ys(c,"properties.initial",{})),dataDefinition:Ys(c,"data.targets.0.",{}),hypercubePath:al.getHypercubePath(c)})},dl={hypercube:sl};var fl=e=>Wi((e=>B(B({},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 hl(e){let{d:n}=e;const r=Ho();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(E,{style:{lineHeight:"30px",paddingRight:r.spacing(1)}},t.createElement(P,null,n.missing||n.error?t.createElement(fl,{style:a}):t.createElement(ya,{style:a})));return t.createElement(v,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},t.createElement(v,{item:!0},s),t.createElement(v,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},t.createElement(E,{noWrap:!0,component:"p"},t.createElement(E,{component:"span",variant:"subtitle2",color:o},n.description),t.createElement(E,{component:"span"}," "),t.createElement(E,{component:"span",variant:"subtitle2",color:n.error?"error":"inherit",style:{fontWeight:400}},n.label))))}function ml(e){let{data:n}=e;const r=Ho();return t.createElement(v,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},n.map(((e,n)=>{const o=e.descriptions.map(((e,n)=>t.createElement(hl,{d:e,key:n})));return o.length>0&&t.createElement(v,{container:!0,item:!0,key:n,direction:"column",style:{paddingBottom:r.spacing(2)}},t.createElement(E,{noWrap:!0,key:n,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),o)})))}function gl(e){let{title:n="Error",message:r="",data:o=[]}=e;return t.createElement(v,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},t.createElement(v,{item:!0},t.createElement(fl,{style:{fontSize:"38px"}})),t.createElement(v,{item:!0},t.createElement(E,{variant:"h6",align:"center","data-tid":"error-title"},n)),t.createElement(v,{item:!0},t.createElement(E,{variant:"subtitle1",align:"center","data-tid":"error-message"},r)),t.createElement(ml,{data:o}))}const yl=["size"],bl={root:"".concat("Progress","-root"),front:"".concat("Progress","-front"),back:"".concat("Progress","-back")},vl=Wo("div")((e=>{let{theme:t}=e;return{["&.".concat(bl.root)]:{position:"relative",display:"inline-block"},["& .".concat(bl.front)]:{color:t.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(bl.back)]:{color:t.palette.divider}}})),El={small:16,medium:32,large:64,xlarge:128};function Cl(e){let{size:n="medium"}=e,r=W(e,yl);const o=El[n];return t.createElement(vl,{className:bl.root},t.createElement(N,U({variant:"determinate",value:100,className:bl.back,size:o,thickness:3},r)),t.createElement(N,U({variant:"indeterminate",disableShrink:!0,className:bl.front,size:o,thickness:3},r)))}const xl=["cancel","translator"],Ll=["retry","translator"],Sl={stripes:"".concat("LongRunningQuery","-stripes")},wl=Wo(v)((()=>({["& .".concat(Sl.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 Ol(e){let{cancel:n,translator:r}=e,o=W(e,xl);return t.createElement(t.Fragment,null,t.createElement(wl,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},t.createElement(v,{item:!0},t.createElement(Cl,null)),t.createElement(v,{item:!0},t.createElement(E,{variant:"h6",align:"center","data-tid":"update-active"},r.get("Object.Update.Active")))),t.createElement(v,U({item:!0},o),t.createElement(T,{variant:"contained",onClick:n},r.get("Cancel"))))}function ql(e){let{retry:n,translator:r}=e,o=W(e,Ll);return t.createElement(t.Fragment,null,t.createElement(v,{item:!0},t.createElement(fl,{style:{fontSize:"38px"}})),t.createElement(v,{item:!0},t.createElement(E,{variant:"h6",align:"center","data-tid":"update-cancelled"},r.get("Object.Update.Cancelled"))),t.createElement(v,{item:!0},t.createElement(T,U({variant:"contained",onClick:n},o),r.get("Retry"))))}function Rl(e){let{canCancel:n,canRetry:r,api:o}=e;const{translator:i}=f(si);return t.createElement(v,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:Sl.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},n&&t.createElement(Ol,{cancel:o.cancel,translator:i,className:Sl.cancel}),r&&t.createElement(ql,{retry:o.retry,translator:i,className:Sl.retry}))}function kl(){return t.createElement(v,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t.createElement(Cl,{size:"large"}))}const Il={containerStyle:"".concat("Header","-containerStyle"),containerTitleStyle:"".concat("Header","-containerTitleStyle")},_l=Wo(v)((e=>{let{theme:t}=e;return{["&.".concat(Il.containerStyle)]:{flexGrow:0},["&.".concat(Il.containerTitleStyle)]:{paddingBottom:t.spacing(1)}}})),Dl="njs-cell-title",Tl="njs-cell-sub-title";function Al(e){let{layout:o,sn:i,anchorEl:a,hovering:s,focusHandler:l}=e;const c=o.showTitles&&!!o.title,u=o.showTitles&&!!o.subtitle,p=o.qSelectionInfo&&o.qSelectionInfo.qInSelections,[d,f]=n([]),[h,m]=Hi(),[g,y]=n(!1);r((()=>{i&&i.component&&i.component.isHooked&&i.component.observeActions((e=>{f([...e,...i&&i.selectionToolbar&&i.selectionToolbar.items||[]])}))}),[i]),r((()=>{if(!m)return;const{width:e}=m;y(e<221)}),[m]);const b=c||u,C=[Il.containerStyle,...b?[Il.containerTitleStyle]:[]],x=(s||p)&&(g||!b),L=b&&!x&&!g,S=t.createElement(as,{show:L,selections:{show:p,api:i.component.selections,onKeyDeactivate:l.refocusContent},actions:d,popover:{show:x,anchorEl:a},focusHandler:l});return t.createElement(_l,{ref:h,item:!0,container:!0,wrap:"nowrap",className:C.join(" ")},t.createElement(v,{item:!0,zeroMinWidth:!0,xs:!0},t.createElement(v,{container:!0,wrap:"nowrap",direction:"column"},c&&t.createElement(E,{variant:"h6",noWrap:!0,className:Dl},o.title),u&&t.createElement(E,{variant:"body2",noWrap:!0,className:Tl},o.subtitle))),t.createElement(v,{item:!0},S))}const Pl={itemStyle:"".concat("Footer","-itemStyle")},Nl=Wo(v)((e=>{let{theme:t}=e;return{["& .".concat(Pl.itemStyle)]:{minWidth:0,paddingTop:t.spacing(1)}}})),Ml="njs-cell-footer";function jl(e){let{layout:n}=e;return n&&n.showTitles&&n.footnote?t.createElement(Nl,{container:!0},t.createElement(v,{item:!0,className:Pl.itemStyle},t.createElement(E,{noWrap:!0,variant:"body2",className:Ml},n.footnote))):null}class zl{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 Fl="njs-viz";function Bl(e){let{sn:o,snOptions:i,snPlugins:a,layout:s,appLayout:c,halo:u}=e;const{component:p}=o,{theme:d,language:h,constraints:m,keyboardNavigation:g}=f(si),[y]=n((()=>new zl)),[b,v]=n(!1),[E,C]=n(0),[x,L,S]=Hi(),[w,O]=n(null),q=l((e=>{e&&O(e)}),[]);return r((()=>{if(w)return p.created({options:i}),p.mounted(w),v(!0),()=>{y.stop(),p.willUnmount()}}),[w,p]),r((()=>{b&&w&&L&&(!p.isHooked&&s&&s.qSelectionInfo&&s.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:s,options:i,plugins:a,embed:u.public.nebbie,context:B({constraints:m,theme:u.public.theme,appLayout:c,keyboardNavigation:g},p.isHooked?{}:{logicalSize:o.logicalSize({layout:s}),localeInfo:(c||{}).qLocaleInfo,permissions:e})})).then((e=>{!1!==e&&(0===E&&"function"==typeof i.onInitialRender&&i.onInitialRender.call(null),C(E+1))}))})))}),[L,i,a,w,S,s,c,d,h,m,b,g]),t.createElement("div",{ref:x,"data-render-count":E,style:{position:"relative",height:"100%"},className:Fl},t.createElement("div",{ref:q,style:{position:"absolute",width:"100%",height:"100%"}}))}const Hl="njs-cell",Ul=(e,t)=>{switch(t.type){case"LOADING":return B(B({},e),{},{loading:!0});case"LOADED":return B(B({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization});case"RENDER":return B(B({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null});case"LONG_RUNNING_QUERY":return B(B({},e),{},{longRunningQuery:!0});case"ERROR":return B(B({},e),{},{loading:!1,longRunningQuery:!1,error:t.error});default:throw new Error("Unhandled type: ".concat(t.type))}};function Wl(e){let{delay:o=750}=e;const[i,a]=n(!1);return r((()=>{const e=setTimeout((()=>a(!0)),o);return()=>clearTimeout(e)}),[]),i?t.createElement(kl,null):null}const $l=e=>!e.qError||7005===e.qError.qErrorCode,Vl=(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}})),Gl=e=>e&&(Array.isArray(e)?e:[e])||[],Kl=(e,t,n,r)=>{const o=r.dimensions.min(),i=r.measures.min(),a=r.resolveLayout(t);return{reqDimErrors:Vl(o,Gl(a.qDimensionInfo),(e=>r.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:Vl(i,Gl(a.qMeasureInfo),(e=>r.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},Zl=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(),f=u.resolveLayout(n),h=Gl(f.qDimensionInfo).filter($l),m=Gl(f.qMeasureInfo).filter($l);if(o+=p,i+=d,(h.length<p||m.length<d)&&(r=!0),f.qError){a=!0,s=7005===f.qError.qErrorCode;const t=s&&f.qCalcCondMsg?f.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=Kl(e,t,n,a);u.push(...o.reqDimErrors),p.push(...o.reqMeasErrors)}}const f=u.filter((e=>!(e.missing||e.error))).length,h=e.get("Visualization.Incomplete.Dimensions",[f,a]),m=p.filter((e=>!(e.missing||e.error))).length,g=e.get("Visualization.Incomplete.Measures",[m,s]),y=[{title:h,descriptions:[...u]},{title:g,descriptions:[...p]}],b=l?c:y;return[l||i,{title:l?c[0].title:e.get("Visualization.Incomplete"),data:b}]},Xl=i(((e,i)=>{let{halo:a,model:l,initialSnOptions:c,initialSnPlugins:u,initialError:p,onMount:h,currentId:m}=e;const{app:g,types:y}=a,{nebbie:b}=a.public,{disableCellPadding:E=!1}=a.context||{},{translator:C,language:x,keyboardNavigation:L}=f(si),S=Ho(),[w,O,q]=Hi(),[R,k]=o(Ul,{loading:!1,loaded:!1,longRunningQuery:!1,error:(I=p)?{title:I.message}:null,sn:null,visualization:null});var I;const[_,{validating:D,canCancel:T,canRetry:A},P]=wi(l),[N]=Oi(g),[j,z,F]=Hi(),[H,U]=n(c),[W,$]=n(u),[V]=us(g,l),[G,K]=n(!1),Z=d({enter:null,leave:null}),X=d({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});r((()=>{cs(X.current)}),[]),X.current.blurCallback=e=>{a.root.toggleFocusOfCells(),e&&F&&F.focus()},X.current.refocusContent=()=>{R.sn.component&&"function"==typeof R.sn.component.focus&&R.sn.component.focus()};r((()=>{if(p||!N||!_)return;if(R.visualization===_.visualization&&R.sn)return void(async e=>{const[t,n]=await Zl(C,_,e.generator.qae.data,l);k(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:l})})(R.sn);const e=y.getSupportedVersion(_.visualization,_.version);if(e)return(async(e,t)=>{k({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:k,types:y,visualization:e,version:t,model:l,app:g,selections:V,nebbie:b,focusHandler:X.current});n&&(k({type:"LOADED",sn:n,visualization:e}),h())})(_.visualization,e),()=>{};k({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,l,V,_,N,x]),r((()=>{if(!D)return;const e=setTimeout((()=>k({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[D]),s(i,(()=>({getQae:()=>R.sn.generator.qae,toggleFocus(e){"function"==typeof R.sn.component.focus&&(e?R.sn.component.focus():R.sn.component.blur())},setSnOptions:U,setSnPlugins:$,async takeSnapshot(){const{width:e,height:t}=O;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:C.language(),theme:S.name,appLayout:N,size:{width:Math.round(e),height:Math.round(t)}},layout:n}},async exportImage(){if("function"!=typeof a.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const e=await this.takeSnapshot();return a.config.snapshot.capture(e)}})),[R.sn,z,O,_,S.name,N]);let J=null;return R.loading&&!R.longRunningQuery?J=t.createElement(Wl,null):R.error?J=t.createElement(gl,R.error):R.loaded&&(J=t.createElement(Bl,{key:_.visualization,sn:R.sn,halo:a,snOptions:H,snPlugins:W,layout:_,appLayout:N})),t.createElement(M,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden"},elevation:0,square:!0,className:Hl,ref:w,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(v,{container:!0,direction:"column",gap:0,style:B(B({position:"relative",width:"100%",height:"100%"},E?{}:{padding:S.spacing(1)}),R.longRunningQuery?{opacity:"0.3"}:{})},q&&_&&R.sn&&t.createElement(Al,{layout:_,sn:R.sn,anchorEl:q,hovering:G,focusHandler:X.current}," "),t.createElement(v,{tabIndex:L?0:-1,onKeyDown:L?e=>{["Enter"," ","Spacebar"].includes(e.key)&&a.root.toggleFocusOfCells(m)}:null,item:!0,xs:!0,style:{height:"100%"},ref:j},J),t.createElement(jl,{layout:_})),R.longRunningQuery&&t.createElement(Rl,{canCancel:T,canRetry:A,api:P}))}));function Jl(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=Ks(),d=h.createPortal(t.createElement(Xl,{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 Yl(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Ql(e,t){return Yl(e)&&Yl(t)?JSON.stringify(e)===JSON.stringify(t):!Array.isArray(e)&&!Array.isArray(t)&&e===t}function ec(){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)?Ql(i,n[o])||r.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])}):r.push(...ec("".concat(e).concat(o,"/"),t[o],n[o]))})),r}function tc(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 nc=()=>{};function rc(){let{model:e,halo:t,initialError:n,onDestroy:r=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=nc,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(B(B({},c),e))})():c=B(B({},c),e)},d=async e=>{tc(e),a?(async()=>{await l,i.current.setSnPlugins(e)})():u=e},f={id:e.id,async destroy(){await r(),o(),o=nc},async convertTo(n){let r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const o=await pl({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]=Jl({halo:t,element:r,model:e,initialSnOptions:c,initialSnPlugins:u,initialError:n,onMount:s}),l},async applyProperties(t){const n=ec("/",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 f}async function oc(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:async()=>{};const i=rc({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 ic(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&&Js({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);xi.set(p.id,p);const d=(e=>{const t=Ei({type:"SET",value:e});return()=>{t(),xi.clear(e.id)}})(p);return oc(p,{options:s,plugins:l,element:c},t,n,(async()=>{await t.app.destroySessionObject(p.id),d()}))}async function ac(e,t){let{id:n,options:r,plugins:o,element:i}=e;const a="".concat(n);let s=gi.get(a);s||(s=t.app.getObject(n),gi.set(a,s));const l=await s;return xi.set(a,l),oc(l,{options:r,plugins:o,element:i},t)}function sc(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}const lc=se.bind(null,!0),cc={},{isArray:uc}=Array;function pc(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function dc(e){return void 0===e}function fc(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function hc(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]=dc(e[r||t])?i:e[t],e=e[r||t]})),e}function mc(e,t){let n=!0;if(pc(e)&&pc(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{mc(e[r],t[r])||(n=!1)})),n);if(uc(e)&&uc(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!mc(e[n],t[n]))return!1;return!0}return e===t}cc.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const i=function(e){return e?lc({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(n,"/").concat(o);mc(i,a)||fc(t,o)||(dc(a)?r.push({op:"add",path:s,value:i}):pc(i)&&pc(a)?r=r.concat(cc.generate(a,i,s)):uc(i)&&uc(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]&&dc(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(mc(t,o))return r;if(!dc(t[0])&&dc(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(cc.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=>{dc(t[o])&&!fc(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},cc.apply=function(e,t){t.forEach((t=>{let n=hc(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(uc(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(uc(o)&&uc(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(pc(o)&&pc(t.value))a=o,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!fc(a,e)&&delete a[e]})),lc(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=hc(e,t.from);uc(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(uc(n)?n.splice(+r,1):delete n[r]);var a}))},cc.clone=function(e){return lc({},e)},cc.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},cc.updateObject=function(e,t){Object.keys(e).length?cc.apply(e,cc.generate(e,t)):lc(e,t)};const gc=e=>t=>{const n=(r=B(B({},t),{},{action(){"function"==typeof t.action&&t.action.call(n,e),n.emit("changed")},enabled:()=>"function"!=typeof t.enabled||t.enabled.call(n,e),active:"function"==typeof t.active?function(){return t.active.call(n,e)}:void 0}),Object.keys(Y.prototype).forEach((e=>{r[e]=Y.prototype[e]})),Y.init(r),r);var r;return n};let yc,bc;function vc(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 Ec(e){let{explicitResize:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.__hooks={obsolete:!1,error:!1,waitForData:!1,chain:{promise:null,resolve:()=>{}},list:[],snaps:[],menus:[],actions:{list:[]},pendingEffects:[],pendingLayoutEffects:[],pendingPromises:[],resizer:{setters:[],explicitResize:t},accessibility:{setter:null}}}function Cc(e){Lc(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 xc(e){if(e.__hooks.obsolete)return Promise.resolve();bc=-1,yc=e,yc.__hooks.initiated&&yc.__hooks.list.length;try{yc.fn.call(null)}catch(e){console.error(e)}yc.__hooks.initiated=!0;const t=yc.__hooks;return qc(yc),bc=void 0,yc=void 0,t.chain.promise||(t.chain.promise=new Promise((e=>{t.chain.resolve=e}))),function(e){Lc(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame((()=>{!function(e){Lc(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 Lc(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 Sc(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 wc(e,t,n){try{return Promise.all(e.__hooks.menus.map((e=>Promise.resolve(e.fn(t,n))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function Oc(e){return e.__hooks.imperativeHandle}function qc(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function Rc(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,qc(e))}function kc(e){if(void 0===yc)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=yc.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function Ic(e){kc(++bc);return yc.context[e]}function _c(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function Dc(e){return{__hooked:!0,fn:e,initiate:Ec,run:xc,teardown:Cc,runSnaps:Sc,runMenu:wc,focus:au,blur:su,observeActions:Rc,getImperativeHandle:Oc,updateRectOnNextRun:_c}}function Tc(e){const t=kc(++bc);if(!t.value){t.component=yc;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,xc(r)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function Ac(e,t){const n=kc(++bc);vc(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===yc.__hooks.pendingEffects.indexOf(n)&&yc.__hooks.pendingEffects.push(n))}function Pc(e,t){const n=kc(++bc);vc(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],yc.__hooks.pendingLayoutEffects.push(n))}function Nc(e,t){const n=kc(++bc);return vc(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function Mc(e,t){const[n,r]=Tc((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=kc(++bc);return o.component||(o.component=yc),Pc((()=>{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 jc(){return Ic("element")}function zc(){const e=jc(),t=yc.__hooks.resizer,[n,r]=Tc((()=>{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()),Pc((()=>{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 Fc(){return Ic("layout")}function Bc(){const e=Ic("layout"),[t]=Tc({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current}function Hc(){return Ic("appLayout")}function Uc(){const e=Ic("model");return e&&e.session?e:void 0}function Wc(){const e=Ic("app");return e&&e.session?e:void 0}function $c(){const e=Ic("global");return e&&e.session?e:void 0}function Vc(){return Ic("selections")}function Gc(){return Ic("theme")}function Kc(){return Ic("nebbie")}function Zc(){return Ic("translator")}function Xc(){return Ic("deviceType")}function Jc(){return Ic("plugins")}function Yc(e,t){const[n]=Tc({action(){n._config.action.call(null)}});return n.component||(n.component=yc,yc.__hooks.actions.list.push(n)),Nc((()=>{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 Qc(){return Ic("constraints")}function eu(){return Ic("options")}function tu(e,t){const n=kc(++bc);if(n.imperative||(n.imperative=!0),vc(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],yc.__hooks.imperativeHandle=r}}function nu(e){const t=kc(++bc);t.value||(t.value=1,yc.__hooks.snaps.push(t)),t.fn=e}function ru(e){const t=kc(++bc);t.value||(t.value=1,yc.__hooks.menus.push(t)),t.fn=e}function ou(){kc(++bc);const e=yc.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}}function iu(){const e=Ic("keyboardNavigation"),t=Ic("focusHandler");if(!yc.__hooks.accessibility.exitFunction){const e=function(e){const n=this.__hooks.accessibility;n.enabled&&n.active&&(su(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(yc);yc.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),au(this))}.bind(yc);yc.__hooks.accessibility.focusFunction=n;const r=function(e){this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(yc);yc.__hooks.accessibility.focusSelectionFunction=r}const n=yc.__hooks.accessibility.focusFunction,r=yc.__hooks.accessibility.exitFunction,o=yc.__hooks.accessibility.focusSelectionFunction,[i,a]=Tc({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return yc.__hooks.accessibility.setter=a,yc.__hooks.accessibility.enabled=e,Ac((()=>a({active:!1,enabled:e,blur:r,focus:n,focusSelection:o})),[e]),i}function au(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 su(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 lu={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},cu=Object.keys(lu);function uu(e,t){const n=B({},lu);var r;r=n,Object.keys(Y.prototype).forEach((e=>{r[e]=Y.prototype[e]})),Y.init(r);const o={emit(){n.emit(...arguments)}};Object.keys(e.component||{}).forEach((t=>{-1!==cu.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=gc(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 pu(e,t,n){"function"==typeof e.component&&(e.component=Dc(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(B(B({},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)},onContextMenu(t,n){return e.component.runMenu(this,t,n)},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):uu(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=cc.clone(o),a=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));cc.apply(o,a),e.qae.properties.onChange.call({model:t.model},o);const s=cc.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 du=()=>{};function fu(e,t){return void 0===e?()=>t:()=>e}function hu(e){const t=e||{};return{min:"function"==typeof t.min?t.min:fu(t.min,0),max:"function"==typeof t.max?t.max:fu(t.max,1e3),added:t.added||t.add||du,description:t.description||du,moved:t.moved||t.move||du,removed:t.removed||t.remove||du,replaced:t.replaced||t.replace||du,isDefined:()=>!!e}}function mu(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:hu(e.dimensions),measures:hu(e.measures)}}function gu(){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(mu)},exportProperties:t.exportProperties,importProperties:t.importProperties};return r}function yu(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:gu(n.qae),component:n.component||{},create:e=>pu(r,e,t),definition:{}};return Object.keys(n).forEach((e=>{r[e]||(r.definition[e]=n[e])})),r}var bu={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)),f(this.major,e.major)||f(this.minor,e.minor)||f(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 f(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 f(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=f;var d=/^[0-9]+$/;function f(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 h(e,t,n){return new p(e,n).compare(new p(t,n))}function m(e,t,n){return h(e,t,n)>0}function g(e,t,n){return h(e,t,n)<0}function y(e,t,n){return 0===h(e,t,n)}function b(e,t,n){return 0!==h(e,t,n)}function v(e,t,n){return h(e,t,n)>=0}function E(e,t,n){return h(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 x(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof x){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof x))return new x(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===L?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return f(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=h,t.compareLoose=function(e,t){return h(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 h(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=x;var L={};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 x)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!==L&&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 k(e,t,n){try{t=new S(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 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(k(e,t,r))return!1;for(var c=0;c<t.set.length;++c){var u=t.set[c],d=null,f=null;if(u.forEach((function(e){e.semver===L&&(e=new x(">=0.0.0")),d=d||e,f=f||e,o(e.semver,d.semver,r)?d=e:a(e.semver,f.semver,r)&&(f=e)})),d.operator===s||d.operator===l)return!1;if((!f.operator||f.operator===s)&&i(e,f.semver))return!1;if(f.operator===l&&a(e,f.semver))return!1}return!0}x.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=L},x.prototype.toString=function(){return this.value},x.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===L||e===L)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)},x.prototype.intersects=function(e,t){if(!(e instanceof x))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),k(this.value,n,t));if(""===e.operator)return""===e.value||(n=new S(this.value,t),k(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 x(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=k,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 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 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)}}(bu,bu.exports);const vu={};async function Eu(e,t,n,r){let{config:o}=n;const i="".concat(e,"__").concat(t);if(!vu[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);vu[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 vu[i]}function Cu(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)||bu.exports.satisfies(e,i.deps.properties),supernova:()=>Eu(a.name,a.version,t,o.load).then((e=>(n=n||yu(e,t.public.galaxy),r=JSON.stringify(n.qae.properties.initial),n))),initialProperties(e){return this.supernova().then((()=>B(B({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 xu(e){let{halo:t,parent:n}=e;const r={},o=n||{get:()=>{}};return{register:(e,n)=>{r[e.name]||(r[e.name]=Cu(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(vu).forEach((t=>{t.split("__")[0]===e&&(vu[t]=void 0)}))}(e)}}}const Lu=["__DO_NOT_USE__"],Su=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return B(B({},e),t)},wu=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))},Ou=(e,t)=>({context:Su(e.context,t.context),load:t.load||e.load,snapshot:B({},t.snapshot||e.snapshot),types:wu(e.types,t.types),themes:wu(e.themes,t.themes),flags:Su(e.flags,t.flags),anything:Su(e.anything,t.anything)}),qu=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{__DO_NOT_USE__:t={}}=e,n=W(e,Lu),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=B(B(B({},n),r),t);return o};var Ru=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=Z(t.context.language);function r(e,o){if(o)return r.createConfiguration(o)(e);let i=B(B({},t.context),{},{translator:n.translator});const[a]=Bi({app:e,context:i}),s=tt({themes:t.themes,root:a}),l={galaxy:{translator:n.translator,flags:sc(t.flags),deviceType:nt(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=xu({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,f=null;const h={render:async e=>(await p,e.id?ac(e,c):ic(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=B(B(B({},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){f||(f=Os({element:t,app:e}),a.add(f))},unmount(){f&&(a.remove(f),f=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=$s({element:r,app:e,fieldIdentifier:t,options:qu(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=h,c.types=u,h}return r.createConfiguration=n=>e(Ou(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()))}}),ku={exports:{}},Iu={exports:{}};Iu.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]},f=function e(){var t,n,r,o,i,a,s=arguments[0],l=1,f=arguments.length,h=!1;for("boolean"==typeof s&&(h=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<f;++l)if(null!=(t=arguments[l]))for(n in t)r=d(s,n),s!==(o=d(t,n))&&(h&&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(h,a,o)})):void 0!==o&&p(s,{name:n,newValue:o}));return s};const h=globalThis.crypto||{getRandomValues:()=>123456};function m(){return e=>{const t=f({},e);t.qInfo=t.qInfo||{},t.qInfo.qId=t.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^h.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))));const r=t._mock;let o=t;return r&&(delete t._mock,o=f({},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 x(e,t){return e.reduce(((e,r)=>n(n({},e),function(e,t){let r=C(e);const{delay:i}=t,{id:a,session:s}=e,l=o(e,b);if(a&&r&&a!==r)throw new Error("Generic object has multiple IDs, qInfo.qId: ".concat(r,", id: ").concat(a));return r=r||a||"object - ".concat(+Date.now()),{[r]:n({id:r,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 L(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(L);const n=x(e,t);return async e=>Promise.resolve(n[e])}function w(){return()=>Promise.resolve({id:"app-layout"})}const O={fromGenericObjects(t){return 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)}(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}};return O}();var _u=z(ku.exports=Iu.exports);const Du={generator:yu,hook:Dc,theme:Qe,locale:G};export{_u as EnigmaMocker,Du as __DO_NOT_USE__,dl as conversion,Ru as embed,ru as onContextMenu,nu as onTakeSnapshot,Yc as useAction,Wc as useApp,Hc as useAppLayout,Qc as useConstraints,Xc as useDeviceType,Ac as useEffect,jc as useElement,Kc as useEmbed,$c as useGlobal,tu as useImperativeHandle,iu as useKeyboard,Fc as useLayout,Nc as useMemo,Uc as useModel,eu as useOptions,Jc as usePlugins,Mc as usePromise,zc as useRect,ou as useRenderState,Vc as useSelections,Bc as useStaleLayout,Tc as useState,Gc as useTheme,Zc as useTranslator};
|
|
87
13
|
//# sourceMappingURL=index.js.map
|