@nebula.js/stardust 4.1.0 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/esm/dev.js +321 -322
- package/core/esm/dev.js.map +1 -1
- package/core/esm/index.js +4 -4
- package/core/esm/index.js.map +1 -1
- package/core/package.json +1 -1
- package/dist/stardust.dev.js +2249 -3784
- package/dist/stardust.dev.js.map +1 -1
- package/dist/stardust.js +14 -14
- package/dist/stardust.js.map +1 -1
- package/package.json +12 -12
- package/types/index.d.ts +10 -10
package/core/esm/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/stardust v4.
|
|
2
|
+
* @nebula.js/stardust v4.2.0
|
|
3
3
|
* Copyright (c) 2023 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import*as e from"react";import t,{useState as n,useEffect as r,forwardRef as o,useMemo as i,useImperativeHandle as a,useReducer as s,useCallback as l,useLayoutEffect as c,PureComponent as u,useRef as d,useContext as p,createElement as h,Component as f}from"react";import m from"react-dom";import{CacheProvider as g,ThemeContext as y}from"@emotion/react";import{Checkbox as b,Radio as v,Typography as S,FormControlLabel as E,Box as x,Grid as C,Tooltip as w,Paper as L,IconButton as R,styled as I,Popover as q,MenuList as k,MenuItem as O,ListItemIcon as _,Divider as T,InputAdornment as D,OutlinedInput as A,Badge as P,List as N,ListItem as M,Button as z,Icon as j,CircularProgress as F}from"@mui/material";import W from"@emotion/styled";function B(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function U(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){if(this instanceof e){var n=[null];return n.push.apply(n,arguments),new(Function.bind.apply(t,n))}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}function H(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 $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H(Object(n),!0).forEach((function(t){G(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function G(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V(){return V=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},V.apply(this,arguments)}function K(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=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),s=new O(r||[]);return o(a,"_invoke",{value:R(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",g={};function y(){}function b(){}function v(){}var S={};c(S,a,(function(){return this}));var E=Object.getPrototypeOf,x=E&&E(E(_([])));x&&x!==n&&r.call(x,a)&&(S=x);var C=v.prototype=y.prototype=Object.create(S);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function n(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function R(e,t,n){var r=p;return function(o,i){if(r===f)throw new Error("Generator is already running");if(r===m){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=I(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===p)throw r=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var l=d(e,t,n);if("normal"===l.type){if(r=n.done?m:h,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=m,n.method="throw",n.arg=l.arg)}}}function I(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,I(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function q(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 k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(q,this),this.reset(!0)}function _(e){if(e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=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 i.next=i}}return{next:T}}function T(){return{value:t,done:!0}}return b.prototype=v,o(C,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:b,configurable:!0}),b.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(C),e},e.awrap=function(e){return{__await:e}},w(L.prototype),c(L.prototype,s,(function(){return this})),e.AsyncIterator=L,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new L(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(C),c(C,l,"Generator"),c(C,a,(function(){return this})),c(C,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=_,O.prototype={constructor:O,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(k),!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,g):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),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;k(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:_(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}({exports:{}});const Z=function(){let{initial:e="en-US",fallback:t="en-US"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=function(){let{initial:e="en-US",fallback:t="en-US"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n={};let r=e;const o={language:e=>(e&&(r=e),r),add:e=>{const{id:t,locale:r}=e;Object.keys(r).forEach((e=>{n[e]||(n[e]={}),n[e][t]=r[e]}))},get(e,o){let 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?function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const t="string"==typeof e||"number"==typeof e?[e]:e;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/\{(\d+)\}/g,((e,n)=>void 0!==t[n]?t[n]:e))}(i,o):i}};return o}({initial:e,fallback:t});return{translator:n}};var J={Cancel:{id:"Cancel",locale:{"de-DE":"Abbrechen","en-US":"Cancel","es-ES":"Cancelar","fr-FR":"Annuler","it-IT":"Annulla","ja-JP":"キャンセル","ko-KR":"취소","nl-NL":"Annuleren","pl-PL":"Anuluj","pt-BR":"Cancelar","ru-RU":"Отмена","sv-SE":"Avbryt","tr-TR":"İptal","zh-CN":"取消","zh-TW":"取消"}},CurrentSelections_All:{id:"CurrentSelections.All",locale:{"de-DE":"ALLES","en-US":"ALL","es-ES":"TODOS","fr-FR":"TOUS","it-IT":"TUTTI","ja-JP":"すべて","ko-KR":"모두","nl-NL":"ALLE","pl-PL":"WSZYSTKO","pt-BR":"TODOS","ru-RU":"ВСЕ","sv-SE":"ALLA","tr-TR":"TÜMÜ","zh-CN":"全部","zh-TW":"全部"}},CurrentSelections_Of:{id:"CurrentSelections.Of",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0}/ {1}","ko-KR":"{0} / {1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0}/ {1}","zh-TW":"{0}/ {1}"}},Listbox_Dismiss:{id:"Listbox.Dismiss",locale:{"de-DE":"Schließen","en-US":"Dismiss","es-ES":"Descartar","fr-FR":"Ignorer","it-IT":"Ignora","ja-JP":"却下","ko-KR":"해제","nl-NL":"Overslaan","pl-PL":"Zamknij","pt-BR":"Ignorar","ru-RU":"Пропустить","sv-SE":"Hoppa över","tr-TR":"Kapat","zh-CN":"离开","zh-TW":"解除"}},Listbox_DrillDown:{id:"Listbox.DrillDown",locale:{"de-DE":"Drilldown-Dimension","en-US":"Drill-down dimension","es-ES":"Dimensión jerárquica","fr-FR":"Dimension hiérarchique","it-IT":"Dimensione drill-down","ja-JP":"軸のドリルダウン","ko-KR":"드릴다운 차원","nl-NL":"Drill-downdimensie","pl-PL":"Wymiar hierarchiczny","pt-BR":"Dimensão de detalhamento","ru-RU":"Детализированное измерение","sv-SE":"Hierarkisk dimension","tr-TR":"Detaya inme boyutu","zh-CN":"钻取维度","zh-TW":"向下探查維度"}},Listbox_ItemsOverflow:{id:"Listbox.ItemsOverflow",locale:{"de-DE":"Derzeit wird ein eingeschränkter Datensatz angezeigt, verwenden Sie die Suche, um die Größe zu reduzieren","en-US":"Currently showing a limited data set, use search to reduce the size","es-ES":"Actualmente se muestra un conjunto de datos limitado, utilice la búsqueda para reducir el tamaño","fr-FR":"Ensemble de données limité actuellement affiché. Utilisez la rechercher pour réduire la taille.","it-IT":"Attualmente visualizzato un set di dati limitato; utilizzare la ricerca per ridurre le dimensioni","ja-JP":"現在表示されているデータ セットは制限されているため、検索を使ってサイズを縮小してください","ko-KR":"현재 제한된 데이터 집합이 표시되고 있습니다. 검색을 사용하여 크기를 줄이십시오.","nl-NL":"Er wordt momenteel een beperkte gegevensverzameling getoond, gebruik Zoeken om de omvang te verkleinen","pl-PL":"Wyświetlany jest ograniczony zestaw danych. Użyj wyszukiwania, aby zmniejszyć rozmiar.","pt-BR":"Atualmente mostrando um conjunto de dados limitado, use a pesquisa para reduzir o tamanho","ru-RU":"Сейчас отображается ограниченный набор данных. Используйте поиск, чтобы уменьшить размер.","sv-SE":"En begränsad datauppsättning visas. Använd sök för att minska storleken","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor. Boyutu azaltmak için arama işlevini kullanın","zh-CN":"目前显示有限的数据集,使用搜索来减少大小","zh-TW":"目前顯示有限資料集,請使用搜尋減少大小"}},Listbox_Lock:{id:"Listbox.Lock",locale:{"de-DE":"Auswahlen sperren","en-US":"Lock selections","es-ES":"Bloquear selecciones","fr-FR":"Verrouiller les sélections","it-IT":"Blocca selezioni","ja-JP":"選択をロック","ko-KR":"선택 내용 잠금","nl-NL":"Selecties vergrendelen","pl-PL":"Zablokuj wybory","pt-BR":"Bloquear seleções","ru-RU":"Заблокировать выборки","sv-SE":"Lås urval","tr-TR":"Seçimleri kilitle","zh-CN":"锁定选择项","zh-TW":"鎖定選項"}},Listbox_NoMatchesForYourTerms:{id:"Listbox.NoMatchesForYourTerms",locale:{"de-DE":"Für Ihre Suche wurden keine Übereinstimmungen gefunden.","en-US":"There are no matches for your search.","es-ES":"No hay resultados para su búsqueda.","fr-FR":"Aucun résultat ne correspond à votre recherche.","it-IT":"Non è stata trovata alcuna corrispondenza per questa ricerca.","ja-JP":"検索に一致するものがありません。","ko-KR":"검색에 대해 일치하는 항목이 없습니다.","nl-NL":"Er zijn geen overeenkomsten voor uw zoekopdracht.","pl-PL":"Brak dopasowań dla tego wyszukiwania.","pt-BR":"Não há correspondências para sua pesquisa.","ru-RU":"Нет совпадений по вашему поисковому запросу.","sv-SE":"Det finns inga matchningar för din sökning.","tr-TR":"Aramanızla eşleşen sonuç yok.","zh-CN":"您的搜索条件没有任何匹配结果。","zh-TW":"沒有與您搜尋相符的項目。"}},Listbox_ResultFilterLabel:{id:"Listbox.ResultFilterLabel",locale:{"de-DE":"Suchergebnisfilter","en-US":"Search Results Filter","es-ES":"Filtro de resultados de búsqueda","fr-FR":"Filtre de résultats de recherche","it-IT":"Filtro risultati Ricerca","ja-JP":"検索結果フィルター","ko-KR":"검색 결과 필터","nl-NL":"Filter voor zoekresultaten","pl-PL":"Filtr wyników wyszukiwania","pt-BR":"Filtro de resultados da pesquisa","ru-RU":"Фильтр результатов поиска","sv-SE":"Filter för sökresultat","tr-TR":"Arama Sonuçları Filtresi","zh-CN":"搜索结果筛选器","zh-TW":"搜尋結果篩選"}},Listbox_ScreenReader_SearchThenSelectionsMenu_WithAccSelMenu:{id:"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu",locale:{"de-DE":"Drücken Sie die Umschalttaste zusammen mit der Tabulatortaste, um den Fokus in die Suchleiste zu setzen, und dann erneut beide Tasten, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the search bar, then Shift plus Tab again to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en la barra de búsqueda, luego Mayús + Tabulador nuevamente para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur la barre de recherche, puis de nouveau sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere MAIUSC+TAB per impostare lo stato attivo sulla barra di ricerca, quindi premere nuovamente MAIUSC+TAB per impostare lo stato attivo sul menu selezioni.","ja-JP":"Shift + Tab を押して検索バーにフォーカスを設定し、Shift + Tab をもう一度押して選択メニューにフォーカスを設定します。","ko-KR":"Shift+Tab을 눌러 검색 막대에 초점을 맞춘 다음 Shift+Tab을 다시 눌러 선택 메뉴에 초점을 맞추십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op de zoekbalk, druk vervolgens nogmaals op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na pasku wyszukiwania. Następnie ponownie użyj tej kombinacji klawiszy, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco na barra de pesquisa e Shift + Tab novamente para definir o foco no menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на строку поиска. Затем снова нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb för att ställa in fokus på sökfältet, sedan Skift plus Tabb igen för att ställa in fokus på urvalsmenyn.","tr-TR":"Odağı arama çubuğuna ayarlamak için Shift ve Sekme tuşlarına birlikte basın, ardından bu tuşlara birlikte tekrar basarak odağı seçim menüsüne ayarlayın.","zh-CN":"按 Shift+Tab 在搜索栏上设置焦点,然后再次按 Shift+Tab 在“选择”菜单上设置焦点。","zh-TW":"按下 Shift 加 Tab 鍵以設定搜尋列上的焦點,然後再次按下 Shift 加 Tab 鍵,以設定選項功能表上的焦點。"}},Listbox_ScreenReader_SelectionMenu_WithAccSelMenu:{id:"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",locale:{"de-DE":"Drücken Sie gleichzeitig die Umschalt- und die Tabulatortaste, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere i tasti MAIUSC+TAB per evidenziare il menu di selezione.","ja-JP":"Shift キー + Tab キーを押して選択メニューにフォーカスを設定します。","ko-KR":"선택 메뉴에 초점을 설정하려면 Shift+Tab을 누르십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco sobre o menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb när du vill ställa in fokus på urvalsmenyn.","tr-TR":"Odağı seçim menüsüne ayarlamak için Shift ve Sekme tuşlarına birlikte basın.","zh-CN":"按下 Shift 加 Tab 以将焦点设置在选择菜单上。","zh-TW":"按下 Shift 加 Tab 以在選項功能表上設定焦點。"}},Listbox_ScreenReaderInstructions:{id:"Listbox.ScreenReaderInstructions",locale:{"de-DE":"Bei Aktivierung der Elemente unten wird der Seiteninhalt aktualisiert","en-US":"Activating the elements below will cause content on the page to be updated","es-ES":"La activación de los elementos siguientes hará que se actualice el contenido en la página","fr-FR":"L'activation des éléments ci-dessous actualisera le contenu de la page.","it-IT":"L'attivazione degli elementi sottostanti causerà l'aggiornamento del contenuto della pagina","ja-JP":"下記の要素をアクティブ化すると、ページのコンテンツが更新されます","ko-KR":"아래 요소를 활성화하면 페이지의 콘텐츠가 업데이트됩니다.","nl-NL":"Door de onderstaande elementen te activeren wordt de inhoud op de pagina bijgewerkt","pl-PL":"Aktywacja poniższych elementów spowoduje aktualizację zawartości na stronie","pt-BR":"A ativação dos elementos abaixo fará com que o conteúdo da página seja atualizado","ru-RU":"Активация приведенных ниже элементов приведет к обновлению содержимого страницы","sv-SE":"Om du aktiverar elementen nedan kommer innehåll på sidan att uppdateras","tr-TR":"Aşağıdaki öğeleri etkinleştirmek sayfadaki içeriğin güncellenmesine neden olur","zh-CN":"激活下面的元素将导致页面上的内容更新","zh-TW":"啟用以下元素將會造成更新頁面上的內容"}},Listbox_Search:{id:"Listbox.Search",locale:{"de-DE":"In Listenfeld suchen","en-US":"Search in listbox","es-ES":"Buscar en cuadro de lista","fr-FR":"Rechercher dans la liste de sélection","it-IT":"Cerca nella casella di elenco","ja-JP":"リストボックス内を検索","ko-KR":"목록 상자에서 검색","nl-NL":"Zoeken in keuzelijst","pl-PL":"Wyszukaj w liście wartości","pt-BR":"Pesquisar na caixa de listagem","ru-RU":"Поиск в списке","sv-SE":"Sök i listruta","tr-TR":"Liste kutusunda ara","zh-CN":"在列表框中搜索","zh-TW":"在清單方塊中搜尋"}},Listbox_Search_ScreenReaderInstructions:{id:"Listbox.Search.ScreenReaderInstructions",locale:{"de-DE":"Über das folgende Suchfeld werden Ergebnisse während der Eingabe gefiltert","en-US":"The following search field filters results below as you type","es-ES":"El siguiente campo de búsqueda filtra los resultados siguientes a medida que escribe","fr-FR":"Le champ de recherche suivant filtrer les résultats ci-dessous à mesure de votre saisie.","it-IT":"Il seguente campo di ricerca filtra i risultati man mano che vengono digitati","ja-JP":"次の検索フィールドは、入力と同時に下記の結果をフィルターします","ko-KR":"다음 검색 필드는 입력할 때 아래의 결과를 필터링합니다.","nl-NL":"Het volgende zoekveld filtert resultaten terwijl u typt","pl-PL":"Następujące pole wyszukiwania filtruje wyniki poniżej w miarę pisania","pt-BR":"O campo de pesquisa a seguir filtra os resultados abaixo conforme você digita","ru-RU":"Следующее поле поиска фильтрует результаты ниже по мере ввода текста","sv-SE":"Följande sökfält filtrerar resultaten nedan medan du skriver","tr-TR":"Aşağıdaki arama alanı siz yazarken aşağıdaki sonuçları filtreler","zh-CN":"键入时,以下搜索字段筛选结果如下","zh-TW":"下列搜尋欄位在您輸入時篩選以下結果"}},Listbox_Unlock:{id:"Listbox.Unlock",locale:{"de-DE":"Auswahlen entsperren","en-US":"Unlock selections","es-ES":"Desbloquear selecciones","fr-FR":"Déverrouiller les sélections","it-IT":"Sblocca selezioni","ja-JP":"選択をロック解除","ko-KR":"선택 내용 잠금 해제","nl-NL":"Selecties ontgrendelen","pl-PL":"Odblokuj wybory","pt-BR":"Desbloquear seleções","ru-RU":"Разблокировать выборки","sv-SE":"Lås upp urval","tr-TR":"Seçimlerin kilidini aç","zh-CN":"将选择项解锁","zh-TW":"解鎖選項"}},Menu_More:{id:"Menu.More",locale:{"de-DE":"Mehr","en-US":"More","es-ES":"Más","fr-FR":"Plus","it-IT":"Altro","ja-JP":"詳細","ko-KR":"자세히","nl-NL":"Meer","pl-PL":"Więcej","pt-BR":"Mais","ru-RU":"Дополнительно","sv-SE":"Mer","tr-TR":"Daha fazla","zh-CN":"更多","zh-TW":"更多"}},Navigate_Back:{id:"Navigate.Back",locale:{"de-DE":"Schritt zurück","en-US":"Step back","es-ES":"Atrás","fr-FR":"Retour en arrière","it-IT":"Torna indietro","ja-JP":"1 段階戻る","ko-KR":"이전 단계","nl-NL":"Stap terug","pl-PL":"Krok do tyłu","pt-BR":"Voltar uma etapa","ru-RU":"Шаг назад","sv-SE":"Gå bakåt","tr-TR":"Bir adım geri","zh-CN":"后退","zh-TW":"倒退"}},Navigate_Forward:{id:"Navigate.Forward",locale:{"de-DE":"Schritt vor","en-US":"Step forward","es-ES":"Avanzar","fr-FR":"Étape suivante","it-IT":"Vai avanti","ja-JP":"1段階進む","ko-KR":"다음 단계","nl-NL":"Stap vooruit","pl-PL":"Krok do przodu","pt-BR":"Avançar uma etapa","ru-RU":"Шаг вперед","sv-SE":"Gå framåt","tr-TR":"Bir adım ileri","zh-CN":"前进","zh-TW":"前進"}},OK:{id:"OK",locale:{"de-DE":"OK","en-US":"OK","es-ES":"Aceptar","fr-FR":"OK","it-IT":"OK","ja-JP":"OK","ko-KR":"확인","nl-NL":"OK","pl-PL":"OK","pt-BR":"OK","ru-RU":"ОК","sv-SE":"OK","tr-TR":"Tamam","zh-CN":"确定","zh-TW":"確定"}},Object_Listbox_Alternative:{id:"Object.Listbox.Alternative",locale:{"de-DE":"Alternative","en-US":"Alternative","es-ES":"Alternativo","fr-FR":"Alternatif","it-IT":"Alternativo","ja-JP":"代替","ko-KR":"대체 항목","nl-NL":"Alternatief","pl-PL":"Alternatywne","pt-BR":"Alternativo","ru-RU":"Альтернативные","sv-SE":"Alternativ","tr-TR":"Alternatif","zh-CN":"可选","zh-TW":"替代選項"}},Object_Listbox_Excluded:{id:"Object.Listbox.Excluded",locale:{"de-DE":"Ausgeschlossen","en-US":"Excluded","es-ES":"Excluido","fr-FR":"Exclu","it-IT":"Escluso","ja-JP":"除外済み","ko-KR":"제외됨","nl-NL":"Uitgesloten","pl-PL":"Wykluczone","pt-BR":"Excluído","ru-RU":"Исключенные","sv-SE":"Uteslutet","tr-TR":"Hariç tutulan","zh-CN":"已排除","zh-TW":"已排除"}},Object_Listbox_ExcludedLock:{id:"Object.Listbox.ExcludedLock",locale:{"de-DE":"Ausgeschlossene Sperre","en-US":"Excluded lock","es-ES":"Bloqueo excluido","fr-FR":"Exclu verrouillé","it-IT":"Blocco escluso","ja-JP":"除外されたロック","ko-KR":"제외된 잠금","nl-NL":"Uitsluitingsvergrendeling","pl-PL":"Wykluczone zablokowane","pt-BR":"Bloqueado excluído","ru-RU":"Блокировать исключенные элементы","sv-SE":"Uteslutet låst","tr-TR":"Hariç tutulan kilit","zh-CN":"已排除锁定","zh-TW":"已排除鎖定"}},Object_Listbox_Locked:{id:"Object.Listbox.Locked",locale:{"de-DE":"Gesperrt","en-US":"Locked","es-ES":"Bloqueado","fr-FR":"Verrouillé","it-IT":"Bloccato","ja-JP":"ロック済み","ko-KR":"잠김","nl-NL":"Vergrendeld","pl-PL":"Zablokowane","pt-BR":"Bloqueado","ru-RU":"Заблокированные","sv-SE":"Låst","tr-TR":"Kilitli","zh-CN":"已锁定","zh-TW":"已鎖定"}},Object_Listbox_Optional:{id:"Object.Listbox.Optional",locale:{"de-DE":"Optional","en-US":"Optional","es-ES":"Opcional","fr-FR":"Facultatif","it-IT":"Opzionale","ja-JP":"オプション","ko-KR":"선택 사항","nl-NL":"Optioneel","pl-PL":"Opcjonalne","pt-BR":"Opcional","ru-RU":"Дополнительные","sv-SE":"Valfritt","tr-TR":"İsteğe bağlı","zh-CN":"可选","zh-TW":"選用"}},Object_Listbox_Selected:{id:"Object.Listbox.Selected",locale:{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбранные","sv-SE":"Urval","tr-TR":"Seçilen","zh-CN":"已选择","zh-TW":"已選取"}},Object_Listbox_SelectedExcluded:{id:"Object.Listbox.SelectedExcluded",locale:{"de-DE":"Ausgeschlossen ausgewählt","en-US":"Selected excluded","es-ES":"Seleccionado excluido","fr-FR":"Sélectionné exclu","it-IT":"Selezionato escluso","ja-JP":"選択された除外値","ko-KR":"제외 항목 선택됨","nl-NL":"Geselecteerde uitgesloten","pl-PL":"Wybrane wykluczone","pt-BR":"Excluído selecionado","ru-RU":"Выбранные исключенные элементы","sv-SE":"Urval uteslutet","tr-TR":"Seçili hariç tutulan","zh-CN":"已排除选择","zh-TW":"已選取排除值"}},Object_Update_Active:{id:"Object.Update.Active",locale:{"de-DE":"Laden von Daten","en-US":"Updating data","es-ES":"Cargando datos","fr-FR":"Chargement de données en cours","it-IT":"Caricamento dati in corso","ja-JP":"データのロード中","ko-KR":"데이터 로드 중","nl-NL":"Gegevens worden geladen","pl-PL":"Ładowanie danych","pt-BR":"Carregando dados","ru-RU":"Загрузка данных","sv-SE":"Laddar data","tr-TR":"Veriler yükleniyor","zh-CN":"加载数据","zh-TW":"正在載入資料"}},Object_Update_Cancelled:{id:"Object.Update.Cancelled",locale:{"de-DE":"Datenaktualisierung wurde abgebrochen","en-US":"Data update was cancelled","es-ES":"Se ha cancelado la actualización de datos","fr-FR":"Mise à jour des données annulée","it-IT":"Aggiornamento dati annullato","ja-JP":"データの更新がキャンセルされました","ko-KR":"데이터 업데이트가 취소되었습니다.","nl-NL":"Gegevensupdate is geannuleerd","pl-PL":"Aktualizacja danych została anulowana","pt-BR":"A atualização de dados foi cancelada","ru-RU":"Обновление данных отменено","sv-SE":"Datauppdateringen avbröts.","tr-TR":"Veri güncelleştirme iptal edildi","zh-CN":"数据更新已取消","zh-TW":"資料更新已取消"}},Retry:{id:"Retry",locale:{"de-DE":"Wiederholen","en-US":"Retry","es-ES":"Intentar de nuevo","fr-FR":"Réessayer","it-IT":"Riprova","ja-JP":"再試行","ko-KR":"다시 시도","nl-NL":"Opnieuw","pl-PL":"Ponów próbę","pt-BR":"Tentar novamente","ru-RU":"Повторить попытку","sv-SE":"Försök igen","tr-TR":"Yeniden dene","zh-CN":"重试","zh-TW":"重試"}},ScreenReader_ManySelected:{id:"ScreenReader.ManySelected",locale:{"de-DE":"Es sind {0} Werte ausgewählt.","en-US":"There are {0} selected values.","es-ES":"Hay {0} valores seleccionados.","fr-FR":"{0} valeurs sont sélectionnées.","it-IT":"Sono presenti {0} valori selezionati.","ja-JP":"値が {0} 個選択されています。","ko-KR":"{0}개의 값이 선택되었습니다.","nl-NL":"Er zijn {0} geselecteerde waarden.","pl-PL":"Wybranych wartości: {0}","pt-BR":"Há {0} valores selecionados.","ru-RU":"Выбраны {0} значений(я).","sv-SE":"{0} värden är valda.","tr-TR":"Seçilen {0} değer var.","zh-CN":"存在 {0} 个已选择的值。","zh-TW":"有 {0} 個選取的值。"}},ScreenReader_OneSelected:{id:"ScreenReader.OneSelected",locale:{"de-DE":"Es ist ein Wert ausgewählt.","en-US":"There is one selected value.","es-ES":"Hay un valor seleccionado.","fr-FR":"Une valeur est sélectionnée.","it-IT":"È presente un valore selezionato.","ja-JP":"値が 1 つ選択されています。","ko-KR":"하나의 값이 선택되었습니다.","nl-NL":"Er is één waarde geselecteerd.","pl-PL":"Istnieje jedna wybrana wartość.","pt-BR":"Há um valor selecionado.","ru-RU":"Выбрано одно значение.","sv-SE":"Ett värde är valt.","tr-TR":"Seçilen bir değer var.","zh-CN":"存在一个已选择的值。","zh-TW":"有一個選取的值。"}},ScreenReader_ZeroSelected:{id:"ScreenReader.ZeroSelected",locale:{"de-DE":"Es sind keine Werte ausgewählt.","en-US":"No values are selected.","es-ES":"No se ha seleccionado ningún valor.","fr-FR":"Aucune valeur n'est sélectionnée.","it-IT":"Nessun valore selezionato.","ja-JP":"値が選択されていません。","ko-KR":"선택된 값이 없습니다.","nl-NL":"Geen waarden geselecteerd.","pl-PL":"Brak wybranych wartości.","pt-BR":"Nenhum valor selecionado.","ru-RU":"Значения не выбраны.","sv-SE":"Inga värden är valda.","tr-TR":"Seçilen değer yok.","zh-CN":"未选择值。","zh-TW":"沒有選取任何值。"}},Selection_Cancel:{id:"Selection.Cancel",locale:{"de-DE":"Auswahl abbrechen","en-US":"Cancel selection","es-ES":"Cancelar selección","fr-FR":"Annuler la sélection","it-IT":"Annulla selezione","ja-JP":"選択のキャンセル","ko-KR":"선택 취소","nl-NL":"Selectie annuleren","pl-PL":"Anuluj selekcję","pt-BR":"Cancelar seleção","ru-RU":"Отменить выборку","sv-SE":"Avbryt urval","tr-TR":"Seçimi iptal et","zh-CN":"取消选择","zh-TW":"取消選取"}},Selection_Clear:{id:"Selection.Clear",locale:{"de-DE":"Auswahl löschen","en-US":"Clear selection","es-ES":"Borrar selección","fr-FR":"Effacer la sélection","it-IT":"Cancella selezione","ja-JP":"選択をクリア","ko-KR":"선택 해제","nl-NL":"Selectie wissen","pl-PL":"Wyczyść selekcję","pt-BR":"Limpar seleção","ru-RU":"Очистить выбор","sv-SE":"Rensa urval","tr-TR":"Seçimi temizle","zh-CN":"清除选择","zh-TW":"清除選項"}},Selection_ClearAll:{id:"Selection.ClearAll",locale:{"de-DE":"Alle Auswahlen löschen","en-US":"Clear all selections","es-ES":"Borrar todas las selecciones","fr-FR":"Effacer toutes les sélections","it-IT":"Cancella tutte le selezioni","ja-JP":"選択をすべてクリアする","ko-KR":"모든 선택 해제","nl-NL":"Alle selecties wissen","pl-PL":"Wyczyść wszystkie selekcje","pt-BR":"Limpar todas as seleções","ru-RU":"Очистить от всех выборок","sv-SE":"Radera alla urval","tr-TR":"Tüm seçimleri temizle","zh-CN":"清除所有选择项","zh-TW":"清除所有選項"}},Selection_ClearAllStates:{id:"Selection.ClearAllStates",locale:{"de-DE":"Alle Status löschen","en-US":"Clear all states","es-ES":"Borrar todos los estados","fr-FR":"Effacer tous les états","it-IT":"Cancella tutti gli stati","ja-JP":"全ステートをクリア","ko-KR":"모든 상태 지우기","nl-NL":"Alle states wissen","pl-PL":"Wyczyść wszystkie stany","pt-BR":"Limpar todos os estados","ru-RU":"Очистить все состояния","sv-SE":"Rensa alla tillstånd","tr-TR":"Tüm durumları temizle","zh-CN":"清除所有状态","zh-TW":"清除所有狀態"}},Selection_Confirm:{id:"Selection.Confirm",locale:{"de-DE":"Auswahl bestätigen","en-US":"Confirm selection","es-ES":"Confirmar selección","fr-FR":"Confirmer la sélection","it-IT":"Conferma selezione","ja-JP":"選択の確認","ko-KR":"선택 확인","nl-NL":"Selectie bevestigen","pl-PL":"Potwierdź selekcję","pt-BR":"Confirmar seleção","ru-RU":"Подтвердить выборку","sv-SE":"Bekräfta urval","tr-TR":"Seçimi onayla","zh-CN":"确认选择","zh-TW":"確認選取"}},Selection_Menu:{id:"Selection.Menu",locale:{"de-DE":"Auswahlmenü","en-US":"Selection menu","es-ES":"Menú de selección","fr-FR":"Menu Sélection","it-IT":"Menu Selezione","ja-JP":"選択メニュー","ko-KR":"선택 메뉴","nl-NL":"Selectiemenu","pl-PL":"Menu selekcji","pt-BR":"Menu de seleção","ru-RU":'Меню "Выборка"',"sv-SE":"Urvalsmeny","tr-TR":"Seçim menüsü","zh-CN":"选择菜单","zh-TW":"選項功能表"}},Selection_SelectAll:{id:"Selection.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutto","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar todos","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},Selection_SelectAlternative:{id:"Selection.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替値を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},Selection_SelectExcluded:{id:"Selection.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外値を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluído","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},Selection_SelectPossible:{id:"Selection.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込値を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possível","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olasıyı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},SelectionToolbar_ClickToUnlock:{id:"SelectionToolbar.ClickToUnlock",locale:{"de-DE":"Zum Entsperren klicken","en-US":"Click to unlock","es-ES":"Haga clic para desbloquearla","fr-FR":"Cliquez pour déverrouiller","it-IT":"Fare clic per sbloccare","ja-JP":"クリックしてロック解除","ko-KR":"잠금을 해제하려면 클릭하십시오.","nl-NL":"Klik om te ontgrendelen","pl-PL":"Aby odblokować, kliknij","pt-BR":"Clique para destravar","ru-RU":"Щелкните, чтобы разблокировать","sv-SE":"Klicka för att låsa upp","tr-TR":"Kilidi kaldırmak için tıklayın","zh-CN":"单击以解锁","zh-TW":"按一下以解除鎖定"}},Visualization_Incomplete:{id:"Visualization.Incomplete",locale:{"de-DE":"Unvollständige Visualisierung","en-US":"Incomplete visualization","es-ES":"Visualización incompleta","fr-FR":"Visualisation incomplète","it-IT":"Visualizzazione incompleta","ja-JP":"未完了のビジュアライゼーション","ko-KR":"완료되지 않은 시각화","nl-NL":"Onvolledige visualisatie","pl-PL":"Niekompletna wizualizacja","pt-BR":"Visualização incompleta","ru-RU":"Незавершенная визуализация","sv-SE":"Ofullständig visualisering","tr-TR":"Tamamlanmamış görselleştirme","zh-CN":"不完整的可视化","zh-TW":"視覺化未完成"}},Visualization_Incomplete_Dimensions:{id:"Visualization.Incomplete.Dimensions",locale:{"de-DE":"{0} von {1} Dimensionen","en-US":"{0} of {1} dimensions","es-ES":"{0} de {1} dimensiones","fr-FR":"{0} dimensions sur {1}","it-IT":"{0} di {1} dimensioni","ja-JP":"{0} / {1} 軸","ko-KR":"{1} 차원의 {0}","nl-NL":"{0} van {1} dimensies","pl-PL":"{0} z {1} wymiarów","pt-BR":"{0} de {1} dimensões","ru-RU":"Измерения: {0} из {1}","sv-SE":"{0} av {1} dimensioner","tr-TR":"{0}/{1} boyut","zh-CN":"{0} / {1} 个维度","zh-TW":"{1} 個維度中的 {0} 個"}},Visualization_Incomplete_Measures:{id:"Visualization.Incomplete.Measures",locale:{"de-DE":"{0} von {1} Kennzahlen","en-US":"{0} of {1} measures","es-ES":"{0} de {1} medidas","fr-FR":"{0} mesures sur {1}","it-IT":"{0} di {1} misure","ja-JP":"{0} / {1} メジャー","ko-KR":"{1} 측정값의 {0}","nl-NL":"{0} van {1} metingen","pl-PL":"{0} z {1} miar","pt-BR":"{0} de {1} medidas","ru-RU":"Меры: {0} из {1}","sv-SE":"{0} av {1} mått","tr-TR":"{0}/{1} hesaplama","zh-CN":"{0} / {1} 个度量","zh-TW":"{1} 個量值中的 {0} 個"}},Visualization_Invalid_Dimension:{id:"Visualization.Invalid.Dimension",locale:{"de-DE":"Ungültige Dimension","en-US":"Invalid dimension","es-ES":"Dimensión no válida","fr-FR":"Dimension non valide","it-IT":"Dimensione non valida","ja-JP":"無効な軸です","ko-KR":"잘못된 차원","nl-NL":"Ongeldige dimensie","pl-PL":"Nieprawidłowy wymiar","pt-BR":"Dimensão inválida","ru-RU":"Недопустимое измерение","sv-SE":"Ogiltig dimension","tr-TR":"Geçersiz boyut","zh-CN":"无效维度","zh-TW":"維度無效"}},Visualization_Invalid_Measure:{id:"Visualization.Invalid.Measure",locale:{"de-DE":"Ungültige Kennzahl","en-US":"Invalid measure","es-ES":"Medida no válida","fr-FR":"Mesure non valide","it-IT":"Misura non valida","ja-JP":"無効なメジャーです","ko-KR":"잘못된 측정값","nl-NL":"Ongeldige meting","pl-PL":"Nieprawidłowa miara","pt-BR":"Medida inválida","ru-RU":"Недопустимая мера","sv-SE":"Ogiltigt mått","tr-TR":"Geçersiz hesaplama","zh-CN":"无效度量项","zh-TW":"量值無效"}},Visualization_LayoutError:{id:"Visualization.LayoutError",locale:{"de-DE":"Fehler","en-US":"Error","es-ES":"Error","fr-FR":"Erreur","it-IT":"Errore","ja-JP":"エラー","ko-KR":"오류","nl-NL":"Fout","pl-PL":"Błąd","pt-BR":"Erro","ru-RU":"Ошибка","sv-SE":"Fel","tr-TR":"Hata","zh-CN":"错误","zh-TW":"錯誤"}},Visualization_UnfulfilledCalculationCondition:{id:"Visualization.UnfulfilledCalculationCondition",locale:{"de-DE":"Die Berechnungsbedingung ist nicht erfüllt","en-US":"The calculation condition is not fulfilled","es-ES":"La condición de cálculo no se cumple","fr-FR":"Condition de calcul non remplie","it-IT":"La condizione di calcolo non è soddisfatta","ja-JP":"演算実行条件が満たされていません","ko-KR":"계산 조건이 충족되지 않았습니다.","nl-NL":"Er is niet aan de berekeningsvoorwaarde voldaan","pl-PL":"Warunek obliczenia nie jest spełniony","pt-BR":"A condição de cálculo não foi atendida","ru-RU":"Условие вычисления не выполнено","sv-SE":"Beräkningsvillkoret uppfylls inte","tr-TR":"Hesaplama koşulu yerine getirilmedi","zh-CN":"不满足计算条件","zh-TW":"不符計算條件"}}};function X(e){const t=Z({initial:e});return Object.keys(J).forEach((e=>{t.translator.add(J[e])})),{translator:t.translator}}var Y={};function Q(){Q.init.call(this)}Y.isObject=function(e){return"object"==typeof e&&null!==e},Y.isNumber=function(e){return"number"==typeof e},Y.isUndefined=function(e){return void 0===e},Y.isFunction=function(e){return"function"==typeof e};var ee=Q;Q.EventEmitter=Q,Q.prototype._events=void 0,Q.prototype._maxListeners=void 0,Q.defaultMaxListeners=10,Q.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},Q.prototype.setMaxListeners=function(e){if(!Y.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},Q.prototype.emit=function(e){var t,n,r,o,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],Y.isUndefined(n))return!1;if(Y.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(Y.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},Q.prototype.addListener=function(e,t){var n;if(!Y.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,Y.isFunction(t.listener)?t.listener:t),this._events[e]?Y.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,Y.isObject(this._events[e])&&!this._events[e].warned)&&((n=Y.isUndefined(this._maxListeners)?Q.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,Y.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),Y.isFunction(console.trace)&&console.trace()));return this},Q.prototype.on=Q.prototype.addListener,Q.prototype.once=function(e,t){if(!Y.isFunction(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},Q.prototype.removeListener=function(e,t){var n,r,o,i;if(!Y.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||Y.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(Y.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},Q.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],Y.isFunction(n))this.removeListener(e,n);else if(Array.isArray(n))for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},Q.prototype.listeners=function(e){return this._events&&this._events[e]?Y.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},Q.listenerCount=function(e,t){return e._events&&e._events[t]?Y.isFunction(e._events[t])?1:e._events[t].length:0};var te=B(ee);function ne(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function re(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function oe(){}var ie=.7,ae=1/ie,se="\\s*([+-]?\\d+)\\s*",le="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ce="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ue=/^#([0-9a-f]{3,8})$/,de=new RegExp(`^rgb\\(${se},${se},${se}\\)$`),pe=new RegExp(`^rgb\\(${ce},${ce},${ce}\\)$`),he=new RegExp(`^rgba\\(${se},${se},${se},${le}\\)$`),fe=new RegExp(`^rgba\\(${ce},${ce},${ce},${le}\\)$`),me=new RegExp(`^hsl\\(${le},${ce},${ce}\\)$`),ge=new RegExp(`^hsla\\(${le},${ce},${ce},${le}\\)$`),ye={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function be(){return this.rgb().formatHex()}function ve(){return this.rgb().formatRgb()}function Se(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ue.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Ee(t):3===n?new we(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?xe(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?xe(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=de.exec(e))?new we(t[1],t[2],t[3],1):(t=pe.exec(e))?new we(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=he.exec(e))?xe(t[1],t[2],t[3],t[4]):(t=fe.exec(e))?xe(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=me.exec(e))?Oe(t[1],t[2]/100,t[3]/100,1):(t=ge.exec(e))?Oe(t[1],t[2]/100,t[3]/100,t[4]):ye.hasOwnProperty(e)?Ee(ye[e]):"transparent"===e?new we(NaN,NaN,NaN,0):null}function Ee(e){return new we(e>>16&255,e>>8&255,255&e,1)}function xe(e,t,n,r){return r<=0&&(e=t=n=NaN),new we(e,t,n,r)}function Ce(e,t,n,r){return 1===arguments.length?((o=e)instanceof oe||(o=Se(o)),o?new we((o=o.rgb()).r,o.g,o.b,o.opacity):new we):new we(e,t,n,null==r?1:r);var o}function we(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Le(){return`#${ke(this.r)}${ke(this.g)}${ke(this.b)}`}function Re(){const e=Ie(this.opacity);return`${1===e?"rgb(":"rgba("}${qe(this.r)}, ${qe(this.g)}, ${qe(this.b)}${1===e?")":`, ${e})`}`}function Ie(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function qe(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ke(e){return((e=qe(e))<16?"0":"")+e.toString(16)}function Oe(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Te(e,t,n,r)}function _e(e){if(e instanceof Te)return new Te(e.h,e.s,e.l,e.opacity);if(e instanceof oe||(e=Se(e)),!e)return new Te;if(e instanceof Te)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),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 Te(a,s,l,e.opacity)}function Te(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function De(e){return(e=(e||0)%360)<0?e+360:e}function Ae(e){return Math.max(0,Math.min(1,e||0))}function Pe(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}ne(oe,Se,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:be,formatHex:be,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return _e(this).formatHsl()},formatRgb:ve,toString:ve}),ne(we,Ce,re(oe,{brighter(e){return e=null==e?ae:Math.pow(ae,e),new we(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?ie:Math.pow(ie,e),new we(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new we(qe(this.r),qe(this.g),qe(this.b),Ie(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Le,formatHex:Le,formatHex8:function(){return`#${ke(this.r)}${ke(this.g)}${ke(this.b)}${ke(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Re,toString:Re})),ne(Te,(function(e,t,n,r){return 1===arguments.length?_e(e):new Te(e,t,n,null==r?1:r)}),re(oe,{brighter(e){return e=null==e?ae:Math.pow(ae,e),new Te(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?ie:Math.pow(ie,e),new Te(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new we(Pe(e>=240?e-240:e+120,o,r),Pe(e,o,r),Pe(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Te(De(this.h),Ae(this.s),Ae(this.l),Ie(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Ie(this.opacity);return`${1===e?"hsl(":"hsla("}${De(this.h)}, ${100*Ae(this.s)}%, ${100*Ae(this.l)}%${1===e?")":`, ${e})`}`}}));var Ne=Object.prototype.hasOwnProperty,Me=Object.prototype.toString,ze=Object.defineProperty,je=Object.getOwnPropertyDescriptor,Fe=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Me.call(e)},We=function(e){if(!e||"[object Object]"!==Me.call(e))return!1;var t,n=Ne.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Ne.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Ne.call(e,t)},Be=function(e,t){ze&&"__proto__"===t.name?ze(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Ue=function(e,t){if("__proto__"===t){if(!Ne.call(e,t))return;if(je)return je(e,t).value}return e[t]},He=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=Ue(s,n),s!==(o=Ue(t,n))&&(u&&o&&(We(o)||(i=Fe(o)))?(i?(i=!1,a=r&&Fe(r)?r:[]):a=r&&We(r)?r:{},Be(s,{name:n,newValue:e(u,a,o)})):void 0!==o&&Be(s,{name:n,newValue:o}));return s},$e=B(He),Ge={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"]}]}},Ve={_variables:{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},type:"light",color:"@B35"},Ke={_variables:{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},type:"dark",color:"@B98"},Ze={object:{listBox:{backgroundColor:"#ffffff",title:{main:{color:"#404040",fontSize:"14px",fontWeight:"bold"}},content:{color:"#404040",fontSize:"12px"}}}};class Je{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=Se(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([Se(e),Se(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 Ce(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 Xe(e,t,n){const r=.25+(t+1)/n*.25,o=.5-r;return o+e/1*(.5+r-o)}function Ye(e,t,n){const r=[],o=new Je(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 Qe(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=Xe(1/t*o,t,n);i=e.getColor(r);break}}r.push(Se(i).formatHex())}return r}function et(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#d2d2d2";e.forEach((e=>{if("class"===e.type){const n=function(e,t,n){const r=Ye(e,n,!0),o=Ye(Qe(r,t-1,t),n,!1),i=[null];for(let e=0;e<t;e++)i.push(Qe(o,e,t));return i}(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}}))}function tt(e,t){const n=[];let r,o;if(e){let 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 nt(e,t){let n=e;for(let e=0;e<t.length;e++){if(!n[t[e]])return;n=n[t[e]]}return n}function rt(e,t,n,r){let o;if(""===e)o=tt(null,n);else{o=tt(e.split("."),n)}return function(e,t,n){const r=t.split(".");for(let t=0;t<e.length;t++){const o=nt(n,[...e[t],...r]);if(void 0!==o)return o}}(o,t,r)}function ot(e,t){const n=e.split(".");return{getStyle:(e,r)=>rt(e,r,n.concat(),t)}}function it(e,t){Object.keys(e).forEach((n=>{"object"==typeof e[n]&&null!==e[n]?it(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])}))}function at(e){const t=Se(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)}ot.resolveRawTheme=e=>{const t=$e(!0,{},e);return it(t,t._variables),t.scales&&et(t.scales,t.dataColors&&t.dataColors.nullColor),t};const st=1e3;function lt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["#333333","#ffffff"],t={},n=0;const r=e.map(at);return{getBestContrastColor(o){if(!t[o]){n>st&&(t={},n=0);const i=at(o),a=r.map((e=>{return t=i,n=e,+((Math.max(t,n)+.05)/(Math.min(t,n)+.05)).toFixed(5);var t,n})),s=e[a.indexOf(Math.max(...a))];t[o]=s,n++}return t[o]}}}function ct(){let e,t,n,r={};const o={getDataColorScales:()=>t.dataScales(),getDataColorPalettes:()=>t.dataPalettes(),getDataColorPickerPalettes:()=>t.uiPalettes(),getDataColorSpecials:()=>t.dataColors(),getColorPickerColor(){return t.uiColor(...arguments)},getContrastingColorTo:e=>n.getBestContrastColor(e),getStyle:(t,n,o)=>(r[t]||(r[t]=ot(t,e)),r[t].getStyle(n,o)),validateColor(){const e=arguments.length<=0?void 0:arguments[0];let t;if("string"==typeof e&&(t=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))){const e=parseInt(t[1],10)/255,n=parseInt(t[2],10),r=parseInt(t[3],10),o=parseInt(t[4],10);return"rgba(".concat(n,",").concat(r,",").concat(o,",").concat(e,")")}const n=Se(...arguments);return n?n.toString():void 0}},i={setTheme(i,a){e=function(e,t){const n="dark"===e.type?Ke:Ve;let r=Ze;!1!==e._inherit&&"false"!==e._inherit||(r={});const o=$e(!0,{},Ge,n,r),i=$e(!0,{},o,{scales:null,palettes:{data:null,ui:null}},e);return i.palettes.data&&i.palettes.data.length||(i.palettes.data=o.palettes.data),i.palettes.ui&&i.palettes.ui.length||(i.palettes.ui=o.palettes.ui),i.scales&&i.scales.length||(i.scales=o.scales),t(i)}(i,ot.resolveRawTheme),r={},t=function(e){let t;return{dataScales(){const t=[];return e.scales.forEach((e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,scheme:!0,type:e.type,colors:e.scale})})),t},dataPalettes(){const t=[];return e.palettes.data.forEach((e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,type:e.type,colors:e.scale})})),t},uiPalettes(){const t=[];return e.palettes.ui.forEach((e=>{t.push({key:"ui",name:e.name,translation:e.translation,type:"row",colors:e.colors})})),t},dataColors:()=>({primary:e.dataColors.primaryColor,nil:e.dataColors.nullColor,others:e.dataColors.othersColor}),uiColor(e,n){return n=!!n,e.index<0||void 0===e.index?e.color:(void 0===t&&(t=this.uiPalettes()[0]||!1),t?void 0===t.colors[e.index-n]?e.color:t.colors[e.index-n]:e.color)}}}(e);const s=o.getStyle("","","color"),l=at(s);n=lt([s,l<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>a}};return Object.keys(te.prototype).forEach((e=>{o[e]=te.prototype[e]})),te.init(o),i.setTheme({},"light"),{externalAPI:o,internalAPI:i}}const ut=(e,t)=>new Promise((n=>{setTimeout((()=>n(t)),e)})),dt=5e3;function pt(e){return"auto"!==e?e:function(){let e=!1;return window.PointerEvent&&"maxTouchPoints"in navigator?navigator.maxTouchPoints>0&&(e=!0):(window.matchMedia&&window.matchMedia("(any-pointer:coarse)").matches||window.TouchEvent||"ontouchstart"in window)&&(e=!0),e}()?"touch":"desktop"}var ht={},ft=m;function mt(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function gt(e){if(!mt(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=gt(e[n])})),t}function yt(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return mt(e)&&mt(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(mt(t[o])&&o in e&&mt(e[o])?r[o]=yt(e[o],t[o],n):n.clone?r[o]=mt(t[o])?gt(t[o]):t[o]:r[o]=t[o])})),r}function bt(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 vt(e){if("string"!=typeof e)throw new Error(bt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function St(e){return e&&e.ownerDocument||document}function Et(e,t){"function"==typeof e?e(t):e&&(e.current=t)}ht.createRoot=ft.createRoot,ht.hydrateRoot=ft.hydrateRoot;var xt="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;let Ct=0;const wt=e["useId".toString()];let Lt,Rt=!0,It=!1;const qt={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 kt(e){e.metaKey||e.altKey||e.ctrlKey||(Rt=!0)}function Ot(){Rt=!1}function _t(){"hidden"===this.visibilityState&&It&&(Rt=!0)}function Tt(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Rt||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!qt[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Dt(e,t){const n={...t};return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]={...e[r],...n[r]};else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]={...i},Object.keys(o).forEach((e=>{n[r][e]=Dt(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}const At=e=>e;var Pt=(()=>{let e=At;return{configure(t){e=t},generate:t=>e(t),reset(){e=At}}})();const Nt={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Mt(e,t,n="Mui"){const r=Nt[t];return r?`${n}-${r}`:`${Pt.generate(e)}-${t}`}function zt(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Mt(e,t,n)})),r}var jt="$$material";var Ft=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}(),Wt="-ms-",Bt="-moz-",Ut="-webkit-",Ht="comm",$t="rule",Gt="decl",Vt="@keyframes",Kt=Math.abs,Zt=String.fromCharCode,Jt=Object.assign;function Xt(e){return e.trim()}function Yt(e,t,n){return e.replace(t,n)}function Qt(e,t){return e.indexOf(t)}function en(e,t){return 0|e.charCodeAt(t)}function tn(e,t,n){return e.slice(t,n)}function nn(e){return e.length}function rn(e){return e.length}function on(e,t){return t.push(e),e}var an=1,sn=1,ln=0,cn=0,un=0,dn="";function pn(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:an,column:sn,length:a,return:""}}function hn(e,t){return Jt(pn("",null,null,"",null,null,0),e,{length:-e.length},t)}function fn(){return un=cn>0?en(dn,--cn):0,sn--,10===un&&(sn=1,an--),un}function mn(){return un=cn<ln?en(dn,cn++):0,sn++,10===un&&(sn=1,an++),un}function gn(){return en(dn,cn)}function yn(){return cn}function bn(e,t){return tn(dn,e,t)}function vn(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 Sn(e){return an=sn=1,ln=nn(dn=e),cn=0,[]}function En(e){return dn="",e}function xn(e){return Xt(bn(cn-1,Ln(91===e?e+2:40===e?e+1:e)))}function Cn(e){for(;(un=gn())&&un<33;)mn();return vn(e)>2||vn(un)>3?"":" "}function wn(e,t){for(;--t&&mn()&&!(un<48||un>102||un>57&&un<65||un>70&&un<97););return bn(e,yn()+(t<6&&32==gn()&&32==mn()))}function Ln(e){for(;mn();)switch(un){case e:return cn;case 34:case 39:34!==e&&39!==e&&Ln(un);break;case 40:41===e&&Ln(e);break;case 92:mn()}return cn}function Rn(e,t){for(;mn()&&e+un!==57&&(e+un!==84||47!==gn()););return"/*"+bn(t,cn-1)+"*"+Zt(47===e?e:mn())}function In(e){for(;!vn(gn());)mn();return bn(e,cn)}function qn(e){return En(kn("",null,null,null,[""],e=Sn(e),0,[0],e))}function kn(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,h=0,f=0,m=1,g=1,y=1,b=0,v="",S=o,E=i,x=r,C=v;g;)switch(f=b,b=mn()){case 40:if(108!=f&&58==en(C,d-1)){-1!=Qt(C+=Yt(xn(b),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:C+=xn(b);break;case 9:case 10:case 13:case 32:C+=Cn(f);break;case 92:C+=wn(yn()-1,7);continue;case 47:switch(gn()){case 42:case 47:on(_n(Rn(mn(),yn()),t,n),l);break;default:C+="/"}break;case 123*m:s[c++]=nn(C)*y;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==y&&(C=Yt(C,/\f/g,"")),h>0&&nn(C)-d&&on(h>32?Tn(C+";",r,n,d-1):Tn(Yt(C," ","")+";",r,n,d-2),l);break;case 59:C+=";";default:if(on(x=On(C,t,n,c,u,o,s,v,S=[],E=[],d),i),123===b)if(0===u)kn(C,t,x,x,S,i,d,s,E);else switch(99===p&&110===en(C,3)?100:p){case 100:case 109:case 115:kn(e,x,x,r&&on(On(e,x,x,0,0,o,s,v,o,S=[],d),E),o,E,d,s,r?S:E);break;default:kn(C,x,x,x,[""],E,0,s,E)}}c=u=h=0,m=y=1,v=C="",d=a;break;case 58:d=1+nn(C),h=f;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==fn())continue;switch(C+=Zt(b),b*m){case 38:y=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(nn(C)-1)*y,y=1;break;case 64:45===gn()&&(C+=xn(mn())),p=gn(),u=d=nn(v=C+=In(yn())),b++;break;case 45:45===f&&2==nn(C)&&(m=0)}}return i}function On(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,p=0===o?i:[""],h=rn(p),f=0,m=0,g=0;f<r;++f)for(var y=0,b=tn(e,d+1,d=Kt(m=a[f])),v=e;y<h;++y)(v=Xt(m>0?p[y]+" "+b:Yt(b,/&\f/g,p[y])))&&(l[g++]=v);return pn(e,t,n,0===o?$t:s,l,c,u)}function _n(e,t,n){return pn(e,t,n,Ht,Zt(un),tn(e,2,-2),0)}function Tn(e,t,n,r){return pn(e,t,n,Gt,tn(e,0,r),tn(e,r+1,-1),r)}function Dn(e,t){for(var n="",r=rn(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function An(e,t,n,r){switch(e.type){case"@import":case Gt:return e.return=e.return||e.value;case Ht:return"";case Vt:return e.return=e.value+"{"+Dn(e.children,r)+"}";case $t:e.value=e.props.join(",")}return nn(n=Dn(e.children,r))?e.return=e.value+"{"+n+"}":""}function Pn(e){var t=rn(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 Nn=function(e,t,n){for(var r=0,o=0;r=o,o=gn(),38===r&&12===o&&(t[n]=1),!vn(o);)mn();return bn(e,cn)},Mn=function(e,t){return En(function(e,t){var n=-1,r=44;do{switch(vn(r)){case 0:38===r&&12===gn()&&(t[n]=1),e[n]+=Nn(cn-1,t,n);break;case 2:e[n]+=xn(r);break;case 4:if(44===r){e[++n]=58===gn()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Zt(r)}}while(r=mn());return e}(Sn(e),t))},zn=new WeakMap,jn=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)||zn.get(n))&&!r){zn.set(e,!0);for(var o=[],i=Mn(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]}}},Fn=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Wn(e,t){switch(function(e,t){return 45^en(e,0)?(((t<<2^en(e,0))<<2^en(e,1))<<2^en(e,2))<<2^en(e,3):0}(e,t)){case 5103:return Ut+"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 Ut+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ut+e+Bt+e+Wt+e+e;case 6828:case 4268:return Ut+e+Wt+e+e;case 6165:return Ut+e+Wt+"flex-"+e+e;case 5187:return Ut+e+Yt(e,/(\w+).+(:[^]+)/,Ut+"box-$1$2"+Wt+"flex-$1$2")+e;case 5443:return Ut+e+Wt+"flex-item-"+Yt(e,/flex-|-self/,"")+e;case 4675:return Ut+e+Wt+"flex-line-pack"+Yt(e,/align-content|flex-|-self/,"")+e;case 5548:return Ut+e+Wt+Yt(e,"shrink","negative")+e;case 5292:return Ut+e+Wt+Yt(e,"basis","preferred-size")+e;case 6060:return Ut+"box-"+Yt(e,"-grow","")+Ut+e+Wt+Yt(e,"grow","positive")+e;case 4554:return Ut+Yt(e,/([^-])(transform)/g,"$1"+Ut+"$2")+e;case 6187:return Yt(Yt(Yt(e,/(zoom-|grab)/,Ut+"$1"),/(image-set)/,Ut+"$1"),e,"")+e;case 5495:case 3959:return Yt(e,/(image-set\([^]*)/,Ut+"$1$`$1");case 4968:return Yt(Yt(e,/(.+:)(flex-)?(.*)/,Ut+"box-pack:$3"+Wt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ut+e+e;case 4095:case 3583:case 4068:case 2532:return Yt(e,/(.+)-inline(.+)/,Ut+"$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(nn(e)-1-t>6)switch(en(e,t+1)){case 109:if(45!==en(e,t+4))break;case 102:return Yt(e,/(.+:)(.+)-([^]+)/,"$1"+Ut+"$2-$3$1"+Bt+(108==en(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Qt(e,"stretch")?Wn(Yt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==en(e,t+1))break;case 6444:switch(en(e,nn(e)-3-(~Qt(e,"!important")&&10))){case 107:return Yt(e,":",":"+Ut)+e;case 101:return Yt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ut+(45===en(e,14)?"inline-":"")+"box$3$1"+Ut+"$2$3$1"+Wt+"$2box$3")+e}break;case 5936:switch(en(e,t+11)){case 114:return Ut+e+Wt+Yt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ut+e+Wt+Yt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ut+e+Wt+Yt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ut+e+Wt+e+e}return e}var Bn="undefined"!=typeof document,Un=Bn?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]}}))})),Hn=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Gt:e.return=Wn(e.value,e.length);break;case Vt:return Dn([hn(e,{value:Yt(e.value,"@","@"+Ut)})],r);case $t: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 Dn([hn(e,{props:[Yt(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Dn([hn(e,{props:[Yt(t,/:(plac\w+)/,":"+Ut+"input-$1")]}),hn(e,{props:[Yt(t,/:(plac\w+)/,":-moz-$1")]}),hn(e,{props:[Yt(t,/:(plac\w+)/,Wt+"input-$1")]})],r)}return""}))}}],$n={exports:{}},Gn={},Vn=t,Kn=Symbol.for("react.element"),Zn=Symbol.for("react.fragment"),Jn=Object.prototype.hasOwnProperty,Xn=Vn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Yn={key:!0,ref:!0,__self:!0,__source:!0};function Qn(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)Jn.call(t,r)&&!Yn.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:Kn,type:e,key:i,ref:a,props:o,_owner:Xn.current}}Gn.Fragment=Zn,Gn.jsx=Qn,Gn.jsxs=Qn,$n.exports=Gn;var er=$n.exports;let tr;function nr(e){const{injectFirst:t,children:n}=e;return t&&tr?er.jsx(g,{value:tr,children:n}):n}
|
|
7
|
+
import*as e from"react";import t,{useState as n,useEffect as r,forwardRef as o,useMemo as i,useImperativeHandle as a,useReducer as s,useCallback as l,useLayoutEffect as c,PureComponent as u,useRef as d,useContext as p,createElement as h,Component as f}from"react";import m from"react-dom";import{CacheProvider as g,ThemeContext as y}from"@emotion/react";import{Checkbox as b,Radio as v,Typography as S,FormControlLabel as x,Box as E,Grid as C,Tooltip as w,Paper as L,IconButton as R,styled as I,Popover as O,MenuList as q,MenuItem as k,ListItemIcon as _,Divider as T,InputAdornment as D,OutlinedInput as A,Badge as P,List as N,ListItem as M,Button as z,Icon as j,CircularProgress as F}from"@mui/material";import W from"@emotion/styled";function B(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function H(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){if(this instanceof e){var n=[null];return n.push.apply(n,arguments),new(Function.bind.apply(t,n))}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach((function(t){G(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function G(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V(){return V=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},V.apply(this,arguments)}function K(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=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),s=new k(r||[]);return o(a,"_invoke",{value:R(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var p="suspendedStart",h="suspendedYield",f="executing",m="completed",g={};function y(){}function b(){}function v(){}var S={};c(S,a,(function(){return this}));var x=Object.getPrototypeOf,E=x&&x(x(_([])));E&&E!==n&&r.call(E,a)&&(S=E);var C=v.prototype=y.prototype=Object.create(S);function w(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function n(o,i,a,s){var l=d(e[o],e,i);if("throw"!==l.type){var c=l.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function R(e,t,n){var r=p;return function(o,i){if(r===f)throw new Error("Generator is already running");if(r===m){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=I(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===p)throw r=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var l=d(e,t,n);if("normal"===l.type){if(r=n.done?m:h,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=m,n.method="throw",n.arg=l.arg)}}}function I(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,I(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function q(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function _(e){if(e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=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 i.next=i}}return{next:T}}function T(){return{value:t,done:!0}}return b.prototype=v,o(C,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:b,configurable:!0}),b.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,l,"GeneratorFunction")),e.prototype=Object.create(C),e},e.awrap=function(e){return{__await:e}},w(L.prototype),c(L.prototype,s,(function(){return this})),e.AsyncIterator=L,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new L(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(C),c(C,l,"Generator"),c(C,a,(function(){return this})),c(C,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=_,k.prototype={constructor:k,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,g):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),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),q(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;q(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:_(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}({exports:{}});const Z=function(){let{initial:e="en-US",fallback:t="en-US"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=function(){let{initial:e="en-US",fallback:t="en-US"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n={};let r=e;const o={language:e=>(e&&(r=e),r),add:e=>{const{id:t,locale:r}=e;Object.keys(r).forEach((e=>{n[e]||(n[e]={}),n[e][t]=r[e]}))},get(e,o){let 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?function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const t="string"==typeof e||"number"==typeof e?[e]:e;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/\{(\d+)\}/g,((e,n)=>void 0!==t[n]?t[n]:e))}(i,o):i}};return o}({initial:e,fallback:t});return{translator:n}};var J={Cancel:{id:"Cancel",locale:{"de-DE":"Abbrechen","en-US":"Cancel","es-ES":"Cancelar","fr-FR":"Annuler","it-IT":"Annulla","ja-JP":"キャンセル","ko-KR":"취소","nl-NL":"Annuleren","pl-PL":"Anuluj","pt-BR":"Cancelar","ru-RU":"Отмена","sv-SE":"Avbryt","tr-TR":"İptal","zh-CN":"取消","zh-TW":"取消"}},CurrentSelections_All:{id:"CurrentSelections.All",locale:{"de-DE":"ALLES","en-US":"ALL","es-ES":"TODOS","fr-FR":"TOUS","it-IT":"TUTTI","ja-JP":"すべて","ko-KR":"모두","nl-NL":"ALLE","pl-PL":"WSZYSTKO","pt-BR":"TODOS","ru-RU":"ВСЕ","sv-SE":"ALLA","tr-TR":"TÜMÜ","zh-CN":"全部","zh-TW":"全部"}},CurrentSelections_Of:{id:"CurrentSelections.Of",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0}/ {1}","ko-KR":"{0} / {1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0}/ {1}","zh-TW":"{0}/ {1}"}},Listbox_Dismiss:{id:"Listbox.Dismiss",locale:{"de-DE":"Schließen","en-US":"Dismiss","es-ES":"Descartar","fr-FR":"Ignorer","it-IT":"Ignora","ja-JP":"却下","ko-KR":"해제","nl-NL":"Overslaan","pl-PL":"Zamknij","pt-BR":"Ignorar","ru-RU":"Пропустить","sv-SE":"Hoppa över","tr-TR":"Kapat","zh-CN":"离开","zh-TW":"解除"}},Listbox_DrillDown:{id:"Listbox.DrillDown",locale:{"de-DE":"Drilldown-Dimension","en-US":"Drill-down dimension","es-ES":"Dimensión jerárquica","fr-FR":"Dimension hiérarchique","it-IT":"Dimensione drill-down","ja-JP":"軸のドリルダウン","ko-KR":"드릴다운 차원","nl-NL":"Drill-downdimensie","pl-PL":"Wymiar hierarchiczny","pt-BR":"Dimensão de detalhamento","ru-RU":"Детализированное измерение","sv-SE":"Hierarkisk dimension","tr-TR":"Detaya inme boyutu","zh-CN":"钻取维度","zh-TW":"向下探查維度"}},Listbox_ItemsOverflow:{id:"Listbox.ItemsOverflow",locale:{"de-DE":"Derzeit wird ein eingeschränkter Datensatz angezeigt, verwenden Sie die Suche, um die Größe zu reduzieren","en-US":"Currently showing a limited data set, use search to reduce the size","es-ES":"Actualmente se muestra un conjunto de datos limitado, utilice la búsqueda para reducir el tamaño","fr-FR":"Ensemble de données limité actuellement affiché. Utilisez la rechercher pour réduire la taille.","it-IT":"Attualmente visualizzato un set di dati limitato; utilizzare la ricerca per ridurre le dimensioni","ja-JP":"現在表示されているデータ セットは制限されているため、検索を使ってサイズを縮小してください","ko-KR":"현재 제한된 데이터 집합이 표시되고 있습니다. 검색을 사용하여 크기를 줄이십시오.","nl-NL":"Er wordt momenteel een beperkte gegevensverzameling getoond, gebruik Zoeken om de omvang te verkleinen","pl-PL":"Wyświetlany jest ograniczony zestaw danych. Użyj wyszukiwania, aby zmniejszyć rozmiar.","pt-BR":"Atualmente mostrando um conjunto de dados limitado, use a pesquisa para reduzir o tamanho","ru-RU":"Сейчас отображается ограниченный набор данных. Используйте поиск, чтобы уменьшить размер.","sv-SE":"En begränsad datauppsättning visas. Använd sök för att minska storleken","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor. Boyutu azaltmak için arama işlevini kullanın","zh-CN":"目前显示有限的数据集,使用搜索来减少大小","zh-TW":"目前顯示有限資料集,請使用搜尋減少大小"}},Listbox_Lock:{id:"Listbox.Lock",locale:{"de-DE":"Auswahlen sperren","en-US":"Lock selections","es-ES":"Bloquear selecciones","fr-FR":"Verrouiller les sélections","it-IT":"Blocca selezioni","ja-JP":"選択をロック","ko-KR":"선택 내용 잠금","nl-NL":"Selecties vergrendelen","pl-PL":"Zablokuj wybory","pt-BR":"Bloquear seleções","ru-RU":"Заблокировать выборки","sv-SE":"Lås urval","tr-TR":"Seçimleri kilitle","zh-CN":"锁定选择项","zh-TW":"鎖定選項"}},Listbox_NoMatchesForYourTerms:{id:"Listbox.NoMatchesForYourTerms",locale:{"de-DE":"Für Ihre Suche wurden keine Übereinstimmungen gefunden.","en-US":"There are no matches for your search.","es-ES":"No hay resultados para su búsqueda.","fr-FR":"Aucun résultat ne correspond à votre recherche.","it-IT":"Non è stata trovata alcuna corrispondenza per questa ricerca.","ja-JP":"検索に一致するものがありません。","ko-KR":"검색에 대해 일치하는 항목이 없습니다.","nl-NL":"Er zijn geen overeenkomsten voor uw zoekopdracht.","pl-PL":"Brak dopasowań dla tego wyszukiwania.","pt-BR":"Não há correspondências para sua pesquisa.","ru-RU":"Нет совпадений по вашему поисковому запросу.","sv-SE":"Det finns inga matchningar för din sökning.","tr-TR":"Aramanızla eşleşen sonuç yok.","zh-CN":"您的搜索条件没有任何匹配结果。","zh-TW":"沒有與您搜尋相符的項目。"}},Listbox_ResultFilterLabel:{id:"Listbox.ResultFilterLabel",locale:{"de-DE":"Suchergebnisfilter","en-US":"Search Results Filter","es-ES":"Filtro de resultados de búsqueda","fr-FR":"Filtre de résultats de recherche","it-IT":"Filtro risultati Ricerca","ja-JP":"検索結果フィルター","ko-KR":"검색 결과 필터","nl-NL":"Filter voor zoekresultaten","pl-PL":"Filtr wyników wyszukiwania","pt-BR":"Filtro de resultados da pesquisa","ru-RU":"Фильтр результатов поиска","sv-SE":"Filter för sökresultat","tr-TR":"Arama Sonuçları Filtresi","zh-CN":"搜索结果筛选器","zh-TW":"搜尋結果篩選"}},Listbox_ScreenReader_SearchThenSelectionsMenu_WithAccSelMenu:{id:"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu",locale:{"de-DE":"Drücken Sie die Umschalttaste zusammen mit der Tabulatortaste, um den Fokus in die Suchleiste zu setzen, und dann erneut beide Tasten, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the search bar, then Shift plus Tab again to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en la barra de búsqueda, luego Mayús + Tabulador nuevamente para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur la barre de recherche, puis de nouveau sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere MAIUSC+TAB per impostare lo stato attivo sulla barra di ricerca, quindi premere nuovamente MAIUSC+TAB per impostare lo stato attivo sul menu selezioni.","ja-JP":"Shift + Tab を押して検索バーにフォーカスを設定し、Shift + Tab をもう一度押して選択メニューにフォーカスを設定します。","ko-KR":"Shift+Tab을 눌러 검색 막대에 초점을 맞춘 다음 Shift+Tab을 다시 눌러 선택 메뉴에 초점을 맞추십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op de zoekbalk, druk vervolgens nogmaals op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na pasku wyszukiwania. Następnie ponownie użyj tej kombinacji klawiszy, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco na barra de pesquisa e Shift + Tab novamente para definir o foco no menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на строку поиска. Затем снова нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb för att ställa in fokus på sökfältet, sedan Skift plus Tabb igen för att ställa in fokus på urvalsmenyn.","tr-TR":"Odağı arama çubuğuna ayarlamak için Shift ve Sekme tuşlarına birlikte basın, ardından bu tuşlara birlikte tekrar basarak odağı seçim menüsüne ayarlayın.","zh-CN":"按 Shift+Tab 在搜索栏上设置焦点,然后再次按 Shift+Tab 在“选择”菜单上设置焦点。","zh-TW":"按下 Shift 加 Tab 鍵以設定搜尋列上的焦點,然後再次按下 Shift 加 Tab 鍵,以設定選項功能表上的焦點。"}},Listbox_ScreenReader_SelectionMenu_WithAccSelMenu:{id:"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",locale:{"de-DE":"Drücken Sie gleichzeitig die Umschalt- und die Tabulatortaste, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere i tasti MAIUSC+TAB per evidenziare il menu di selezione.","ja-JP":"Shift キー + Tab キーを押して選択メニューにフォーカスを設定します。","ko-KR":"선택 메뉴에 초점을 설정하려면 Shift+Tab을 누르십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco sobre o menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb när du vill ställa in fokus på urvalsmenyn.","tr-TR":"Odağı seçim menüsüne ayarlamak için Shift ve Sekme tuşlarına birlikte basın.","zh-CN":"按下 Shift 加 Tab 以将焦点设置在选择菜单上。","zh-TW":"按下 Shift 加 Tab 以在選項功能表上設定焦點。"}},Listbox_ScreenReaderInstructions:{id:"Listbox.ScreenReaderInstructions",locale:{"de-DE":"Bei Aktivierung der Elemente unten wird der Seiteninhalt aktualisiert","en-US":"Activating the elements below will cause content on the page to be updated","es-ES":"La activación de los elementos siguientes hará que se actualice el contenido en la página","fr-FR":"L'activation des éléments ci-dessous actualisera le contenu de la page.","it-IT":"L'attivazione degli elementi sottostanti causerà l'aggiornamento del contenuto della pagina","ja-JP":"下記の要素をアクティブ化すると、ページのコンテンツが更新されます","ko-KR":"아래 요소를 활성화하면 페이지의 콘텐츠가 업데이트됩니다.","nl-NL":"Door de onderstaande elementen te activeren wordt de inhoud op de pagina bijgewerkt","pl-PL":"Aktywacja poniższych elementów spowoduje aktualizację zawartości na stronie","pt-BR":"A ativação dos elementos abaixo fará com que o conteúdo da página seja atualizado","ru-RU":"Активация приведенных ниже элементов приведет к обновлению содержимого страницы","sv-SE":"Om du aktiverar elementen nedan kommer innehåll på sidan att uppdateras","tr-TR":"Aşağıdaki öğeleri etkinleştirmek sayfadaki içeriğin güncellenmesine neden olur","zh-CN":"激活下面的元素将导致页面上的内容更新","zh-TW":"啟用以下元素將會造成更新頁面上的內容"}},Listbox_Search:{id:"Listbox.Search",locale:{"de-DE":"In Listenfeld suchen","en-US":"Search in listbox","es-ES":"Buscar en cuadro de lista","fr-FR":"Rechercher dans la liste de sélection","it-IT":"Cerca nella casella di elenco","ja-JP":"リストボックス内を検索","ko-KR":"목록 상자에서 검색","nl-NL":"Zoeken in keuzelijst","pl-PL":"Wyszukaj w liście wartości","pt-BR":"Pesquisar na caixa de listagem","ru-RU":"Поиск в списке","sv-SE":"Sök i listruta","tr-TR":"Liste kutusunda ara","zh-CN":"在列表框中搜索","zh-TW":"在清單方塊中搜尋"}},Listbox_Search_ScreenReaderInstructions:{id:"Listbox.Search.ScreenReaderInstructions",locale:{"de-DE":"Über das folgende Suchfeld werden Ergebnisse während der Eingabe gefiltert","en-US":"The following search field filters results below as you type","es-ES":"El siguiente campo de búsqueda filtra los resultados siguientes a medida que escribe","fr-FR":"Le champ de recherche suivant filtrer les résultats ci-dessous à mesure de votre saisie.","it-IT":"Il seguente campo di ricerca filtra i risultati man mano che vengono digitati","ja-JP":"次の検索フィールドは、入力と同時に下記の結果をフィルターします","ko-KR":"다음 검색 필드는 입력할 때 아래의 결과를 필터링합니다.","nl-NL":"Het volgende zoekveld filtert resultaten terwijl u typt","pl-PL":"Następujące pole wyszukiwania filtruje wyniki poniżej w miarę pisania","pt-BR":"O campo de pesquisa a seguir filtra os resultados abaixo conforme você digita","ru-RU":"Следующее поле поиска фильтрует результаты ниже по мере ввода текста","sv-SE":"Följande sökfält filtrerar resultaten nedan medan du skriver","tr-TR":"Aşağıdaki arama alanı siz yazarken aşağıdaki sonuçları filtreler","zh-CN":"键入时,以下搜索字段筛选结果如下","zh-TW":"下列搜尋欄位在您輸入時篩選以下結果"}},Listbox_Unlock:{id:"Listbox.Unlock",locale:{"de-DE":"Auswahlen entsperren","en-US":"Unlock selections","es-ES":"Desbloquear selecciones","fr-FR":"Déverrouiller les sélections","it-IT":"Sblocca selezioni","ja-JP":"選択をロック解除","ko-KR":"선택 내용 잠금 해제","nl-NL":"Selecties ontgrendelen","pl-PL":"Odblokuj wybory","pt-BR":"Desbloquear seleções","ru-RU":"Разблокировать выборки","sv-SE":"Lås upp urval","tr-TR":"Seçimlerin kilidini aç","zh-CN":"将选择项解锁","zh-TW":"解鎖選項"}},Menu_More:{id:"Menu.More",locale:{"de-DE":"Mehr","en-US":"More","es-ES":"Más","fr-FR":"Plus","it-IT":"Altro","ja-JP":"詳細","ko-KR":"자세히","nl-NL":"Meer","pl-PL":"Więcej","pt-BR":"Mais","ru-RU":"Дополнительно","sv-SE":"Mer","tr-TR":"Daha fazla","zh-CN":"更多","zh-TW":"更多"}},Navigate_Back:{id:"Navigate.Back",locale:{"de-DE":"Schritt zurück","en-US":"Step back","es-ES":"Atrás","fr-FR":"Retour en arrière","it-IT":"Torna indietro","ja-JP":"1 段階戻る","ko-KR":"이전 단계","nl-NL":"Stap terug","pl-PL":"Krok do tyłu","pt-BR":"Voltar uma etapa","ru-RU":"Шаг назад","sv-SE":"Gå bakåt","tr-TR":"Bir adım geri","zh-CN":"后退","zh-TW":"倒退"}},Navigate_Forward:{id:"Navigate.Forward",locale:{"de-DE":"Schritt vor","en-US":"Step forward","es-ES":"Avanzar","fr-FR":"Étape suivante","it-IT":"Vai avanti","ja-JP":"1段階進む","ko-KR":"다음 단계","nl-NL":"Stap vooruit","pl-PL":"Krok do przodu","pt-BR":"Avançar uma etapa","ru-RU":"Шаг вперед","sv-SE":"Gå framåt","tr-TR":"Bir adım ileri","zh-CN":"前进","zh-TW":"前進"}},OK:{id:"OK",locale:{"de-DE":"OK","en-US":"OK","es-ES":"Aceptar","fr-FR":"OK","it-IT":"OK","ja-JP":"OK","ko-KR":"확인","nl-NL":"OK","pl-PL":"OK","pt-BR":"OK","ru-RU":"ОК","sv-SE":"OK","tr-TR":"Tamam","zh-CN":"确定","zh-TW":"確定"}},Object_Listbox_Alternative:{id:"Object.Listbox.Alternative",locale:{"de-DE":"Alternative","en-US":"Alternative","es-ES":"Alternativo","fr-FR":"Alternatif","it-IT":"Alternativo","ja-JP":"代替","ko-KR":"대체 항목","nl-NL":"Alternatief","pl-PL":"Alternatywne","pt-BR":"Alternativo","ru-RU":"Альтернативные","sv-SE":"Alternativ","tr-TR":"Alternatif","zh-CN":"可选","zh-TW":"替代選項"}},Object_Listbox_Excluded:{id:"Object.Listbox.Excluded",locale:{"de-DE":"Ausgeschlossen","en-US":"Excluded","es-ES":"Excluido","fr-FR":"Exclu","it-IT":"Escluso","ja-JP":"除外済み","ko-KR":"제외됨","nl-NL":"Uitgesloten","pl-PL":"Wykluczone","pt-BR":"Excluído","ru-RU":"Исключенные","sv-SE":"Uteslutet","tr-TR":"Hariç tutulan","zh-CN":"已排除","zh-TW":"已排除"}},Object_Listbox_ExcludedLock:{id:"Object.Listbox.ExcludedLock",locale:{"de-DE":"Ausgeschlossene Sperre","en-US":"Excluded lock","es-ES":"Bloqueo excluido","fr-FR":"Exclu verrouillé","it-IT":"Blocco escluso","ja-JP":"除外されたロック","ko-KR":"제외된 잠금","nl-NL":"Uitsluitingsvergrendeling","pl-PL":"Wykluczone zablokowane","pt-BR":"Bloqueado excluído","ru-RU":"Блокировать исключенные элементы","sv-SE":"Uteslutet låst","tr-TR":"Hariç tutulan kilit","zh-CN":"已排除锁定","zh-TW":"已排除鎖定"}},Object_Listbox_Locked:{id:"Object.Listbox.Locked",locale:{"de-DE":"Gesperrt","en-US":"Locked","es-ES":"Bloqueado","fr-FR":"Verrouillé","it-IT":"Bloccato","ja-JP":"ロック済み","ko-KR":"잠김","nl-NL":"Vergrendeld","pl-PL":"Zablokowane","pt-BR":"Bloqueado","ru-RU":"Заблокированные","sv-SE":"Låst","tr-TR":"Kilitli","zh-CN":"已锁定","zh-TW":"已鎖定"}},Object_Listbox_Optional:{id:"Object.Listbox.Optional",locale:{"de-DE":"Optional","en-US":"Optional","es-ES":"Opcional","fr-FR":"Facultatif","it-IT":"Opzionale","ja-JP":"オプション","ko-KR":"선택 사항","nl-NL":"Optioneel","pl-PL":"Opcjonalne","pt-BR":"Opcional","ru-RU":"Дополнительные","sv-SE":"Valfritt","tr-TR":"İsteğe bağlı","zh-CN":"可选","zh-TW":"選用"}},Object_Listbox_Selected:{id:"Object.Listbox.Selected",locale:{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбранные","sv-SE":"Urval","tr-TR":"Seçilen","zh-CN":"已选择","zh-TW":"已選取"}},Object_Listbox_SelectedExcluded:{id:"Object.Listbox.SelectedExcluded",locale:{"de-DE":"Ausgeschlossen ausgewählt","en-US":"Selected excluded","es-ES":"Seleccionado excluido","fr-FR":"Sélectionné exclu","it-IT":"Selezionato escluso","ja-JP":"選択された除外値","ko-KR":"제외 항목 선택됨","nl-NL":"Geselecteerde uitgesloten","pl-PL":"Wybrane wykluczone","pt-BR":"Excluído selecionado","ru-RU":"Выбранные исключенные элементы","sv-SE":"Urval uteslutet","tr-TR":"Seçili hariç tutulan","zh-CN":"已排除选择","zh-TW":"已選取排除值"}},Object_Update_Active:{id:"Object.Update.Active",locale:{"de-DE":"Laden von Daten","en-US":"Updating data","es-ES":"Cargando datos","fr-FR":"Chargement de données en cours","it-IT":"Caricamento dati in corso","ja-JP":"データのロード中","ko-KR":"데이터 로드 중","nl-NL":"Gegevens worden geladen","pl-PL":"Ładowanie danych","pt-BR":"Carregando dados","ru-RU":"Загрузка данных","sv-SE":"Laddar data","tr-TR":"Veriler yükleniyor","zh-CN":"加载数据","zh-TW":"正在載入資料"}},Object_Update_Cancelled:{id:"Object.Update.Cancelled",locale:{"de-DE":"Datenaktualisierung wurde abgebrochen","en-US":"Data update was cancelled","es-ES":"Se ha cancelado la actualización de datos","fr-FR":"Mise à jour des données annulée","it-IT":"Aggiornamento dati annullato","ja-JP":"データの更新がキャンセルされました","ko-KR":"데이터 업데이트가 취소되었습니다.","nl-NL":"Gegevensupdate is geannuleerd","pl-PL":"Aktualizacja danych została anulowana","pt-BR":"A atualização de dados foi cancelada","ru-RU":"Обновление данных отменено","sv-SE":"Datauppdateringen avbröts.","tr-TR":"Veri güncelleştirme iptal edildi","zh-CN":"数据更新已取消","zh-TW":"資料更新已取消"}},Retry:{id:"Retry",locale:{"de-DE":"Wiederholen","en-US":"Retry","es-ES":"Intentar de nuevo","fr-FR":"Réessayer","it-IT":"Riprova","ja-JP":"再試行","ko-KR":"다시 시도","nl-NL":"Opnieuw","pl-PL":"Ponów próbę","pt-BR":"Tentar novamente","ru-RU":"Повторить попытку","sv-SE":"Försök igen","tr-TR":"Yeniden dene","zh-CN":"重试","zh-TW":"重試"}},ScreenReader_ManySelected:{id:"ScreenReader.ManySelected",locale:{"de-DE":"Es sind {0} Werte ausgewählt.","en-US":"There are {0} selected values.","es-ES":"Hay {0} valores seleccionados.","fr-FR":"{0} valeurs sont sélectionnées.","it-IT":"Sono presenti {0} valori selezionati.","ja-JP":"値が {0} 個選択されています。","ko-KR":"{0}개의 값이 선택되었습니다.","nl-NL":"Er zijn {0} geselecteerde waarden.","pl-PL":"Wybranych wartości: {0}","pt-BR":"Há {0} valores selecionados.","ru-RU":"Выбраны {0} значений(я).","sv-SE":"{0} värden är valda.","tr-TR":"Seçilen {0} değer var.","zh-CN":"存在 {0} 个已选择的值。","zh-TW":"有 {0} 個選取的值。"}},ScreenReader_OneSelected:{id:"ScreenReader.OneSelected",locale:{"de-DE":"Es ist ein Wert ausgewählt.","en-US":"There is one selected value.","es-ES":"Hay un valor seleccionado.","fr-FR":"Une valeur est sélectionnée.","it-IT":"È presente un valore selezionato.","ja-JP":"値が 1 つ選択されています。","ko-KR":"하나의 값이 선택되었습니다.","nl-NL":"Er is één waarde geselecteerd.","pl-PL":"Istnieje jedna wybrana wartość.","pt-BR":"Há um valor selecionado.","ru-RU":"Выбрано одно значение.","sv-SE":"Ett värde är valt.","tr-TR":"Seçilen bir değer var.","zh-CN":"存在一个已选择的值。","zh-TW":"有一個選取的值。"}},ScreenReader_ZeroSelected:{id:"ScreenReader.ZeroSelected",locale:{"de-DE":"Es sind keine Werte ausgewählt.","en-US":"No values are selected.","es-ES":"No se ha seleccionado ningún valor.","fr-FR":"Aucune valeur n'est sélectionnée.","it-IT":"Nessun valore selezionato.","ja-JP":"値が選択されていません。","ko-KR":"선택된 값이 없습니다.","nl-NL":"Geen waarden geselecteerd.","pl-PL":"Brak wybranych wartości.","pt-BR":"Nenhum valor selecionado.","ru-RU":"Значения не выбраны.","sv-SE":"Inga värden är valda.","tr-TR":"Seçilen değer yok.","zh-CN":"未选择值。","zh-TW":"沒有選取任何值。"}},Selection_Cancel:{id:"Selection.Cancel",locale:{"de-DE":"Auswahl abbrechen","en-US":"Cancel selection","es-ES":"Cancelar selección","fr-FR":"Annuler la sélection","it-IT":"Annulla selezione","ja-JP":"選択のキャンセル","ko-KR":"선택 취소","nl-NL":"Selectie annuleren","pl-PL":"Anuluj selekcję","pt-BR":"Cancelar seleção","ru-RU":"Отменить выборку","sv-SE":"Avbryt urval","tr-TR":"Seçimi iptal et","zh-CN":"取消选择","zh-TW":"取消選取"}},Selection_Clear:{id:"Selection.Clear",locale:{"de-DE":"Auswahl löschen","en-US":"Clear selection","es-ES":"Borrar selección","fr-FR":"Effacer la sélection","it-IT":"Cancella selezione","ja-JP":"選択をクリア","ko-KR":"선택 해제","nl-NL":"Selectie wissen","pl-PL":"Wyczyść selekcję","pt-BR":"Limpar seleção","ru-RU":"Очистить выбор","sv-SE":"Rensa urval","tr-TR":"Seçimi temizle","zh-CN":"清除选择","zh-TW":"清除選項"}},Selection_ClearAll:{id:"Selection.ClearAll",locale:{"de-DE":"Alle Auswahlen löschen","en-US":"Clear all selections","es-ES":"Borrar todas las selecciones","fr-FR":"Effacer toutes les sélections","it-IT":"Cancella tutte le selezioni","ja-JP":"選択をすべてクリアする","ko-KR":"모든 선택 해제","nl-NL":"Alle selecties wissen","pl-PL":"Wyczyść wszystkie selekcje","pt-BR":"Limpar todas as seleções","ru-RU":"Очистить от всех выборок","sv-SE":"Radera alla urval","tr-TR":"Tüm seçimleri temizle","zh-CN":"清除所有选择项","zh-TW":"清除所有選項"}},Selection_ClearAllStates:{id:"Selection.ClearAllStates",locale:{"de-DE":"Alle Status löschen","en-US":"Clear all states","es-ES":"Borrar todos los estados","fr-FR":"Effacer tous les états","it-IT":"Cancella tutti gli stati","ja-JP":"全ステートをクリア","ko-KR":"모든 상태 지우기","nl-NL":"Alle states wissen","pl-PL":"Wyczyść wszystkie stany","pt-BR":"Limpar todos os estados","ru-RU":"Очистить все состояния","sv-SE":"Rensa alla tillstånd","tr-TR":"Tüm durumları temizle","zh-CN":"清除所有状态","zh-TW":"清除所有狀態"}},Selection_Confirm:{id:"Selection.Confirm",locale:{"de-DE":"Auswahl bestätigen","en-US":"Confirm selection","es-ES":"Confirmar selección","fr-FR":"Confirmer la sélection","it-IT":"Conferma selezione","ja-JP":"選択の確認","ko-KR":"선택 확인","nl-NL":"Selectie bevestigen","pl-PL":"Potwierdź selekcję","pt-BR":"Confirmar seleção","ru-RU":"Подтвердить выборку","sv-SE":"Bekräfta urval","tr-TR":"Seçimi onayla","zh-CN":"确认选择","zh-TW":"確認選取"}},Selection_Menu:{id:"Selection.Menu",locale:{"de-DE":"Auswahlmenü","en-US":"Selection menu","es-ES":"Menú de selección","fr-FR":"Menu Sélection","it-IT":"Menu Selezione","ja-JP":"選択メニュー","ko-KR":"선택 메뉴","nl-NL":"Selectiemenu","pl-PL":"Menu selekcji","pt-BR":"Menu de seleção","ru-RU":'Меню "Выборка"',"sv-SE":"Urvalsmeny","tr-TR":"Seçim menüsü","zh-CN":"选择菜单","zh-TW":"選項功能表"}},Selection_SelectAll:{id:"Selection.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutto","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar todos","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},Selection_SelectAlternative:{id:"Selection.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替値を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},Selection_SelectExcluded:{id:"Selection.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外値を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluído","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},Selection_SelectPossible:{id:"Selection.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込値を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possível","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olasıyı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},SelectionToolbar_ClickToUnlock:{id:"SelectionToolbar.ClickToUnlock",locale:{"de-DE":"Zum Entsperren klicken","en-US":"Click to unlock","es-ES":"Haga clic para desbloquearla","fr-FR":"Cliquez pour déverrouiller","it-IT":"Fare clic per sbloccare","ja-JP":"クリックしてロック解除","ko-KR":"잠금을 해제하려면 클릭하십시오.","nl-NL":"Klik om te ontgrendelen","pl-PL":"Aby odblokować, kliknij","pt-BR":"Clique para destravar","ru-RU":"Щелкните, чтобы разблокировать","sv-SE":"Klicka för att låsa upp","tr-TR":"Kilidi kaldırmak için tıklayın","zh-CN":"单击以解锁","zh-TW":"按一下以解除鎖定"}},Visualization_Incomplete:{id:"Visualization.Incomplete",locale:{"de-DE":"Unvollständige Visualisierung","en-US":"Incomplete visualization","es-ES":"Visualización incompleta","fr-FR":"Visualisation incomplète","it-IT":"Visualizzazione incompleta","ja-JP":"未完了のビジュアライゼーション","ko-KR":"완료되지 않은 시각화","nl-NL":"Onvolledige visualisatie","pl-PL":"Niekompletna wizualizacja","pt-BR":"Visualização incompleta","ru-RU":"Незавершенная визуализация","sv-SE":"Ofullständig visualisering","tr-TR":"Tamamlanmamış görselleştirme","zh-CN":"不完整的可视化","zh-TW":"視覺化未完成"}},Visualization_Incomplete_Dimensions:{id:"Visualization.Incomplete.Dimensions",locale:{"de-DE":"{0} von {1} Dimensionen","en-US":"{0} of {1} dimensions","es-ES":"{0} de {1} dimensiones","fr-FR":"{0} dimensions sur {1}","it-IT":"{0} di {1} dimensioni","ja-JP":"{0} / {1} 軸","ko-KR":"{1} 차원의 {0}","nl-NL":"{0} van {1} dimensies","pl-PL":"{0} z {1} wymiarów","pt-BR":"{0} de {1} dimensões","ru-RU":"Измерения: {0} из {1}","sv-SE":"{0} av {1} dimensioner","tr-TR":"{0}/{1} boyut","zh-CN":"{0} / {1} 个维度","zh-TW":"{1} 個維度中的 {0} 個"}},Visualization_Incomplete_Measures:{id:"Visualization.Incomplete.Measures",locale:{"de-DE":"{0} von {1} Kennzahlen","en-US":"{0} of {1} measures","es-ES":"{0} de {1} medidas","fr-FR":"{0} mesures sur {1}","it-IT":"{0} di {1} misure","ja-JP":"{0} / {1} メジャー","ko-KR":"{1} 측정값의 {0}","nl-NL":"{0} van {1} metingen","pl-PL":"{0} z {1} miar","pt-BR":"{0} de {1} medidas","ru-RU":"Меры: {0} из {1}","sv-SE":"{0} av {1} mått","tr-TR":"{0}/{1} hesaplama","zh-CN":"{0} / {1} 个度量","zh-TW":"{1} 個量值中的 {0} 個"}},Visualization_Invalid_Dimension:{id:"Visualization.Invalid.Dimension",locale:{"de-DE":"Ungültige Dimension","en-US":"Invalid dimension","es-ES":"Dimensión no válida","fr-FR":"Dimension non valide","it-IT":"Dimensione non valida","ja-JP":"無効な軸です","ko-KR":"잘못된 차원","nl-NL":"Ongeldige dimensie","pl-PL":"Nieprawidłowy wymiar","pt-BR":"Dimensão inválida","ru-RU":"Недопустимое измерение","sv-SE":"Ogiltig dimension","tr-TR":"Geçersiz boyut","zh-CN":"无效维度","zh-TW":"維度無效"}},Visualization_Invalid_Measure:{id:"Visualization.Invalid.Measure",locale:{"de-DE":"Ungültige Kennzahl","en-US":"Invalid measure","es-ES":"Medida no válida","fr-FR":"Mesure non valide","it-IT":"Misura non valida","ja-JP":"無効なメジャーです","ko-KR":"잘못된 측정값","nl-NL":"Ongeldige meting","pl-PL":"Nieprawidłowa miara","pt-BR":"Medida inválida","ru-RU":"Недопустимая мера","sv-SE":"Ogiltigt mått","tr-TR":"Geçersiz hesaplama","zh-CN":"无效度量项","zh-TW":"量值無效"}},Visualization_LayoutError:{id:"Visualization.LayoutError",locale:{"de-DE":"Fehler","en-US":"Error","es-ES":"Error","fr-FR":"Erreur","it-IT":"Errore","ja-JP":"エラー","ko-KR":"오류","nl-NL":"Fout","pl-PL":"Błąd","pt-BR":"Erro","ru-RU":"Ошибка","sv-SE":"Fel","tr-TR":"Hata","zh-CN":"错误","zh-TW":"錯誤"}},Visualization_UnfulfilledCalculationCondition:{id:"Visualization.UnfulfilledCalculationCondition",locale:{"de-DE":"Die Berechnungsbedingung ist nicht erfüllt","en-US":"The calculation condition is not fulfilled","es-ES":"La condición de cálculo no se cumple","fr-FR":"Condition de calcul non remplie","it-IT":"La condizione di calcolo non è soddisfatta","ja-JP":"演算実行条件が満たされていません","ko-KR":"계산 조건이 충족되지 않았습니다.","nl-NL":"Er is niet aan de berekeningsvoorwaarde voldaan","pl-PL":"Warunek obliczenia nie jest spełniony","pt-BR":"A condição de cálculo não foi atendida","ru-RU":"Условие вычисления не выполнено","sv-SE":"Beräkningsvillkoret uppfylls inte","tr-TR":"Hesaplama koşulu yerine getirilmedi","zh-CN":"不满足计算条件","zh-TW":"不符計算條件"}}};function X(e){const t=Z({initial:e});return Object.keys(J).forEach((e=>{t.translator.add(J[e])})),{translator:t.translator}}var Y={};function Q(){Q.init.call(this)}Y.isObject=function(e){return"object"==typeof e&&null!==e},Y.isNumber=function(e){return"number"==typeof e},Y.isUndefined=function(e){return void 0===e},Y.isFunction=function(e){return"function"==typeof e};var ee=Q;Q.EventEmitter=Q,Q.prototype._events=void 0,Q.prototype._maxListeners=void 0,Q.defaultMaxListeners=10,Q.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},Q.prototype.setMaxListeners=function(e){if(!Y.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},Q.prototype.emit=function(e){var t,n,r,o,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],Y.isUndefined(n))return!1;if(Y.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(Y.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},Q.prototype.addListener=function(e,t){var n;if(!Y.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,Y.isFunction(t.listener)?t.listener:t),this._events[e]?Y.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,Y.isObject(this._events[e])&&!this._events[e].warned)&&((n=Y.isUndefined(this._maxListeners)?Q.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,Y.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),Y.isFunction(console.trace)&&console.trace()));return this},Q.prototype.on=Q.prototype.addListener,Q.prototype.once=function(e,t){if(!Y.isFunction(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},Q.prototype.removeListener=function(e,t){var n,r,o,i;if(!Y.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||Y.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(Y.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},Q.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[e],Y.isFunction(n))this.removeListener(e,n);else if(Array.isArray(n))for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},Q.prototype.listeners=function(e){return this._events&&this._events[e]?Y.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},Q.listenerCount=function(e,t){return e._events&&e._events[t]?Y.isFunction(e._events[t])?1:e._events[t].length:0};var te=B(ee);function ne(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function re(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function oe(){}var ie=.7,ae=1/ie,se="\\s*([+-]?\\d+)\\s*",le="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ce="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ue=/^#([0-9a-f]{3,8})$/,de=new RegExp(`^rgb\\(${se},${se},${se}\\)$`),pe=new RegExp(`^rgb\\(${ce},${ce},${ce}\\)$`),he=new RegExp(`^rgba\\(${se},${se},${se},${le}\\)$`),fe=new RegExp(`^rgba\\(${ce},${ce},${ce},${le}\\)$`),me=new RegExp(`^hsl\\(${le},${ce},${ce}\\)$`),ge=new RegExp(`^hsla\\(${le},${ce},${ce},${le}\\)$`),ye={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function be(){return this.rgb().formatHex()}function ve(){return this.rgb().formatRgb()}function Se(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ue.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?xe(t):3===n?new we(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ee(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ee(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=de.exec(e))?new we(t[1],t[2],t[3],1):(t=pe.exec(e))?new we(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=he.exec(e))?Ee(t[1],t[2],t[3],t[4]):(t=fe.exec(e))?Ee(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=me.exec(e))?ke(t[1],t[2]/100,t[3]/100,1):(t=ge.exec(e))?ke(t[1],t[2]/100,t[3]/100,t[4]):ye.hasOwnProperty(e)?xe(ye[e]):"transparent"===e?new we(NaN,NaN,NaN,0):null}function xe(e){return new we(e>>16&255,e>>8&255,255&e,1)}function Ee(e,t,n,r){return r<=0&&(e=t=n=NaN),new we(e,t,n,r)}function Ce(e,t,n,r){return 1===arguments.length?((o=e)instanceof oe||(o=Se(o)),o?new we((o=o.rgb()).r,o.g,o.b,o.opacity):new we):new we(e,t,n,null==r?1:r);var o}function we(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Le(){return`#${qe(this.r)}${qe(this.g)}${qe(this.b)}`}function Re(){const e=Ie(this.opacity);return`${1===e?"rgb(":"rgba("}${Oe(this.r)}, ${Oe(this.g)}, ${Oe(this.b)}${1===e?")":`, ${e})`}`}function Ie(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Oe(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function qe(e){return((e=Oe(e))<16?"0":"")+e.toString(16)}function ke(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Te(e,t,n,r)}function _e(e){if(e instanceof Te)return new Te(e.h,e.s,e.l,e.opacity);if(e instanceof oe||(e=Se(e)),!e)return new Te;if(e instanceof Te)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),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 Te(a,s,l,e.opacity)}function Te(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function De(e){return(e=(e||0)%360)<0?e+360:e}function Ae(e){return Math.max(0,Math.min(1,e||0))}function Pe(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}ne(oe,Se,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:be,formatHex:be,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return _e(this).formatHsl()},formatRgb:ve,toString:ve}),ne(we,Ce,re(oe,{brighter(e){return e=null==e?ae:Math.pow(ae,e),new we(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?ie:Math.pow(ie,e),new we(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new we(Oe(this.r),Oe(this.g),Oe(this.b),Ie(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Le,formatHex:Le,formatHex8:function(){return`#${qe(this.r)}${qe(this.g)}${qe(this.b)}${qe(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Re,toString:Re})),ne(Te,(function(e,t,n,r){return 1===arguments.length?_e(e):new Te(e,t,n,null==r?1:r)}),re(oe,{brighter(e){return e=null==e?ae:Math.pow(ae,e),new Te(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?ie:Math.pow(ie,e),new Te(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new we(Pe(e>=240?e-240:e+120,o,r),Pe(e,o,r),Pe(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Te(De(this.h),Ae(this.s),Ae(this.l),Ie(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Ie(this.opacity);return`${1===e?"hsl(":"hsla("}${De(this.h)}, ${100*Ae(this.s)}%, ${100*Ae(this.l)}%${1===e?")":`, ${e})`}`}}));var Ne=Object.prototype.hasOwnProperty,Me=Object.prototype.toString,ze=Object.defineProperty,je=Object.getOwnPropertyDescriptor,Fe=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Me.call(e)},We=function(e){if(!e||"[object Object]"!==Me.call(e))return!1;var t,n=Ne.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Ne.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||Ne.call(e,t)},Be=function(e,t){ze&&"__proto__"===t.name?ze(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},He=function(e,t){if("__proto__"===t){if(!Ne.call(e,t))return;if(je)return je(e,t).value}return e[t]},Ue=function e(){var t,n,r,o,i,a,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=He(s,n),s!==(o=He(t,n))&&(u&&o&&(We(o)||(i=Fe(o)))?(i?(i=!1,a=r&&Fe(r)?r:[]):a=r&&We(r)?r:{},Be(s,{name:n,newValue:e(u,a,o)})):void 0!==o&&Be(s,{name:n,newValue:o}));return s},$e=B(Ue),Ge={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"]}]}},Ve={_variables:{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},type:"light",color:"@B35"},Ke={_variables:{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},type:"dark",color:"@B98"},Ze={object:{listBox:{backgroundColor:"#ffffff",title:{main:{color:"#404040",fontSize:"14px",fontWeight:"bold"}},content:{color:"#404040",fontSize:"12px"}}}};class Je{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=Se(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([Se(e),Se(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 Ce(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 Xe(e,t,n){const r=.25+(t+1)/n*.25,o=.5-r;return o+e/1*(.5+r-o)}function Ye(e,t,n){const r=[],o=new Je(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 Qe(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=Xe(1/t*o,t,n);i=e.getColor(r);break}}r.push(Se(i).formatHex())}return r}function et(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#d2d2d2";e.forEach((e=>{if("class"===e.type){const n=function(e,t,n){const r=Ye(e,n,!0),o=Ye(Qe(r,t-1,t),n,!1),i=[null];for(let e=0;e<t;e++)i.push(Qe(o,e,t));return i}(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}}))}function tt(e,t){const n=[];let r,o;if(e){let 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 nt(e,t){let n=e;for(let e=0;e<t.length;e++){if(!n[t[e]])return;n=n[t[e]]}return n}function rt(e,t,n,r){let o;if(""===e)o=tt(null,n);else{o=tt(e.split("."),n)}return function(e,t,n){const r=t.split(".");for(let t=0;t<e.length;t++){const o=nt(n,[...e[t],...r]);if(void 0!==o)return o}}(o,t,r)}function ot(e,t){const n=e.split(".");return{getStyle:(e,r)=>rt(e,r,n.concat(),t)}}function it(e,t){Object.keys(e).forEach((n=>{"object"==typeof e[n]&&null!==e[n]?it(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])}))}function at(e){const t=Se(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)}ot.resolveRawTheme=e=>{const t=$e(!0,{},e);return it(t,t._variables),t.scales&&et(t.scales,t.dataColors&&t.dataColors.nullColor),t};const st=1e3;function lt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["#333333","#ffffff"],t={},n=0;const r=e.map(at);return{getBestContrastColor(o){if(!t[o]){n>st&&(t={},n=0);const i=at(o),a=r.map((e=>{return t=i,n=e,+((Math.max(t,n)+.05)/(Math.min(t,n)+.05)).toFixed(5);var t,n})),s=e[a.indexOf(Math.max(...a))];t[o]=s,n++}return t[o]}}}function ct(){let e,t,n,r={};const o={getDataColorScales:()=>t.dataScales(),getDataColorPalettes:()=>t.dataPalettes(),getDataColorPickerPalettes:()=>t.uiPalettes(),getDataColorSpecials:()=>t.dataColors(),getColorPickerColor(){return t.uiColor(...arguments)},getContrastingColorTo:e=>n.getBestContrastColor(e),getStyle:(t,n,o)=>(r[t]||(r[t]=ot(t,e)),r[t].getStyle(n,o)),validateColor(){const e=arguments.length<=0?void 0:arguments[0];let t;if("string"==typeof e&&(t=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))){const e=parseInt(t[1],10)/255,n=parseInt(t[2],10),r=parseInt(t[3],10),o=parseInt(t[4],10);return"rgba(".concat(n,",").concat(r,",").concat(o,",").concat(e,")")}const n=Se(...arguments);return n?n.toString():void 0}},i={setTheme(i,a){e=function(e,t){const n="dark"===e.type?Ke:Ve;let r=Ze;!1!==e._inherit&&"false"!==e._inherit||(r={});const o=$e(!0,{},Ge,n,r),i=$e(!0,{},o,{scales:null,palettes:{data:null,ui:null}},e);return i.palettes.data&&i.palettes.data.length||(i.palettes.data=o.palettes.data),i.palettes.ui&&i.palettes.ui.length||(i.palettes.ui=o.palettes.ui),i.scales&&i.scales.length||(i.scales=o.scales),t(i)}(i,ot.resolveRawTheme),r={},t=function(e){let t;return{dataScales(){const t=[];return e.scales.forEach((e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,scheme:!0,type:e.type,colors:e.scale})})),t},dataPalettes(){const t=[];return e.palettes.data.forEach((e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,type:e.type,colors:e.scale})})),t},uiPalettes(){const t=[];return e.palettes.ui.forEach((e=>{t.push({key:"ui",name:e.name,translation:e.translation,type:"row",colors:e.colors})})),t},dataColors:()=>({primary:e.dataColors.primaryColor,nil:e.dataColors.nullColor,others:e.dataColors.othersColor}),uiColor(e,n){return n=!!n,e.index<0||void 0===e.index?e.color:(void 0===t&&(t=this.uiPalettes()[0]||!1),t?void 0===t.colors[e.index-n]?e.color:t.colors[e.index-n]:e.color)}}}(e);const s=o.getStyle("","","color"),l=at(s);n=lt([s,l<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>a}};return Object.keys(te.prototype).forEach((e=>{o[e]=te.prototype[e]})),te.init(o),i.setTheme({},"light"),{externalAPI:o,internalAPI:i}}const ut=(e,t)=>new Promise((n=>{setTimeout((()=>n(t)),e)})),dt=5e3;function pt(e){return"auto"!==e?e:function(){let e=!1;return window.PointerEvent&&"maxTouchPoints"in navigator?navigator.maxTouchPoints>0&&(e=!0):(window.matchMedia&&window.matchMedia("(any-pointer:coarse)").matches||window.TouchEvent||"ontouchstart"in window)&&(e=!0),e}()?"touch":"desktop"}var ht={},ft=m;function mt(e){return null!==e&&"object"==typeof e&&e.constructor===Object}function gt(e){if(!mt(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=gt(e[n])})),t}function yt(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return mt(e)&&mt(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(mt(t[o])&&o in e&&mt(e[o])?r[o]=yt(e[o],t[o],n):n.clone?r[o]=mt(t[o])?gt(t[o]):t[o]:r[o]=t[o])})),r}function bt(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 vt(e){if("string"!=typeof e)throw new Error(bt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function St(e){return e&&e.ownerDocument||document}function xt(e,t){"function"==typeof e?e(t):e&&(e.current=t)}ht.createRoot=ft.createRoot,ht.hydrateRoot=ft.hydrateRoot;var Et="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;let Ct=0;const wt=e["useId".toString()];let Lt,Rt=!0,It=!1;const Ot={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 qt(e){e.metaKey||e.altKey||e.ctrlKey||(Rt=!0)}function kt(){Rt=!1}function _t(){"hidden"===this.visibilityState&&It&&(Rt=!0)}function Tt(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Rt||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Ot[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Dt(e,t){const n={...t};return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]={...e[r],...n[r]};else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},i&&Object.keys(i)?o&&Object.keys(o)?(n[r]={...i},Object.keys(o).forEach((e=>{n[r][e]=Dt(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}const At=e=>e;var Pt=(()=>{let e=At;return{configure(t){e=t},generate:t=>e(t),reset(){e=At}}})();const Nt={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Mt(e,t,n="Mui"){const r=Nt[t];return r?`${n}-${r}`:`${Pt.generate(e)}-${t}`}function zt(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=Mt(e,t,n)})),r}var jt="$$material";function Ft(){return Ft=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},Ft.apply(this,arguments)}function Wt(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 Bt=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}(),Ht="-ms-",Ut="-moz-",$t="-webkit-",Gt="comm",Vt="rule",Kt="decl",Zt="@keyframes",Jt=Math.abs,Xt=String.fromCharCode,Yt=Object.assign;function Qt(e){return e.trim()}function en(e,t,n){return e.replace(t,n)}function tn(e,t){return e.indexOf(t)}function nn(e,t){return 0|e.charCodeAt(t)}function rn(e,t,n){return e.slice(t,n)}function on(e){return e.length}function an(e){return e.length}function sn(e,t){return t.push(e),e}var ln=1,cn=1,un=0,dn=0,pn=0,hn="";function fn(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:ln,column:cn,length:a,return:""}}function mn(e,t){return Yt(fn("",null,null,"",null,null,0),e,{length:-e.length},t)}function gn(){return pn=dn>0?nn(hn,--dn):0,cn--,10===pn&&(cn=1,ln--),pn}function yn(){return pn=dn<un?nn(hn,dn++):0,cn++,10===pn&&(cn=1,ln++),pn}function bn(){return nn(hn,dn)}function vn(){return dn}function Sn(e,t){return rn(hn,e,t)}function xn(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 En(e){return ln=cn=1,un=on(hn=e),dn=0,[]}function Cn(e){return hn="",e}function wn(e){return Qt(Sn(dn-1,In(91===e?e+2:40===e?e+1:e)))}function Ln(e){for(;(pn=bn())&&pn<33;)yn();return xn(e)>2||xn(pn)>3?"":" "}function Rn(e,t){for(;--t&&yn()&&!(pn<48||pn>102||pn>57&&pn<65||pn>70&&pn<97););return Sn(e,vn()+(t<6&&32==bn()&&32==yn()))}function In(e){for(;yn();)switch(pn){case e:return dn;case 34:case 39:34!==e&&39!==e&&In(pn);break;case 40:41===e&&In(e);break;case 92:yn()}return dn}function On(e,t){for(;yn()&&e+pn!==57&&(e+pn!==84||47!==bn()););return"/*"+Sn(t,dn-1)+"*"+Xt(47===e?e:yn())}function qn(e){for(;!xn(bn());)yn();return Sn(e,dn)}function kn(e){return Cn(_n("",null,null,null,[""],e=En(e),0,[0],e))}function _n(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,h=0,f=0,m=1,g=1,y=1,b=0,v="",S=o,x=i,E=r,C=v;g;)switch(f=b,b=yn()){case 40:if(108!=f&&58==nn(C,d-1)){-1!=tn(C+=en(wn(b),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:C+=wn(b);break;case 9:case 10:case 13:case 32:C+=Ln(f);break;case 92:C+=Rn(vn()-1,7);continue;case 47:switch(bn()){case 42:case 47:sn(Dn(On(yn(),vn()),t,n),l);break;default:C+="/"}break;case 123*m:s[c++]=on(C)*y;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==y&&(C=en(C,/\f/g,"")),h>0&&on(C)-d&&sn(h>32?An(C+";",r,n,d-1):An(en(C," ","")+";",r,n,d-2),l);break;case 59:C+=";";default:if(sn(E=Tn(C,t,n,c,u,o,s,v,S=[],x=[],d),i),123===b)if(0===u)_n(C,t,E,E,S,i,d,s,x);else switch(99===p&&110===nn(C,3)?100:p){case 100:case 108:case 109:case 115:_n(e,E,E,r&&sn(Tn(e,E,E,0,0,o,s,v,o,S=[],d),x),o,x,d,s,r?S:x);break;default:_n(C,E,E,E,[""],x,0,s,x)}}c=u=h=0,m=y=1,v=C="",d=a;break;case 58:d=1+on(C),h=f;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==gn())continue;switch(C+=Xt(b),b*m){case 38:y=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(on(C)-1)*y,y=1;break;case 64:45===bn()&&(C+=wn(yn())),p=bn(),u=d=on(v=C+=qn(vn())),b++;break;case 45:45===f&&2==on(C)&&(m=0)}}return i}function Tn(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,p=0===o?i:[""],h=an(p),f=0,m=0,g=0;f<r;++f)for(var y=0,b=rn(e,d+1,d=Jt(m=a[f])),v=e;y<h;++y)(v=Qt(m>0?p[y]+" "+b:en(b,/&\f/g,p[y])))&&(l[g++]=v);return fn(e,t,n,0===o?Vt:s,l,c,u)}function Dn(e,t,n){return fn(e,t,n,Gt,Xt(pn),rn(e,2,-2),0)}function An(e,t,n,r){return fn(e,t,n,Kt,rn(e,0,r),rn(e,r+1,-1),r)}function Pn(e,t){for(var n="",r=an(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Nn(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Kt:return e.return=e.return||e.value;case Gt:return"";case Zt:return e.return=e.value+"{"+Pn(e.children,r)+"}";case Vt:e.value=e.props.join(",")}return on(n=Pn(e.children,r))?e.return=e.value+"{"+n+"}":""}function Mn(e){var t=an(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 zn=function(e,t,n){for(var r=0,o=0;r=o,o=bn(),38===r&&12===o&&(t[n]=1),!xn(o);)yn();return Sn(e,dn)},jn=function(e,t){return Cn(function(e,t){var n=-1,r=44;do{switch(xn(r)){case 0:38===r&&12===bn()&&(t[n]=1),e[n]+=zn(dn-1,t,n);break;case 2:e[n]+=wn(r);break;case 4:if(44===r){e[++n]=58===bn()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Xt(r)}}while(r=yn());return e}(En(e),t))},Fn=new WeakMap,Wn=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Fn.get(n))&&!r){Fn.set(e,!0);for(var o=[],i=jn(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]}}},Bn=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Hn(e,t){switch(function(e,t){return 45^nn(e,0)?(((t<<2^nn(e,0))<<2^nn(e,1))<<2^nn(e,2))<<2^nn(e,3):0}(e,t)){case 5103:return $t+"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 $t+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $t+e+Ut+e+Ht+e+e;case 6828:case 4268:return $t+e+Ht+e+e;case 6165:return $t+e+Ht+"flex-"+e+e;case 5187:return $t+e+en(e,/(\w+).+(:[^]+)/,$t+"box-$1$2"+Ht+"flex-$1$2")+e;case 5443:return $t+e+Ht+"flex-item-"+en(e,/flex-|-self/,"")+e;case 4675:return $t+e+Ht+"flex-line-pack"+en(e,/align-content|flex-|-self/,"")+e;case 5548:return $t+e+Ht+en(e,"shrink","negative")+e;case 5292:return $t+e+Ht+en(e,"basis","preferred-size")+e;case 6060:return $t+"box-"+en(e,"-grow","")+$t+e+Ht+en(e,"grow","positive")+e;case 4554:return $t+en(e,/([^-])(transform)/g,"$1"+$t+"$2")+e;case 6187:return en(en(en(e,/(zoom-|grab)/,$t+"$1"),/(image-set)/,$t+"$1"),e,"")+e;case 5495:case 3959:return en(e,/(image-set\([^]*)/,$t+"$1$`$1");case 4968:return en(en(e,/(.+:)(flex-)?(.*)/,$t+"box-pack:$3"+Ht+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+$t+e+e;case 4095:case 3583:case 4068:case 2532:return en(e,/(.+)-inline(.+)/,$t+"$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(on(e)-1-t>6)switch(nn(e,t+1)){case 109:if(45!==nn(e,t+4))break;case 102:return en(e,/(.+:)(.+)-([^]+)/,"$1"+$t+"$2-$3$1"+Ut+(108==nn(e,t+3)?"$3":"$2-$3"))+e;case 115:return~tn(e,"stretch")?Hn(en(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==nn(e,t+1))break;case 6444:switch(nn(e,on(e)-3-(~tn(e,"!important")&&10))){case 107:return en(e,":",":"+$t)+e;case 101:return en(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$t+(45===nn(e,14)?"inline-":"")+"box$3$1"+$t+"$2$3$1"+Ht+"$2box$3")+e}break;case 5936:switch(nn(e,t+11)){case 114:return $t+e+Ht+en(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $t+e+Ht+en(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $t+e+Ht+en(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return $t+e+Ht+e+e}return e}var Un="undefined"!=typeof document,$n=Un?void 0:function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}((function(){return 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]}}))})),Gn=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Kt:e.return=Hn(e.value,e.length);break;case Zt:return Pn([mn(e,{value:en(e.value,"@","@"+$t)})],r);case Vt: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 Pn([mn(e,{props:[en(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Pn([mn(e,{props:[en(t,/:(plac\w+)/,":"+$t+"input-$1")]}),mn(e,{props:[en(t,/:(plac\w+)/,":-moz-$1")]}),mn(e,{props:[en(t,/:(plac\w+)/,Ht+"input-$1")]})],r)}return""}))}}],Vn={exports:{}},Kn={},Zn=t,Jn=Symbol.for("react.element"),Xn=Symbol.for("react.fragment"),Yn=Object.prototype.hasOwnProperty,Qn=Zn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,er={key:!0,ref:!0,__self:!0,__source:!0};function tr(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)Yn.call(t,r)&&!er.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:Jn,type:e,key:i,ref:a,props:o,_owner:Qn.current}}Kn.Fragment=Xn,Kn.jsx=tr,Kn.jsxs=tr,Vn.exports=Kn;var nr=Vn.exports;let rr;function or(e){const{injectFirst:t,children:n}=e;return t&&rr?nr.jsx(g,{value:rr,children:n}):n}
|
|
8
8
|
/**
|
|
9
|
-
* @mui/styled-engine v5.
|
|
9
|
+
* @mui/styled-engine v5.13.2
|
|
10
10
|
*
|
|
11
11
|
* @license MIT
|
|
12
12
|
* This source code is licensed under the MIT license found in the
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
|
14
|
-
*/"object"==typeof document&&(tr=function(e){var t=e.key;if(Bn&&"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||Hn,a={},s=[];Bn&&(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=[jn,Fn];if(Bn){var u,d=[An,(l=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],p=Pn(c.concat(i,d));o=function(e,t,n,r){u=n,Dn(qn(e?e+"{"+t.styles+"}":t.styles),p),r&&(y.inserted[t.name]=!0)}}else{var h=[An],f=Pn(c.concat(i,h)),m=Un(i)(t),g=function(e,t){var n=t.name;return void 0===m[n]&&(m[n]=Dn(qn(e?e+"{"+t.styles+"}":t.styles),f)),m[n]};o=function(e,t,n,r){var o=t.name,i=g(e,t);return void 0===y.compat?(r&&(y.inserted[o]=!0),i):r?void(y.inserted[o]=i):i}}var y={key:t,sheet:new Ft({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}));const rr=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)=>({...e,[t.key]:t.val})),{})};function or(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=rr(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{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 ir={borderRadius:4};function ar(e,t){return t?yt(e,t,{clone:!1}):e}const sr={xs:0,sm:600,md:900,lg:1200,xl:1536},lr={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${sr[e]}px)`};function cr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||lr;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||lr;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||sr).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,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 dr(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:ur(e,n)||r,t&&(o=t(o,r,e)),o}function pr(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=ur(e.theme,r)||{};return cr(e,i,(e=>{let r=dr(a,o,e);return e===r&&"string"==typeof e&&(r=dr(a,o,`${t}${"default"===e?"":vt(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const hr={m:"margin",p:"padding"},fr={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},mr={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},gr=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!mr[e])return[e];e=mr[e]}const[t,n]=e.split(""),r=hr[t],o=fr[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),yr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],br=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function vr(e,t,n,r){var o;const i=null!=(o=ur(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 Sr(e){return vr(e,"spacing",8)}function Er(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 xr(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Er(t,n),e)),{})}(gr(n),r);return cr(e,e[n],o)}function Cr(e,t){const n=Sr(e.theme);return Object.keys(e).map((r=>xr(e,t,r,n))).reduce(ar,{})}function wr(e){return Cr(e,yr)}function Lr(e){return Cr(e,br)}function Rr(e=8){if(e.mui)return e;const t=Sr({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}function Ir(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?ar(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function qr(e){return"number"!=typeof e?e:`${e}px solid`}wr.propTypes={},wr.filterProps=yr,Lr.propTypes={},Lr.filterProps=br;const kr=pr({prop:"border",themeKey:"borders",transform:qr}),Or=pr({prop:"borderTop",themeKey:"borders",transform:qr}),_r=pr({prop:"borderRight",themeKey:"borders",transform:qr}),Tr=pr({prop:"borderBottom",themeKey:"borders",transform:qr}),Dr=pr({prop:"borderLeft",themeKey:"borders",transform:qr}),Ar=pr({prop:"borderColor",themeKey:"palette"}),Pr=pr({prop:"borderTopColor",themeKey:"palette"}),Nr=pr({prop:"borderRightColor",themeKey:"palette"}),Mr=pr({prop:"borderBottomColor",themeKey:"palette"}),zr=pr({prop:"borderLeftColor",themeKey:"palette"}),jr=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=vr(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Er(t,e)});return cr(e,e.borderRadius,n)}return null};jr.propTypes={},jr.filterProps=["borderRadius"],Ir(kr,Or,_r,Tr,Dr,Ar,Pr,Nr,Mr,zr,jr);const Fr=e=>{if(void 0!==e.gap&&null!==e.gap){const t=vr(e.theme,"spacing",8),n=e=>({gap:Er(t,e)});return cr(e,e.gap,n)}return null};Fr.propTypes={},Fr.filterProps=["gap"];const Wr=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=vr(e.theme,"spacing",8),n=e=>({columnGap:Er(t,e)});return cr(e,e.columnGap,n)}return null};Wr.propTypes={},Wr.filterProps=["columnGap"];const Br=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=vr(e.theme,"spacing",8),n=e=>({rowGap:Er(t,e)});return cr(e,e.rowGap,n)}return null};Br.propTypes={},Br.filterProps=["rowGap"];function Ur(e,t){return"grey"===t?t:e}Ir(Fr,Wr,Br,pr({prop:"gridColumn"}),pr({prop:"gridRow"}),pr({prop:"gridAutoFlow"}),pr({prop:"gridAutoColumns"}),pr({prop:"gridAutoRows"}),pr({prop:"gridTemplateColumns"}),pr({prop:"gridTemplateRows"}),pr({prop:"gridTemplateAreas"}),pr({prop:"gridArea"}));function Hr(e){return e<=1&&0!==e?100*e+"%":e}Ir(pr({prop:"color",themeKey:"palette",transform:Ur}),pr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ur}),pr({prop:"backgroundColor",themeKey:"palette",transform:Ur}));const $r=pr({prop:"width",transform:Hr}),Gr=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])||sr[t]||Hr(t)}};return cr(e,e.maxWidth,t)}return null};Gr.filterProps=["maxWidth"];const Vr=pr({prop:"minWidth",transform:Hr}),Kr=pr({prop:"height",transform:Hr}),Zr=pr({prop:"maxHeight",transform:Hr}),Jr=pr({prop:"minHeight",transform:Hr});pr({prop:"size",cssProperty:"width",transform:Hr}),pr({prop:"size",cssProperty:"height",transform:Hr});Ir($r,Gr,Vr,Kr,Zr,Jr,pr({prop:"boxSizing"}));var Xr={border:{themeKey:"borders",transform:qr},borderTop:{themeKey:"borders",transform:qr},borderRight:{themeKey:"borders",transform:qr},borderBottom:{themeKey:"borders",transform:qr},borderLeft:{themeKey:"borders",transform:qr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:jr},color:{themeKey:"palette",transform:Ur},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ur},backgroundColor:{themeKey:"palette",transform:Ur},p:{style:Lr},pt:{style:Lr},pr:{style:Lr},pb:{style:Lr},pl:{style:Lr},px:{style:Lr},py:{style:Lr},padding:{style:Lr},paddingTop:{style:Lr},paddingRight:{style:Lr},paddingBottom:{style:Lr},paddingLeft:{style:Lr},paddingX:{style:Lr},paddingY:{style:Lr},paddingInline:{style:Lr},paddingInlineStart:{style:Lr},paddingInlineEnd:{style:Lr},paddingBlock:{style:Lr},paddingBlockStart:{style:Lr},paddingBlockEnd:{style:Lr},m:{style:wr},mt:{style:wr},mr:{style:wr},mb:{style:wr},ml:{style:wr},mx:{style:wr},my:{style:wr},margin:{style:wr},marginTop:{style:wr},marginRight:{style:wr},marginBottom:{style:wr},marginLeft:{style:wr},marginX:{style:wr},marginY:{style:wr},marginInline:{style:wr},marginInlineStart:{style:wr},marginInlineEnd:{style:wr},marginBlock:{style:wr},marginBlockStart:{style:wr},marginBlockEnd:{style:wr},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Fr},rowGap:{style:Br},columnGap:{style:Wr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Hr},maxWidth:{style:Gr},minWidth:{transform:Hr},height:{transform:Hr},maxHeight:{transform:Hr},minHeight:{transform:Hr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const Yr=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=ur(n,s)||{};if(c)return c(o);return cr(o,t,(t=>{let n=dr(u,l,t);return t===n&&"string"==typeof t&&(n=dr(u,l,`${e}${"default"===t?"":vt(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:Xr;function s(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=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(o);let l=o;return Object.keys(r).forEach((n=>{const o=(s=r[n],c=i,"function"==typeof s?s(c):s);var s,c;if(null!=o)if("object"==typeof o)if(a[n])l=ar(l,e(n,o,i,a));else{const e=cr({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?l=ar(l,e):l[n]=t({sx:o,theme:i})}else l=ar(l,e(n,o,i,a))})),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(s):s(o)}}();Yr.filterProps=["sx"];var Qr=Yr;function eo(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e;let s=yt({breakpoints:or(n),direction:"ltr",components:{},palette:{mode:"light",...r},spacing:Rr(o),shape:{...ir,...i}},a);return s=t.reduce(((e,t)=>yt(e,t)),s),s.unstable_sxConfig={...Xr,...null==a?void 0:a.unstable_sxConfig},s.unstable_sx=function(e){return Qr({sx:e,theme:this})},s}function to(t=null){const n=e.useContext(y);return n&&(r=n,0!==Object.keys(r).length)?n:t;var r}const no=eo();function ro(e=no){return to(e)}function oo(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=oo(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function io(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=oo(e))&&(r&&(r+=" "),r+=t);return r}function ao(e){return 0===e.length}function so(e){const{variant:t,...n}=e;let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?ao(r)?e[t]:vt(e[t]):`${ao(r)?t:vt(t)}${vt(e[t].toString())}`})),r}function lo(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const co=eo();function uo({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function po(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Dt(t.components[n].defaultProps,r):r}function ho(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function fo(e){if(e.type)return e;if("#"===e.charAt(0))return fo(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(bt(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(bt(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function mo(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 go(e){let t="hsl"===(e=fo(e)).type||"hsla"===e.type?fo(function(e){e=fo(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])),mo({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))}var yo=e.createContext(null);function bo(){return e.useContext(yo)}var vo="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function So(t){const{children:n,theme:r}=t,o=bo(),i=e.useMemo((()=>{const e=null===o?r:function(e,t){if("function"==typeof t)return t(e);return{...e,...t}}(o,r);return null!=e&&(e[vo]=null!==o),e}),[r,o]);return er.jsx(yo.Provider,{value:i,children:n})}const Eo={};function xo(t,n,r,o=!1){return e.useMemo((()=>{const e=t&&n[t]||n;if("function"==typeof r){const i=r(e),a=t?{...n,[t]:i}:i;return o?()=>a:a}return t?{...n,[t]:r}:{...n,...r}}),[t,n,r,o])}function Co(e){const{children:t,theme:n,themeId:r}=e,o=to(Eo),i=bo()||Eo,a=xo(r,o,n),s=xo(r,i,n,!0);return er.jsx(So,{theme:s,children:er.jsx(y.Provider,{value:a,children:t})})}var wo={black:"#000",white:"#fff"};var Lo={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 Ro={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 Io={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 qo={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 ko={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 Oo={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 _o={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 To={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:wo.white,default:wo.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}},Do={text:{primary:wo.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:wo.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 Ao(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=fo(e),t=ho(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 mo(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=fo(e),t=ho(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 mo(e)}(e.main,i)))}function Po(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,i=e.primary||function(e="light"){return"dark"===e?{main:ko[200],light:ko[50],dark:ko[400]}:{main:ko[700],light:ko[400],dark:ko[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Ro[200],light:Ro[50],dark:Ro[400]}:{main:Ro[500],light:Ro[300],dark:Ro[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Io[500],light:Io[300],dark:Io[700]}:{main:Io[700],light:Io[400],dark:Io[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:Oo[400],light:Oo[300],dark:Oo[700]}:{main:Oo[700],light:Oo[500],dark:Oo[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:_o[400],light:_o[300],dark:_o[700]}:{main:_o[800],light:_o[500],dark:_o[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:qo[400],light:qo[300],dark:qo[700]}:{main:"#ed6c02",light:qo[500],dark:qo[900]}}(t);function d(e){const t=function(e,t){const n=go(e),r=go(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Do.text.primary)>=n?Do.text.primary:To.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e={...e}).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(bt(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(bt(12,t?` (${t})`:"",JSON.stringify(e.main)));return Ao(e,"light",o,r),Ao(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},h={dark:Do,light:To};return yt({common:{...wo},mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:Lo,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r,...h[t]},o)}const No={textTransform:"uppercase"},Mo='"Roboto", "Helvetica", "Arial", sans-serif';function zo(e,t){const{fontFamily:n=Mo,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:s=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...d}="function"==typeof t?t(e):t,p=r/14,h=u||(e=>e/l*p+"rem"),f=(e,t,r,o,i)=>{return{fontFamily:n,fontWeight:e,fontSize:h(t),lineHeight:r,...n===Mo?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},...i,...c};var a},m={h1:f(o,96,1.167,-1.5),h2:f(o,60,1.2,-.5),h3:f(i,48,1.167,0),h4:f(i,34,1.235,.25),h5:f(i,24,1.334,0),h6:f(a,20,1.6,.15),subtitle1:f(i,16,1.75,.15),subtitle2:f(a,14,1.57,.1),body1:f(i,16,1.5,.15),body2:f(i,14,1.43,.15),button:f(a,14,1.75,.4,No),caption:f(i,12,1.66,.4),overline:f(i,12,2.66,1,No),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return yt({htmlFontSize:l,pxToRem:h,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:s,...m},d,{clone:!1})}function jo(...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 Fo=["none",jo(0,2,1,-1,0,1,1,0,0,1,3,0),jo(0,3,1,-2,0,2,2,0,0,1,5,0),jo(0,3,3,-2,0,3,4,0,0,1,8,0),jo(0,2,4,-1,0,4,5,0,0,1,10,0),jo(0,3,5,-1,0,5,8,0,0,1,14,0),jo(0,3,5,-1,0,6,10,0,0,1,18,0),jo(0,4,5,-2,0,7,10,1,0,2,16,1),jo(0,5,5,-3,0,8,10,1,0,3,14,2),jo(0,5,6,-3,0,9,12,1,0,3,16,2),jo(0,6,6,-3,0,10,14,1,0,4,18,3),jo(0,6,7,-4,0,11,15,1,0,4,20,3),jo(0,7,8,-4,0,12,17,2,0,5,22,4),jo(0,7,8,-4,0,13,19,2,0,5,24,4),jo(0,7,9,-4,0,14,21,2,0,5,26,4),jo(0,8,9,-5,0,15,22,2,0,6,28,5),jo(0,8,10,-5,0,16,24,2,0,6,30,5),jo(0,8,11,-5,0,17,26,2,0,6,32,5),jo(0,9,11,-5,0,18,28,2,0,7,34,6),jo(0,9,12,-6,0,19,29,2,0,7,36,6),jo(0,10,13,-6,0,20,31,3,0,8,38,7),jo(0,10,13,-6,0,21,33,3,0,8,40,7),jo(0,10,14,-6,0,22,35,3,0,8,42,7),jo(0,11,14,-7,0,23,36,3,0,9,44,8),jo(0,11,15,-7,0,24,38,3,0,9,46,8)];const Wo={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)"},Bo={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Uo(e){return`${Math.round(e)}ms`}function Ho(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function $o(e){const t={...Wo,...e.easing},n={...Bo,...e.duration};return{getAutoHeightDuration:Ho,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0,...s}=r;return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:Uo(o)} ${i} ${"string"==typeof a?a:Uo(a)}`)).join(",")},...e,easing:t,duration:n}}var Go={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Vo(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:a={},typography:s={},shape:l,...c}=e;if(e.vars)throw new Error(bt(18));const u=Po(i),d=eo(e);let p=yt(d,{mixins:(h=d.breakpoints,f=r,{toolbar:{minHeight:56,[h.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[h.up("sm")]:{minHeight:64}},...f}),palette:u,shadows:Fo.slice(),typography:zo(u,s),transitions:$o(a),zIndex:{...Go}});var h,f;return p=yt(p,c),p=t.reduce(((e,t)=>yt(e,t)),p),p.unstable_sxConfig={...Xr,...null==c?void 0:c.unstable_sxConfig},p.unstable_sx=function(e){return Qr({sx:e,theme:this})},p}var Ko=Vo();function Zo(){const e=ro(Ko);return e[jt]||e}function Jo({props:e,name:t}){return function({props:e,name:t,defaultTheme:n,themeId:r}){let o=ro(n);return r&&(o=o[r]||o),po({theme:o,name:t,props:e})}({props:e,name:t,defaultTheme:Ko,themeId:jt})}const Xo=function(e={}){const{themeId:t,defaultTheme:n=co,rootShouldForwardProp:r=lo,slotShouldForwardProp:o=lo}=e,i=e=>Qr({...e,theme:uo({...e,defaultTheme:n,themeId:t})});return i.__mui_systemSx=!0,(e,a={})=>{((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:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:d,...p}=a,h=void 0!==c?c:l&&"Root"!==l||!1,f=u||!1;let m=lo;"Root"===l?m=r:l?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=function(e,t){return W(e,t)}(e,{shouldForwardProp:m,label:undefined,...p}),y=(r,...o)=>{const a=o?o.map((e=>"function"==typeof e&&e.__emotion_real!==e?r=>e({...r,theme:uo({...r,defaultTheme:n,themeId:t})}):e)):[];let l=r;s&&d&&a.push((e=>{const r=uo({...e,defaultTheme:n,themeId:t}),o=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(s,r);if(o){const t={};return Object.entries(o).forEach((([n,o])=>{t[n]="function"==typeof o?o({...e,theme:r}):o})),d(e,t)}return null})),s&&!h&&a.push((e=>{const r=uo({...e,defaultTheme:n,themeId:t});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[so(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=so(e.props);r[t]=e.style})),r})(s,r),r,s)})),f||a.push(i);const c=a.length-o.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");l=[...r,...e],l.raw=[...r.raw,...e]}else"function"==typeof r&&r.__emotion_real!==r&&(l=e=>r({...e,theme:uo({...e,defaultTheme:n,themeId:t})}));const u=g(l,...a);return e.muiName&&(u.muiName=e.muiName),u};return g.withConfig&&(y.withConfig=g.withConfig),y}}({themeId:jt,defaultTheme:Ko,rootShouldForwardProp:e=>lo(e)&&"classes"!==e});var Yo=Xo;function Qo({theme:e,...t}){const n=e[jt];return er.jsx(Co,{...t,themeId:n?jt:void 0,theme:n||e})}function ei(){return ei=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},ei.apply(this,arguments)}function ti(e,t){return ti=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ti(e,t)}function ni(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ti(e,t)}function ri(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var oi=zt("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"]),ii={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 ai="#009845",si="#3F8AB3",li="#ffffff",ci="#404040",ui="#333333",di="#1A1A1A",pi={mode:"light",palette:{primary:{main:ci,contrastText:li},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:ci,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)"},action:{active:"#545454",hover:"rgba(0, 0, 0, 0.03)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.05)",disabled:"rgba(0, 0, 0, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},background:{paper:li,default:li,lightest:li,lighter:"#FBFBFB",darker:"#F2F2F2",darkest:"#E6E6E6"},custom:{focusBorder:si,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)"},selected:{main:ai,alternative:"#E4E4E4",excluded:"#BEBEBE",mainContrastText:li,alternativeContrastText:ci,excludedContrastText:ci},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)"}}},hi={mode:"dark",palette:{primary:{main:ui,contrastText:li},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:li,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)"},action:{active:li,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:ci,lighter:ui,darker:"#262626",darkest:di},custom:{focusBorder:si,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)"},selected:{main:ai,alternative:ui,excluded:di,mainContrastText:li,alternativeContrastText:li,excludedContrastText:li},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)"}}},fi={},mi=e=>({MuiTypography:{root:{color:e.palette.text.primary}},MuiGrid:{variants:[{props:{alignItems:"center"},style:{"align-items":"center"}}]},MuiButtonBase:{root:{borderRadius:2,border:"1px solid transparent","&:focus":{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)}}},MuiIconButton:{root:{padding:7,borderRadius:2,border:"1px solid transparent","&:hover":{backgroundColor:e.palette.btn.hover},"&:focus-visible":{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)},"&:active":{borderColor:"transparent",boxShadow:"none",backgroundColor:e.palette.btn.active},"&:not(:active):not(:focus-visible)":{borderColor:"transparent",boxShadow:"none"}}},MuiOutlinedInput:{root:{backgroundColor:e.palette.custom.inputBackground,"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.btn.border},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.custom.focusBorder,borderWidth:2}}},MuiButton:{outlined:{padding:"3px 11px",["&.".concat(oi.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(oi.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(oi.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(oi.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function gi(e){let t=pi,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=hi));const r=JSON.stringify(t);if(fi[r])return fi[r];const o={palette:$($({type:t.mode},ii.palette),t.palette),typography:$({},ii.typography),shadows:ii.shadows,props:$({},ii.props),shape:$({},ii.shape)};return fi[r]=Vo(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:i={},styleOverrides:a={},...s}=e,l={...s,components:{}};Object.keys(t).forEach((e=>{const n=l.components[e]||{};n.defaultProps=t[e],l.components[e]=n})),Object.keys(i).forEach((e=>{const t=l.components[e]||{};t.defaultProps=i[e],l.components[e]=t})),Object.keys(a).forEach((e=>{const t=l.components[e]||{};t.styleOverrides=a[e],l.components[e]=t})),Object.keys(r).forEach((e=>{const t=l.components[e]||{};t.styleOverrides=r[e],l.components[e]=t})),l.spacing=Rr(e.spacing);const c=or(e.breakpoints||{}),u=l.spacing;l.mixins={gutters:(e={})=>({paddingLeft:u(2),paddingRight:u(2),...e,[c.up("sm")]:{paddingLeft:u(3),paddingRight:u(3),...e[c.up("sm")]}}),...n};const{type:d,mode:p,...h}=o,f=p||d||"light";return l.palette={text:{hint:"dark"===f?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:f,type:f,...h},l}($($({},o),{},{overrides:mi(o)}))),fi[r].name=n,fi[r]}Pt.configure((e=>"njs-".concat("8048","-").concat(e.replace("Mui",""))));var yi=t.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null}),bi=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};const t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=[],i={get:e=>t[e],set:(n,r)=>{if(void 0===n||"object"==typeof n)throw new Error("Invalid key: ".concat(JSON.stringify(n)));return t[n]=r,e({type:"SET",value:r}),r},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));t[e]=null},dispatch:e=>{o.forEach((n=>n(e?{}:t)))}};return[()=>{const[,e]=n(t);return r((()=>(o.push(e),()=>{const t=o.indexOf(e);o.splice(t,1)})),[e]),[i]},i]};const[vi,Si]=bi({}),[Ei,xi]=bi({}),[Ci,wi]=bi({}),[Li,Ri]=bi({});function Ii(e){if(!e.session)return[];const[t]=vi(),n=e?e.id:null;let o=t.get(n);return r((()=>{e&&!o&&(o=function(e){let{app:t}=e;const n="".concat(t.id),r=async function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=Ri.get(n);t&&(await t.endSelections(e),Ri.clear(n),wi.get(t.id).emit("deactivated"))},o={begin:async function(e,o){let i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e===Ri.get(n))return;r(i),Ri.set(n,e);const a=Array.isArray(o)?o:[o],s=async r=>{try{await e.beginSelections(a),Ri.set(n,e)}catch(e){6003!==e.code||r?Ri.clear(n):(await t.abortModal(i),s(!0))}};await s()},end:r};xi.set(n,o);const i={model:t,isInModal:()=>!!Ri.get(n),isModal:e=>e?Ri.get(n)===e:!!Ri.get(n),forward:()=>o.end().then((()=>t.forward())),back:()=>o.end().then((()=>t.back())),clear:()=>o.end().then((()=>t.clearAll())),clearField(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$";return o.end().then((()=>t.getField(e,n).then((e=>e.clear()))))}};return i}({app:e}),t.set(n,o),t.dispatch(!0))}),[e]),[o]}const qi={active:!0,select:!0,passive:!0,edit:!1};function ki(e){const t={},n={},r=function(e){const{constraints:t={},interactions:n={}}=e;if(Object.keys(n).length>0)return n;const r={};return Object.keys(t).forEach((e=>{r[e]=!t[e]})),r}(e);Object.keys(qi).forEach((e=>{void 0!==r[e]?(t[e]=r[e],n[e]=!r[e]):(t[e]=qi[e],n[e]=!qi[e])})),e.constraints=n,e.interactions=t}const Oi=o(((e,o)=>{let{initialContext:s,app:l,renderCallback:c}=e;const[u]=Ii(l),[d,p]=n(s),[h,f]=n(),{theme:m}=i((()=>({theme:gi(h)})),[h]),[g,y]=n([]);return r((()=>{c&&c()}),[]),a(o,(()=>({setComps(e){y([...e])},setMuiThemeName:f,setContext:e=>p((t=>JSON.stringify(t)!==JSON.stringify(e)?e:t)),getAppSelections:()=>u})),[]),t.createElement(nr,{injectFirst:!0},t.createElement(Qo,{theme:m},t.createElement(yi.Provider,{value:d},g)))}));const[_i,Ti]=bi({}),[Di,Ai]=bi({}),[Pi,Ni]=bi({}),[Mi,zi]=bi({}),[ji,Fi]=bi({}),[,Wi]=bi({}),Bi=e=>{let{type:t,value:n}=e;const r=Wi.get(n.id);Wi.set(n.id,{});const o=()=>{Ai.clear(n.id),Fi.set(n.id,{}),Fi.dispatch(!0)},i=()=>{n.removeListener("changed",o),Ti.clear(n.id),Ai.clear(n.id),Ni.clear(n.id),zi.clear(n.id),Fi.clear(n.id),Wi.clear(n.id)};if("SET"===t)r||(n.on("changed",o),n.once("closed",(()=>{i()})));return i},[Ui,Hi]=bi({},Bi),$i=e=>{const t=Bi({type:"SET",value:e});return()=>{t(),Hi.clear(e.id)}};function Gi(e,t){const o=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[i]=Ui(),[a]=Pi(),[s,l]=n();let c;o&&(c=a.get(o));for(var u=arguments.length,d=new Array(u>2?u-2:0),p=2;p<u;p++)d[p-2]=arguments[p];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,...d]),[s]}const Vi={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function Ki(e){return Gi(Vi,e)}const Zi=(e,t)=>{const{rpcResultStore:n,key:r,method:o}=t;let i;switch(t.type){case"INVALID":i=$($({},e),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":i={result:$({},t.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":i=$($({},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 Ji(e,t){const n=e?"".concat(e.id):null,[o]=_i(),[i,a]=s(Zi,n?o.get(n):null),[l]=ji(),[c]=Di();let u;n&&(u=c.get(n),u||(u={},c.set(n,u)));const d=async r=>{let i=u[t];if(!i||i&&i.rpcRetry){i={rpc:e[t](),rpcRetry:!1},u[t]=i,a({type:"INVALID",method:t,key:n,model:e,rpcResultStore:o,canCancel:!0})}try{const r=await i.rpc;a({type:"VALID",result:r,key:n,method:t,model:e,rpcResultStore:o})}catch(e){15!==e.code||r||(i.rpcRetry||(i.rpcRetry=!0),d(!0))}},p={cancel:async()=>{const r=e.session.getObjectApi({handle:-1});await r.cancelRequest(u[t].rpc.requestId),a({type:"CANCELLED",key:n,method:t,model:e,rpcResultStore:o})},retry:()=>{u[t].rpcRetry=!0,d()}};return r((()=>{e&&d()}),[e,l.get(e&&e.id),n,t]),[i&&i.result,{validating:i&&i.validating,canCancel:i&&i.canCancel,canRetry:i&&i.canRetry},p]}function Xi(e){return Ji(e,"getLayout")}function Yi(e){return Ji(e,"getAppLayout")}function Qi(){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 ea(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function ta(e){let{size:n,style:r={},viewBox:o="0 0 16 16",shapes:i=[]}=e;const a=$({fontSize:ea(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,V({key:n},o))}))))}var na=e=>ta((e=>$($({},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 ra=e=>ta((e=>$($({},e),{},{shapes:[{type:"path",attrs:{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10ZM3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0v1.652ZM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9Zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0Z"}}]}))(e));var oa=e=>ta((e=>$($({},e),{},{shapes:[{type:"path",attrs:{d:"M2.5,7 L11,7 C11.5522847,7 12,7.44771525 12,8 L12,15 C12,15.5522847 11.5522847,16 11,16 L1,16 C0.44771525,16 0,15.5522847 0,15 L0,8 C0,7.44771525 0.44771525,7 1,7 L1,4.98151367 C1,2.23029964 3.23857625,0 6,0 C8.4241995,0 10.4454541,1.71883353 10.9029715,4 L9.34209114,4 C8.9671727,2.54028848 7.9088888,1.5 6,1.5 C3.54860291,1.5 2.5,3.21561511 2.5,5.33193359 L2.5,7 Z"}}]}))(e));var ia=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}}(),aa=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},sa=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=aa(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},aa(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,u),ia(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),d=l+1;d<=u&&!t(d);d++)l=d;a.push(s,l)}if(a.length)for(;a[1]-a[0]+1<r&&a[0]>0;){var p=a[0]-1;if(t(p))break;a[0]=p}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 la=["S","XS"],ca=e=>e.reduce(((e,t)=>e.concat(t)));function ua(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[t]=e;return n=t.qState,!!la.includes(n)&&t.qElemNumber;var n}));return t.filter((e=>!1!==e))}));return ca(t)}async function da(e){let{selections:t,elemNumbers:n,toggle:r,isSingleSelect:o}=e;if(0===n.length)return!1;let i=!1;if(!n.some((e=>Number.isNaN(e)))){const e=n;try{i=!1!==await t.select({method:"selectListObjectValues",params:["/qListObjectDef",e,r]})}catch(e){i=!1}i||(o?t.cancel():t.clear())}return i}const pa="RowColumn",ha={row:"".concat(pa,"-row"),rowBorderBottom:"".concat(pa,"-rowBorderBottom"),column:"".concat(pa,"-column"),fieldRoot:"".concat(pa,"-fieldRoot"),cell:"".concat(pa,"-cell"),labelText:"".concat(pa,"-labelText"),labelDense:"".concat(pa,"-labelDense"),highlighted:"".concat(pa,"-highlighted"),checkboxLabel:"".concat(pa,"-checkboxLabel"),icon:"".concat(pa,"-icon"),S:"".concat(pa,"-S"),XS:"".concat(pa,"-XS"),A:"".concat(pa,"-A"),X:"".concat(pa,"-X"),frequencyCount:"".concat(pa,"-frequencyCount"),barContainer:"".concat(pa,"-barContainer"),bar:"".concat(pa,"-bar"),barSelected:"".concat(pa,"-barSelected"),barWithCheckbox:"".concat(pa,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(pa,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(pa,"-excludedTextWithCheckbox")},fa=".".concat(ha.fieldRoot),ma=e=>!(null!=e&&e.metaKey||null!=e&&e.ctrlKey);function ga(e){var t,n;let{selectionState:o,selections:i,checkboxes:a=!1,doc:s=document,loaderRef:c}=e;const u=d({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});r((()=>{var e,t;if(null===(e=c.current)||void 0===e||null===(t=e._listRef)||void 0===t||!t._outerRef)return;const n=e=>e.preventDefault(),r=e=>e.preventDefault(),o=e=>e.preventDefault(),i=c.current._listRef._outerRef;return i.addEventListener("gesturestart",n),i.addEventListener("gesturechange",r),i.addEventListener("gestureend",o),()=>{i.removeEventListener("gesturestart",n),i.removeEventListener("gesturechange",r),i.removeEventListener("gestureend",o)}}),[null===(t=c.current)||void 0===t||null===(n=t._listRef)||void 0===n?void 0:n._outerRef]);const p=()=>(o.setSelectableValuesUpdating(),da({selections:i,elemNumbers:u.current.elemNumbers,isSingleSelect:o.isSingleSelect,toggle:u.current.toggle})),h=(e,t)=>{const n=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 ca(t)}(o.enginePages);return function(e,t){if(!e)return[];if(e.length<=1)return e;const{min:n,max:r}=function(e,t){let n=1/0,r=-1/0;return e.forEach((e=>{const o=t.indexOf(e);n=o<n?o:n,r=o>r?o:r})),{min:n,max:r}}(e,t);return t.slice(n,r+1)}([e,t],n)},f=e=>{const{startElemNumber:t}=u.current;if(t===e)return;const n=h(u.current.startElemNumber,e);o.updateItems(n,!0,u.current.elemNumbers)},m=l((e=>{if(o.selectDisabled())return;const t=+e.target.getAttribute("data-n"),n=!o.isSingleSelect&&ma(e.nativeEvent);u.current.elemNumbers=[t],u.current.toggle=n,n||o.clearItemStates(!0),o.updateItem(t),u.current.active=!1,p()}),[]),g=l((e=>{if(0!==e.button||o.selectDisabled())return;const t=+e.currentTarget.getAttribute("data-n"),n=!o.isSingleSelect&&ma(e);u.current.isRange=!1,u.current.startElemNumber=t,u.current.elemNumbers=[t],u.current.toggle=n,u.current.active=!0,n||o.clearItemStates(!0),o.updateItem(t),o.isSingleSelect&&(u.current.active=!1,p()),((e,t)=>{(e.ctrlKey||e.metaKey)&&(t.focus(),e.preventDefault())})(e,e.currentTarget)}),[]),y=l((e=>{if(0===e.button&&u.current.active){if(u.current.active=!1,u.current.isRange){const t=+e.currentTarget.getAttribute("data-n");f(t)}p()}}),[]),b=l((e=>{0===e.button&&u.current.active&&(u.current.active=!1,p())}),[]),v=l((e=>{if(!u.current.active)return;u.current.isRange||(u.current.isRange=!0,o.isSelected(u.current.startElemNumber)||(o.updateItem(u.current.startElemNumber,!0),u.current.elemNumbers=[]));const t=+e.currentTarget.getAttribute("data-n");f(t)}),[]),S=l((e=>{var t,n,r,i;if(u.current.active||u.current.isRange||o.isSingleSelect||e.touches.length<=1)return;if(e.touches.length>2)return void p();const a=Number(null===(t=e.touches[0].target)||void 0===t||null===(n=t.closest(fa))||void 0===n?void 0:n.getAttribute("data-n")),s=Number(null===(r=e.touches[1].target)||void 0===r||null===(i=r.closest(fa))||void 0===i?void 0:i.getAttribute("data-n"));if(Number.isNaN(a)||Number.isNaN(a))return void p();u.current.active=!0;h(a,s).length<7&&(u.current.touchRangeSmall=!0),u.current.elemNumbers=[],u.current.touchElemNumbers=[a,s]}),[]),E=l((()=>{if(2!==u.current.touchElemNumbers.length)return;if(u.current.touchRangeSmall)return u.current.touchRangeSmall=!1,u.current.touchElemNumbers=[],void(u.current.active=!1);const[e,t]=u.current.touchElemNumbers;u.current.startElemNumber=e,f(t),u.current.touchElemNumbers=[],u.current.active=!1,u.current.toggle=!0,p()}),[]);r((()=>(s.addEventListener("mouseup",b),()=>{s.removeEventListener("mouseup",b)})),[b]),r((()=>{const e=()=>{o.clearItemStates(!1)},t=()=>{o.clearItemStates(!0),o.triggerStateChanged()};return i.on("clearItemStates",e),i.on("deactivated",e),i.on("cleared",t),()=>{i.removeListener("clearItemStates",e),i.removeListener("deactivated",e),i.removeListener("cleared",t)}}),[i]);const x={};return a?Object.assign(x,{onChange:m}):Object.assign(x,{onMouseUp:y,onMouseDown:g,onMouseEnter:v,onTouchStart:S,onTouchEnd:E}),{interactionEvents:x,select:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const r=!o.isSingleSelect&&ma(null==n?void 0:n.nativeEvent);r||o.clearItemStates(!0);const a=[];return o.updateItems(e,t,a),o.setSelectableValuesUpdating(),da({selections:i,elemNumbers:t?a:e,isSingleSelect:o.isSingleSelect,toggle:r})}}}const ya=e=>$($({},e),{},{shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]});var ba=e=>ta(ya(e));const va=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,Sa=e=>e?"A"===e.qState:null,Ea=e=>{let{cell:t,checkboxes:n}=e;return(Sa(t)||va(t))&&n},xa=e=>{let{column:t,histogram:n,checkboxes:r,cell:o,showGray:i}=e;const a=[t?ha.column:ha.row];return n||a.push(ha.rowBorderBottom),o?(r||("XS"===o.qState?a.push(i?ha.XS:ha.S):"S"===o.qState||"L"===o.qState?a.push(ha.S):i&&Sa(o)?a.push(ha.A):i&&va(o)&&a.push(ha.X)),a):[]},Ca=9,wa=80,La=10,Ra=150,Ia=40,qa=56,ka=20,Oa="-",_a=e=>e.filter((e=>!!e)).join(" ").trim(),Ta=e=>{let{qFrequency:t,frequencyMax:n}=e;const r=String(t),o="%"===r.substring(r.length-1),i=parseFloat(o?r:t);return"".concat(o?i:i/n*100,"%")},Da=e=>e||Oa,Aa=e=>{let{theme:t}=e;return{background:t.palette.selected.main,color:t.palette.selected.mainContrastText,"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder),outline:"none"},"& $cell":{paddingRight:0}}},Pa={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},Na=Yo("div",{shouldForwardProp:e=>!["flexBasisProp","isGridMode","isGridCol","dense","frequencyWidth","direction"].includes(e)})((e=>{var t,n,r,o,i,a,s,l,c,u;let{theme:d,flexBasisProp:p,isGridMode:h,isGridCol:f,dense:m,frequencyWidth:g,direction:y}=e;return{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(d.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"},"& .value":{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(d.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"}},["& .".concat(ha.row)]:{flexWrap:"nowrap",color:null!==(t=null===(n=d.listBox)||void 0===n||null===(r=n.content)||void 0===r?void 0:r.color)&&void 0!==t?t:d.palette.text.primary},["& .".concat(ha.rowBorderBottom)]:{borderBottom:f?"none":"1px solid ".concat(d.palette.divider),borderLeft:f?"1px solid ".concat(d.palette.divider):"none"},["& .".concat(ha.column)]:{flexWrap:"nowrap",borderRight:"1px solid ".concat(d.palette.divider),color:null!==(o=null===(i=d.listBox)||void 0===i||null===(a=i.content)||void 0===a?void 0:a.color)&&void 0!==o?o:d.palette.text.primary},["& .".concat(ha.cell)]:{display:"flex",alignItems:"center",minWidth:0,flexGrow:1,paddingLeft:"".concat(Ca,"px"),paddingRight:0},["& .".concat(ha.labelText)]:$($({flexBasis:p,lineHeight:"16px",userSelect:"none",paddingRight:"1px"},Pa),{},{fontSize:null===(s=d.listBox)||void 0===s||null===(l=s.content)||void 0===l?void 0:l.fontSize,fontFamily:null===(c=d.listBox)||void 0===c||null===(u=c.content)||void 0===u?void 0:u.fontFamily}),["& .".concat(ha.labelDense)]:{fontSize:12},["& .".concat(ha.highlighted)]:{backgroundColor:"#FFC72A"},["& .".concat(ha.checkboxLabel)]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":$($({},Pa),{},{display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"})},["& .".concat(ha.icon)]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24},["& .".concat(ha.S)]:$($({},Aa({theme:d})),{},{border:h?"none":void 0}),["& .".concat(ha.XS)]:$($({},Aa({theme:d})),{},{background:d.palette.selected.excluded,color:d.palette.selected.excludedContrastText,border:h?"none":void 0}),["& .".concat(ha.A)]:{background:d.palette.selected.alternative,color:d.palette.selected.alternativeContrastText,border:h?"none":void 0},["& .".concat(ha.X)]:{background:d.palette.selected.excluded,color:d.palette.selected.excludedContrastText,border:h?"none":void 0},["& .".concat(ha.frequencyCount)]:$($({justifyContent:"flex-end"},Pa),{},{flex:"0 1 ".concat(g,"px"),textAlign:"rtl"===y?"left":"right",paddingLeft:"2px"}),["&.".concat(ha.barContainer)]:{height:"100%",display:"flex",alignItems:"center"},["& .".concat(ha.bar)]:{height:m?"16px":"20px",position:"absolute",zIndex:"-1",alignSelf:"center",left:4,width:"calc(100% - ".concat(8,"px)"),display:"flex",alignItems:"center","& .bar-filled":{border:"".concat(1,"px solid"),borderColor:"#D9D9D9",transition:"width 0.2s",backgroundColor:"#FAFAFA",height:"100%"}},["& .".concat(ha.barSelected)]:{zIndex:"0","& .bar-filled":{opacity:"30%",background:d.palette.background.lighter}},["& .".concat(ha.barWithCheckbox)]:{left:"rtl"===y?4:29,width:"calc(100% - ".concat(33,"px)")},["& .".concat(ha.barSelectedWithCheckbox)]:{"& .bar-filled":{background:"#BFE5D0",borderColor:"#BFE5D0"}},["& .".concat(ha.excludedTextWithCheckbox)]:{color:"#828282",fontStyle:"italic"}}}));var Ma=t.memo(Na);const za="ListBoxCheckbox",ja={cbIcon:"".concat(za,"-cbIcon"),cbIconChecked:"".concat(za,"-cbIconChecked"),cbIconExcluded:"".concat(za,"-cbIconExcluded"),cbIconAlternative:"".concat(za,"-cbIconAlternative"),checkbox:"".concat(za,"-checkbox"),dense:"".concat(za,"-dense")},Fa=Yo(b)((e=>{let{theme:t}=e;return{["& .".concat(ja.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(ja.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(ja.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:t.palette.selected.excluded},["& .".concat(ja.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:t.palette.selected.alternative},["&.".concat(ja.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(ja.dense)]:{padding:"4px 8px"}}})),Wa=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 Ba(e){let{onChange:n,checked:r,label:o,dense:i,excluded:a,showGray:s=!0,dataN:l}=e;return t.createElement(Fa,{edge:"start",onChange:n,checked:r,disableRipple:!0,className:[ja.checkbox,i&&ja.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":o,"data-n":l},name:o,icon:Wa(ja,s,a),checkedIcon:t.createElement("span",{className:ja.cbIconChecked})})}const Ua="ListBoxRadioButton",Ha={denseRadioButton:"".concat(Ua,"-denseRadioButton"),radioButton:"".concat(Ua,"-radioButton")},$a=Yo(v)((e=>{let{theme:t,checked:n}=e;return{["&.".concat(Ha.radioButton)]:{right:"5px",color:n?t.palette.selected.main:t.palette.main}}}));function Ga(e){let{onChange:n,checked:r,label:o,dense:i,dataN:a}=e;return t.createElement($a,{checked:r,onChange:n,value:o,name:o,className:Ha.radioButton,inputProps:{"data-n":a},style:{backgroundColor:"transparent"},disableRipple:!0,size:i?"small":"medium",sx:i&&{padding:"0px 0px 0px 12px"}})}function Va(e){let{label:n,color:r,dense:o,showGray:i=!0,checkboxes:a,cell:s,valueTextAlign:l}=e;return t.createElement(S,{component:"span",variant:"body2",className:_a([ha.labelText,o&&ha.labelDense,i&&Ea({cell:s,checkboxes:a})&&ha.excludedTextWithCheckbox]),color:r,align:l,dir:"auto"},t.createElement("span",null,n))}function Ka(e){let{label:n,color:r,dense:o,showGray:i,checkboxes:a,cell:s,valueTextAlign:l}=e;return"string"==typeof n?t.createElement(Va,{label:n,color:r,dense:o,showGray:i,checkboxes:a,cell:s,valueTextAlign:l}):n}function Za(e){let{onChange:n,label:r,color:o,qElemNumber:i,isSelected:a,dense:s,cell:l,isGridCol:c,showGray:u,isSingleSelect:d,checkboxes:p,valueTextAlign:h}=e;const f=t.createElement(Ba,{onChange:n,label:r,checked:a,dense:s,excluded:va(l),isGridCol:c,showGray:u,dataN:i}),m=t.createElement(Ga,{onChange:n,label:r,checked:a,dense:s,dataN:i});return t.createElement(E,{color:o,control:d?m:f,className:ha.checkboxLabel,label:t.createElement(Ka,{label:r,color:o,dense:s,showGray:u,checkboxes:p,cell:l,valueTextAlign:h}),key:i})}function Ja(e){let{labels:n,dense:r,showGray:o,checkboxes:i}=e;const a=n.map(((e,n)=>{let[r,o]=e;return t.createElement("span",{id:n,className:o?ha.highlighted:""},r)}));return t.createElement(Va,{label:a,dense:r,showGray:o,checkboxes:i})}function Xa(e){let{onChange:n,labels:r,checkboxes:o,dense:i,showGray:a,color:s,qElemNumber:l,isSelected:c,cell:u,isGridCol:d,isSingleSelect:p,valueTextAlign:h}=e;const f=t.createElement(Ja,{labels:r,dense:i,showGray:a,checkboxes:o});return o?t.createElement(Za,{onChange:n,label:f,color:s,qElemNumber:l,isSelected:c,dense:i,cell:u,isGridCol:d,showGray:a,isSingleSelect:p,checkboxes:o,valueTextAlign:h}):f}var Ya=t.memo((function(e){let{onChange:n,label:r,color:o,qElemNumber:i,isSelected:a,dense:s,cell:l,isGridCol:c,showGray:u,isSingleSelect:d,checkboxes:p,valueTextAlign:h}=e;return p?t.createElement(Za,{onChange:n,label:r,color:o,qElemNumber:i,isSelected:a,dense:s,cell:l,isGridCol:c,showGray:u,isSingleSelect:d,checkboxes:p,valueTextAlign:h}):t.createElement(Va,{label:r,color:o,dense:s,showGray:!0,checkboxes:p,cell:l,valueTextAlign:h})}));function Qa(e){let{qFrequency:n,histogram:r,checkboxes:o,isSelected:i,frequencyMax:a}=e;if(!(n&&r&&Da(n)!==Oa))return;const s=Ta({qFrequency:n,checkboxes:o,frequencyMax:a});return t.createElement(x,{className:_a([ha.bar,o&&ha.barWithCheckbox,i&&(o?ha.barSelectedWithCheckbox:ha.barSelected)])},t.createElement(x,{className:"bar-filled",width:s}))}function es(e){let{cell:n,checkboxes:r,dense:o,showGray:i}=e;const a=Da(null==n?void 0:n.qFrequency);return t.createElement(C,{item:!0,style:{display:"flex",alignItems:"center"},className:ha.frequencyCount,"aria-label":a,title:a},t.createElement(S,{noWrap:!0,color:"inherit",variant:"body2",className:_a([o&&ha.labelDense,ha.labelText,i&&Ea({cell:n,checkboxes:r})&&ha.excludedTextWithCheckbox])},a))}function ts(e){let{dataLayout:t,layoutOrder:n,itemPadding:r}=e;if("singleColumn"===t)return{height:"100%",width:"100%"};switch(n){case"row":case"column":return{height:"calc(100% - ".concat(r,"px)"),width:"calc(100% - ".concat(2*r,"px)"),position:"absolute",left:4};default:return{}}}const ns=Yo(C,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction"].includes(e)})((e=>{let{dataLayout:t,layoutOrder:n,itemPadding:r,cellPaddingRight:o,direction:i}=e;const a="padding".concat("rtl"===i?"Left":"Right");return{["&.".concat(ha.fieldRoot)]:$($({},ts({dataLayout:t,layoutOrder:n,itemPadding:r})),{},{[a]:o?"8px":void 0})}}));const rs={S:"Object.Listbox.Selected",A:"Object.Listbox.Alternative",O:"Object.Listbox.Optional",XS:"Object.Listbox.SelectedExcluded",L:"Object.Listbox.Locked",X:"Object.Listbox.Excluded",XL:"Object.Listbox.ExcludedLock"};function os(e){var n;let{layout:r}=e;const{translator:o}=p(yi),{qStateCounts:i={}}=(null==r||null===(n=r.qListObject)||void 0===n?void 0:n.qDimensionInfo)||{},a=i.qSelected+i.qSelectedExcluded+i.qLocked+i.qLockedExcluded;let s;switch(a){case 0:s="ScreenReader.ZeroSelected";break;case 1:s="ScreenReader.OneSelected";break;default:s="ScreenReader.ManySelected"}const l=o.get(s,[a]);return t.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},l)}const is=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===is.ARROW_UP||e===is.ARROW_DOWN||e===is.ARROW_LEFT||e===is.ARROW_RIGHT}),as=e=>+e.getAttribute("data-n"),ss=e=>{const t=null==e?void 0:e.querySelector(".search input");return null==t||t.focus(),t},ls=e=>{const t=null==e?void 0:e.querySelector(".value.last-focused, .value.selector, .value");return null==t||t.setAttribute("tabIndex",0),null==t||t.focus(),t},cs=e=>{let{rowIndex:t,columnIndex:n,rowCount:r,columnCount:o,layoutOrder:i,keyCode:a,numCells:s}=e;const l=e=>{let t;return"row"===i?(t=s%o,e<t?r:r-1):(t=s%r,e<o-1?r:t)};let c=t,u=n;if(a===is.ARROW_DOWN)if(t>=l(n)-1){if(n===o-1)return-1;c=0,u=n+1}else c=t+1;else if(0===t){if(0===n)return-1;c=l(n-1)-1,u=n-1}else c=t-1;if("row"===i)return c*o+u;const d=s%r;return 0===d||c<d?c*o+u:(c-d)*(o-1)+u+d*o};function us(e){var o,a,s;let{index:c,rowIndex:u,columnIndex:d,style:p,data:h}=e;const{onChange:f,onClick:m,onMouseDown:g,onMouseUp:y,onMouseEnter:b,onTouchStart:v,onTouchEnd:S,pages:E,isLocked:x,column:w=!1,checkboxes:L=!1,textAlign:R,direction:I,layoutOptions:q={},freqIsAllowed:k,isSingleSelect:O,actions:_,frequencyMax:T="",histogram:D=!1,keyboard:A,showGray:P=!0,showTick:N=!0,columnCount:M=1,rowCount:z=1,dataOffset:j,focusListItems:F,listCount:W,itemPadding:B,frequencyWidth:U,translator:H,showSearch:G,isModal:V}=h,{dense:K=!1,dataLayout:Z="singleColumn",layoutOrder:J}=q;let X,Y;const Q={max:null,currentIndex:null};if("number"==typeof u&&"number"==typeof d){"row"===J?(X=u*M+d,Q.max=z,Q.currentIndex=u):(X=d*z+u,Q.max=M,Q.currentIndex=d);const e=0;Y=$($({},p),{},{left:e+(0===d?p.left:Number(p.left)+d*e),top:0===u?p.top:Number(p.top)+u*e})}else X=c,Q.max=W,Q.currentIndex=c,Y=$({},p);X+=j;const[ee,te]=n(null);r((()=>{null!==ee&&(0===Q.currentIndex&&F.first&&(ee.focus(),F.setFirst(!1)),Q.currentIndex===Q.max-1&&F.last&&(ee.focus(),F.setLast(!1)))}),[ee,F.first,F.last]);const ne=l(function(e){let{select:t,selectAll:n,onCtrlF:r,confirm:o,cancel:i,setScrollPosition:a,focusListItems:s,keyboard:l,isModal:c,rowCount:u,columnCount:d,rowIndex:p,columnIndex:h,layoutOrder:f}=e;const m=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e===is.ARROW_LEFT||e===is.ARROW_RIGHT||"number"!=typeof p||"number"!=typeof h){const e=null==t?void 0:t.parentElement[n?"nextElementSibling":"previousElementSibling"];return null==e?void 0:e.querySelector("[role]")}const r=null==t?void 0:t.parentElement.parentElement,o=null==r?void 0:r.childElementCount;if(o){const n=cs({rowIndex:p,columnIndex:h,rowCount:u,columnCount:d,layoutOrder:f,keyCode:e,numCells:o}),r=null==t?void 0:t.parentElement.parentElement.children[n];return null==r?void 0:r.querySelector("[role]")}};let g=!1;const y=e=>{g=e};return e=>{let u;const{currentTarget:d,nativeEvent:p}=e,{keyCode:h,shiftKey:f=!1,ctrlKey:b=!1,metaKey:v=!1}=p;switch(h){case is.TAB:{const e=d.closest(".listbox-container"),t=c();if(d.classList.add("last-focused"),f){ss(e)||(t?l.focusSelection():l.blur(!0));break}t?l.focusSelection():(d.blur(),l.blur());break}case is.SHIFT:y(!0);break;case is.SPACE:t([as(d)],!1,e);break;case is.ARROW_DOWN:case is.ARROW_RIGHT:u=m(h,d,!0),f&&u&&(g&&(t([as(d)],!0),y(!1)),t([as(u)],!0));break;case is.ARROW_UP:case is.ARROW_LEFT:u=m(h,d,!1),f&&u&&(g&&(t([as(d)],!0),y(!1)),t([as(u)],!0));break;case is.ENTER:o();break;case is.ESCAPE:if(!c())return;i();break;case is.HOME:if(s.setFirst(!0),b){null==a||a("overflowStart");break}null==a||a("start");break;case is.END:if(s.setLast(!0),b){null==a||a("overflowEnd");break}null==a||a("end");break;case is.A:if(b||v){n();break}return;case is.F:if(b||v){r();break}return;default:return}u&&u.focus(),e.preventDefault(),e.stopPropagation()}}($($({},_),{},{focusListItems:F,keyboard:A,isModal:V,rowCount:z,columnCount:M,rowIndex:u,columnIndex:d,layoutOrder:J})),[_,null==A?void 0:A.innerTabStops,z,M,u,d,J]),re=i((()=>function(e){let t,{pages:n,cellIndex:r}=e;const o=n.filter((e=>e.qArea.qTop<=r&&r<e.qArea.qTop+e.qArea.qHeight))[0];if(o){const e=o.qArea;r>=e.qTop&&r<e.qTop+e.qHeight&&([t]=o.qMatrix[r-e.qTop])}return t}({pages:E,cellIndex:X})),[E,X]),oe="S"===(null==re?void 0:re.qState)||"XS"===(null==re?void 0:re.qState)||"L"===(null==re?void 0:re.qState)||"XL"===(null==re?void 0:re.qState),ie=i((()=>xa({column:w,histogram:D,checkboxes:L,cell:re,showGray:P})),[null==re?void 0:re.qState,D,K,L]),ae=l((e=>{e.preventDefault()}),[L]);if(!re)return null;const se=!["NaN",void 0].includes(null==re?void 0:re.qNum);let le;le=!R||R.auto?se?"rtl"===I?"left":"right":{rtl:"right",ltr:"left"}[I]:(null==R?void 0:R.align)||"left";const ce="grid"===Z&&"column"===J,ue=null!==(o=null==re?void 0:re.qText)&&void 0!==o?o:"";let de;if(null!==(a=re.qHighlightRanges)&&void 0!==a&&null!==(s=a.qRanges)&&void 0!==s&&s.length){de=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}(ue,re.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[])}const pe={alignItems:"center",display:"flex",fontSize:"8px"},he={display:"flex",alignItems:"center",minWidth:0,flexGrow:1,paddingLeft:"rtl"===I?8:L?0:void 0,paddingRight:L?0:"rtl"===I?8:0,justifyContent:le},fe=0===c,me=L?"auto":"max-content",ge=oe&&x,ye=!L&&oe&&!x,be=!L&&N,ve=L||!N,Se=function(e){let{translator:t,label:n,qState:r,isSelected:o,currentIndex:i,maxIndex:a,showSearch:s}=e;const l=rs[r],c=t.get(l),u=[];if(o){const e=s?"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu":"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",n=t.get(e);u.push(n)}const d="".concat(n," ").concat(c),p=t.get("CurrentSelections.Of",[i+1,a+1]);return u.unshift(d,p),u.join(". ").trim()}({translator:H,label:ue,qState:re.qState,currentIndex:Q.currentIndex,maxIndex:Q.max,showSearch:G});return t.createElement(Ma,{className:ha.barContainer,flexBasisProp:me,style:Y,isGridCol:ce,isGridMode:"grid"===Z,dense:K,frequencyWidth:U,direction:I,"data-testid":"listbox.item"},t.createElement(ns,{role:"row","aria-label":Se,"aria-selected":oe,"aria-setsize":Q.max,"aria-rowindex":Q.currentIndex,ref:te,container:!0,dataLayout:Z,cellPaddingRight:ve,layoutOrder:J,itemPadding:B,gap:0,className:_a(["value",...ie]),classes:{root:ha.fieldRoot},onClick:m,onMouseDown:g,onMouseUp:y,onMouseEnter:b,onKeyDown:ne,onTouchStart:v,onTouchEnd:S,onContextMenu:ae,tabIndex:fe&&A.innerTabStops?0:-1,"data-n":null==re?void 0:re.qElemNumber,direction:I},(null==re?void 0:re.qFrequency)&&t.createElement(Qa,{qFrequency:null==re?void 0:re.qFrequency,histogram:D,checkboxes:L,isSelected:oe,frequencyMax:T}),t.createElement(C,{item:!0,style:he,className:_a([ha.cell,ha.selectedCell]),title:"".concat(ue)},de?t.createElement(Xa,{onChange:f,labels:de,checkboxes:L,dense:K,showGray:P,color:"inherit",qElemNumber:re.qElemNumber,isSelected:oe,cell:re,isGridCol:ce,isSingleSelect:O,valueTextAlign:le}):t.createElement(Ya,{onChange:f,label:ue,color:"inherit",qElemNumber:re.qElemNumber,isSelected:oe,dense:K,cell:re,isGridCol:ce,showGray:P,isSingleSelect:O,checkboxes:L,valueTextAlign:le})),k&&t.createElement(es,{cell:re,checkboxes:L,dense:K,showGray:P}),be&&t.createElement(C,{item:!0,className:ha.icon},ge&&t.createElement(ra,{style:pe,size:"small"}),ye&&t.createElement(ba,{style:pe,size:"small"}))))}var ds=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function ps(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||ds(r)&&ds(o)))return!1;var r,o;return!0}function hs(e,t){var n;void 0===t&&(t=ps);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 fs="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function ms(e){cancelAnimationFrame(e.id)}function gs(e,t){var n=fs();var r={id:requestAnimationFrame((function o(){fs()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var ys=-1;function bs(e){if(void 0===e&&(e=!1),-1===ys||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),ys=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return ys}var vs=null;function Ss(e){if(void 0===e&&(e=!1),null===vs||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?vs="positive-descending":(t.scrollLeft=1,vs=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),vs}return vs}var Es=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function xs(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,d=e.getRowHeight,p=e.getRowOffset,f=e.getRowStartIndexForOffset,m=e.getRowStopIndexForStartIndex,g=e.initInstanceProps,y=e.shouldResetStyleCacheOnItemSizeChange,b=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=g(r.props,ri(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:ri(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=hs((function(e,t,n,o,i,a,s,l){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})})),r._callOnScroll=void 0,r._callOnScroll=hs((function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,s=a.columnWidth,l=a.direction,c=a.rowHeight,u=r._getItemStyleCache(y&&s,y&&l,y&&c),h=e+":"+t;if(u.hasOwnProperty(h))o=u[h];else{var f=n(r.props,t,r._instanceProps),m="rtl"===l;u[h]=o={position:"absolute",left:m?void 0:f,right:m?f:void 0,top:p(r.props,e,r._instanceProps),height:d(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=hs((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,c=i;if("rtl"===t)switch(Ss()){case"negative":c=-i;break;case"positive-descending":c=l-o-i}c=Math.max(0,Math.min(c,l-o));var u=Math.max(0,Math.min(a,s-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:c,scrollTop:u,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&ms(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=gs(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}ni(t,e),t.getDerivedStateFromProps=function(e,t){return Cs(e,t),b(e),null};var u=t.prototype;return u.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},u.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,u=i.columnCount,d=i.height,p=i.rowCount,h=i.width,f=this.state,m=f.scrollLeft,g=f.scrollTop,y=bs();void 0!==r&&(r=Math.max(0,Math.min(r,u-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var b=a(this.props,this._instanceProps),v=s(this.props,this._instanceProps)>h?y:0,S=b>d?y:0;this.scrollTo({scrollLeft:void 0!==r?l(this.props,r,n,m,this._instanceProps,S):m,scrollTop:void 0!==o?c(this.props,o,n,g,this._instanceProps,v):g})},u.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},u.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(Ss()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},u.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&ms(this._resetIsScrollingTimeoutId)},u.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,l=e.innerRef,c=e.innerElementType,u=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?Es:p,m=e.outerElementType,g=e.outerTagName,y=e.rowCount,b=e.style,v=e.useIsScrolling,S=e.width,E=this.state.isScrolling,x=this._getHorizontalRangeToRender(),C=x[0],w=x[1],L=this._getVerticalRangeToRender(),R=L[0],I=L[1],q=[];if(r>0&&y)for(var k=R;k<=I;k++)for(var O=C;O<=w;O++)q.push(h(t,{columnIndex:O,data:d,isScrolling:v?E:void 0,key:f({columnIndex:O,data:d,rowIndex:k}),rowIndex:k,style:this._getItemStyle(k,O)}));var _=a(this.props,this._instanceProps),T=s(this.props,this._instanceProps);return h(m||g||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:ei({position:"relative",height:i,width:S,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},h(c||u||"div",{children:q,ref:l,style:{height:_,pointerEvents:E?"none":void 0,width:T}}))},u._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],c=i[3],u=this._getVerticalRangeToRender(),d=u[0],p=u[1],h=u[2],f=u[3];this._callOnItemsRendered(a,s,d,p,l,c,h,f)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,y=m.scrollLeft,b=m.scrollTop,v=m.scrollUpdateWasRequested,S=m.verticalScrollDirection;this._callOnScroll(y,b,g,S,v)}},u._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,c=l.horizontalScrollDirection,u=l.isScrolling,d=l.scrollLeft,p=n||i||a||1;if(0===t||0===s)return[0,0,0,0];var h=r(this.props,d,this._instanceProps),f=o(this.props,h,d,this._instanceProps),m=u&&"backward"!==c?1:Math.max(1,p),g=u&&"forward"!==c?1:Math.max(1,p);return[Math.max(0,h-m),Math.max(0,Math.min(t-1,f+g)),h,f]},u._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,c=a.scrollTop,u=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=f(this.props,c,this._instanceProps),p=m(this.props,d,c,this._instanceProps),h=s&&"backward"!==l?1:Math.max(1,u),g=s&&"forward"!==l?1:Math.max(1,u);return[Math.max(0,d-h),Math.max(0,Math.min(i-1,p+g)),d,p]},t}(u),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var Cs=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},ws=function(e,t){return e};function Ls(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){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=l(r.props,ri(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:ri(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=hs((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=hs((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 d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),h="horizontal"===a||"horizontal"===l,f="rtl"===a,m=h?d:0;u[e]=t={position:"absolute",left:f?void 0:m,right:f?m:void 0,top:h?0:d,height:h?"100%":p,width:h?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=hs((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(Ss()){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(){null!==r._resetIsScrollingTimeoutId&&ms(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=gs(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}ni(t,e),t.getDerivedStateFromProps=function(e,t){return Rs(e,t),d(e),null};var u=t.prototype;return u.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)},u.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?bs():0:l.scrollHeight>l.clientHeight?bs():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},u.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()},u.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(Ss()){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()},u.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&ms(this._resetIsScrollingTimeoutId)},u.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,d=e.itemKey,p=void 0===d?ws:d,f=e.layout,m=e.outerElementType,g=e.outerTagName,y=e.style,b=e.useIsScrolling,v=e.width,S=this.state.isScrolling,E="horizontal"===o||"horizontal"===f,x=E?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),w=C[0],L=C[1],R=[];if(c>0)for(var I=w;I<=L;I++)R.push(h(t,{data:u,key:p(I,u),index:I,isScrolling:b?S:void 0,style:this._getItemStyle(I)}));var q=r(this.props,this._instanceProps);return h(m||g||"div",{className:n,onScroll:x,ref:this._outerRefSetter,style:ei({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},y)},h(s||l||"div",{children:R,ref:a,style:{height:E?"100%":q,pointerEvents:S?"none":void 0,width:E?q:"100%"}}))},u._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)}},u._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),d=o&&"backward"!==i?1:Math.max(1,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+p)),c,u]},t}(u),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var Rs=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},Is=xs({getColumnOffset:function(e,t){return t*e.columnWidth},getColumnWidth:function(e,t){return e.columnWidth},getRowOffset:function(e,t){return t*e.rowHeight},getRowHeight:function(e,t){return e.rowHeight},getEstimatedTotalHeight:function(e){var t=e.rowCount;return e.rowHeight*t},getEstimatedTotalWidth:function(e){var t=e.columnCount;return e.columnWidth*t},getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){var a=e.columnCount,s=e.columnWidth,l=e.width,c=Math.max(0,a*s-l),u=Math.min(c,t*s),d=Math.max(0,t*s-l+i+s);switch("smart"===n&&(n=r>=d-l&&r<=u+l?"auto":"center"),n){case"start":return u;case"end":return d;case"center":var p=Math.round(d+(u-d)/2);return p<Math.ceil(l/2)?0:p>c+Math.floor(l/2)?c:p;default:return r>=d&&r<=u?r:d>u||r<d?d:u}},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){var a=e.rowHeight,s=e.height,l=e.rowCount,c=Math.max(0,l*a-s),u=Math.min(c,t*a),d=Math.max(0,t*a-s+i+a);switch("smart"===n&&(n=r>=d-s&&r<=u+s?"auto":"center"),n){case"start":return u;case"end":return d;case"center":var p=Math.round(d+(u-d)/2);return p<Math.ceil(s/2)?0:p>c+Math.floor(s/2)?c:p;default:return r>=d&&r<=u?r:d>u||r<d?d:u}},getColumnStartIndexForOffset:function(e,t){var n=e.columnWidth,r=e.columnCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getColumnStopIndexForStartIndex:function(e,t,n){var r=e.columnWidth,o=e.columnCount,i=e.width,a=t*r,s=Math.ceil((i+n-a)/r);return Math.max(0,Math.min(o-1,t+s-1))},getRowStartIndexForOffset:function(e,t){var n=e.rowHeight,r=e.rowCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getRowStopIndexForStartIndex:function(e,t,n){var r=e.rowHeight,o=e.rowCount,i=e.height,a=t*r,s=Math.ceil((i+n-a)/r);return Math.max(0,Math.min(o-1,t+s-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}}),qs=Ls({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,s=e.height,l=e.itemCount,c=e.itemSize,u=e.layout,d=e.width,p="horizontal"===a||"horizontal"===u?d:s,h=Math.max(0,l*c-p),f=Math.min(h,t*c),m=Math.max(0,t*c-p+c+i);switch("smart"===n&&(n=r>=m-p&&r<=f+p?"auto":"center"),n){case"start":return f;case"end":return m;case"center":var g=Math.round(m+(f-m)/2);return g<Math.ceil(p/2)?0:g>h+Math.floor(p/2)?h:g;default:return r>=m&&r<=f?r:r<m?m:f}},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,d=Math.ceil((u+n-c)/a);return Math.max(0,Math.min(i-1,t+d-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const ks="#BBB",Os="#f1f1f1",_s={styledScrollbars:"".concat("ListBox","-styledScrollbars")};const Ts=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStopIndex)||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex,Ds=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStartIndex)||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex,As=(e,t,n,r)=>e===t*n+r+n;function Ps(e){let{renderProps:t,layoutOptions:n,maxCount:r,columnCount:o,rowCount:i,overflowDisclaimer:a,qCardinal:s,dataOffset:l}=e;const c="column"===(null==n?void 0:n.layoutOrder)&&"singleColumn"!==n.dataLayout,u=Ts(t,c),d=c?r.column:r.row,p=(c?o:i)>=d,h=As(s,u,c?i:o,l),f=!!l&&Ds(t,c),m=p&&!h&&u>=d-1||f||a.state.show;a.set(m)}const{StyledFixedSizeList:Ns,StyledFixedSizeGrid:Ms}=function(){const e=e=>({scrollbarColor:"".concat(ks," ").concat(Os),overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:Os},"&::-webkit-scrollbar-thumb":{backgroundColor:ks,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:W(qs,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(_s.styledScrollbars)]:e(n)}})),StyledFixedSizeGrid:W(Is,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(_s.styledScrollbars)]:e(n)}}))}}();function zs(e){let{layout:t,width:n,height:r,listCount:o,count:i,textWidth:a,freqIsAllowed:s,checkboxes:l}=e;const{layoutOptions:c={}}=t||{},{layoutOrder:u,maxVisibleRows:d={},maxVisibleColumns:p,dense:h,dataLayout:f}=c,m=s?Ia:0,g=l?ka:0;let y=qa+m+g;!l&&y>=wa&&(y+=ka);let b,v,S,E,x=a+18+m+g;!l&&x>=wa&&(x+=ka),x=Math.min(Ra,Math.max(x,y));const C="grid"===f;let w=h?20:C?32:29;C&&(w+=4);const L=null!=r?r:8*w;if(u){let e=n;"row"===u?(b={overflowX:"hidden"},e+=8,({rowCount:E,columnWidth:S,columnCount:v}=function(e){let{maxVisibleColumns:t,listCount:n,containerWidth:r,columnAutoWidth:o,itemMinWidth:i}=e;const a=(null==t?void 0:t.maxColumns)||3,s=r-La;let l;const c=Math.min(n,Math.max(1,Math.round(s/Math.max(i,o))));l=!1!==(null==t?void 0:t.auto)?c:Math.min(n,a,c);const u=s/l;return{rowCount:Math.ceil(n/l),columnWidth:u,columnCount:l}}({maxVisibleColumns:p,listCount:o,containerWidth:e,columnAutoWidth:x,itemMinWidth:y}))):(b={overflowY:"hidden"},({rowCount:E,columnWidth:S,columnCount:v}=function(e){let t,{maxVisibleRows:n,itemHeight:r,listCount:o,listHeight:i,columnAutoWidth:a,containerWidth:s,itemMinWidth:l}=e;const c=(null==n?void 0:n.maxRows)||3,u=Math.floor(i/r);t=!1!==n.auto?u:Math.min(o,c,u);const d=Math.ceil(o/t);return{columnWidth:Math.max(a,s/d,l),columnCount:d,rowCount:t}}({maxVisibleRows:d,itemHeight:w,listCount:o,listHeight:L,columnAutoWidth:x,containerWidth:e,itemMinWidth:y})))}v=("singleColumn"===f?1:v)||1,E=("singleColumn"===f?i:E)||o;const R=c.dense?838e3:577e3;E=Math.min(E,R);const I=Math.floor(3355e4/S);v=Math.min(v,I)||1;const q=E*v,k=Math.min(o,q);return{columnCount:v,columnWidth:S,rowCount:E,overflowStyling:b,itemHeight:w,listHeight:L,scrollBarWidth:La,count:i,listCount:k,maxCount:{row:R,column:I},itemPadding:4,frequencyWidth:Ia}}const js=(e,t)=>{const n=(()=>{const e=document.createDocumentFragment(),t=document.createElement("canvas");return e.appendChild(t),t.getContext("2d")})();if(n.font=t,Array.isArray(e))return Math.max(...e.map((e=>n.measureText(e).width)));return n.measureText(e).width},Fs=e=>{const t=i((()=>"text"in e?e:{}),[e]);return i((()=>js(t.text,t.font||"14px Source Sans Pro")),[t.text,t.font])};function Ws(e){if(!e)return"";const t=e.qListObject.qDimensionInfo.qApprMaxGlyphCount;let n="";for(let e=0;e<t;e++)n+="M";return n}const Bs=e=>{let{pages:t=[],minimumBatchSize:n,count:r}=e;const o=t.some((e=>e.qArea.qHeight<n)),i=Math.max(...t.map((e=>e.qArea.qTop+e.qArea.qHeight)));return o?i:r};const[Us,Hs]=bi({});function $s(e){const t="".concat(e.id),[n]=Us();return{setStoreValue:(e,r)=>n.set("".concat(t,"/").concat(e),r),getStoreValue:e=>n.get("".concat(t,"/").concat(e))}}const Gs=Yo(S,{shouldForwardProp:e=>!["width","dense"].includes(e)})((e=>{let{width:t,dense:n}=e;return $({minWidth:"".concat(t,"px"),textAlign:"center",fontSize:"".concat(n?"12px":"14px")},n&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:t})}));function Vs(e){let{width:n,text:r,dense:o,tooltip:i}=e;const{translator:a}=p(yi);return t.createElement(w,{title:i?a.get(r):""},t.createElement(Gs,{width:n,dense:o,component:"div",variant:"body1",py:"12px"},a.get(r)))}var Ks,Zs={},Js={exports:{}};(Ks=Js).exports=function(e){return e&&e.__esModule?e:{default:e}},Ks.exports.__esModule=!0,Ks.exports.default=Ks.exports;var Xs=Js.exports,Ys={};function Qs(e){return Mt("MuiSvgIcon",e)}zt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const el=e=>{const{color:t,fontSize:n,classes:r}=e;return function(e,t,n){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}({root:["root","inherit"!==t&&`color${vt(t)}`,`fontSize${vt(n)}`]},Qs,r)},tl=Yo("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${vt(n.color)}`],t[`fontSize${vt(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,c,u,d,p,h,f,m,g,y,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(i=o.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(a=e.typography)||null==(s=a.pxToRem)?void 0:s.call(a,20))||"1.25rem",medium:(null==(l=e.typography)||null==(c=l.pxToRem)?void 0:c.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(p=null==(h=(e.vars||e).palette)||null==(f=h[t.color])?void 0:f.main)?p:{action:null==(m=(e.vars||e).palette)||null==(g=m.action)?void 0:g.active,disabled:null==(y=(e.vars||e).palette)||null==(b=y.action)?void 0:b.disabled,inherit:void 0}[t.color]}})),nl=e.forwardRef((function(e,t){const n=Jo({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24",...p}=n,h={...n,color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d},f={};c||(f.viewBox=d);const m=el(h);return er.jsxs(tl,{as:a,className:io(m.root,o),focusable:"false",color:l,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t,...f,...p,ownerState:h,children:[r,u?er.jsx("title",{children:u}):null]})}));nl.muiName="SvgIcon";var rl=nl;const ol={configure:e=>{Pt.configure(e)}};var il,al=Object.freeze({__proto__:null,capitalize:vt,createChainedFunction:function(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))},createSvgIcon:function(t,n){function r(e,r){return er.jsx(rl,{"data-testid":`${n}Icon`,ref:r,...e,children:t})}return r.muiName=rl.muiName,e.memo(e.forwardRef(r))},debounce:function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r},deprecatedPropType:function(e,t){return()=>null},isMuiElement:function(t,n){return e.isValidElement(t)&&-1!==n.indexOf(t.type.muiName)},ownerDocument:St,ownerWindow:function(e){return St(e).defaultView||window},requirePropFactory:function(e,t){return()=>null},setRef:Et,unstable_ClassNameGenerator:ol,unstable_useEnhancedEffect:xt,unstable_useId:function(t){if(void 0!==wt){const e=wt();return null!=t?t:e}return function(t){const[n,r]=e.useState(t),o=t||n;return e.useEffect((()=>{null==n&&(Ct+=1,r(`mui-${Ct}`))}),[n]),o}(t)},unsupportedProp:function(e,t,n,r,o){return null},useControlled:function({controlled:t,default:n,name:r,state:o="value"}){const{current:i}=e.useRef(void 0!==t),[a,s]=e.useState(n);return[i?t:a,e.useCallback((e=>{i||s(e)}),[])]},useEventCallback:function(t){const n=e.useRef(t);return xt((()=>{n.current=t})),e.useCallback(((...e)=>(0,n.current)(...e)),[])},useForkRef:function(...t){return e.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{Et(t,e)}))}),t)},useIsFocusVisible:function(){const t=e.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",kt,!0),t.addEventListener("mousedown",Ot,!0),t.addEventListener("pointerdown",Ot,!0),t.addEventListener("touchstart",Ot,!0),t.addEventListener("visibilitychange",_t,!0))}),[]),n=e.useRef(!1);return{isFocusVisibleRef:n,onFocus:function(e){return!!Tt(e)&&(n.current=!0,!0)},onBlur:function(){return!!n.current&&(It=!0,window.clearTimeout(Lt),Lt=window.setTimeout((()=>{It=!1}),100),n.current=!1,!0)},ref:t}}}),sl=U(al);var ll=Xs;Object.defineProperty(Zs,"__esModule",{value:!0});var cl=Zs.default=void 0,ul=ll((il||(il=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=sl}(Ys)),Ys)),dl=er,pl=(0,ul.default)((0,dl.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");cl=Zs.default=pl;const hl=Yo(L)((e=>{let{theme:t,left:n}=e;return{position:"absolute",bottom:"12px",display:"flex",border:"1px solid ".concat(t.palette.divider),width:"calc(100% - 11px)",left:n}})),fl=Yo("div")((()=>({paddingLeft:"6px",flexGrow:1}))),ml=Yo("div")((e=>{let{dense:t}=e;return{display:"flex",alignItems:"".concat(t?"center":"flex-start")}})),gl=Yo(cl)((()=>({fontSize:"14px"})));function yl(e){let{text:n,dismiss:r,dense:o,parentWidth:i=0}=e;const a="function"==typeof r,s=o?370:282,l=Math.max(i/2-s/2,0),c=Math.min(s,i)-42,u=o&&i<s;return t.createElement(hl,{left:l,style:{maxWidth:s}},t.createElement(fl,null,t.createElement(Vs,{text:n,dense:o,width:c,tooltip:u})),t.createElement(ml,{dense:o},a&&t.createElement(R,{"aria-label":"close",onClick:()=>r()},t.createElement(gl,null))))}const bl=(e,t)=>e.qListObject.qDimensionInfo.qCardinal-t;const vl=80;function Sl(e){let{itemWidth:t,layout:n,frequencyMode:r}=e;const o=t>vl,{frequencyEnabled:i=!1}=(null==n?void 0:n.qListObject)||{},a=!["none",void 0].includes(r);return!(!o||!a&&!i)}const El=e=>{const t=(e=>e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)?e:"[".concat(e.replace(/\]/g,"]]"),"]"):e)(e);return"Max(AGGR(Count(".concat(t,"), ").concat(t,"))")},xl=(e,t)=>{const o=(e=>"fetch"===(null==e?void 0:e.frequencyMax))(t),[i,a]=n(),[s,l]=n(o);return r((()=>{if(!o)return;(async()=>{const n=await(async(e,t)=>{const n=e.qListObject.qDimensionInfo,r=n.qGroupFieldDefs[n.qGroupPos],o=El(r);return(await t.evaluateEx(o)).qNumber})(t,e);a(n),l(!1)})()}),[o&&t]),{frequencyMax:o?i:null==t?void 0:t.frequencyMax,awaitingFrequencyMax:s}},Cl=["isLoadingData"],wl=100,Ll=I("div")((()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}})));function Rl(e){var o,i,a,s;let{model:c,app:u,constraints:h,layout:f,selections:m,selectionState:g,direction:y,checkboxes:b,height:v,width:S,frequencyMode:E,update:x,fetchStart:C,postProcessPages:w,calculatePagesHeight:L=!1,keyboard:R={},showGray:I=!0,scrollState:q,selectDisabled:k=(()=>!1),keyScroll:O={state:{},reset:()=>{}},currentScrollIndex:_={set:()=>{}},renderedCallback:T,onCtrlF:D,showSearch:A,isModal:P}=e;const{translator:N}=p(yi),[M,z]=n(!1),j=!(!f||!f.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:F=b,histogram:W}=null!=f?f:{},B=d(null),U=d({queue:[],validPages:!1,dataOffset:0}),H=d({pages:[]}),{frequencyMax:G,awaitingFrequencyMax:Z}=xl(u,f),J=function(e){let{local:t,loaderRef:r,model:o,fetchStart:i,scrollTimeout:a,postProcessPages:s,listData:l}=e;const[c,u]=n(!1),[d,p]=n([]);let[h]=n(0);const f=(e,n)=>{const c=t.current.dataOffset;t.current.queue.push({start:e+c,stop:n+c});const d=!!r.current&&r.current._listRef&&r.current._listRef.state.isScrolling;return t.current.queue.length>10&&t.current.queue.shift(),clearTimeout(t.current.timeout),u(!0),new Promise((e=>{t.current.timeout=setTimeout((()=>{const n=t.current.queue.slice(-1)[0],r=o.getListObjectData("/qListObjectDef",[{qTop:n.start>h?n.start-h:0,qHeight:h,qLeft:0,qWidth:1},{qTop:n.start,qHeight:h,qLeft:0,qWidth:1}]).then((n=>{const r=s?s(n):n;t.current.validPages=!0,l.current.pages=r,p(r),u(!1),e()}));i&&i(r)}),d?a:0)}))};return{loadMoreItems:{with(e){let{minimumBatchSize:t}=e;return t&&(h=t),f}},pages:d,isLoading:c}}({local:U,loaderRef:B,model:c,fetchStart:C,scrollTimeout:0,postProcessPages:w,listData:H}),X=K(J,Cl),{setStoreValue:Y}=$s(c),Q=l(X.loadMoreItems,[f]),[ee,te]=n({show:!1,dismissed:!1}),[ne,re]=n([]);null!=X&&X.pages&&g.update({setPages:re,pages:X.pages,isSingleSelect:j,selectDisabled:k,layout:f});const oe=null==f?void 0:f.qListObject.qDimensionInfo.qCardinal;(null!=X&&X.pages.length&&!Z||0===oe)&&(null==T||T());const ie=l((e=>{if(null==ne||!ne.length||!U.current.validPages)return!1;U.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=ne.filter((e=>t(e)))[0];return n&&t(n)}),[f,ne]),{interactionEvents:ae,select:se}=ga({selectionState:g,selections:m,checkboxes:F,doc:document,loaderRef:B}),{layoutOptions:le={}}=f||{};let ce=!0;le.dataLayout&&(ce="singleColumn"===le.dataLayout||"row"===(null==le?void 0:le.layoutOrder));const ue="grid"===(null==le?void 0:le.dataLayout),de=e=>{const t=$({},ce?{rowIndex:e}:{columnIndex:e}),n=ue?t:e;B.current._listRef.scrollToItem(n)},pe=()=>{if(U.current.queue=[],U.current.validPages=!1,B.current){B.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===O.state.scrollPosition;if(f&&f.qSelectionInfo.qInSelections||e)return void(e&&O.reset());U.current.dataOffset=0,de(0)}};x&&x.call(null,pe),r((()=>{q&&!M&&B.current&&(B.current._listRef.scrollToItem(q.initScrollPos),z(!0))}),[B.current]),r((()=>{pe()}),[f,U.current.dataOffset]);const he=Fs({text:Ws(f),font:"14px Source sans pro"});let fe=wl;const me="grid"!==le.dataLayout,ge=null==f||null===(o=f.qListObject.qSize)||void 0===o?void 0:o.qcy,ye=function(e){let{pages:t,minimumBatchSize:n,count:r,calculatePagesHeight:o=!1}=e;return(null!=t&&t.length&&o?Bs({pages:t,minimumBatchSize:n,count:r}):r)||0}({pages:ne,minimumBatchSize:fe,count:ge,calculatePagesHeight:L,layoutOptions:le,model:c});let be=Sl({itemWidth:S,layout:f,frequencyMode:E});const ve=zs({layout:f,width:S,height:v,listCount:ye,count:ge,textWidth:he,freqIsAllowed:be,checkboxes:F});ve.columnWidth&&(be=Sl({itemWidth:ve.columnWidth,layout:f,frequencyMode:E}));const{listCount:Se}=ve;Y("listCount",Se);const Ee=e=>{const{scrollIndex:t,offset:n,triggerRerender:r}=function(e){let t,{position:n,isRow:r,sizes:o,layout:i,offset:a}=e,s=!1,l=null!=a?a:0;switch(n){case"start":t=0;break;case"end":t=r?o.rowCount:o.columnCount;break;case"overflowStart":l=0,t=0,s=!0;break;case"overflowEnd":l=bl(i,o.listCount),t=i.qListObject.qDimensionInfo.qCardinal,s=!0}return{scrollIndex:t,offset:l,triggerRerender:s}}({position:e,isRow:ce,sizes:ve,layout:f,offset:U.current.dataOffset});U.current.dataOffset=n,r&&g.triggerStateChanged(),de(t)};r((()=>{const e=O.state;e.up?de(_.state.start-e.up):e.down?de(_.state.stop+e.down):e.scrollPosition&&Ee(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&O.reset()}),[O.state.up,O.state.down,O.state.scrollPosition]);const{textAlign:xe}=(null==f?void 0:f.qListObject.qDimensionInfo)||{},[Ce,we]=n({first:!1,last:!1}),{List:Le,Grid:Re}=function(e){let{layout:n,width:r,checkboxes:o,local:i,isVertical:a,pages:s,selectDisabled:l,interactionEvents:c,frequencyMode:u,histogram:d,isSingleSelect:p,select:h,selectAll:f,onCtrlF:m,textAlign:g,selections:y,keyboard:b,showGray:v,scrollState:S,direction:E,sizes:x,listCount:C,overflowDisclaimer:w,setScrollPosition:L,focusListItems:R,setCurrentScrollIndex:I,constraints:q,frequencyMax:k,freqIsAllowed:O,translator:_,showSearch:T,isModal:D}=e;const{layoutOptions:A={}}=n||{},{columnWidth:P,itemPadding:N,listHeight:M,itemHeight:z,rowCount:j,columnCount:F,frequencyWidth:W}=x||{},B=("grid"===A.dataLayout?P:r)>wa,U={direction:"rtl"===E?"rtl":"ltr",useIsScrolling:!0,className:_s.styledScrollbars},H=null==n?void 0:n.qListObject.qDimensionInfo.qLocked,G=$($({isLocked:H,column:!a,pages:s},H||l()?{}:c),{},{checkboxes:o,layoutOptions:A,frequencyMode:u,freqIsAllowed:O,isSingleSelect:p,textAlign:g,itemPadding:N,frequencyWidth:W,actions:{select:h,confirm:()=>null==y?void 0:y.confirm.call(y),cancel:()=>null==y?void 0:y.cancel.call(y),setScrollPosition:L,selectAll:f,onCtrlF:m},frequencyMax:k,histogram:d,keyboard:b,showGray:v,showTick:B,dataOffset:i.current.dataOffset,focusListItems:R,direction:E,translator:_,showSearch:T,isModal:D});return{List:e=>{let{onItemsRendered:o,ref:a}=e;return i.current.listRef=a,t.createElement(Ns,V({},U,{dataTestid:"fixed-size-list",scrollDisabled:null==q?void 0:q.active,height:M,width:r,itemCount:C,itemData:$($({},G),{},{listCount:C}),itemSize:z,onItemsRendered:e=>{var t,r;I({start:e.visibleStartIndex,stop:e.visibleStopIndex}),S&&S.setScrollPos(e.visibleStopIndex),Ps({renderProps:e,layoutOptions:A,maxCount:x.maxCount,columnCount:F,rowCount:j,overflowDisclaimer:w,qCardinal:null==n||null===(t=n.qListObject)||void 0===t||null===(r=t.qDimensionInfo)||void 0===r?void 0:r.qCardinal,dataOffset:i.current.dataOffset}),o($({},e))},ref:a}),us)},Grid:e=>{let{onItemsRendered:o,ref:a}=e;const{overflowStyling:s,scrollBarWidth:l}=x,{layoutOrder:c}=A||{},u=Math.min(M,j*z+l);return i.current.listRef=a,t.createElement(Ms,V({},U,{dataTestid:"fixed-size-grid",scrollDisabled:null==q?void 0:q.active,height:u,width:r,columnCount:F,columnWidth:P,rowCount:j,rowHeight:z,style:$({},s),itemData:$($({},G),{},{column:void 0,columnCount:F,rowCount:j}),onItemsRendered:e=>{var t,r;const a="row"===c;I({start:a?e.visibleRowStartIndex:e.visibleColumnStartIndex,stop:a?e.visibleRowStopIndex:e.visibleColumnStopIndex});const s=function(e){const{renderProps:t,scrollState:n,layoutOrder:r,rowCount:o,columnCount:i}=e,{overscanRowStartIndex:a,overscanRowStopIndex:s,overscanColumnStartIndex:l,overscanColumnStopIndex:c,visibleStopIndex:u}=t;let d,p,h,f;return n&&n.setScrollPos(u),"column"===r?(d=l*o,p=a,h=c*o,f=s):(d=l,p=a*i,h=c,f=s*i),{visibleStartIndex:d+p,visibleStopIndex:h+f}}({renderProps:e,scrollState:S,layoutOrder:c,rowCount:j,columnCount:F});Ps({renderProps:e,layoutOptions:A,maxCount:x.maxCount,columnCount:F,rowCount:j,overflowDisclaimer:w,qCardinal:null==n||null===(t=n.qListObject)||void 0===t||null===(r=t.qDimensionInfo)||void 0===r?void 0:r.qCardinal,dataOffset:i.current.dataOffset}),o(s)},ref:a}),us)}}}({direction:y,layout:f,height:v,width:S,checkboxes:F,frequencyMode:E,histogram:W,keyboard:R,showGray:I,interactionEvents:ae,select:se,selectAll:()=>{g.clearItemStates(!1),c.selectListObjectAll("/qListObjectDef")},onCtrlF:D,textAlign:xe,isVertical:me,pages:ne,selectDisabled:k,isSingleSelect:j,selections:m,scrollState:q,local:U,sizes:ve,listCount:Se,overflowDisclaimer:{state:ee,set:e=>te((t=>$($({},t),{},{show:e})))},setScrollPosition:Ee,focusListItems:{first:Ce.first,setFirst:e=>we((t=>$($({},t),{},{first:e}))),last:Ce.last,setLast:e=>we((t=>$($({},t),{},{last:e})))},setCurrentScrollIndex:_.set,constraints:h,frequencyMax:G,freqIsAllowed:be,translator:N,showSearch:A,isModal:P}),{columnWidth:Ie,listHeight:qe,itemHeight:ke}=ve||{};return me||(fe=function(e){let{width:t,columnWidth:n,listHeight:r,itemHeight:o}=e;return Math.ceil(t/n)*Math.ceil(r/o)*2}({width:S,columnWidth:Ie,listHeight:qe,itemHeight:ke})),t.createElement(Ll,null,t.createElement(os,{className:"screenReaderOnly",layout:f}),!Se&&oe>0&&t.createElement(Vs,{width:S,text:"Listbox.NoMatchesForYourTerms"}),t.createElement(sa,{isItemLoaded:ie,itemCount:Se||1,loadMoreItems:Q.with({minimumBatchSize:fe}),threshold:0,minimumBatchSize:fe,ref:B,role:"grid"},me?Le:Re),ee.show&&!ee.dismissed&&t.createElement(yl,{text:"Listbox.ItemsOverflow",dismiss:()=>te((e=>$($({},e),{},{dismissed:!0}))),parentWidth:null==B||null===(i=B.current)||void 0===i||null===(a=i._listRef)||void 0===a||null===(s=a.props)||void 0===s?void 0:s.width,dense:null==le?void 0:le.dense}))}const Il=e=>$($({},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"}}]}),ql=e=>$($({},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"}}]}),kl=e=>$($({},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"}}]}),Ol=e=>$($({},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 _l=e=>{let{layout:t,model:n,translator:r,selectionState:o,isDirectQuery:i=!1}=e;if(t.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];return[{key:"selectAll",type:"menu-icon-button",label:r.get("Selection.SelectAll"),getSvgIconShape:Il,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectAll("/qListObjectDef")}},{key:"selectPossible",type:"menu-icon-button",label:r.get("Selection.SelectPossible"),getSvgIconShape:kl,enabled:()=>["qOption"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectPossible("/qListObjectDef")}},!i&&{key:"selectAlternative",type:"menu-icon-button",label:r.get("Selection.SelectAlternative"),getSvgIconShape:ql,enabled:()=>["qAlternative"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectAlternative("/qListObjectDef")}},!i&&{key:"selectExcluded",type:"menu-icon-button",label:r.get("Selection.SelectExcluded"),getSvgIconShape:Ol,enabled:()=>["qAlternative","qExcluded"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectExcluded("/qListObjectDef")}}].filter(Boolean)};const Tl=e=>$($({},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 Dl(e){const t=Zo(),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 Al={className:"njs-cell-action"},Pl=t.forwardRef(((e,n)=>{let{ariaExpanded:r=!1,item:o,addAnchor:i=!1}=e;const a=Zo(),{hidden:s,disabled:l,style:c,hasSvgIconShape:u}=Dl(o);if(s)return null;const d=Number.parseInt(a.spacing(.5),10),p=o.keyboardAction||o.action,h=p?e=>["Enter"].includes(e.key)&&p():null,f=p?e=>[" ","Spacebar"].includes(e.key)&&p():null,m="actions-toolbar-".concat(o.key);return t.createElement(R,{ref:i?null:n,title:o.label,onClick:o.action,onKeyDown:h,onKeyUp:f,disabled:l,style:c,className:[Al.className,m].join(" "),size:"large",disableRipple:!0,"aria-expanded":r,"aria-controls":"moreMenuList","data-testid":m},u&&ta(o.getSvgIconShape()),i&&t.createElement("div",{ref:n,style:{bottom:-d,right:0,position:"absolute",width:"100%",height:0}}))})),Nl=e=>$($({},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"}}]}),Ml=e=>$($({},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 zl=e=>ta(Ml(e));const jl="njs-action-toolbar-more",Fl={icon:"".concat("More","-icon")},Wl=Yo(q)((e=>{let{theme:t}=e;return{pointerEvents:"none",["& .".concat(Fl.icon)]:{color:t.palette.text.primary}}}));function Bl(e){let{item:n,autoFocus:r,onActionClick:o=(()=>{})}=e;const{hidden:i,disabled:a,hasSvgIconShape:s}=Dl(n);return i?null:t.createElement(O,{autoFocus:r,title:n.label,onClick:()=>{n.action(),o()},disabled:a,tabindex:"0"},s&&t.createElement(_,{className:Fl.icon},ta(n.getSvgIconShape())),t.createElement(S,{noWrap:!0},n.label))}const Ul=t.forwardRef(((e,n)=>{let{actions:r=[],show:o=!0,alignTo:i,popoverProps:a={},popoverPaperStyle:s={},onCloseOrActionClick:l=(()=>{})}=e;const c=r.length>0,u=r.findIndex((e=>!e.disabled));return c&&t.createElement(Wl,V({},a,{onClose:l,ref:n,open:o,anchorEl:i.current,getContentAnchorEl:null,container:i.current,disablePortal:!0,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:jl}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{style:$({pointerEvents:"auto",maxWidth:"250px"},s)}}),t.createElement(k,{id:"moreMenuList"},r.map(((e,n)=>t.createElement(Bl,{key:n,item:e,autoFocus:n===u,onActionClick:l})))))})),Hl=e=>{const t=e.closest("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");return Array.from(n).indexOf(e)},$l=e=>{const t=document.querySelector("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");if(!n.length)return;n[Math.min(Math.max(0,e),n.length-1)].focus()};const Gl="ActionsToolbar",Vl={item:"".concat(Gl,"-item"),itemSpacing:"".concat(Gl,"-itemSpacing"),firstItemSpacing:"".concat(Gl,"-firstItemSpacing"),lastItemSpacing:"".concat(Gl,"-lastItemSpacing")},Kl=Yo(q)((e=>{let{theme:t}=e;return{["& .".concat(Vl.itemSpacing)]:{padding:t.spacing(0,.5)},["& .".concat(Vl.firstItemSpacing)]:{padding:t.spacing(0,.5,0,0)},["& .".concat(Vl.lastItemSpacing)]:{padding:t.spacing(0,0,0,.5)}}})),Zl={className:"njs-action-toolbar-popover"},Jl=t.forwardRef(((e,n)=>{let{className:r,ariaExpanded:o=!1,actions:i=[],first:a=!1,last:s=!1,addAnchor:l=!1,isRtl:c=!1}=e;return i.length>0?t.createElement(C,{item:!0,container:!0,gap:0,flexDirection:c?"row-reverse":"row",wrap:"nowrap",className:r},i.map(((e,r)=>{let c=[];const u=a&&0===r,d=s&&i.length-1===r;return u&&!d&&(c=[Vl.firstItemSpacing,Vl.item]),d&&!u&&(c=[...c,Vl.lastItemSpacing,Vl.item]),u||d||0!==c.length||(c=[Vl.itemSpacing,Vl.item]),t.createElement(C,{item:!0,key:e.key,className:c.join(" ").trim()},t.createElement(Pl,{ariaExpanded:o,key:e.key,item:e,ref:0===r?n:null,addAnchor:l}))}))):null})),Xl={pointerEvents:"none"},Yl={vertical:"bottom",horizontal:"right"};function Ql(e){var o,a;let{show:s=!0,actions:l=[],maxItems:c=3,selections:u={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},more:h={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{}},popover:f={show:!1,anchorEl:null},focusHandler:m=null,actionsRefMock:g=null,direction:y="ltr"}=e;const b=function(e){let{api:t,onConfirm:n=(()=>{}),onCancel:r=(()=>{}),onKeyDeactivate:o=(()=>{})}=e;const{translator:i}=p(yi);return[{key:"clear",type:"icon-button",label:i.get("Selection.Clear"),enabled:()=>t.canClear(),action:()=>t.clear(),getSvgIconShape:Ml},{key:"cancel",type:"icon-button",label:i.get("Selection.Cancel"),enabled:()=>t.canCancel(),action:()=>{r(),t.cancel()},keyboardAction:()=>{o(),r(),t.cancel()},getSvgIconShape:Nl},{key:"confirm",type:"icon-button",label:i.get("Selection.Confirm"),enabled:()=>t.canConfirm(),action:()=>{n(),t.confirm()},keyboardAction:()=>{o(),n(),t.confirm()},getSvgIconShape:ya}]}(u),{translator:v,keyboardNavigation:S}=p(yi),[E,x]=n(!1),w={vertical:7,horizontal:(null!==(o=null===(a=f.anchorEl)||void 0===a?void 0:a.clientWidth)&&void 0!==o?o:0)-7},L=d(),R=d(),I=Zo(),q=i((()=>({margin:I.spacing(.5,0)}))),k=e=>{const t=L.current||g;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]},O=i((()=>function(e){let{keyboardNavigation:t,focusHandler:n,getEnabledButton:r,selections:o}=e;return e=>{const{target:i,nativeEvent:a}=e,{keyCode:s}=a;switch(s){case is.ARROW_LEFT:case is.ARROW_DOWN:case is.ARROW_RIGHT:case is.ARROW_UP:if(i.classList.contains("njs-cell-action")){const e=Hl(i),t=[is.ARROW_LEFT,is.ARROW_DOWN].includes(s);$l(t?e-1:e+1)}e.stopPropagation(),e.preventDefault();break;case is.SPACE:e.preventDefault();break;case is.TAB:t&&null!=n&&n.refocusContent&&(e.shiftKey&&r(!1)===e.target||!e.shiftKey&&r(!0)===e.target)&&(e.preventDefault(),e.stopPropagation(),n.refocusContent());break;case is.ESCAPE:o&&(o.onCancel(),o.api.cancel(),e.preventDefault(),e.stopPropagation())}}}({keyboardNavigation:S,focusHandler:m,getEnabledButton:k,selections:u})),[S,m,k,u]);r((()=>()=>{x(!1)}),[f.show,s,u.show]),r((()=>{if(!m)return;m.on("focus_toolbar_first",(()=>{const e=k(!1);e&&e.focus()})),m.on("focus_toolbar_last",(()=>{const e=k(!0);e&&e.focus()}))}),[]);let _=h.enabled,D=h.actions;const A=h.alignTo||R,P=l.filter((e=>!e.hidden));if(P.length>c){const e=P.splice(-(P.length-c)-1);_=!0,D=[...e,...h.actions]}if(!u.show&&0===P.length)return null;const N={key:"more",label:v.get("Menu.More"),getSvgIconShape:Tl,hidden:!1,active:E,enabled:()=>_,action:()=>x(!E)},M=P.length>0,z=D.length>0,j=M&&u.show||z&&u.show,F="rtl"===y,W=t.createElement(C,{ref:L,onKeyDown:O,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:F?"row-reverse":"row"}},M&&t.createElement(Jl,{actions:P,first:!0,last:!z&&!u.show}),z&&t.createElement(Jl,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:R,ariaExpanded:E,actions:[N],first:!M,last:!u.show,addAnchor:!0}),j&&t.createElement(C,{item:!0,className:Vl.itemSpacing,style:q},t.createElement(T,{orientation:"vertical"})),u.show&&t.createElement(Jl,{className:"actions-toolbar-default-actions",actions:b,first:!M&&!z,last:!0,isRtl:F}),E&&t.createElement(Ul,{show:E,actions:D,alignTo:A,popoverProps:h.popoverProps,popoverPaperStyle:h.popoverPaperStyle,onCloseOrActionClick:()=>{x(!1)}}));return f.show?t.createElement(Kl,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:f.show,anchorEl:f.anchorEl,anchorOrigin:w,transformOrigin:Yl,hideBackdrop:!0,style:Xl,PaperProps:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:Zl.className,style:{pointerEvents:"auto",padding:I.spacing(.8)}}},W):s&&W}var ec=e=>ta((e=>$($({},e),{},{shapes:[{type:"path",attrs:{d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014l-4.128-4.026ZM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0Zm-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6.034 6.034 0 0 1-1.413 1.415Z"}}]}))(e));const tc="/qListObjectDef",nc="**",rc=Yo(D)((e=>{var t,n;let{theme:r}=e;return{color:null===(t=r.listBox)||void 0===t||null===(n=t.content)||void 0===n?void 0:n.color}})),oc=Yo(A)((e=>{var t,n;let{theme:r}=e;return{color:null===(t=r.listBox)||void 0===t||null===(n=t.content)||void 0===n?void 0:n.color,display:"flex"}}));function ic(e){let{selections:o,selectionState:i,model:a,keyboard:s,dense:l=!1,visible:c=!0,autoFocus:u=!0,wildCardSearch:h=!1,searchEnabled:f,direction:m,hide:g}=e;const{translator:y}=p(yi),[b,v]=n(""),[S,E]=n(!1),x=d(),C=Zo(),{getStoreValue:w}=$s(a),L="rtl"===m,R=L?"right":"left",I=async()=>{if(o.isModal())try{await a.abortListObjectSearch(tc)}finally{v("")}};r((()=>{c||I()}),[c]),r((()=>(o.on("deactivated",I),()=>{o.removeListener&&o.removeListener("deactivated",I)})),[]),r((()=>{if(S&&x.current){const e=b.length-1;x.current.setSelectionRange(e,e),E(!1)}}),[S,x.current]);const q=async()=>{let e;return await a.searchListObjectFor(tc,b)&&b.length&&w("listCount")>0&&(e=a.acceptListObjectSearch(tc,!0),o.selectionsMade=!0,i.clearItemStates(!1),v("")),e};function k(e){const t=(null==e?void 0:e.querySelector(".last-focused"))||(null==e?void 0:e.querySelector('[role="row"]:first-child'));t.setAttribute("tabIndex",0),null==t||t.focus()}return c&&!1!==f?t.createElement(oc,{startAdornment:t.createElement(rc,{position:"start"},t.createElement(ec,{size:l?"small":"normal"})),className:"search",sx:[{border:"none",fontSize:14,borderRadius:0,backgroundColor:"transparent","& fieldset":{border:"1px solid ".concat(C.palette.divider),borderWidth:"1px 0 1px 0",borderRadius:0},"&:hover":{border:"none"},paddingLeft:"".concat(Ca,"px")},l&&{fontSize:12,paddingLeft:C.spacing(1),"& input":{paddingTop:"5px",paddingBottom:"5px"}},{flexDirection:L?"row-reverse":"row"}],inputRef:x,size:"small",fullWidth:!0,placeholder:y.get("Listbox.Search"),value:b,onFocus:()=>{h&&(v(nc),E(!0)),o.isModal()||o.begin(["/qListObjectDef"])},onChange:async e=>(v(e.target.value),e.target.value.length?a.searchListObjectFor(tc,e.target.value):I()),onKeyDown:async e=>{const{currentTarget:t}=e,n=t.closest(".listbox-container");switch(e.key){case"Enter":q();break;case"Escape":k(n),o.isActive()&&o.cancel();break;case"Tab":e.shiftKey?s.focusSelection():(k(n),null==n||n.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")})));break;case"f":case"F":if(!e.ctrlKey&&!e.metaKey)return;g&&(g(),k(n));break;default:return}e.preventDefault(),e.stopPropagation()},autoFocus:u,inputProps:{tabIndex:s.innerTabStops?0:-1,style:{textAlign:"".concat(R)},"data-testid":"search-input-field"}}):null}function ac(e){return Object.keys(te.prototype).forEach((t=>{e[t]=te.prototype[t]})),te.init(e),e}const sc=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 ac(s),s},lc=e=>{let{elements:t,objectSelections:n,options:r={}}=e;const o=function(e){let{elements:t,handleClickOutside:n}=e;return e=>{if(!document.contains(e.target))return;const r=t.map((e=>"string"==typeof e?document.querySelector(e):null==e?void 0:e.current)).filter((e=>!!e&&!!document.contains(e)));r.length&&!r.some((t=>t.contains(e.target)))&&n(e)}}({elements:t,handleClickOutside:()=>n.confirm.call(n)});return{activateClickOut(){var e;document.addEventListener("mousedown",o),null==r||null===(e=r.onSelectionActivated)||void 0===e||e.call(r)},deactivateClickOut(){var e;document.removeEventListener("mousedown",o),null==r||null===(e=r.onSelectionDeactivated)||void 0===e||e.call(r)}}};function cc(e,t,n,o){const i=Array.isArray(n)?n:[n],[a]=Ii(e),[s]=Xi(t),l=t?t.id:null,[c]=Ei(),[u]=Ci(),d=c.get(e.id);let p=u.get(l);return r((()=>{a&&t&&!p&&(p=sc({appSelections:a,appModal:d,model:t}),u.set(l,p),u.dispatch(!0))}),[a,t]),r((()=>{if(!p)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=lc({elements:i,objectSelections:p,options:o});return p.addListener("activated",e),p.addListener("deactivated",t),()=>{p.isActive()&&p.confirm(),p.removeListener("activated",e),p.removeListener("deactivated",t)}}),[p]),r((()=>{p&&p.setLayout(s)}),[p,s]),[p]}function uc(){const e={itemStates:{},ignoreSelectionState:!1,selectedInEngine:[],enginePages:[],setPages:void 0,lastRowCount:void 0,lastApprMaxGlyphCount:void 0,update(t){var n,r,o;let{setPages:i,pages:a,isSingleSelect:s,selectDisabled:l,layout:c}=t;this.setPages=i;const u=this.lastRowCount===c.qListObject.qSize.qcy,d=this.lastApprMaxGlyphCount===c.qListObject.qDimensionInfo.qApprMaxGlyphCount;u&&d||(this.lastRowCount=c.qListObject.qSize.qcy,this.lastApprMaxGlyphCount=c.qListObject.qDimensionInfo.qApprMaxGlyphCount,this.clearItemStates(!1)),e.enginePages!==a&&void 0!==a&&(e.enginePages=null!=a?a:[],e.selectedInEngine=ua(a),e.selectableValuesUpdating=!1,e.triggerStateChanged()),e.isSingleSelect=s,e.selectDisabled=l,e.isDimCalculated=null!==(n=null==c||null===(r=c.qListObject)||void 0===r||null===(o=r.qDimensionInfo)||void 0===o?void 0:o.qIsCalculated)&&void 0!==n&&n},allowedToSelect:()=>!e.selectDisabled()&&!(e.isDimCalculated&&e.selectableValuesUpdating),setSelectableValuesUpdating(){e.selectableValuesUpdating=!0},useClientItemState:t=>e.ignoreSelectionState||t in e.itemStates,isSelected:t=>e.useClientItemState(t)?!!e.itemStates[t]:e.selectedInEngine.includes(t),getState(t){const{qElemNumber:n,qState:r}=t;return e.useClientItemState(n)?e.itemStates[n]?"XS"===r?"XS":"S":"S"===r||"XS"===r?"A":r:r},updateItemNoEvents(t,n,r){const o=e.isSelected(t);o&&!n?e.itemStates[t]=!1:o||(null==r||r.push(t),e.itemStates[t]=!0)},triggerStateChanged(){if(this.setPages){const t=e.applySelectionsOnPages(e.enginePages);this.setPages(t)}},applySelectionsOnPages(t){const n=t.map((t=>{const n=t.qMatrix.map((t=>{const[n]=t,r=e.getState(n);return[$($({},n),{},{qState:r}),...t.slice(1)]}));return $($({},t),{},{qMatrix:n})}));return n},updateItem(t,n,r){e.updateItemNoEvents(t,n,r),e.triggerStateChanged()},updateItems(t,n,r){t.forEach((t=>{e.updateItemNoEvents(t,n,r)})),e.triggerStateChanged()},clearItemStates(t){e.itemStates={},e.ignoreSelectionState=t}};return e}const dc=function(e,t){var n;let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return null!==(n=null==e?void 0:e[t])&&void 0!==n?n:r};function pc(e){let{alignTo:o,anchorOrigin:i={vertical:"bottom",horizontal:"center"},transformOrigin:a={vertical:"top",horizontal:"center"},show:s,close:c,app:u,fieldName:h,stateName:f="$",autoFocus:m}=e;const g=Boolean(null==h?void 0:h.qLibraryId),y=s&&Boolean(o.current),[b,v]=n(0),S=Zo(),E=d(),[x]=Gi({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:f,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],qFieldDefs:g?void 0:[h]},qLibraryId:g?h.qLibraryId:void 0}},u,h,f),w=l((()=>{x.lock("/qListObjectDef")}),[x]),L=l((()=>{x.unlock("/qListObjectDef")}),[x]),{translator:I}=p(yi),k=d(),O=d(),[_]=cc(u,x,O),[T]=Xi(x),[D]=n((()=>uc()));if(r((()=>{_&&y&&(_.isModal(x)||_.goModal("/qListObjectDef"))}),[_,y]),!x||!T||!I)return null;const A=!0===T.qListObject.qDimensionInfo.qLocked,P=(e,t)=>{const n="escapeKeyDown"!==t;_.noModal(n),c()},N=_l({layout:T,model:x,translator:I,selectionState:D}),M=function(e){const t=(null==e?void 0:e.qListObject.qDimensionInfo.qStateCounts)||{};return dc(t,"qSelected",0)+dc(t,"qSelectedExcluded",0)+dc(t,"qLocked",0)+dc(t,"qLockedExcluded",0)>0}(T);return t.createElement(q,{open:y,onClose:P,anchorEl:o.current,anchorOrigin:i,transformOrigin:a,PaperProps:{style:{minWidth:"250px"}}},t.createElement(C,{container:!0,direction:"column",gap:0,ref:O},t.createElement(C,{item:!0,container:!0,style:{padding:S.spacing(1)}},t.createElement(C,{item:!0},A?t.createElement(R,{onClick:L,disabled:!A,size:"large"},t.createElement(ra,{title:I.get("Listbox.Unlock")})):t.createElement(R,{onClick:w,disabled:!M,size:"large"},t.createElement(oa,{title:I.get("Listbox.Lock")}))),t.createElement(C,{item:!0,xs:!0}),t.createElement(C,{item:!0},t.createElement(Ql,{more:{enabled:!A,actions:N,alignTo:k,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:_,onConfirm:P,onCancel:()=>P(0,"escapeKeyDown")}}))),t.createElement(C,{item:!0,xs:!0},t.createElement("div",{ref:k}),t.createElement(C,{item:!0,ref:E},t.createElement(ic,{visible:!0,model:x,listCount:b,selections:_,selectionState:D,keyboard:{enabled:!1},autoFocus:null==m||m})),t.createElement(Rl,{model:x,app:u,layout:T,selections:_,selectionState:D,direction:"ltr",onSetListCount:e=>v(e),onCtrlF:()=>{const e=E.current.querySelector("input");null==e||e.focus()}}))))}function hc(e){let{field:r,api:o,stateIx:i=0,skipHandleShowListBoxPopover:a=!1,moreAlignTo:s=null,onClose:l=(()=>{})}=e;const{translator:c}=p(yi),u=s||d(),h=Zo(),[f,m]=n(!1),g=e=>{e.currentTarget.contains(e.target)&&m(!f)},y=()=>{m(!1),l()},b=r.selections[i];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,w=(v.qExcluded+v.qLockedExcluded+v.qSelectedExcluded)/b.qTotal,L=v.qSelected+v.qSelectedExcluded+v.qLocked+v.qLockedExcluded,I=0===L&&0===b.qTotal;let q="";b.qTotal===L&&b.qTotal>1?q=c.get("CurrentSelections.All"):L>1&&b.qTotal?q=c.get("CurrentSelections.Of",[L,b.qTotal]):b.qSelectedFieldSelectionInfo&&(q=b.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==r.states[i]&&(q="".concat(r.states[i],": ").concat(q));const k=[{color:h.palette.selected.main,ratio:E},{color:h.palette.selected.alternative,ratio:x},{color:h.palette.selected.excluded,ratio:w}];k.forEach(((e,t)=>{e.offset=t?k[t-1].offset+k[t-1].ratio:0}));let O=null,_=null,T=null,D=null;return s||(O=t.createElement(C,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:b.qLocked?"0.3":""}},t.createElement(S,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},b.qField),t.createElement(S,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},q)),b.qLocked?_=t.createElement(C,{item:!0},t.createElement(R,{size:"large"},t.createElement(ra,null))):b.qOneAndOnlyOne||(_=t.createElement(C,{item:!0},t.createElement(R,{title:c.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),o.clearField(b.qField,r.states[i])},size:"large"},t.createElement(na,null)))),T=t.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===I&&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,"%")}})))),D=t.createElement(C,{container:!0,gap:1,ref:u,sx:{backgroundColor:h.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:h.palette.action.hover}},onClick:!1===a&&g||null},O,_,T,f&&t.createElement(pc,{alignTo:u,show:f,close:y,app:o.model,fieldName:b.qField,stateName:r.states[i]}))),s?t.createElement(pc,{alignTo:u,show:!0,close:y,app:o.model,fieldName:b.qField,stateName:r.states[i]}):D}var fc=e=>ta((e=>$($({},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 mc={item:"".concat("MultiState","-item")},gc=Yo(C)((e=>{let{theme:t}=e;return{["&.".concat(mc.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"}}}));function yc(e){let{field:r,api:o,moreAlignTo:i=null,onClose:a=(()=>{})}=e;const[s,l]=n(!!i),[c,u]=n(-1),[h,f]=n(i?i.current:null),m=i||d(),{translator:g}=p(yi),y=g.get("Selection.ClearAllStates"),b=()=>{u(-1),a()};let v=null;i||(v=t.createElement(t.Fragment,null,t.createElement(C,{item:!0,xs:!0,zeroMinWidth:!0},t.createElement(P,{style:{padding:"0px 8px"},color:"secondary",badgeContent:r.states.length},t.createElement(S,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},r.name))),t.createElement(C,{item:!0},t.createElement("div",{style:{width:"12px"}})),t.createElement(C,{item:!0},t.createElement(R,{size:"large"},t.createElement(fc,null)))));const E=t.createElement(N,{dense:!0},t.createElement(M,{title:y,onClick:()=>{r.states.forEach((e=>o.clearField(r.name,e)))}},t.createElement(z,{variant:"contained",fullWidth:!0},y)),r.states.map(((e,n)=>t.createElement(M,{key:n,title:r.name,onClick:e=>((e,t)=>{e.stopPropagation(),l(!1),u(t)})(e,n)},t.createElement(x,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},t.createElement(hc,{field:r,api:o,stateIx:n,skipHandleShowListBoxPopover:!0})))))),w=t.createElement(q,{open:s,onClose:()=>{l(!1),a()},anchorEl:h,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},E),L=i?w:t.createElement(gc,{container:!0,gap:0,className:mc.item,onClick:e=>{e.currentTarget.contains(e.target)&&(f(e.currentTarget),m.current=e.currentTarget,l(!s))}},v,s&&w,c>-1&&t.createElement(pc,{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(pc,{alignTo:m,show:c>-1,close:b,app:o.model,fieldName:r.selections[c].qField,stateName:r.states[c]}):L}const bc="More",vc={item:"".concat(bc,"-item"),badge:"".concat(bc,"-badge")},Sc=Yo(C)((e=>{let{theme:t}=e;return{["&.".concat(vc.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(vc.badge)]:{padding:t.spacing(0,1)}}}));function Ec(e){let{items:r=[],api:o}=e;const i=Zo(),[a,s]=n(!1),[l,c]=n(-1),[u,p]=n(null),h=d(),f=()=>{c(-1)};let m=null;return l>-1&&(m=r[l].states.length>1?t.createElement(yc,{field:r[l],api:o,moreAlignTo:h,onClose:f}):t.createElement(hc,{field:r[l],api:o,skipHandleShowListBoxPopover:!0,moreAlignTo:h,onClose:f})),t.createElement(Sc,{container:!0,gap:0,className:vc.item,onClick:e=>{e.currentTarget.contains(e.target)&&(p(e.currentTarget),h.current=e.currentTarget,s(!a))}},t.createElement(C,{item:!0},t.createElement(x,{borderRadius:i.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:i.palette.selected.main,color:i.palette.selected.mainContrastText}},t.createElement(S,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",r.length))),t.createElement(C,{item:!0},t.createElement(R,{size:"large"},t.createElement(fc,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(N,{dense:!0},r.map(((e,n)=>t.createElement(M,{key:n,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),s(!1),c(t)})(e,n)},t.createElement(x,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?t.createElement(yc,{field:e,api:o}):t.createElement(hc,{field:e,api:o}))))))),m)}const xc=120,Cc=72;function wc(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 Lc(e){let{api:o,app:i}=e;const a=Zo(),[s]=Ki(i),[l]=Xi(s),[c,u]=n({items:[],more:[]}),[d]=Li(),[p,h]=Qi(),[f,m]=n(0);return r((()=>{if(!h)return;const{width:e}=h,t=Math.floor(e)-Cc,n=Math.floor(t/xc);m(n)}),[h]),r((()=>{if(!(i&&s&&l&&f))return;const e=function(e){if(!e)return[];const t={};return e.qSelectionObject&&wc(e.qSelectionObject,t),e.alternateStates&&e.alternateStates.forEach((e=>wc(e.qSelectionObject,t,e.stateName))),Object.keys(t).map((e=>t[e])).filter((e=>!e.selections.some((e=>e.qIsHidden))))}(l);u((t=>{const n=e;if((()=>{const e=d.get(i.id);return e&&"njsListbox"===e.genericType})()&&n.length+1===t.items.length){const e=t.items.filter((e=>!1===n.some((t=>e.name===t.name))))[0],{qField:r}=e.selections[0];e.selections=[{qField:r}];const o=t.items.indexOf(e);n.splice(o,0,e)}let r=[];return f<n.length&&(r=n.splice(f-n.length)),{items:n,more:r}}))}),[i,s,l,o.isInModal(),f]),t.createElement(C,{ref:p,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},c.items.map((e=>t.createElement(C,{item:!0,key:"".concat(e.states.join("::"),"::").concat(e.name),style:{position:"relative",maxWidth:"240px",minWidth:"".concat(xc,"px"),background:a.palette.background.paper,borderRight:"1px solid ".concat(a.palette.divider)}},e.states.length>1?t.createElement(yc,{field:e,api:o}):t.createElement(hc,{field:e,api:o})))),c.more.length>0&&t.createElement(C,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(Cc,"px"),background:a.palette.background.paper,borderRight:"1px solid ".concat(a.palette.divider)}},t.createElement(Ec,{items:c.more,api:o})))}var Rc=e=>ta((e=>$($({},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 Ic=e=>ta((e=>$($({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M12,7 C12,5.66666667 12,5 12,5 C14.6666667,7.33333333 16,8.5 16,8.5 C13.3333333,10.8333333 12,12 12,12 L12,10 C7.83948865,9.86624054 6,12.1872632 6,12.1872632 C6,10.1337595 8.50904357,7 12,7 Z"}}]}))(e));const qc=(e,t,n)=>{const r=[...n.qStateNames||[]].map((e=>({stateName:e,qSelectionObjectDef:{qStateName:e}})));(t&&t.alternateStates?t.alternateStates.map((e=>e.stateName)):[]).join("::")!==(n.qStateNames||[]).map((e=>e)).join("::")&&e.applyPatches([{qOp:"replace",qPath:"/alternateStates",qValue:JSON.stringify(r)}],!0)};function kc(e){let{api:o,app:i}=e;const{translator:a}=p(yi),[s]=function(e){const[t]=Ki(e),[o]=Xi(t),[i]=Yi(e),[a,s]=n(null);return r((()=>{i&&t&&o&&qc(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]}(i);return t.createElement(C,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},t.createElement(C,{item:!0},t.createElement(R,{style:{marginRight:"8px"},disabled:!s||!s.canGoBack,title:a.get("Navigate.Back"),onClick:()=>o.back(),size:"large"},t.createElement(Rc,null))),t.createElement(C,{item:!0},t.createElement(R,{style:{marginRight:"8px"},disabled:!s||!s.canGoForward,title:a.get("Navigate.Forward"),onClick:()=>o.forward(),size:"large"},t.createElement(Ic,null))),t.createElement(C,{item:!0},t.createElement(R,{disabled:!s||!s.canClear,title:a.get("Selection.ClearAll"),onClick:()=>o.clear(),size:"large"},t.createElement(zl,null))))}const Oc=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function _c(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function Tc(){return Oc.map(_c).join("")}function Dc(e){let{app:n}=e;const r=Zo(),[o]=Ii(n);return o?t.createElement(C,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:r.palette.background.paper,minHeight:"40px"}},t.createElement(C,{item:!0,style:{borderRight:"1px solid ".concat(r.palette.divider)}},t.createElement(kc,{api:o,app:n})),t.createElement(C,{item:!0,xs:!0,style:{backgroundColor:r.palette.background.darker,overflow:"hidden"}},t.createElement(Lc,{api:o,app:n}))):null}var Ac,Pc="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{};let Nc;Nc="undefined"!=typeof window?window:"undefined"!=typeof self?self:Pc;let Mc=null,zc=null;const jc=Nc.clearTimeout,Fc=Nc.setTimeout,Wc=Nc.cancelAnimationFrame||Nc.mozCancelAnimationFrame||Nc.webkitCancelAnimationFrame,Bc=Nc.requestAnimationFrame||Nc.mozRequestAnimationFrame||Nc.webkitRequestAnimationFrame;function Uc(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}null==Wc||null==Bc?(Mc=jc,zc=function(e){return Fc(e,20)}):(Mc=function([e,t]){Wc(e),jc(t)},zc=function(e){const t=Bc((function(){jc(n),e()})),n=Fc((function(){Wc(t),e()}),20);return[t,n]}),Ac={createDetectElementResize:function(e){let t,n,r,o,i,a,s;const l="undefined"!=typeof document&&document.attachEvent;if(!l){a=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},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)return;const t=this;a(this),this.__resizeRAF__&&Mc(this.__resizeRAF__),this.__resizeRAF__=zc((function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))};let e=!1,l="";r="animationstart";const c="Webkit Moz O ms".split(" ");let u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),d="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){d=c[n],l="-"+d.toLowerCase()+"-",r=u[n],e=!0;break}}n="resizeanim",t="@"+l+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",o=l+"animation: 1ms "+n+"; "}return{addResizeListener:function(i,c){if(l)i.attachEvent("onresize",c);else{if(!i.__resizeTriggers__){const l=i.ownerDocument,c=Nc.getComputedStyle(i);c&&"static"===c.position&&(i.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(o||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',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)}}(l),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const u=l.createElement("div");u.className="expand-trigger",u.appendChild(l.createElement("div"));const d=l.createElement("div");d.className="contract-trigger",i.__resizeTriggers__.appendChild(u),i.__resizeTriggers__.appendChild(d),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){}}}}}};class Hc extends f{constructor(...e){super(...e),Uc(this,"state",{height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0}),Uc(this,"_autoSizer",null),Uc(this,"_detectElementResize",null),Uc(this,"_parentNode",null),Uc(this,"_resizeObserver",null),Uc(this,"_onResize",(()=>{const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){var r,o,i,a;const s=window.getComputedStyle(this._parentNode)||{},l=parseFloat(null!==(r=s.paddingLeft)&&void 0!==r?r:"0"),c=parseFloat(null!==(o=s.paddingRight)&&void 0!==o?o:"0"),u=parseFloat(null!==(i=s.paddingTop)&&void 0!==i?i:"0"),d=parseFloat(null!==(a=s.paddingBottom)&&void 0!==a?a:"0"),p=this._parentNode.getBoundingClientRect(),h=p.height-u-d,f=p.width-l-c,m=this._parentNode.offsetHeight-u-d,g=this._parentNode.offsetWidth-l-c;(e||this.state.height===m&&this.state.scaledHeight===h)&&(t||this.state.width===g&&this.state.scaledWidth===f)||(this.setState({height:m,width:g,scaledHeight:h,scaledWidth:f}),"function"==typeof n&&n({height:m,scaledHeight:h,scaledWidth:f,width:g}))}})),Uc(this,"_setRef",(e=>{this._autoSizer=e}))}componentDidMount(){const{nonce:e}=this.props;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,null!=this._parentNode&&("undefined"!=typeof ResizeObserver?(this._resizeObserver=new ResizeObserver((()=>{setTimeout(this._onResize,0)})),this._resizeObserver.observe(this._parentNode)):(this._detectElementResize=(0,Ac.createDetectElementResize)(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize)),this._onResize()))}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._resizeObserver&&(this._resizeObserver.observe(this._parentNode),this._resizeObserver.disconnect()))}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:r,disableWidth:o,nonce:i,onResize:a,style:s,tagName:l="div",...c}=this.props,{height:u,scaledHeight:d,scaledWidth:p,width:f}=this.state,m={overflow:"visible"},g={};let y=!1;return r||(0===u&&(y=!0),m.height=0,g.height=u,g.scaledHeight=d),o||(0===f&&(y=!0),m.width=0,g.width=f,g.scaledWidth=p),h(l,{ref:this._setRef,style:{...m,...s},...c},!y&&e(g))}}Uc(Hc,"defaultProps",{onResize:()=>{},disableHeight:!1,disableWidth:!1,style:{}});var $c=Hc;var Gc=e=>ta((e=>$($({},e),{},{shapes:[{type:"path",attrs:{d:"M15.9993744,3 L15.9993744,5 L4.99937445,5 L4.99937445,3 L15.9993744,3 Z M8.99937445,7 L15.9993744,7 L15.9993744,9 L8.99937445,9 L8.99937445,7 Z M11.9993744,11 L15.9993744,11 L15.9993744,13 L11.9993744,13 L11.9993744,11 Z M2.2,11 L7,11 L7,9.00369263 C7,8.89323568 7.08954305,8.80369263 7.2,8.80369263 C7.2549016,8.80369263 7.30738916,8.82626165 7.34515712,8.86610844 L10.1852182,11.8624926 C10.2583124,11.93961 10.258346,12.0604218 10.1852948,12.13758 L7.34523376,15.1373102 C7.2692928,15.2175206 7.14270711,15.2209817 7.06249671,15.1450407 C7.02260076,15.1072683 7,15.0547472 7,14.9998069 L7,12.9043747 C4.79351111,12.9043747 2.8018683,12.9266213 1.02507156,12.9711145 L1.02507252,12.9711526 C0.472939773,12.9849787 0.014139487,12.5485949 0.000313396522,11.9964622 C0.000104473692,11.988119 -1.32268838e-12,11.9797736 -1.3231638e-12,11.9714278 L-1.83320026e-12,3 L2,3 L2,10.8 C2,10.9104569 2.08954305,11 2.2,11 Z"}}]}))(e));function Vc(e){null==e||e.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")}))}function Kc(e){return(null==e?void 0:e.closest(".njs-cell"))||(null==e?void 0:e.closest(".qv-gridcell"))}function Zc(e){let{keyboard:t,hovering:n,updateKeyScroll:r,containerRef:o,currentScrollIndex:i,isModal:a,constraints:s}=e;return{handleKeyDown:e=>{const{keyCode:n,shiftKey:r=!1}=e.nativeEvent,i=()=>{e.stopPropagation(),e.preventDefault()};if(!t.enabled)return;const s=e.currentTarget.closest(".listbox-container"),l=a();switch(n){case is.TAB:if(l)r?ls(s)||ss(s):ss(s)||ls(s);else{if(!r)break;t.blur(!0)}i();break;case is.ENTER:case is.SPACE:if(!e.target.classList.contains("listbox-container"))break;t.focus(),i();break;case is.ESCAPE:(e=>{const{currentTarget:n,target:r}=e,i=r.classList.contains("listbox-container"),a=Kc(n.closest(".listbox-container")),s=1===(null==a?void 0:a.querySelectorAll(".listbox-container").length);if(i||s)t.blur(!0);else{Vc(o.current),n.classList.add("last-focused"),t.blur();const e=n.closest(".listbox-container");e.setAttribute("tabIndex",-1),null==e||e.focus()}})(e)}},handleOnMouseEnter:()=>{(()=>{const e=(null==s?void 0:s.select)||(null==s?void 0:s.active),t=a();return e||t})()||(n.current=!0)},handleOnMouseLeave:()=>{n.current&&(n.current=!1)},globalKeyDown:e=>{if(!n.current)return;const{keyCode:t,ctrlKey:o=!1,shiftKey:a=!1}=e;switch(t){case is.ARROW_UP:r({up:1});break;case is.ARROW_DOWN:r({down:1});break;case is.PAGE_UP:r({up:i.stop-i.start});break;case is.PAGE_DOWN:r({down:i.stop-i.start});break;case is.HOME:r({scrollPosition:o&&a?"overflowStart":"start"});break;case is.END:r({scrollPosition:o&&a?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const Jc=Yo("div")((()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"})));function Xc(e){let{text:n}=e;const{translator:r}=p(yi);return t.createElement(Jc,null,r.get(n))}const Yc="ListBoxInline",Qc={listBoxHeader:"".concat(Yc,"-listBoxHeader"),screenReaderOnly:"".concat(Yc,"-screenReaderOnly"),listboxWrapper:"".concat(Yc,"-listboxWrapper")},eu=Yo(C,{shouldForwardProp:e=>!["containerPadding","isGridMode"].includes(e)})((e=>{var t,n;let{theme:r,containerPadding:o,isGridMode:i}=e;return{backgroundColor:null!==(t=null===(n=r.listBox)||void 0===n?void 0:n.backgroundColor)&&void 0!==t?t:r.palette.background.default,["& .".concat(Qc.listBoxHeader)]:{alignSelf:"center",display:"flex"},["& .".concat(Qc.screenReaderOnly)]:{position:"absolute",height:0,width:0,overflow:"hidden"},["& .".concat(Qc.listboxWrapper)]:{padding:o},"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(r.palette.custom.focusBorder," !important")},"&:focus ::-webkit-scrollbar-track":{boxShadow:i?void 0:"inset -2px -2px 0px #3F8AB3"},"&:focus-visible":{outline:"none"}}})),tu=Yo(S)((e=>{var t,n,r,o,i,a,s,l,c,u,d,p;let{theme:h}=e;return{color:null===(t=h.listBox)||void 0===t||null===(n=t.title)||void 0===n||null===(r=n.main)||void 0===r?void 0:r.color,fontSize:null===(o=h.listBox)||void 0===o||null===(i=o.title)||void 0===i||null===(a=i.main)||void 0===a?void 0:a.fontSize,fontFamily:null===(s=h.listBox)||void 0===s||null===(l=s.title)||void 0===l||null===(c=l.main)||void 0===c?void 0:c.fontFamily,fontWeight:(null===(u=h.listBox)||void 0===u||null===(d=u.title)||void 0===d||null===(p=d.main)||void 0===p?void 0:p.fontWeight)||"bold"}}));const nu=t.memo((function(e){var o,a,s,c,u;let{options:h,layout:f}=e;const{app:m,direction:g,frequencyMode:y,checkboxes:b,search:v=!0,focusSearch:S=!1,rangeSelect:E=!0,model:x,selections:w,update:L,fetchStart:I,selectDisabled:q=(()=>!1),postProcessPages:k,calculatePagesHeight:O,showGray:_=!0,scrollState:T,renderedCallback:D,toolbar:A=!0,isPopover:P=!1}=h,N=Zo(),M=l((()=>{x.unlock("/qListObjectDef")}),[x]),{translator:z,keyboardNavigation:j,themeApi:F,constraints:W}=p(yi);N.listBox=(e=>{const t=(t,n)=>e.getStyle("object.listBox",t,n);return{backgroundColor:t("","backgroundColor"),title:{main:{color:t("title.main","color"),fontSize:t("title.main","fontSize"),fontFamily:t("title.main","fontFamily"),fontWeight:t("title.main","fontWeight")}},content:{color:t("content","color"),fontSize:t("content","fontSize"),fontFamily:t("content","fontFamily")}}})(F);const B=function(e){let{appLayout:t}=e;return!(null==t||!t.qIsDirectQueryMode)}({appLayout:null==m?void 0:m.layout}),U=d(),[H,G]=Qi(),[K,Z]=(()=>{const[e,t]=n({}),r=l((e=>{t({current:e})}),[t]);return[e,r]})(),[J,X]=n(!1),[Y,Q]=n(!1),ee=d(!1),[te,ne]=n({down:0,up:0,scrollPosition:""}),re=e=>ne((t=>$($({},t),e))),[oe,ie]=n({start:0,stop:0}),[ae]=Ii(m),se=d(null),[le]=n((()=>uc())),ce=function(e){let{containerRef:t,enabled:r}=e;const[o,i]=n(!1);return{enabled:r,active:o,innerTabStops:!r||o,blur(e){var n;if(!r)return;i(!1);const o=Kc(t.current)||(null===(n=t.current)||void 0===n?void 0:n.parentElement);var a;null==(a=t.current)||a.querySelectorAll('[tabIndex="0"]').forEach((e=>{e.setAttribute("tabIndex",-1)})),Vc(t.current),e&&o&&(o.setAttribute("tabIndex",0),o.focus())},focus(){if(!r)return;i(!0);const e=t.current,n=null==e?void 0:e.querySelector(".search input"),o=null==e?void 0:e.querySelector(".value.last-focused"),a=null==e?void 0:e.querySelector(".value.selector, .value"),s=null==e?void 0:e.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),l=n||o||a||s;null==l||l.setAttribute("tabIndex",0),null==l||l.focus()},focusSelection(){const e=document.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm");null==e||e.setAttribute("tabIndex",0),null==e||e.focus()}}}({containerRef:U,enabled:j}),ue=l((()=>(e=>{var t,n;let{app:r,appSelections:o}=e;return null!==(t=null===(n=r.isInModalSelection)||void 0===n?void 0:n.call(r))&&void 0!==t?t:o.isInModal()})({app:m,appSelections:ae})),[m,ae]),de=null==f?void 0:f.qListObject.qDimensionInfo.qError,pe=de&&W.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",[he,fe]=n(!1),{handleKeyDown:me,handleOnMouseEnter:ge,handleOnMouseLeave:ye,globalKeyDown:be}=i((()=>Zc({keyboard:ce,hovering:ee,updateKeyScroll:re,containerRef:U,currentScrollIndex:oe,app:m,appSelections:ae,constraints:W,isModal:ue})),[ce,ee,re,U,oe,m,ae,W,ue]),ve=A&&(""===(null==f?void 0:f.title)||!1===(null==f?void 0:f.showTitle))&&!P,Se=A&&""!==(null==f?void 0:f.title)&&!1!==(null==f?void 0:f.showTitle)||P;r((()=>(document.addEventListener("keydown",be),()=>{document.removeEventListener("keydown",be)})),[be]),r((()=>{const e=()=>{X(!0)},t=()=>{X(!1),"toggle"===v&&Q(!1)};return P&&(w.isActive()||(w.begin("/qListObjectDef"),w.on("activated",e),w.on("deactivated",t)),X(P)),w&&(w.isModal()||(w.on("activated",e),w.on("deactivated",t)),X(w.isActive())),()=>{w&&w.removeListener&&(w.removeListener("activated",e),w.removeListener("deactivated",t))}}),[w,P]),r((()=>{if(K&&K.current&&(v&&S||"toggle"===v&&Y)){const e=K.current.querySelector("input");e&&e.focus()}}),[K&&K.current,Y,v,S]);const{wildCardSearch:Ee,searchEnabled:xe,layoutOptions:Ce={}}=null!=f?f:{},we=!1!==xe&&"toggle"===v,Le=!0===(null==f||null===(o=f.qListObject)||void 0===o||null===(a=o.qDimensionInfo)||void 0===a?void 0:a.qLocked),Re=Le||we,Ie="H"===(null==f||null===(s=f.qListObject)||void 0===s||null===(c=s.qDimensionInfo)||void 0===c?void 0:c.qGrouping),qe=Re||Ie,ke=(Re?28:0)+(Ie?19:0);if(r((()=>{if(!se.current||!G)return;const e=function(e){var t,n,r,o;let{containerRect:i,titleRef:a,iconsWidth:s}=e;const l=i.width<(null!==(t=null==a||null===(n=a.current)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)+s+16+128,c=(null==a||null===(r=a.current)||void 0===r?void 0:r.scrollWidth)>(null==a||null===(o=a.current)||void 0===o?void 0:o.offsetWidth);return!(!l&&!c)}({containerRect:G,titleRef:se,iconsWidth:ke});fe(e)}),[se.current,G]),!x||!f||!z)return null;const Oe="rtl"===g,_e=_l({layout:f,model:x,translator:z,selectionState:le,isDirectQuery:B}),Te=(!0===v||"toggle"===v&&Y)&&!q()&&!1!==xe,De=null!==(u=Ce.dense)&&void 0!==u&&u,Ae=Se?49+(Te?De?27:40:0)+(De?39:49):0,Pe=()=>{Q(!Y)},Ne=()=>{if("toggle"===v)Pe();else{const e=K.current.querySelector("input");null==e||e.focus()}},Me=e=>function(e){let{isDetached:t,showToolbar:n,containerRef:r,isLocked:o,listboxSelectionToolbarItems:i,selections:a,keyboard:s}=e;return{show:n&&!t,popover:{show:n&&t,anchorEl:r.current},more:{enabled:!o,actions:i,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:n,api:a,onConfirm:()=>{null==s||s.focus()},onCancel:()=>{null==s||s.focus()}}}}({isDetached:!P&&e,showToolbar:J,containerRef:U,isLocked:Le,listboxSelectionToolbarItems:_e,selections:w,keyboard:ce}),ze=Te&&"toggle"===v,je=Ca-(Re?7:0),Fe=Oe?Ca-(qe?7:0):0,We="grid"===(null==Ce?void 0:Ce.dataLayout);let Be;We&&(Be="row"===Ce.layoutOrder?"2px 4px":"2px 6px 2px 4px");const Ue=null!=W&&W.active?t.createElement(ec,{title:z.get("Listbox.Search"),size:"large",style:{fontSize:"12px",padding:"7px"}}):t.createElement(R,{onClick:Pe,tabIndex:-1,title:z.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},t.createElement(ec,{style:{fontSize:"12px"}})),He=q()?t.createElement(ra,{size:"large",style:{fontSize:"12px",padding:"7px"}}):t.createElement(R,{title:z.get("SelectionToolbar.ClickToUnlock"),tabIndex:-1,onClick:M,size:"large"},t.createElement(ra,{disableRipple:!0,style:{fontSize:"12px"}}));return de&&(null==D||D()),t.createElement(t.Fragment,null,ve&&t.createElement(Ql,V({direction:g},Me(!0))),t.createElement(eu,{className:"listbox-container",container:!0,tabIndex:ce.enabled?-1:void 0,direction:"column",gap:0,containerPadding:Be,style:{height:"100%",minHeight:"".concat(Ae,"px"),flexFlow:"column nowrap"},onKeyDown:me,onMouseEnter:ge,onMouseLeave:ye,ref:e=>{U.current=e,H(e)},isGridMode:We},Se&&t.createElement(C,{item:!0,container:!0,minHeight:32,flexDirection:Oe?"row-reverse":"row",marginY:1,paddingLeft:"".concat(je,"px"),paddingRight:"".concat(Fe,"px"),wrap:"nowrap"},qe&&t.createElement(C,{item:!0,container:!0,alignItems:"center",width:ke},Le?He:we&&Ue,Ie&&t.createElement(Gc,{tabIndex:-1,title:z.get("Listbox.DrillDown"),size:"large",style:{fontSize:"12px"}})),t.createElement(C,{item:!0,xs:!0,minWidth:0,justifyContent:Oe?"flex-end":"flex-start",className:Qc.listBoxHeader},t.createElement(tu,{variant:"h6",noWrap:!0,ref:se,title:f.title},f.title)),t.createElement(C,{item:!0},t.createElement(Ql,V({direction:g},Me(he))))),t.createElement(C,{item:!0,container:!0,direction:"column",style:{height:"100%",minHeight:"50px"},role:"region","aria-label":z.get("Listbox.ResultFilterLabel")},t.createElement(C,{item:!0,ref:Z},t.createElement("div",{className:Qc.screenReaderOnly},z.get("Listbox.Search.ScreenReaderInstructions")),t.createElement(ic,{selections:w,selectionState:le,model:x,dense:De,keyboard:ce,visible:Te,search:v,autoFocus:ze,wildCardSearch:Ee,searchEnabled:xe,direction:g,hide:we&&Pe})),t.createElement(C,{item:!0,xs:!0,className:Qc.listboxWrapper},t.createElement("div",{className:Qc.screenReaderOnly},z.get("Listbox.ScreenReaderInstructions")),de?t.createElement(Xc,{text:pe}):t.createElement($c,null,(e=>{let{height:n,width:r}=e;return t.createElement(Rl,{model:x,app:m,constraints:W,layout:f,selections:w,selectionState:le,direction:g,frequencyMode:y,rangeSelect:E,checkboxes:b,height:n,width:r,update:L,fetchStart:I,postProcessPages:k,calculatePagesHeight:O,selectDisabled:q,keyboard:ce,showGray:_,scrollState:T,keyScroll:{state:te,reset:()=>ne({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:oe,set:ie},renderedCallback:D,onCtrlF:Ne,isModal:ue})}))))))}));function ru(e){let{options:n={}}=e;const{model:r}=n,[o]=Xi(r);return t.createElement(nu,{options:n,layout:o})}const ou={qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:"",qShowAlternatives:!0,frequencyEnabled:!1,qFrequencyMode:"N",qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},histogram:!1,frequencyMax:void 0,checkboxes:!1,searchEnabled:!0,showTitle:!0,wildCardSearch:!1,layoutOptions:{dense:!1,dataLayout:"singleColumn",layoutOrder:"row",maxVisibleColumns:{auto:!0,maxColumns:3},maxVisibleRows:{auto:!0,maxRows:3}},title:""};const iu=["__DO_NOT_USE__"],au=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{__DO_NOT_USE__:t={}}=e,n={update:void 0,fetchStart:void 0,showGray:!0,focusSearch:!1,sessionModel:void 0,selectionsApi:void 0,selectDisabled:void 0,postProcessPages:void 0,calculatePagesHeight:!1};return $($($({},K(e,iu)),n),t)};function su(e){let{app:o,fieldIdentifier:a,qId:s,stateName:l,element:c,options:u,renderedCallback:p}=e;const{isExistingObject:h,hasExternalSelectionsApi:f}=function(e){let{qId:t,options:n}=e;return{isExistingObject:!(!t&&!n.sessionModel),hasExternalSelectionsApi:!!n.selectionsApi}}({qId:s,options:u}),[m,g]=n(0);r((()=>{if(m)throw new Error("Source or selection Api can not change after a listbox has been mounted");g(m+1)}),[h,f]);const y=h?function(e){let{app:t,qId:o,options:i={}}=e;const[a,s]=n(),[l]=Ui(),{sessionModel:c}=i,u=["dense","frequencyMode","checkboxes","histogram","title","stateName","listLayout"],d=Object.keys(i).filter((e=>u.includes(e)));if(d.length)throw new Error('Option "'.concat(d.join(", "),'" is not applicable for existing objects.'));return r((()=>{c?s(c):async function(){const e=l.get(o);if(e)s(e);else{const e=await t.getObject(o);l.set(e.id,e),e.once("closed",(()=>{l.clear(e.id)})),s(e)}}()}),[]),a}({app:o,qId:s,options:u}):function(e){var t;let{app:o,fieldIdentifier:i,stateName:a,options:s={}}=e;const[l,c]=n(""),[u,p]=n(!0),[h,f]=n(),[m,g]=n(),y=null!==(t=s.title)&&void 0!==t?t:m;r((()=>{const e=s.histogram||"N"!==s.frequencyMode;i.qLibraryId&&e?async function(){try{const e=await o.getDimension(i.qLibraryId),t=await e.getLayout();g(t.qDim.title),"N"===t.qDim.qGrouping?c(t.qDim.qFieldDefs?t.qDim.qFieldDefs[0]:""):c({multiFieldDim:!0}),p(!1)}catch(e){throw p(!1),c({failedToFetchFieldDef:!0}),new Error("Disabling frequency count and histogram: ".concat(e&&e.message))}}():(p(!1),g(i))}),[]);const{dense:b,checkboxes:v,listLayout:S,properties:E={}}=s;let{frequencyMode:x,histogram:C=!1}=s;switch(l&&l.failedToFetchFieldDef&&(C=!1,x="N"),!0){case["none","N","NX_FREQUENCY_NONE"].includes(x):x="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(x):x="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(x):x="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(x):x="R";break;default:x="N"}const w={dense:b};"horizontal"===S&&(w.dataLayout="grid",w.layoutOrder="column",w.maxVisibleColumns={auto:!0},w.maxVisibleRows={auto:!1,maxRows:1});const L=d();L.current||(L.current=Tc());const R=$e(!0,{},ou,{qInfo:{qId:L.current},qListObjectDef:{qStateName:a,qFrequencyMode:C&&"N"===x?"V":x},histogram:C,checkboxes:v,layoutOptions:w,title:y});let I;if($e(!0,R,E),i.qLibraryId?(R.qListObjectDef.qLibraryId=i.qLibraryId,I=i.qLibraryId):(R.qListObjectDef.qDef.qFieldDefs=[i],I=i),"P"!==x&&C)if(null!=l&&l.multiFieldDim)R.frequencyMax="fetch";else{const e=i.qLibraryId?l:I;R.frequencyMax={qValueExpression:El(e)}}const[q]=Gi(R,u?null:o,I,a);return r((()=>{q&&f(q)}),[q]),h}({app:o,fieldIdentifier:a,stateName:l,options:u}),b=d(c),v=f?u.selectionsApi:cc(o,y,[b,".njs-action-toolbar-more",".njs-action-toolbar-popover"],u)[0],S=i((()=>$($({},u),{},{selections:v,model:y,app:o,renderedCallback:p})),[u,v,y,o]);return v&&y?t.createElement(ru,{options:S}):null}const lu={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function cu(e){let{app:r,fieldIdentifier:o,stateName:i,element:a,options:s={}}=e;const[l,c]=n(!!s.show);return t.createElement(pc,{show:l,app:r,alignTo:{current:a},anchorOrigin:s.anchorOrigin,transformOrigin:s.transformOrigin,close:()=>{c(!1),s.onPopoverClose&&s.onPopoverClose()},fieldName:o,stateName:i,autoFocus:s.autoFocus})}function uu(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function du(e,t){let n=0;for(let r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n}const pu=e=>({qDef:{qFieldDefs:[e]}}),hu=e=>({qDef:{qDef:e}});function fu(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?pu(e):$($({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||Tc(),r.qDef.qSortCriterias=r.qDef.qSortCriterias||[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],r.qOtherTotalSpec=r.qOtherTotalSpec||{},r.qAttributeExpressions=r.qAttributeExpressions||[],r.qAttributeDimensions=r.qAttributeDimensions||[],t.qDimensions.length<i.maxDimensions()?(t.qDimensions.push(r),uu(t.qInterColumnSortOrder,t.qDimensions.length-1),n.dimensions.added(r,o)):(t.qLayoutExclude=t.qLayoutExclude||{},t.qLayoutExclude.qHyperCubeDef=t.qLayoutExclude.qHyperCubeDef||{},t.qLayoutExclude.qHyperCubeDef.qDimensions=t.qLayoutExclude.qHyperCubeDef.qDimensions||[],t.qLayoutExclude.qHyperCubeDef.qMeasures=t.qLayoutExclude.qHyperCubeDef.qMeasures||[],t.qLayoutExclude.qHyperCubeDef.qDimensions.push(r)),r},removeDimension(e){const r=t.qDimensions.splice(e,1)[0];return du(t.qInterColumnSortOrder,e),n.dimensions.removed(r,o,e),r},addMeasure(e){const r="string"==typeof e?hu(e):$($({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||Tc(),r.qSortBy=r.qSortBy||{qSortByLoadOrder:1,qSortByNumeric:-1},r.qAttributeDimensions=r.qAttributeDimensions||[],r.qAttributeExpressions=r.qAttributeExpressions||[],t.qMeasures.length<i.maxMeasures()?(t.qMeasures.push(r),uu(t.qInterColumnSortOrder,t.qDimensions.length+t.qMeasures.length-1),n.measures.added(r,o)):(t.qLayoutExclude=t.qLayoutExclude||{},t.qLayoutExclude.qHyperCubeDef=t.qLayoutExclude.qHyperCubeDef||{},t.qLayoutExclude.qHyperCubeDef.qDimensions=t.qLayoutExclude.qHyperCubeDef.qDimensions||[],t.qLayoutExclude.qHyperCubeDef.qMeasures=t.qLayoutExclude.qHyperCubeDef.qMeasures||[],t.qLayoutExclude.qHyperCubeDef.qMeasures.push(r))},removeMeasure(e){const r=t.qMeasures.splice(e,1)[0];du(t.qInterColumnSortOrder,t.qDimensions.length+e),n.measures.removed(r,o,e)},maxDimensions:()=>n.dimensions.max(t.qMeasures.length),maxMeasures:()=>n.measures.max(t.qDimensions.length),canAddDimension:()=>t.qDimensions.length<i.maxDimensions(),canAddMeasure:()=>t.qMeasures.length<i.maxMeasures()};return i}const mu=e=>({qDef:{qFieldDefs:[e]}});function gu(e){let{dc:t,def:n,properties:r}=e;t.qInitialDataFetch=t.qInitialDataFetch||[];const o=r,i={dimensions:()=>t.qLibraryId||t.qDef&&t.qDef.qFieldDefs&&0!==t.qDef.qFieldDefs.length?[t]:[],measures:()=>[],addDimension(e){const r="string"==typeof e?mu(e):$($({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||Tc(),r.qDef.qSortCriterias=t.qDef.qSortCriterias||[{qSortByState:1,qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],Object.keys(r).forEach((e=>{t[e]=r[e]})),n.dimensions.added(r,o),r},removeDimension(e){const r=t;return delete t.qDef,delete t.qLibraryId,n.dimensions.removed(r,o,e),r},addMeasure(){},removeMeasure(){},maxDimensions:()=>1,maxMeasures:()=>0,canAddDimension:()=>0===i.dimensions().length,canAddMeasure:()=>!1};return i}const yu=e=>({qDef:{qFieldDefs:[e]}}),bu=e=>{let t;return t="string"==typeof e?$e(!0,{},ou,{qListObjectDef:yu(e)}):e.qListObjectDef?$e(!0,{},ou,e):$e(!0,{},ou,{qListObjectDef:e}),t};function vu(e){let{children:t,halo:n}=e;return{async addDimension(e){const r=bu(e),o=r.qListObjectDef;if(o.qDef.cId=o.qDef.cId||Tc(),!r.title)if(o.qLibraryId){const e=await n.app.getDimension(o.qLibraryId),t=await e.getProperties();t.qDim.qLabelExpression?r.title={qStringExpression:{qExpr:t.qDim.qLabelExpression}}:r.title=t.qDim.title}else{var i,a;r.title=o.qDef.title||(null===(i=o.qDef.qFieldLabels)||void 0===i?void 0:i[0])||(null===(a=o.qDef.qFieldDefs)||void 0===a?void 0:a[0])}t.push({qProperty:r,qChildren:[]})},addMeasure(){}}}function Su(e){return"string"==typeof e&&"="===e[0]||"object"==typeof e&&e.qDef&&e.qDef.qDef||"object"==typeof e&&e.qLibraryId&&"measure"===e.type?"measure":"dimension"}async function Eu(e,t){let{sn:n,properties:r,fields:o,children:i}=e;if(!o.length)return;const a=n.qae.data.targets[0];if(!a)return;const{propertyPath:s}=a,l=s.split("/");let c=r;for(let e=0;e<l.length;e++){const t=l[e];c=t?c[t]:c}const u=function(e){return e.match("/qListObjectDef")?gu:e.match("/qChildListDef")?vu:fu}(s),d=u({dc:c,def:a,properties:r,children:i,halo:t});for(let e=0;e<o.length;++e){const t=o[e];"measure"===Su(t)?await d.addMeasure(t):await d.addDimension(t)}}var xu={getValue:(e,t,n)=>{if(null==e||null==t)return n;const r=t.split(".");let o=e;for(let e=0;e<r.length;++e){const t=r[e];if(""!==t){if(void 0===o[t]||null===o[t])return n;o=o[t]}}return o},setValue:(e,t,n)=>{if(null==e||null==t)return;const r=t.split("."),o=r[r.length-1];let 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]},isEmpty:e=>0===Object.keys(e).length&&e.constructor===Object};var Cu={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;let n=e.indexOf(t[0]);if(-1!==n){for(let r=0;r<t.length;r++){const o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){let n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r}};const wu=2**53-1;function Lu(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function Ru(e,t){const n=$e(!0,{},t,e);return xu.getValue(n,"qOtherTotalSpec.qOtherCounted")||xu.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),xu.getValue(n,"qOtherTotalSpec.qOtherLimit")||xu.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function Iu(e,t){return $e(!0,{},t,e)}function qu(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var ku={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===xu.getValue(e,t)&&xu.setValue(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:Lu,importCommonProperties:function(e,t,n){const r="masterobject"===xu.getValue(t,"properties.qInfo.qType")?"masterobject":xu.getValue(n,"qInfo.qType");xu.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},copyPropertyIfExist:function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},copyPropertyOrSetDefault:function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},createDefaultDimension:Ru,createDefaultMeasure:Iu,resolveValue:qu,getHypercubePath:function(e){const t=xu.getValue(e,"data.targets.0.propertyPath","").split("/");return t.length&&"qHyperCubeDef"===t[t.length-1]&&(t.length-=1),t.join(".")},getDefaultDimension:function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},getDefaultMeasure:function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},setInterColumnSortOrder:function(e){let{exportFormat:t,newHyperCubeDef:n}=e;const r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();let i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(Cu.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,Cu.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=$e(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?xu.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||Lu(e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),o=$e(!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=qu(i.max,r.dimensions.length,wu),s=qu(i.min,r.dimensions.length,0);return{maxDimensions:qu(o.max,a,wu),minDimensions:qu(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(Ru(a.dimensions[s],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(Ru(a.dimensions[s],i));else if(a.dimensions.length)for(s=0;s<a.dimensions.length;++s)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(Ru(a.dimensions[s],i));if(a.excludedDimensions.length)for(s=0;s<a.excludedDimensions.length;++s)o.qDimensions.length<r?o.qDimensions.push(Ru(a.excludedDimensions[s],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(Ru(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(Iu(a.measures[s],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(Iu(a.measures[s],i));else if(a.measures.length)for(s=0;s<a.measures.length;++s)o.qLayoutExclude.qHyperCubeDef.qMeasures.push(Iu(a.measures[s],i));if(a.excludedMeasures.length)for(s=0;s<a.excludedMeasures.length;++s)o.qMeasures.length<r?o.qMeasures.push(Iu(a.excludedMeasures[s],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(Iu(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=xu.getValue(t,r||"").qHyperCubeDef,o=[...e.qDimensions];e.qDimensions=[],o.forEach((r=>{e.qDimensions.push(r),n.dimensions.added(r,t)}))}},updateMeasuresOnAdded:function(e){let{newProperties:t,dataDefinition:n,hypercubePath:r}=e;if(n.measures&&"function"==typeof n.measures.added){const e=xu.getValue(t,r||"").qHyperCubeDef,o=[...e.qMeasures];e.qMeasures=[],o.forEach((r=>{e.qMeasures.push(r),n.measures.added(r,t)}))}}};var Ou={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=xu.getValue(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();Cu.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&&(ku.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!xu.isEmpty(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=ku.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:i}),l=xu.getValue(n,i||"").qHyperCubeDef,c=xu.getValue(s,i||"").qHyperCubeDef,{maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:h}=ku.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:f=ku.getDefaultDimension(),defaultMeasure:m=ku.getDefaultMeasure()}=o;return c.qDimensions.length=0,c.qMeasures.length=0,ku.shouldInitLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:h})&&ku.initLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:h,newHyperCubeDef:c}),ku.addDefaultDimensions({exportFormat:t,maxDimensions:u,minDimensions:d,newHyperCubeDef:c,defaultDimension:f}),ku.addDefaultMeasures({exportFormat:t,maxMeasures:p,minMeasures:h,newHyperCubeDef:c,defaultMeasure:m}),ku.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:c}),ku.copyPropertyIfExist("qMaxStackedCells",l,c),ku.copyPropertyIfExist("qNoOfLeftDims",l,c),ku.copyPropertyOrSetDefault("qInitialDataFetch",l,c,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),ku.copyPropertyOrSetDefault("qMode",l,c,"S"),ku.copyPropertyOrSetDefault("qReductionMode",l,c,"N"),ku.copyPropertyOrSetDefault("qSortbyYValue",l,c),ku.copyPropertyOrSetDefault("qIndentMode",l,c),ku.copyPropertyOrSetDefault("qShowTotalsAbove",l,c),ku.importCommonProperties(s,t,n),ku.updateDimensionsOnAdded({newProperties:s,dataDefinition:r,hypercubePath:i}),ku.updateMeasuresOnAdded({newProperties:s,dataDefinition:r,hypercubePath:i}),a.qProperty=s,a}(e)};const _u=e=>xu.getValue(e,"data.targets.0.propertyPath"),Tu=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return Ou.exportProperties})(_u(e))},Du=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return Ou.importProperties})(_u(e))},Au=async e=>{let{halo:t,model:n,cellRef:r,newType:o}=e;const i=await n.getFullPropertyTree(),a=r.current.getQae(),s=Tu(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 Du(c)({exportFormat:s({propertyTree:i,hypercubePath:ku.getHypercubePath(a)}),initialProperties:$({qInfo:{qType:o},visualization:o},xu.getValue(c,"properties.initial",{})),dataDefinition:xu.getValue(c,"data.targets.0.",{}),hypercubePath:ku.getHypercubePath(c)})},Pu={hypercube:Ou};var Nu=e=>ta((e=>$($({},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 Mu(e){let{d:n}=e;const r=Zo();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(S,{style:{lineHeight:"30px",paddingRight:r.spacing(1)}},t.createElement(j,null,n.missing||n.error?t.createElement(Nu,{style:a}):t.createElement(ba,{style:a})));return t.createElement(C,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},t.createElement(C,{item:!0},s),t.createElement(C,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},t.createElement(S,{noWrap:!0,component:"p"},t.createElement(S,{component:"span",variant:"subtitle2",color:o},n.description),t.createElement(S,{component:"span"}," "),t.createElement(S,{component:"span",variant:"subtitle2",color:n.error?"error":"inherit",style:{fontWeight:400}},n.label))))}function zu(e){let{data:n}=e;const r=Zo();return t.createElement(C,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},n.map(((e,n)=>{const o=e.descriptions.map(((e,n)=>t.createElement(Mu,{d:e,key:n})));return o.length>0&&t.createElement(C,{container:!0,item:!0,key:n,direction:"column",style:{paddingBottom:r.spacing(2)}},t.createElement(S,{noWrap:!0,key:n,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),o)})))}function ju(e){let{title:n="Error",message:r="",data:o=[]}=e;return t.createElement(C,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},t.createElement(C,{item:!0},t.createElement(Nu,{style:{fontSize:"38px"}})),t.createElement(C,{item:!0},t.createElement(S,{variant:"h6",align:"center","data-tid":"error-title"},n)),t.createElement(C,{item:!0},t.createElement(S,{variant:"subtitle1",align:"center","data-tid":"error-message"},r)),t.createElement(zu,{data:o}))}const Fu=["size"],Wu="Progress",Bu={root:"".concat(Wu,"-root"),front:"".concat(Wu,"-front"),back:"".concat(Wu,"-back")},Uu=Yo("div")((e=>{let{theme:t}=e;return{["&.".concat(Bu.root)]:{position:"relative",display:"inline-block"},["& .".concat(Bu.front)]:{color:t.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(Bu.back)]:{color:t.palette.divider}}})),Hu={small:16,medium:32,large:64,xlarge:128};function $u(e){let{size:n="medium"}=e,r=K(e,Fu);const o=Hu[n];return t.createElement(Uu,{className:Bu.root},t.createElement(F,V({variant:"determinate",value:100,className:Bu.back,size:o,thickness:3},r)),t.createElement(F,V({variant:"indeterminate",disableShrink:!0,className:Bu.front,size:o,thickness:3},r)))}const Gu=["cancel","translator"],Vu=["retry","translator"],Ku={stripes:"".concat("LongRunningQuery","-stripes")},Zu=Yo(C)((()=>({["& .".concat(Ku.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 Ju(e){let{cancel:n,translator:r}=e,o=K(e,Gu);return t.createElement(t.Fragment,null,t.createElement(Zu,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},t.createElement(C,{item:!0},t.createElement($u,null)),t.createElement(C,{item:!0},t.createElement(S,{variant:"h6",align:"center","data-tid":"update-active"},r.get("Object.Update.Active")))),t.createElement(C,V({item:!0},o),t.createElement(z,{variant:"contained",onClick:n},r.get("Cancel"))))}function Xu(e){let{retry:n,translator:r}=e,o=K(e,Vu);return t.createElement(t.Fragment,null,t.createElement(C,{item:!0},t.createElement(Nu,{style:{fontSize:"38px"}})),t.createElement(C,{item:!0},t.createElement(S,{variant:"h6",align:"center","data-tid":"update-cancelled"},r.get("Object.Update.Cancelled"))),t.createElement(C,{item:!0},t.createElement(z,V({variant:"contained",onClick:n},o),r.get("Retry"))))}function Yu(e){let{canCancel:n,canRetry:r,api:o}=e;const{translator:i}=p(yi);return t.createElement(C,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:Ku.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},n&&t.createElement(Ju,{cancel:o.cancel,translator:i,className:Ku.cancel}),r&&t.createElement(Xu,{retry:o.retry,translator:i,className:Ku.retry}))}function Qu(){return t.createElement(C,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t.createElement($u,{size:"large"}))}const ed="Header",td={containerStyle:"".concat(ed,"-containerStyle"),containerTitleStyle:"".concat(ed,"-containerTitleStyle")},nd=Yo(C)((e=>{let{theme:t}=e;return{["&.".concat(td.containerStyle)]:{flexGrow:0},["&.".concat(td.containerTitleStyle)]:{paddingBottom:t.spacing(1)}}})),rd="njs-cell-title",od="njs-cell-sub-title";function id(e){let{layout:o,sn:i,anchorEl:a,hovering:s,focusHandler:l,titleStyles:c={}}=e;const u=o.showTitles&&!!o.title,d=o.showTitles&&!!o.subtitle,p=o.qSelectionInfo&&o.qSelectionInfo.qInSelections,[h,f]=n([]),[m,g]=Qi(),[y,b]=n(!1);r((()=>{i&&i.component&&i.component.isHooked&&i.component.observeActions((e=>{f([...e,...i&&i.selectionToolbar&&i.selectionToolbar.items||[]])}))}),[i]),r((()=>{if(!g)return;const{width:e}=g;b(e<221)}),[g]);const v=u||d,E=[td.containerStyle,...v?[td.containerTitleStyle]:[]],x=(s||p)&&(y||!v),w=v&&!x&&!y,L=t.createElement(Ql,{show:w,selections:{show:p,api:i.component.selections,onKeyDeactivate:l.refocusContent},actions:h,popover:{show:x,anchorEl:a},focusHandler:l});return t.createElement(nd,{ref:m,item:!0,container:!0,wrap:"nowrap",className:E.join(" ")},t.createElement(C,{item:!0,zeroMinWidth:!0,xs:!0},t.createElement(C,{container:!0,wrap:"nowrap",direction:"column"},u&&t.createElement(S,{variant:"h6",noWrap:!0,className:rd,style:c.main},o.title),d&&t.createElement(S,{variant:"body2",noWrap:!0,className:od,style:c.subTitle},o.subtitle))),t.createElement(C,{item:!0},L))}const ad={itemStyle:"".concat("Footer","-itemStyle")},sd=Yo(C)((e=>{let{theme:t}=e;return{["& .".concat(ad.itemStyle)]:{minWidth:0,paddingTop:t.spacing(1)}}})),ld="njs-cell-footer";function cd(e){let{layout:n,titleStyles:r={}}=e;return n&&n.showTitles&&n.footnote?t.createElement(sd,{container:!0},t.createElement(C,{item:!0,className:ad.itemStyle},t.createElement(S,{noWrap:!0,variant:"body2",className:ld,style:r.footer},n.footnote))):null}class ud{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 dd="njs-viz";function pd(e){let{sn:o,snOptions:i,snPlugins:a,layout:s,appLayout:c,halo:u}=e;const{component:d}=o,{theme:h,language:f,constraints:m,interactions:g,keyboardNavigation:y}=p(yi),[b]=n((()=>new ud)),[v,S]=n(!1),[E,x]=n(0),[C,w,L]=Qi(),[R,I]=n(null),q=l((e=>{e&&I(e)}),[]);return r((()=>{if(R)return d.created({options:i}),d.mounted(R),S(!0),()=>{b.stop(),d.willUnmount()}}),[R,d]),r((()=>{v&&R&&w&&(!d.isHooked&&s&&s.qSelectionInfo&&s.qSelectionInfo.qInSelections||b.schedule((()=>{const e=[];return m.passive||e.push("passive"),m.active||e.push("interact"),m.select||e.push("select"),m.edit||e.push("edit"),u.app&&u.app.session&&e.push("fetch"),Promise.resolve(d.render({layout:s,options:i,plugins:a,embed:u.public.nebbie,context:$({constraints:m,interactions:g,theme:u.public.theme,appLayout:c,keyboardNavigation:y},d.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),x(E+1))}))})))}),[w,i,a,R,L,s,c,h,f,m,g,v,y]),t.createElement("div",{ref:C,"data-render-count":E,style:{position:"relative",height:"100%"},className:dd},t.createElement("div",{ref:q,style:{position:"absolute",width:"100%",height:"100%"}}))}const hd={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},fd={"top-left":"top left","top-center":"top center","top-right":"top right","center-left":"center left","center-center":"center center","center-right":"center right","bottom-left":"bottom left","bottom-center":"bottom center","bottom-right":"bottom right"};function md(e,t){return t?function(e){var t;let n,r,o,i;return null!=e&&null!==(t=e.session)&&void 0!==t&&t.config?(n=e.session.config,r=new URL(n.url),i="wss:"===r.protocol,o=i?"https://":"http://",o+r.host):""}(e)+t:void 0}function gd(e,t){const n=null==e?void 0:e.bgImage;if(n){let i="";var r,o;if("media"===n.mode||"media"===e.useImage)i=null!=n&&null!==(r=n.mediaUrl)&&void 0!==r&&null!==(o=r.qStaticContentUrl)&&void 0!==o&&o.qUrl?decodeURIComponent(n.mediaUrl.qStaticContentUrl.qUrl):void 0,i=md(t,i);"expression"===n.mode&&(i=n.expressionUrl?decodeURIComponent(n.expressionUrl):void 0);const a=function(e){var t;let n="center center";return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.position&&(n=fd[e.bgImage.position]),n}(e),s=function(e){var t;let n=hd.originalSize;return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.sizing&&(n=hd[e.bgImage.sizing]),n}(e);return i?{url:i,pos:a,size:s}:void 0}}function yd(e,t,n){const r=null==e?void 0:e.bgColor;return r&&t?r.useExpression?t.validateColor(r.colorExpression):r.color&&"none"!==r.color.color?t.getColorPickerColor(r.color,!0):void 0:t&&n?t.getStyle("object.".concat(n),"","backgroundColor"):t?t.getStyle("","","backgroundColor"):void 0}function bd(e,t,n,r){var o;const i=(null==e||null===(o=e.title)||void 0===o?void 0:o[t])||{},a=function(e,t){return e&&Array.isArray(e)?e:"main"===t?["bold"]:[]}(i.fontStyle,t);return{fontFamily:i.fontFamily||n.getStyle("object.".concat(r),"title.".concat(t),"fontFamily"),color:i.color&&"none"!==i.color.color?n.getColorPickerColor(i.color,!0):n.getStyle("object.".concat(r),t,"color"),fontWeight:a.includes("bold")?"bold":"normal",fontStyle:a.includes("italic")?"italic":"normal",textDecoration:a.includes("underline")?"underline":"initial"}}const vd="njs-cell",Sd=(e,t)=>{switch(t.type){case"LOADING":return $($({},e),{},{loading:!0});case"LOADED":return $($({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization});case"RENDER":return $($({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null});case"LONG_RUNNING_QUERY":return $($({},e),{},{longRunningQuery:!0});case"ERROR":return $($({},e),{},{loading:!1,longRunningQuery:!1,error:t.error});default:throw new Error("Unhandled type: ".concat(t.type))}};function Ed(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(Qu,null):null}const xd=e=>!e.qError||7005===e.qError.qErrorCode,Cd=(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:Cd(o,wd(a.qDimensionInfo||a.qItems),(e=>r.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:Cd(i,wd(a.qMeasureInfo),(e=>r.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},Rd=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],d=u.dimensions.min(),p=u.measures.min(),h=u.resolveLayout(n),f=wd(h.qDimensionInfo||h.qItems).filter(xd),m=wd(h.qMeasureInfo).filter(xd);if(o+=d,i+=p,(f.length<d||m.length<p)&&(r=!0),h.qError){a=!0,s=7005===h.qError.qErrorCode;const t=s&&h.qCalcCondMsg?h.qCalcCondMsg:s?e.get("Visualization.UnfulfilledCalculationCondition"):e.get("Visualization.LayoutError");l.push({title:t,descriptions:[]})}}return{hasUnfulfilledErrors:r,aggMinD:o,aggMinM:i,hasLayoutErrors:a,layoutErrors:l}})(e,o,t),u=[],d=[];let p=null;for(let n=0;n<o.length;++n){const a=o[n];if(!l&&i){const n=p||await r.getProperties();p=n;const o=Ld(e,t,n,a);u.push(...o.reqDimErrors),d.push(...o.reqMeasErrors)}}const h=u.filter((e=>!(e.missing||e.error))).length,f=e.get("Visualization.Incomplete.Dimensions",[h,a]),m=d.filter((e=>!(e.missing||e.error))).length,g=e.get("Visualization.Incomplete.Measures",[m,s]),y=[{title:f,descriptions:[...u]},{title:g,descriptions:[...d]}],b=l?c:y;return[l||i,{title:l?c[0].title:e.get("Visualization.Incomplete"),data:b}]},Id=o(((e,o)=>{let{halo:i,model:l,initialSnOptions:c,initialSnPlugins:u,initialError:h,onMount:f,currentId:m,emitter:g}=e;const{app:y,types:b}=i,{nebbie:v}=i.public,{theme:S,translator:E,language:x,keyboardNavigation:w,disableCellPadding:R=!1}=p(yi),I=Zo(),[q,k,O]=Qi(),[_,T]=s(Sd,{loading:!1,loaded:!1,longRunningQuery:!1,error:(D=h)?{title:D.message}:null,sn:null,visualization:null});var D;const[A,{validating:P,canCancel:N,canRetry:M},z]=Xi(l),[j]=Yi(y),[F,W,B]=Qi(),[U,H]=n(c),[G,V]=n(u),K="njs-cell-".concat(m),[Z]=cc(y,l,["#".concat(K),".njs-action-toolbar-popover"]),[J,X]=n(!1),Y=d({enter:null,leave:null}),[Q,ee]=n(void 0),[te,ne]=n(void 0),[re,oe]=n(void 0),ie=d({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});r((()=>{ac(ie.current)}),[]),r((()=>{if(A&&i.public.theme){const e=A.components?A.components.find((e=>"general"===e.key)):null;oe({main:bd(e,"main",i.public.theme,A.visualization),footer:bd(e,"footer",i.public.theme,A.visualization),subTitle:bd(e,"subTitle",i.public.theme,A.visualization)}),ee(yd(e,i.public.theme,A.visualization)),ne(gd(e,i.app))}}),[A,i.public.theme,i.app,S]),ie.current.blurCallback=e=>{i.root.toggleFocusOfCells(),e&&B&&B.focus()},ie.current.refocusContent=()=>{_.sn.component&&"function"==typeof _.sn.component.focus&&_.sn.component.focus()};r((()=>{if(h||!j||!A)return;if(_.visualization===A.visualization&&_.sn)return void(async e=>{const[t,n]=await Rd(E,A,e.generator.qae.data,l);T(t?{type:"ERROR",error:n}:{type:"RENDER"}),(e=>{let{sn:t,layout:n,model:r}=e;const o=t&&t.component&&t.component.selections;if(o&&o.id&&r.id&&o.id===r.id){if(n&&n.qSelectionInfo&&n.qSelectionInfo.qInSelections&&!o.isModal()){const{targets:e}=t.generator.qae.data,n=e[0].propertyPath;o.goModal(n)}n.qSelectionInfo&&n.qSelectionInfo.qInSelections||o.isModal()&&o.noModal()}})({sn:_.sn,layout:A,model:l})})(_.sn);const e=b.getSupportedVersion(A.visualization,A.version);return(async(e,t)=>{T({type:"LOADING"});const n=await(async e=>{let{dispatch:t,types:n,visualization:r,version:o,model:i,app:a,selections:s,nebbie:l,focusHandler:c,emitter:u}=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,emitter:u})}catch(e){t(o?{type:"ERROR",error:{title:e.message}}:{type:"ERROR",error:{title:"Could not find a version of '".concat(r,"' that supports current object version. Did you forget to register ").concat(r,"?")}})}})({dispatch:T,types:b,visualization:e,version:t,model:l,app:y,selections:Z,nebbie:v,focusHandler:ie.current,emitter:g});n&&(T({type:"LOADED",sn:n,visualization:e}),f())})(A.visualization,e),()=>{}}),[b,_.sn,l,Z,A,j,x]),r((()=>{if(!P)return;const e=setTimeout((()=>T({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[P]),a(o,(()=>({getQae:()=>_.sn.generator.qae,toggleFocus(e){"function"==typeof _.sn.component.focus&&(e?_.sn.component.focus():_.sn.component.blur())},setSnOptions:H,setSnPlugins:V,getImperativeHandle(){var e;return null!==(e=_.sn)&&void 0!==e&&e.component&&"function"==typeof _.sn.component.getImperativeHandle?_.sn.component.getImperativeHandle():{}},async takeSnapshot(){const{width:e,height:t}=k;let n=JSON.parse(JSON.stringify(A));return"function"==typeof _.sn.component.setSnapshotData&&(n=await _.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:E.language(),theme:I.name,appLayout:j,size:{width:Math.round(e),height:Math.round(t)}},layout:n}},async exportImage(){if("function"!=typeof i.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const e=await this.takeSnapshot();return i.config.snapshot.capture(e)}})),[_.sn,W,k,A,I.name,j]);let ae=null;return _.loading&&!_.longRunningQuery?ae=t.createElement(Ed,null):_.error?ae=t.createElement(ju,_.error):_.loaded&&(ae=t.createElement(pd,{key:A.visualization,sn:_.sn,halo:i,snOptions:U,snPlugins:G,layout:A,appLayout:j})),t.createElement(L,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:Q||"unset",backgroundImage:te&&te.url?"url(".concat(te.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:te&&te.size,backgroundPosition:te&&te.pos},elevation:0,square:!0,className:vd,ref:q,id:K,onMouseEnter:()=>{Y.current.leave&&clearTimeout(Y.current.leave),Y.enter||(Y.current.enter=setTimeout((()=>{X(!0),Y.current.enter=null}),250))},onMouseLeave:()=>{Y.current.enter&&clearTimeout(Y.current.enter),Y.current.leave||(Y.current.leave=setTimeout((()=>{X(!1),Y.current.leave=null}),750))}},t.createElement(C,{container:!0,direction:"column",gap:0,style:$($({position:"relative",width:"100%",height:"100%"},R?{}:{padding:I.spacing(1)}),_.longRunningQuery?{opacity:"0.3"}:{})},O&&A&&_.sn&&t.createElement(id,{layout:A,sn:_.sn,anchorEl:O,hovering:J,focusHandler:ie.current,titleStyles:re}," "),t.createElement(C,{tabIndex:w?0:-1,onKeyDown:w?e=>{["Enter"," ","Spacebar"].includes(e.key)&&i.root.toggleFocusOfCells(m)}:null,item:!0,xs:!0,style:{height:"100%"},ref:F},ae),O&&A&&_.sn&&t.createElement(cd,{layout:A,titleStyles:re})),_.longRunningQuery&&t.createElement(Yu,{canCancel:N,canRetry:M,api:z}))}));function qd(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function kd(){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];var a,s;"object"!=typeof n[o]||"object"!=typeof i||Array.isArray(i)?(a=i,s=n[o],(qd(a)&&qd(s)?JSON.stringify(a)===JSON.stringify(s):!Array.isArray(a)&&!Array.isArray(s)&&a===s)||r.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])})):r.push(...kd("".concat(e).concat(o,"/"),t[o],n[o]))})),r}function Od(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 _d=()=>{};function Td(){let{model:e,halo:n,initialError:r,onDestroy:o=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=_d,a=null,s=null,l=null,c=null;const u=new Promise((e=>{l=e})),d=new Promise((e=>{c=e})),p=e=>()=>{e&&e(),c()};let h={},f=[];const g=new te,y={id:e.id,model:e,async destroy(){await o(),i(),i=_d},async convertTo(t){let r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const o=await Au({halo:n,model:e,cellRef:a,newType:t});return r&&(e.__snInterceptor?await e.__snInterceptor.setProperties.call(e,o.qProperty):await e.setProperties(o.qProperty)),o},addListener(e,t){g.addListener(e,t)},removeListener(e,t){g.removeListener(e,t)},getImperativeHandle:async()=>(await d,a.current.getImperativeHandle()),__DO_NOT_USE__:{mount(o){if(s)throw new Error("Already mounted");return s=o,[i,a]=function(e){let{halo:n,element:r,model:o,initialSnOptions:i,initialSnPlugins:a,onMount:s,emitter:l,initialError:c}=e;const{root:u}=n,d=t.createRef(),p=Tc(),h=m.createPortal(t.createElement(Id,{ref:d,halo:n,model:o,currentId:p,initialSnOptions:i,initialSnPlugins:a,initialError:c,onMount:s,emitter:l}),r,p),f=()=>{u.remove(h),o.removeListener("closed",f)};return o.on("closed",f),u.add(h),u.addCell(p,d),[f,d]}({halo:n,element:o,model:e,initialSnOptions:h,initialSnPlugins:f,initialError:r,onMount:l,emitter:g}),u},async applyProperties(t){const n=kd("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{const t=e.onInitialRender;s?(async()=>{await u,a.current.setSnOptions($($($({},h),e),{onInitialRender:p(t)}))})():h=$($($({},h),e),{onInitialRender:p(t)})})(e)},plugins(e){(async e=>{Od(e),s?(async()=>{await u,a.current.setSnPlugins(e)})():f=e})(e)},exportImage:()=>a.current.exportImage(),takeSnapshot:()=>a.current.takeSnapshot(),getModel:()=>e}};return y}async function Dd(e,t,n,r){const o=Td({model:e,halo:n,initialError:r,onDestroy:arguments.length>4&&void 0!==arguments[4]?arguments[4]:async()=>{}});return t.options&&o.__DO_NOT_USE__.options(t.options),t.plugins&&o.__DO_NOT_USE__.plugins(t.plugins),t.element&&await o.__DO_NOT_USE__.mount(t.element),o}async function Ad(e,t,n){let{type:r,version:o,fields:i,properties:a,extendProperties:s}=e,l={};const c=[];try{const e=t.types.get({name:r,version:o});l=await e.initialProperties(a,s);const n=await e.supernova();i&&await Eu({sn:n,properties:l,fields:i,children:c},t),a&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},l)}catch(e){l=n?null:{qInfo:{qType:r},visualization:r}}if(!n){const e=await t.app.createObject(l);return c.length>0&&await e.setFullPropertyTree({qProperty:l,qChildren:c}),Hi.set(e.id,e),e}return l}const Pd={className:"njs-sheet"};function Nd(e){let{model:o,halo:a,initialSnOptions:s,initialSnPlugins:l,initialError:c,onMount:u}=e;const{root:d}=a,[h]=Xi(o),{theme:f}=p(yi),[m,g]=n([]),[y,b]=n(void 0),[v,S]=n(void 0),[E,x]=n("");r((()=>{if(h){const e=JSON.stringify(h.cells);if(e===E)return;x(e);const n=async()=>{m.forEach((e=>{d.removeCell(e.currentId)}));const e=h.cells,n=await Promise.all(e.map((async e=>{let n;const r=new Promise((e=>{n=e})),o=m.find((t=>t.id===e.name));if(o)return o.bounds=e.bounds,delete o.mountedPromise,o;const i=await async function(e,t){let{id:n,options:r,plugins:o,element:i}=e;const a="".concat(n);let s=zi.get(a);s||(s=t.app.getObject(n),zi.set(a,s));const l=await s;return Hi.set(a,l),Dd(l,{options:r,plugins:o,element:i},t)}({id:e.name},a);return{model:i.model,id:e.name,bounds:e.bounds,cellRef:t.createRef(),currentId:Tc(),mounted:n,mountedPromise:r}})));n.forEach((e=>d.addCell(e.currentId,e.cellRef))),g(n)};n()}}),[h]);const C=i((()=>m?m.map((e=>function(e,n,r,o,i,a){const{x:s,y:l,width:c,height:u}=e.bounds;return t.createElement("div",{style:{left:"".concat(s,"%"),top:"".concat(l,"%"),width:"".concat(c,"%"),height:"".concat(u,"%"),position:"absolute"}},t.createElement(Id,{ref:e.cellRef,halo:n,model:e.model,currentId:e.currentId,initialSnOptions:r,initialSnPlugins:o,initialError:i,onMount:a}))}(e,a,s,l,c,e.mounted))):[]),[m]);r((()=>{const e=null!=h&&h.components?h.components.find((e=>"general"===e.key)):null;b(yd(e,a.public.theme)),S(gd(e,a.app))}),[h,a.public.theme,a.app,f]);const w=!h||Number.isNaN(h.height)?"100%":"".concat(Number(h.height),"%"),L=m.map((e=>e.mountedPromise)),R=L.filter((e=>!!e));return R.length&&Promise.all(L).then((()=>{u()})),t.createElement("div",{className:Pd.className,style:{width:"100%",height:w,position:"relative",backgroundColor:y,backgroundImage:v&&v.url?"url(".concat(v.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:v&&v.size,backgroundPosition:v&&v.pos}},C)}const Md=()=>{};function zd(){let{model:e,halo:n,initialError:r,onDestroy:o=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=Md,a=null,s=null,l=null;const c=new Promise((e=>{l=e}));let u={},d=[];const p={id:e.id,model:e,async destroy(){await o(),i(),i=Md},__DO_NOT_USE__:{mount(o){if(s)throw new Error("Already mounted");return s=o,[i,a]=function(e){let{halo:n,element:r,model:o,initialSnOptions:i,initialSnPlugins:a,onMount:s,initialError:l}=e;const{root:c}=n,u=t.createRef(),d=m.createPortal(t.createElement(Nd,{ref:u,halo:n,model:o,initialSnOptions:i,initialSnPlugins:a,initialError:l,onMount:s}),r,o.id),p=()=>{c.remove(d),o.removeListener("closed",p)};return o.on("closed",p),c.add(d),[p,u]}({halo:n,element:o,model:e,initialSnOptions:u,initialSnPlugins:d,initialError:r,onMount:l}),c},async applyProperties(t){const n=kd("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{s?(async()=>{await c,a.current.setSnOptions($($({},u),e))})():u=$($({},u),e)})(e)},plugins(e){(async e=>{Od(e),s?(async()=>{await c,a.current.setSnPlugins(e)})():d=e})(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return p}async function jd(e,t){let{id:n,options:r,plugins:o,element:i}=e;const a="".concat(n);let s=zi.get(a);s||(s=t.app.getObject(n),zi.set(a,s));const l=await s;return Hi.set(a,l),"sheet"===l.genericType?async function(e,t,n,r){const o=zd({model:e,halo:n,initialError:r,onDestroy:arguments.length>4&&void 0!==arguments[4]?arguments[4]:async()=>{}});return t.options&&o.__DO_NOT_USE__.options(t.options),t.plugins&&o.__DO_NOT_USE__.plugins(t.plugins),t.element&&await o.__DO_NOT_USE__.mount(t.element),o}(l,{options:r,plugins:o,element:i},t):Dd(l,{options:r,plugins:o,element:i},t)}function Fd(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}const Wd=$e.bind(null,!0),Bd={},{isArray:Ud}=Array;function Hd(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function $d(e){return void 0===e}function Gd(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function Vd(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]=$d(e[r||t])?i:e[t],e=e[r||t]})),e}function Kd(e,t){let n=!0;if(Hd(e)&&Hd(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{Kd(e[r],t[r])||(n=!1)})),n);if(Ud(e)&&Ud(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!Kd(e[n],t[n]))return!1;return!0}return e===t}Bd.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const i=function(e){return e?Wd({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(n,"/").concat(o);Kd(i,a)||Gd(t,o)||($d(a)?r.push({op:"add",path:s,value:i}):Hd(i)&&Hd(a)?r=r.concat(Bd.generate(a,i,s)):Ud(i)&&Ud(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]&&$d(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(Kd(t,o))return r;if(!$d(t[0])&&$d(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(Bd.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=>{$d(t[o])&&!Gd(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},Bd.apply=function(e,t){t.forEach((t=>{let n=Vd(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(Ud(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(Ud(o)&&Ud(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(Hd(o)&&Hd(t.value))a=o,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!Gd(a,e)&&delete a[e]})),Wd(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=Vd(e,t.from);Ud(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(Ud(n)?n.splice(+r,1):delete n[r]);var a}))},Bd.clone=function(e){return Wd({},e)},Bd.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},Bd.updateObject=function(e,t){Object.keys(e).length?Bd.apply(e,Bd.generate(e,t)):Wd(e,t)};const Zd=e=>t=>{const n=(r=$($({},t),{},{action(){"function"==typeof t.action&&t.action.call(n,e),n.emit("changed")},enabled:()=>"function"!=typeof t.enabled||t.enabled.call(n,e),active:"function"==typeof t.active?function(){return t.active.call(n,e)}:void 0}),Object.keys(te.prototype).forEach((e=>{r[e]=te.prototype[e]})),te.init(r),r);var r;return n};let Jd,Xd;function Yd(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 Qd(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 ep(e){np(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 tp(e){if(e.__hooks.obsolete)return Promise.resolve();Xd=-1,Jd=e,Jd.__hooks.initiated&&Jd.__hooks.list.length;try{Jd.fn.call(null)}catch(e){console.error(e)}Jd.__hooks.initiated=!0;const t=Jd.__hooks;return ap(Jd),Xd=void 0,Jd=void 0,t.chain.promise||(t.chain.promise=new Promise((e=>{t.chain.resolve=e}))),function(e){np(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame((()=>{!function(e){np(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 np(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 rp(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 op(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 ip(e){return e.__hooks.imperativeHandle}function ap(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function sp(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,ap(e))}function lp(e){if(void 0===Jd)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=Jd.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function cp(e){lp(++Xd);return Jd.context[e]}function up(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function dp(e){return{__hooked:!0,fn:e,initiate:Qd,run:tp,teardown:ep,runSnaps:rp,runMenu:op,focus:Wp,blur:Bp,observeActions:sp,getImperativeHandle:ip,updateRectOnNextRun:up}}function pp(e){const t=lp(++Xd);if(!t.value){t.component=Jd;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,tp(r)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function hp(e,t){const n=lp(++Xd);Yd(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===Jd.__hooks.pendingEffects.indexOf(n)&&Jd.__hooks.pendingEffects.push(n))}function fp(e,t){const n=lp(++Xd);Yd(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],Jd.__hooks.pendingLayoutEffects.push(n))}function mp(e,t){const n=lp(++Xd);return Yd(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function gp(e,t){const[n,r]=pp((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=lp(++Xd);return o.component||(o.component=Jd),fp((()=>{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 yp(){return cp("element")}function bp(){const e=yp(),t=Jd.__hooks.resizer,[n,r]=pp((()=>{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()),fp((()=>{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 vp(){return cp("layout")}function Sp(){const e=cp("layout"),[t]=pp({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current}function Ep(){return cp("appLayout")}function xp(){const e=cp("model");return e&&e.session?e:void 0}function Cp(){const e=cp("app");return e&&e.session?e:void 0}function wp(){const e=cp("global");return e&&e.session?e:void 0}function Lp(){return cp("selections")}function Rp(){return cp("theme")}function Ip(){return cp("nebbie")}function qp(){return cp("translator")}function kp(){return cp("deviceType")}function Op(){return cp("plugins")}function _p(e,t){const[n]=pp({action(){n._config.action.call(null)}});return n.component||(n.component=Jd,Jd.__hooks.actions.list.push(n)),mp((()=>{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 Tp(){return cp("constraints")}function Dp(){return cp("interactions")}function Ap(){return cp("options")}function Pp(e,t){const n=lp(++Xd);if(n.imperative||(n.imperative=!0),Yd(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],Jd.__hooks.imperativeHandle=r}}function Np(e){const t=lp(++Xd);t.value||(t.value=1,Jd.__hooks.snaps.push(t)),t.fn=e}function Mp(e){const t=lp(++Xd);t.value||(t.value=1,Jd.__hooks.menus.push(t)),t.fn=e}function zp(){lp(++Xd);const e=Jd.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}}function jp(){return cp("emitter")}function Fp(){const e=cp("keyboardNavigation"),t=cp("focusHandler");if(!Jd.__hooks.accessibility.exitFunction){const e=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const n=this.__hooks.accessibility;n.enabled&&n.active&&(Bp(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(Jd);Jd.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),Wp(this))}.bind(Jd);Jd.__hooks.accessibility.focusFunction=n;const r=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(Jd);Jd.__hooks.accessibility.focusSelectionFunction=r}const n=Jd.__hooks.accessibility.focusFunction,r=Jd.__hooks.accessibility.exitFunction,o=Jd.__hooks.accessibility.focusSelectionFunction,[i,a]=pp({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return Jd.__hooks.accessibility.setter=a,Jd.__hooks.accessibility.enabled=e,hp((()=>a({active:!1,enabled:e,blur:r,focus:n,focusSelection:o})),[e]),i}function Wp(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 Bp(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 Up={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},Hp=Object.keys(Up),$p=e=>(Object.keys(te.prototype).forEach((t=>{e[t]=te.prototype[t]})),te.init(e),e);function Gp(e,t){const n=$({},Up);$p(n);const r={emit(){n.emit(...arguments)}};Object.keys(e.component||{}).forEach((t=>{-1!==Hp.indexOf(t)?n[t]=e.component[t].bind(r):r[t]=e.component[t]}));const o=function(e){let{sn:t,component:n}=e;const r={},o=[],i=Zd(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:r}),i=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(r,{model:t.model,app:t.app,global:i,selections:t.selections,actions:o.actions}),Object.assign(n,{actions:o.actions,model:t.model,app:t.app,selections:t.selections}),[n,o]}function Vp(e,t,n){"function"==typeof e.component&&(e.component=dp(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","interactions"],s={},l={};t.model&&t.model.session||(s.select=!0,s.edit=!0,l.select=!1,l.edit=!1);const c={context:{model:t.model,app:t.app,global:r,selections:t.selections,nebbie:t.nebbie,element:void 0,emitter:t.emitter,deviceType:n.deviceType,theme:void 0,translator:n.translator,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,focusHandler:t.focusHandler,constraints:s,interactions:l,options:{},plugins:[]},fn:e.component.fn,created(){},mounted(n){this.context.element=n,e.component.initiate(c,{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($($({},r[e]),s))),"interactions"===e&&(t=JSON.stringify($($({},r[e]),l))),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=c.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(c.context[e])})),i.themeName=c.context.theme?c.context.theme.name():void 0,i.language=c.context.translator?c.context.translator.language():void 0,Object.assign(c,{selections:t.selections}),[c,null]}(e,t,n):Gp(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=Bd.clone(o),a=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));Bd.apply(o,a),e.qae.properties.onChange.call({model:t.model},o);const s=Bd.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 Kp=()=>{};function Zp(e,t){return void 0===e?()=>t:()=>e}function Jp(e){const t=e||{};return{min:"function"==typeof t.min?t.min:Zp(t.min,0),max:"function"==typeof t.max?t.max:Zp(t.max,1e3),added:t.added||t.add||Kp,description:t.description||Kp,moved:t.moved||t.move||Kp,removed:t.removed||t.remove||Kp,replaced:t.replaced||t.replace||Kp,isDefined:()=>!!e}}const Xp=(e,t,n)=>{const r=t.split("/");let o=e;if(void 0===o)return n;for(let e=0;e<r.length;++e)if(""!==r[e]){if(void 0===o[r[e]])return n;o=o[r[e]]}return o};function Yp(e){const t=e.path||"/qHyperCubeDef",n=t.slice(0,-3);if(!1===/\/(qHyperCube|qListObject|qChildList)$/.test(n)){const e=n.includes("/qHyperCube")?"qHyperCubeDef":"qListObjectDef";throw new Error("Incorrect definition for ".concat(e," at ").concat(t,". Valid paths include /qHyperCubeDef, /qListObjectDef, or /qChildListDef, e.g. data/qHyperCubeDef"))}return{propertyPath:t,layoutPath:n,resolveLayout:e=>Xp(e,n,{}),dimensions:Jp(e.dimensions),measures:Jp(e.measures)}}function Qp(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.properties||{};t.properties&&(t.properties.initial||t.properties.onChange)&&(n=t.properties.initial,e=t.properties.onChange);return{properties:{initial:n,onChange:e},data:{targets:((t.data||{}).targets||[]).map(Yp)},exportProperties:t.exportProperties,importProperties:t.importProperties}}function eh(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:Qp(n.qae),component:n.component||{},create:e=>Vp(r,e,t),definition:{}};return Object.keys(n).forEach((e=>{r[e]||(r.definition[e]=n[e])})),r}var th={exports:{}};!function(e,t){var n;t=th.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=256,o=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],a=t.src=[],s=t.tokens={},l=0;function c(e){s[e]=l++}c("NUMERICIDENTIFIER"),a[s.NUMERICIDENTIFIER]="0|[1-9]\\d*",c("NUMERICIDENTIFIERLOOSE"),a[s.NUMERICIDENTIFIERLOOSE]="[0-9]+",c("NONNUMERICIDENTIFIER"),a[s.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",c("MAINVERSION"),a[s.MAINVERSION]="("+a[s.NUMERICIDENTIFIER]+")\\.("+a[s.NUMERICIDENTIFIER]+")\\.("+a[s.NUMERICIDENTIFIER]+")",c("MAINVERSIONLOOSE"),a[s.MAINVERSIONLOOSE]="("+a[s.NUMERICIDENTIFIERLOOSE]+")\\.("+a[s.NUMERICIDENTIFIERLOOSE]+")\\.("+a[s.NUMERICIDENTIFIERLOOSE]+")",c("PRERELEASEIDENTIFIER"),a[s.PRERELEASEIDENTIFIER]="(?:"+a[s.NUMERICIDENTIFIER]+"|"+a[s.NONNUMERICIDENTIFIER]+")",c("PRERELEASEIDENTIFIERLOOSE"),a[s.PRERELEASEIDENTIFIERLOOSE]="(?:"+a[s.NUMERICIDENTIFIERLOOSE]+"|"+a[s.NONNUMERICIDENTIFIER]+")",c("PRERELEASE"),a[s.PRERELEASE]="(?:-("+a[s.PRERELEASEIDENTIFIER]+"(?:\\."+a[s.PRERELEASEIDENTIFIER]+")*))",c("PRERELEASELOOSE"),a[s.PRERELEASELOOSE]="(?:-?("+a[s.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+a[s.PRERELEASEIDENTIFIERLOOSE]+")*))",c("BUILDIDENTIFIER"),a[s.BUILDIDENTIFIER]="[0-9A-Za-z-]+",c("BUILD"),a[s.BUILD]="(?:\\+("+a[s.BUILDIDENTIFIER]+"(?:\\."+a[s.BUILDIDENTIFIER]+")*))",c("FULL"),c("FULLPLAIN"),a[s.FULLPLAIN]="v?"+a[s.MAINVERSION]+a[s.PRERELEASE]+"?"+a[s.BUILD]+"?",a[s.FULL]="^"+a[s.FULLPLAIN]+"$",c("LOOSEPLAIN"),a[s.LOOSEPLAIN]="[v=\\s]*"+a[s.MAINVERSIONLOOSE]+a[s.PRERELEASELOOSE]+"?"+a[s.BUILD]+"?",c("LOOSE"),a[s.LOOSE]="^"+a[s.LOOSEPLAIN]+"$",c("GTLT"),a[s.GTLT]="((?:<|>)?=?)",c("XRANGEIDENTIFIERLOOSE"),a[s.XRANGEIDENTIFIERLOOSE]=a[s.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",c("XRANGEIDENTIFIER"),a[s.XRANGEIDENTIFIER]=a[s.NUMERICIDENTIFIER]+"|x|X|\\*",c("XRANGEPLAIN"),a[s.XRANGEPLAIN]="[v=\\s]*("+a[s.XRANGEIDENTIFIER]+")(?:\\.("+a[s.XRANGEIDENTIFIER]+")(?:\\.("+a[s.XRANGEIDENTIFIER]+")(?:"+a[s.PRERELEASE]+")?"+a[s.BUILD]+"?)?)?",c("XRANGEPLAINLOOSE"),a[s.XRANGEPLAINLOOSE]="[v=\\s]*("+a[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+a[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+a[s.XRANGEIDENTIFIERLOOSE]+")(?:"+a[s.PRERELEASELOOSE]+")?"+a[s.BUILD]+"?)?)?",c("XRANGE"),a[s.XRANGE]="^"+a[s.GTLT]+"\\s*"+a[s.XRANGEPLAIN]+"$",c("XRANGELOOSE"),a[s.XRANGELOOSE]="^"+a[s.GTLT]+"\\s*"+a[s.XRANGEPLAINLOOSE]+"$",c("COERCE"),a[s.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",c("COERCERTL"),i[s.COERCERTL]=new RegExp(a[s.COERCE],"g"),c("LONETILDE"),a[s.LONETILDE]="(?:~>?)",c("TILDETRIM"),a[s.TILDETRIM]="(\\s*)"+a[s.LONETILDE]+"\\s+",i[s.TILDETRIM]=new RegExp(a[s.TILDETRIM],"g");c("TILDE"),a[s.TILDE]="^"+a[s.LONETILDE]+a[s.XRANGEPLAIN]+"$",c("TILDELOOSE"),a[s.TILDELOOSE]="^"+a[s.LONETILDE]+a[s.XRANGEPLAINLOOSE]+"$",c("LONECARET"),a[s.LONECARET]="(?:\\^)",c("CARETTRIM"),a[s.CARETTRIM]="(\\s*)"+a[s.LONECARET]+"\\s+",i[s.CARETTRIM]=new RegExp(a[s.CARETTRIM],"g");c("CARET"),a[s.CARET]="^"+a[s.LONECARET]+a[s.XRANGEPLAIN]+"$",c("CARETLOOSE"),a[s.CARETLOOSE]="^"+a[s.LONECARET]+a[s.XRANGEPLAINLOOSE]+"$",c("COMPARATORLOOSE"),a[s.COMPARATORLOOSE]="^"+a[s.GTLT]+"\\s*("+a[s.LOOSEPLAIN]+")$|^$",c("COMPARATOR"),a[s.COMPARATOR]="^"+a[s.GTLT]+"\\s*("+a[s.FULLPLAIN]+")$|^$",c("COMPARATORTRIM"),a[s.COMPARATORTRIM]="(\\s*)"+a[s.GTLT]+"\\s*("+a[s.LOOSEPLAIN]+"|"+a[s.XRANGEPLAIN]+")",i[s.COMPARATORTRIM]=new RegExp(a[s.COMPARATORTRIM],"g");c("HYPHENRANGE"),a[s.HYPHENRANGE]="^\\s*("+a[s.XRANGEPLAIN]+")\\s+-\\s+("+a[s.XRANGEPLAIN]+")\\s*$",c("HYPHENRANGELOOSE"),a[s.HYPHENRANGELOOSE]="^\\s*("+a[s.XRANGEPLAINLOOSE]+")\\s+-\\s+("+a[s.XRANGEPLAINLOOSE]+")\\s*$",c("STAR"),a[s.STAR]="(<|>)?=?\\s*\\*";for(var u=0;u<l;u++)n(u,a[u]),i[u]||(i[u]=new RegExp(a[u]));function d(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>r)return null;if(!(t.loose?i[s.LOOSE]:i[s.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>r)throw new TypeError("version is longer than "+r+" characters");if(!(this instanceof p))return new p(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var a=e.trim().match(t.loose?i[s.LOOSE]:i[s.FULL]);if(!a)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");a[4]?this.prerelease=a[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<o)return t}return e})):this.prerelease=[],this.build=a[5]?a[5].split("."):[],this.format()}t.parse=d,t.valid=function(e,t){var n=d(e,t);return n?n.version:null},t.clean=function(e,t){var n=d(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(b(e,t))return null;var n=d(e),r=d(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 h=/^[0-9]+$/;function f(e,t){var n=h.test(e),r=h.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function m(e,t,n){return new p(e,n).compare(new p(t,n))}function g(e,t,n){return m(e,t,n)>0}function y(e,t,n){return m(e,t,n)<0}function b(e,t,n){return 0===m(e,t,n)}function v(e,t,n){return 0!==m(e,t,n)}function S(e,t,n){return m(e,t,n)>=0}function E(e,t,n){return m(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 b(e,n,r);case"!=":return v(e,n,r);case">":return g(e,n,r);case">=":return S(e,n,r);case"<":return y(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===w?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=m,t.compareLoose=function(e,t){return m(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 m(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=g,t.lt=y,t.eq=b,t.neq=v,t.gte=S,t.lte=E,t.cmp=x,t.Comparator=C;var w={};function L(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof L)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new L(e.raw,t);if(e instanceof C)return new L(e.value,t);if(!(this instanceof L))return new L(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function R(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 I(e){return!e||"x"===e.toLowerCase()||"*"===e}function q(e,t,n,r,o,i,a,s,l,c,u,d,p){return((t=I(n)?"":I(r)?">="+n+".0.0":I(o)?">="+n+"."+r+".0":">="+t)+" "+(s=I(l)?"":I(c)?"<"+(+l+1)+".0.0":I(u)?"<"+l+"."+(+c+1)+".0":d?"<="+l+"."+c+"."+u+"-"+d:"<="+s)).trim()}function k(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!==w&&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 O(e,t,n){try{t=new L(t,n)}catch(e){return!1}return t.test(e)}function _(e,t,n,r){var o,i,a,s,l;switch(e=new p(e,r),t=new L(t,r),n){case">":o=g,i=E,a=y,s=">",l=">=";break;case"<":o=y,i=S,a=g,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(O(e,t,r))return!1;for(var c=0;c<t.set.length;++c){var u=t.set[c],d=null,h=null;if(u.forEach((function(e){e.semver===w&&(e=new C(">=0.0.0")),d=d||e,h=h||e,o(e.semver,d.semver,r)?d=e:a(e.semver,h.semver,r)&&(h=e)})),d.operator===s||d.operator===l)return!1;if((!h.operator||h.operator===s)&&i(e,h.semver))return!1;if(h.operator===l&&a(e,h.semver))return!1}return!0}C.prototype.parse=function(e){var t=this.options.loose?i[s.COMPARATORLOOSE]:i[s.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=w},C.prototype.toString=function(){return this.value},C.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===w||e===w)return!0;if("string"==typeof e)try{e=new p(e,this.options)}catch(e){return!1}return x(e,this.operator,this.semver,this.options)},C.prototype.intersects=function(e,t){if(!(e instanceof C))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new L(e.value,t),O(this.value,n,t));if(""===e.operator)return""===e.value||(n=new L(this.value,t),O(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=x(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=x(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||o||i&&a||s||l},t.Range=L,L.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},L.prototype.toString=function(){return this.range},L.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[s.HYPHENRANGELOOSE]:i[s.HYPHENRANGE];e=e.replace(r,q),n("hyphen replace",e),e=e.replace(i[s.COMPARATORTRIM],"$1$2$3"),n("comparator trim",e,i[s.COMPARATORTRIM]),e=(e=(e=e.replace(i[s.TILDETRIM],"$1~")).replace(i[s.CARETTRIM],"$1^")).split(/\s+/).join(" ");var o=t?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],a=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?i[s.CARETLOOSE]:i[s.CARET];return e.replace(r,(function(t,r,o,i,a){var s;return n("caret",e,t,r,o,i,a),I(r)?s="":I(o)?s=">="+r+".0.0 <"+(+r+1)+".0.0":I(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?i[s.TILDELOOSE]:i[s.TILDE];return e.replace(r,(function(t,r,o,i,a){var s;return n("tilde",e,t,r,o,i,a),I(r)?s="":I(o)?s=">="+r+".0.0 <"+(+r+1)+".0.0":I(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?i[s.XRANGELOOSE]:i[s.XRANGE];return e.replace(r,(function(r,o,i,a,s,l){n("xRange",e,r,o,i,a,s,l);var c=I(i),u=c||I(a),d=u||I(s),p=d;return"="===o&&p&&(o=""),l=t.includePrerelease?"-0":"",c?r=">"===o||"<"===o?"<0.0.0-0":"*":o&&p?(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:d&&(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(i[s.STAR],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(e){return!!e.match(o)}))),a=a.map((function(e){return new C(e,this.options)}),this)},L.prototype.intersects=function(e,t){if(!(e instanceof L))throw new TypeError("a Range is required");return this.set.some((function(n){return R(n,t)&&e.set.some((function(e){return R(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new L(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},L.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new p(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(k(this.set[t],e,this.options))return!0;return!1},t.satisfies=O,t.maxSatisfying=function(e,t,n){var r=null,o=null;try{var i=new L(t,n)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(r&&-1!==o.compare(e)||(o=new p(r=e,n)))})),r},t.minSatisfying=function(e,t,n){var r=null,o=null;try{var i=new L(t,n)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(r&&1!==o.compare(e)||(o=new p(r=e,n)))})),r},t.minVersion=function(e,t){e=new L(e,t);var n=new p("0.0.0");if(e.test(n))return n;if(n=new p("0.0.0-0"),e.test(n))return n;n=null;for(var r=0;r<e.set.length;++r){e.set[r].forEach((function(e){var t=new p(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!g(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new L(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return _(e,t,"<",n)},t.gtr=function(e,t,n){return _(e,t,">",n)},t.outside=_,t.prerelease=function(e,t){var n=d(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new L(e,n),t=new L(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof p)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=i[s.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),i[s.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;i[s.COERCERTL].lastIndex=-1}else n=e.match(i[s.COERCE]);if(null===n)return null;return d(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}}(0,th.exports);var nh=th.exports;const rh={};function oh(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)||nh.satisfies(e,i.deps.properties),supernova:()=>async function(e,t,n,r){let{config:o}=n;const i="".concat(e,"__").concat(t);if(!rh[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);rh[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 rh[i]}(a.name,a.version,t,o.load).then((e=>(n=n||eh(e,t.public.galaxy),r=JSON.stringify(n.qae.properties.initial),n))),initialProperties(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.supernova().then((()=>{const n=$({qInfo:{qType:a.name},visualization:a.name,version:a.version,showTitles:!0},JSON.parse(r));return t?($e(!0,n,e),n):$($({},n),e)}))}};return a}function ih(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]=oh({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 ah(e){let{halo:t,parent:n}=e;const r={},o=n||{get:()=>{}};return{register:(e,n)=>{r[e.name]||(r[e.name]=ih(e.name,t)),r[e.name].register(e.version,n)},getSupportedVersion:(e,t)=>{if(r[e])return r[e].getMatchingVersionFromProperties(t)},get(e){const{name:t}=e;let{version:n}=e;if(r[t]){if(!r[t].versions[n]){n=Object.keys(r[t].versions)[0]}}else this.register({name:t,version:n});return r[t].get(n)||o.get(e)},getList:()=>Object.keys(r).map((e=>({name:e,versions:Object.keys(r[e].versions).map((e=>"undefined"===e?void 0:e))}))),clearFromCache:e=>{r[e]&&(r[e]=void 0),function(e){Object.keys(rh).forEach((t=>{t.split("__")[0]===e&&(rh[t]=void 0)}))}(e)}}}const sh={context:{},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.context={theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1};const lh=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return $($({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),e)},ch=function(){return[...arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],...arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]].filter(((e,t,n)=>n.indexOf(e)===t))};var uh=function e(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=X(n.context.language);function o(e,i){if(i)return o.createConfiguration(i)(e);let a=$($({},n.context),{},{translator:r.translator});const[s]=function(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","4.1.0"),s.setAttribute("data-app-id",r.id),document.body.appendChild(s),o&&ki(o),ht.createRoot(s).render(t.createElement(Oi,{ref:a,app:r,initialContext:o,renderCallback:n}));const l={},c=[];return[{toggleFocusOfCells(e){Object.keys(l).forEach((t=>{l[t].current.toggleFocus(t===e)}))},cells:l,addCell(e,t){l[e]=t},removeCell(e){delete l[e]},add(e){(async()=>{await i,c.push(e),a.current.setComps(c)})()},remove(e){(async()=>{await i;const t=c.indexOf(e);-1!==t&&c.splice(t,1),a.current.setComps(c)})()},setMuiThemeName(e){(async()=>{await i,a.current.setMuiThemeName(e)})()},context(e){(async()=>{await i,e&&ki(e),a.current.setContext(e)})()},getAppSelections:async()=>(await i,a.current.getAppSelections())},a,i]}({app:e,context:a}),l=function(){let{themes:e=[],loadTheme:t,root:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=ct();return{setTheme:async o=>{let i=e.filter((e=>e.id===o))[0],a="dark"===o?"dark":"light";if(!i&&t&&(i={load:t}),i&&i.load)try{const e=await Promise.race([i.load(o),ut(dt,{__timedOut:!0})]);e.__timedOut||(a="dark"===e.type?"dark":"light",r.internalAPI.setTheme(e,o),n.setMuiThemeName(a))}catch(e){}else r.internalAPI.setTheme({type:a},o),n.setMuiThemeName(a)},externalAPI:r.externalAPI}}({themes:n.themes,loadTheme:n.loadTheme,root:s});a.themeApi=l.externalAPI;const c={galaxy:{translator:r.translator,flags:Fd(n.flags),deviceType:pt(n.context.deviceType),anything:n.anything},theme:l.externalAPI,translator:r.translator,nebbie:null},u={app:e,root:s,config:n,public:c,context:a,types:null},d=ah({halo:u});n.types.forEach((e=>d.register({name:e.name,version:e.version},{meta:e.meta,load:e.load})));let p=l.setTheme(n.context.theme),h=null,f=null;const g={render:async e=>(await p,e.id?jd(e,u):async function(e,t){let{type:n,version:r,fields:o,properties:i,options:a,plugins:s,element:l,extendProperties:c}=e,u={};const d=[];let p;try{const e=t.types.get({name:n,version:r});u=await e.initialProperties(i,c);const a=await e.supernova();o&&await Eu({sn:a,properties:u,fields:o,children:d},t),i&&a&&a.qae.properties.onChange&&a.qae.properties.onChange.call({},u)}catch(e){p=e,u={qInfo:{qType:n},visualization:n}}const h=await t.app.createSessionObject(u);d.length>0&&await h.setFullPropertyTree({qProperty:u,qChildren:d}),Hi.set(h.id,h);const f=$i(h);return Dd(h,{options:a,plugins:s,element:l},t,p,(async()=>{await t.app.destroySessionObject(h.id),f()}))}(e,u)),create:async e=>Ad(e,u,!1),generateProperties:async e=>Ad(e,u,!0),context:async e=>{let t;["theme","language","constraints","interactions","keyboardNavigation"].forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==a[n]&&(t||(t={}),t[n]=e[n])})),t&&(a=$($($({},a),t),{},{translator:r.translator}),t.theme&&(p=l.setTheme(t.theme),await p),t.language&&u.public.translator.language(t.language),s.context(a))},selections:async()=>(h||(h={mount(n){f||(f=function(e){let{element:n,app:r}=e;return m.createPortal(t.createElement(Dc,{app:r}),n,Tc())}({element:n,app:e}),s.add(f))},unmount(){f&&(s.remove(f),f=null)}}),h),field:async n=>{let r;const o="string"==typeof n?n:n.qLibraryId;if(n.qId)r=n.qId;else if(!o)throw new Error("Field identifier or object id must be provided");const i={fieldName:o,async mount(a){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!a)throw new Error("Element for ".concat(o||r," not provided"));if(this._instance)throw new Error("Field or object ".concat(o||r," already mounted"));const c=()=>i.emit("selectionActivated"),u=()=>i.emit("selectionDeactivated");return new Promise((o=>{this._instance=function(e){let{element:n,app:r,fieldIdentifier:o,qId:i,stateName:a="$",options:s={},renderedCallback:l}=e;return m.createPortal(t.createElement(su,{app:r,element:n,fieldIdentifier:o,qId:i,stateName:a,options:s,renderedCallback:l}),n,Tc())}({element:a,app:e,fieldIdentifier:n,qId:r,options:au($({onSelectionActivated:c,onSelectionDeactivated:u},l)),stateName:l.stateName||"$",renderedCallback:o}),s.add(this._instance)}))},unmount(){this._instance&&(s.remove(this._instance),this._instance=null)}};return ac(i),i},getRegisteredTypes:d.getList,__DO_NOT_USE__:{types:d,popover(n,r,o){g._popoverInstance&&(s.remove(g._popoverInstance),g._popoverInstance=null);const i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=$({},lu);return $e(!0,t,e),t}($({onPopoverClose:()=>g.emit("fieldPopoverClose")},o));g._popoverInstance=t.createElement(cu,{element:n,key:Tc(),app:e,fieldIdentifier:r,options:i,stateName:o.stateName||"$"}),s.add(g._popoverInstance)}}};return u.public.nebbie=g,u.types=d,ac(g),g}return o.createConfiguration=t=>e(((e,t)=>({context:lh(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:$({},t.snapshot||e.snapshot),types:ch(e.types,t.types),themes:ch(e.themes,t.themes),flags:lh(e.flags,t.flags),anything:lh(e.anything,t.anything)}))(n,t)),o.config=n,o}(sh);function dh(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}const ph=globalThis.crypto||{getRandomValues:()=>123456};function hh(){return e=>{const t=$e({},e);t.qInfo=t.qInfo||{},t.qInfo.qId=t.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^ph.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))));const n=t._mock;let r=t;return n&&(delete t._mock,r=$e({},t,n)),Promise.resolve($({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(r),getProperties:()=>Promise.resolve(t),getEffectiveProperties:()=>Promise.resolve(t),id:t.qInfo.qId},t))}}const fh=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},mh=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=fh(e,{defaultValue:t,args:i});return n?new Promise((e=>{setTimeout((()=>e(s)),r)})):s}},gh=["id","session"],yh=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function bh(e){return!yh.includes(e)}function vh(e){const t=fh(e.getLayout);return t.qInfo&&t.qInfo.qId}function Sh(e,t){return e.reduce(((e,n)=>$($({},e),function(e,t){let n=vh(e);const{delay:r}=t,{id:o,session:i}=e,a=K(e,gh);if(o&&n&&o!==n)throw new Error("Generic object has multiple IDs, qInfo.qId: ".concat(n,", id: ").concat(o));return n=n||o||"object - ".concat(+Date.now()),{[n]:$($({id:n,session:fh(i,{defaultValue:!0}),on:()=>{},once:()=>{}},Object.entries(a).reduce(((e,t)=>{let[n,o]=t;return $($({},e),{},{[n]:mh(o,{async:bh(n),delay:r})})}),{})),{},{genericType:e.type})}}(n,t))),{})}function Eh(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!vh(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function xh(){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(Eh);const n=Sh(e,t);return async e=>Promise.resolve(n[e])}function Ch(){return()=>Promise.resolve({id:"app-layout"})}const wh={fromGenericObjects(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new dh,r=new hh,o=new xh(e,t),i=new Ch,a={id:"app - ".concat(+Date.now()),session:n,createSessionObject:r,getObject:o,getAppLayout:i};return Promise.resolve(a)}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}},Lh={generator:eh,hook:dp,theme:ct,locale:Z};export{wh as EnigmaMocker,Lh as __DO_NOT_USE__,Pu as conversion,uh as embed,Mp as onContextMenu,Np as onTakeSnapshot,_p as useAction,Cp as useApp,Ep as useAppLayout,Tp as useConstraints,kp as useDeviceType,hp as useEffect,yp as useElement,Ip as useEmbed,jp as useEmitter,wp as useGlobal,Pp as useImperativeHandle,Dp as useInteractionState,Fp as useKeyboard,vp as useLayout,mp as useMemo,xp as useModel,Ap as useOptions,Op as usePlugins,gp as usePromise,bp as useRect,zp as useRenderState,Lp as useSelections,Sp as useStaleLayout,pp as useState,Rp as useTheme,qp as useTranslator};
|
|
14
|
+
*/"object"==typeof document&&(rr=function(e){var t=e.key;if(Un&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,i=e.stylisPlugins||Gn,a={},s=[];Un&&(r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)})));var l,c=[Wn,Bn];if(Un){var u,d=[Nn,(l=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],p=Mn(c.concat(i,d));o=function(e,t,n,r){u=n,Pn(kn(e?e+"{"+t.styles+"}":t.styles),p),r&&(y.inserted[t.name]=!0)}}else{var h=[Nn],f=Mn(c.concat(i,h)),m=$n(i)(t),g=function(e,t){var n=t.name;return void 0===m[n]&&(m[n]=Pn(kn(e?e+"{"+t.styles+"}":t.styles),f)),m[n]};o=function(e,t,n,r){var o=t.name,i=g(e,t);return void 0===y.compat?(r&&(y.inserted[o]=!0),i):r?void(y.inserted[o]=i):i}}var y={key:t,sheet:new Bt({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 ir(){return ir=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},ir.apply(this,arguments)}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 sr=["values","unit","step"],lr=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)=>ir({},e,{[t.key]:t.val})),{})};function cr(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=ar(e,sr),i=lr(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 ir({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 ur={borderRadius:4};function dr(e,t){return t?yt(e,t,{clone:!1}):e}const pr={xs:0,sm:600,md:900,lg:1200,xl:1536},hr={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${pr[e]}px)`};function fr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||hr;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||hr;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||pr).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function mr(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:mr(e,n)||r,t&&(o=t(o,r,e)),o}function yr(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=mr(e.theme,r)||{};return fr(e,i,(e=>{let r=gr(a,o,e);return e===r&&"string"==typeof e&&(r=gr(a,o,`${t}${"default"===e?"":vt(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const br={m:"margin",p:"padding"},vr={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Sr={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},xr=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!Sr[e])return[e];e=Sr[e]}const[t,n]=e.split(""),r=br[t],o=vr[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),Er=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Cr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function wr(e,t,n,r){var o;const i=null!=(o=mr(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 Lr(e){return wr(e,"spacing",8)}function Rr(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 Ir(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=Rr(t,n),e)),{})}(xr(n),r);return fr(e,e[n],o)}function Or(e,t){const n=Lr(e.theme);return Object.keys(e).map((r=>Ir(e,t,r,n))).reduce(dr,{})}function qr(e){return Or(e,Er)}function kr(e){return Or(e,Cr)}function _r(e=8){if(e.mui)return e;const t=Lr({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}function Tr(...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]?dr(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Dr(e){return"number"!=typeof e?e:`${e}px solid`}qr.propTypes={},qr.filterProps=Er,kr.propTypes={},kr.filterProps=Cr;const Ar=yr({prop:"border",themeKey:"borders",transform:Dr}),Pr=yr({prop:"borderTop",themeKey:"borders",transform:Dr}),Nr=yr({prop:"borderRight",themeKey:"borders",transform:Dr}),Mr=yr({prop:"borderBottom",themeKey:"borders",transform:Dr}),zr=yr({prop:"borderLeft",themeKey:"borders",transform:Dr}),jr=yr({prop:"borderColor",themeKey:"palette"}),Fr=yr({prop:"borderTopColor",themeKey:"palette"}),Wr=yr({prop:"borderRightColor",themeKey:"palette"}),Br=yr({prop:"borderBottomColor",themeKey:"palette"}),Hr=yr({prop:"borderLeftColor",themeKey:"palette"}),Ur=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=wr(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:Rr(t,e)});return fr(e,e.borderRadius,n)}return null};Ur.propTypes={},Ur.filterProps=["borderRadius"],Tr(Ar,Pr,Nr,Mr,zr,jr,Fr,Wr,Br,Hr,Ur);const $r=e=>{if(void 0!==e.gap&&null!==e.gap){const t=wr(e.theme,"spacing",8),n=e=>({gap:Rr(t,e)});return fr(e,e.gap,n)}return null};$r.propTypes={},$r.filterProps=["gap"];const Gr=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=wr(e.theme,"spacing",8),n=e=>({columnGap:Rr(t,e)});return fr(e,e.columnGap,n)}return null};Gr.propTypes={},Gr.filterProps=["columnGap"];const Vr=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=wr(e.theme,"spacing",8),n=e=>({rowGap:Rr(t,e)});return fr(e,e.rowGap,n)}return null};Vr.propTypes={},Vr.filterProps=["rowGap"];function Kr(e,t){return"grey"===t?t:e}Tr($r,Gr,Vr,yr({prop:"gridColumn"}),yr({prop:"gridRow"}),yr({prop:"gridAutoFlow"}),yr({prop:"gridAutoColumns"}),yr({prop:"gridAutoRows"}),yr({prop:"gridTemplateColumns"}),yr({prop:"gridTemplateRows"}),yr({prop:"gridTemplateAreas"}),yr({prop:"gridArea"}));function Zr(e){return e<=1&&0!==e?100*e+"%":e}Tr(yr({prop:"color",themeKey:"palette",transform:Kr}),yr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Kr}),yr({prop:"backgroundColor",themeKey:"palette",transform:Kr}));const Jr=yr({prop:"width",transform:Zr}),Xr=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])||pr[t]||Zr(t)}};return fr(e,e.maxWidth,t)}return null};Xr.filterProps=["maxWidth"];const Yr=yr({prop:"minWidth",transform:Zr}),Qr=yr({prop:"height",transform:Zr}),eo=yr({prop:"maxHeight",transform:Zr}),to=yr({prop:"minHeight",transform:Zr});yr({prop:"size",cssProperty:"width",transform:Zr}),yr({prop:"size",cssProperty:"height",transform:Zr});Tr(Jr,Xr,Yr,Qr,eo,to,yr({prop:"boxSizing"}));var no={border:{themeKey:"borders",transform:Dr},borderTop:{themeKey:"borders",transform:Dr},borderRight:{themeKey:"borders",transform:Dr},borderBottom:{themeKey:"borders",transform:Dr},borderLeft:{themeKey:"borders",transform:Dr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ur},color:{themeKey:"palette",transform:Kr},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Kr},backgroundColor:{themeKey:"palette",transform:Kr},p:{style:kr},pt:{style:kr},pr:{style:kr},pb:{style:kr},pl:{style:kr},px:{style:kr},py:{style:kr},padding:{style:kr},paddingTop:{style:kr},paddingRight:{style:kr},paddingBottom:{style:kr},paddingLeft:{style:kr},paddingX:{style:kr},paddingY:{style:kr},paddingInline:{style:kr},paddingInlineStart:{style:kr},paddingInlineEnd:{style:kr},paddingBlock:{style:kr},paddingBlockStart:{style:kr},paddingBlockEnd:{style:kr},m:{style:qr},mt:{style:qr},mr:{style:qr},mb:{style:qr},ml:{style:qr},mx:{style:qr},my:{style:qr},margin:{style:qr},marginTop:{style:qr},marginRight:{style:qr},marginBottom:{style:qr},marginLeft:{style:qr},marginX:{style:qr},marginY:{style:qr},marginInline:{style:qr},marginInlineStart:{style:qr},marginInlineEnd:{style:qr},marginBlock:{style:qr},marginBlockStart:{style:qr},marginBlockEnd:{style:qr},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:$r},rowGap:{style:Vr},columnGap:{style:Gr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Zr},maxWidth:{style:Xr},minWidth:{transform:Zr},height:{transform:Zr},maxHeight:{transform:Zr},minHeight:{transform:Zr},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const ro=function(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:s,transform:l,style:c}=i;if(null==t)return null;if("typography"===s&&"inherit"===t)return{[e]:t};const u=mr(n,s)||{};if(c)return c(o);return fr(o,t,(t=>{let n=gr(u,l,t);return t===n&&"string"==typeof t&&(n=gr(u,l,`${e}${"default"===t?"":vt(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:no;function s(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=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(o);let l=o;return Object.keys(r).forEach((n=>{const o=(s=r[n],c=i,"function"==typeof s?s(c):s);var s,c;if(null!=o)if("object"==typeof o)if(a[n])l=dr(l,e(n,o,i,a));else{const e=fr({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?l=dr(l,e):l[n]=t({sx:o,theme:i})}else l=dr(l,e(n,o,i,a))})),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(s):s(o)}}();ro.filterProps=["sx"];var oo=ro;const io=["breakpoints","palette","spacing","shape"];function ao(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=ar(e,io),s=cr(n),l=_r(o);let c=yt({breakpoints:s,direction:"ltr",components:{},palette:ir({mode:"light"},r),spacing:l,shape:ir({},ur,i)},a);return c=t.reduce(((e,t)=>yt(e,t)),c),c.unstable_sxConfig=ir({},no,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return oo({sx:e,theme:this})},c}function so(t=null){const n=e.useContext(y);return n&&(r=n,0!==Object.keys(r).length)?n:t;var r}const lo=ao();function co(e=lo){return so(e)}function uo(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=uo(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function po(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=uo(e))&&(r&&(r+=" "),r+=t);return r}const ho=["variant"];function fo(e){return 0===e.length}function mo(e){const{variant:t}=e,n=ar(e,ho);let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?fo(r)?e[t]:vt(e[t]):`${fo(r)?t:vt(t)}${vt(e[t].toString())}`})),r}const go=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function yo(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const bo=ao();function vo({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function So(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Dt(t.components[n].defaultProps,r):r}function xo(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function Eo(e){if(e.type)return e;if("#"===e.charAt(0))return Eo(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(bt(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(bt(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function Co(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 wo(e){let t="hsl"===(e=Eo(e)).type||"hsla"===e.type?Eo(function(e){e=Eo(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])),Co({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))}var Lo=e.createContext(null);function Ro(){return e.useContext(Lo)}var Io="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Oo(t){const{children:n,theme:r}=t,o=Ro(),i=e.useMemo((()=>{const e=null===o?r:function(e,t){if("function"==typeof t)return t(e);return{...e,...t}}(o,r);return null!=e&&(e[Io]=null!==o),e}),[r,o]);return nr.jsx(Lo.Provider,{value:i,children:n})}const qo={};function ko(t,n,r,o=!1){return e.useMemo((()=>{const e=t&&n[t]||n;if("function"==typeof r){const i=r(e),a=t?ir({},n,{[t]:i}):i;return o?()=>a:a}return ir({},n,t?{[t]:r}:r)}),[t,n,r,o])}function _o(e){const{children:t,theme:n,themeId:r}=e,o=so(qo),i=Ro()||qo,a=ko(r,o,n),s=ko(r,i,n,!0);return nr.jsx(Oo,{theme:s,children:nr.jsx(y.Provider,{value:a,children:t})})}const To=["defaultProps","mixins","overrides","palette","props","styleOverrides"],Do=["type","mode"];var Ao={black:"#000",white:"#fff"};var Po={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 No={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 Mo={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 zo={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 jo={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 Fo={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 Wo={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 Bo=["mode","contrastThreshold","tonalOffset"],Ho={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:Ao.white,default:Ao.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}},Uo={text:{primary:Ao.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:Ao.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 $o(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=Eo(e),t=xo(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 Co(e)}(e.main,o):"dark"===t&&(e.dark=function(e,t){if(e=Eo(e),t=xo(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 Co(e)}(e.main,i)))}function Go(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=Wt(e,Bo),i=e.primary||function(e="light"){return"dark"===e?{main:jo[200],light:jo[50],dark:jo[400]}:{main:jo[700],light:jo[400],dark:jo[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:No[200],light:No[50],dark:No[400]}:{main:No[500],light:No[300],dark:No[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Mo[500],light:Mo[300],dark:Mo[700]}:{main:Mo[700],light:Mo[400],dark:Mo[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:Fo[400],light:Fo[300],dark:Fo[700]}:{main:Fo[700],light:Fo[500],dark:Fo[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:Wo[400],light:Wo[300],dark:Wo[700]}:{main:Wo[800],light:Wo[500],dark:Wo[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:zo[400],light:zo[300],dark:zo[700]}:{main:"#ed6c02",light:zo[500],dark:zo[900]}}(t);function d(e){const t=function(e,t){const n=wo(e),r=wo(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,Uo.text.primary)>=n?Uo.text.primary:Ho.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Ft({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(bt(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(bt(12,t?` (${t})`:"",JSON.stringify(e.main)));return $o(e,"light",o,r),$o(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},h={dark:Uo,light:Ho};return yt(Ft({common:Ft({},Ao),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:c,name:"success"}),grey:Po,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},h[t]),o)}const Vo=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Ko={textTransform:"uppercase"},Zo='"Roboto", "Helvetica", "Arial", sans-serif';function Jo(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Zo,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,p=Wt(n,Vo),h=o/14,f=d||(e=>e/c*h+"rem"),m=(e,t,n,o,i)=>{return Ft({fontFamily:r,fontWeight:e,fontSize:f(t),lineHeight:n},r===Zo?{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,Ko),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Ko),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return yt(Ft({htmlFontSize:c,pxToRem:f,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function Xo(...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 Yo=["none",Xo(0,2,1,-1,0,1,1,0,0,1,3,0),Xo(0,3,1,-2,0,2,2,0,0,1,5,0),Xo(0,3,3,-2,0,3,4,0,0,1,8,0),Xo(0,2,4,-1,0,4,5,0,0,1,10,0),Xo(0,3,5,-1,0,5,8,0,0,1,14,0),Xo(0,3,5,-1,0,6,10,0,0,1,18,0),Xo(0,4,5,-2,0,7,10,1,0,2,16,1),Xo(0,5,5,-3,0,8,10,1,0,3,14,2),Xo(0,5,6,-3,0,9,12,1,0,3,16,2),Xo(0,6,6,-3,0,10,14,1,0,4,18,3),Xo(0,6,7,-4,0,11,15,1,0,4,20,3),Xo(0,7,8,-4,0,12,17,2,0,5,22,4),Xo(0,7,8,-4,0,13,19,2,0,5,24,4),Xo(0,7,9,-4,0,14,21,2,0,5,26,4),Xo(0,8,9,-5,0,15,22,2,0,6,28,5),Xo(0,8,10,-5,0,16,24,2,0,6,30,5),Xo(0,8,11,-5,0,17,26,2,0,6,32,5),Xo(0,9,11,-5,0,18,28,2,0,7,34,6),Xo(0,9,12,-6,0,19,29,2,0,7,36,6),Xo(0,10,13,-6,0,20,31,3,0,8,38,7),Xo(0,10,13,-6,0,21,33,3,0,8,40,7),Xo(0,10,14,-6,0,22,35,3,0,8,42,7),Xo(0,11,14,-7,0,23,36,3,0,9,44,8),Xo(0,11,15,-7,0,24,38,3,0,9,46,8)];const Qo=["duration","easing","delay"],ei={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)"},ti={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ni(e){return`${Math.round(e)}ms`}function ri(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function oi(e){const t=Ft({},ei,e.easing),n=Ft({},ti,e.duration);return Ft({getAutoHeightDuration:ri,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return Wt(r,Qo),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:ni(o)} ${i} ${"string"==typeof a?a:ni(a)}`)).join(",")}},e,{easing:t,duration:n})}var ii={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const ai=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function si(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=Wt(e,ai);if(e.vars)throw new Error(bt(18));const s=Go(r),l=ao(e);let c=yt(l,{mixins:(u=l.breakpoints,d=n,Ft({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:Yo.slice(),typography:Jo(s,i),transitions:oi(o),zIndex:Ft({},ii)});var u,d;return c=yt(c,a),c=t.reduce(((e,t)=>yt(e,t)),c),c.unstable_sxConfig=Ft({},no,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return oo({sx:e,theme:this})},c}var li=si();function ci(){const e=co(li);return e[jt]||e}function ui({props:e,name:t}){return function({props:e,name:t,defaultTheme:n,themeId:r}){let o=co(n);return r&&(o=o[r]||o),So({theme:o,name:t,props:e})}({props:e,name:t,defaultTheme:li,themeId:jt})}const di=function(e={}){const{themeId:t,defaultTheme:n=bo,rootShouldForwardProp:r=yo,slotShouldForwardProp:o=yo}=e,i=e=>oo(ir({},e,{theme:vo(ir({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{((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:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:d}=a,p=ar(a,go),h=void 0!==c?c:l&&"Root"!==l||!1,f=u||!1;let m=yo;"Root"===l?m=r:l?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=function(e,t){return W(e,t)}(e,ir({shouldForwardProp:m,label:undefined},p)),y=(r,...o)=>{const a=o?o.map((e=>"function"==typeof e&&e.__emotion_real!==e?r=>e(ir({},r,{theme:vo(ir({},r,{defaultTheme:n,themeId:t}))})):e)):[];let l=r;s&&d&&a.push((e=>{const r=vo(ir({},e,{defaultTheme:n,themeId:t})),o=((e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null)(s,r);if(o){const t={};return Object.entries(o).forEach((([n,o])=>{t[n]="function"==typeof o?o(ir({},e,{theme:r})):o})),d(e,t)}return null})),s&&!h&&a.push((e=>{const r=vo(ir({},e,{defaultTheme:n,themeId:t}));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[mo(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=mo(e.props);r[t]=e.style})),r})(s,r),r,s)})),f||a.push(i);const c=a.length-o.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");l=[...r,...e],l.raw=[...r.raw,...e]}else"function"==typeof r&&r.__emotion_real!==r&&(l=e=>r(ir({},e,{theme:vo(ir({},e,{defaultTheme:n,themeId:t}))})));const u=g(l,...a);return e.muiName&&(u.muiName=e.muiName),u};return g.withConfig&&(y.withConfig=g.withConfig),y}}({themeId:jt,defaultTheme:li,rootShouldForwardProp:e=>yo(e)&&"classes"!==e});var pi=di;const hi=["theme"];function fi(e){let{theme:t}=e,n=Wt(e,hi);const r=t[jt];return nr.jsx(_o,Ft({},n,{themeId:r?jt:void 0,theme:r||t}))}function mi(){return mi=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},mi.apply(this,arguments)}function gi(e,t){return gi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},gi(e,t)}function yi(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,gi(e,t)}function bi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var vi=zt("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"]),Si={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 xi="#009845",Ei="#3F8AB3",Ci="#ffffff",wi="#404040",Li="#333333",Ri="#1A1A1A",Ii={mode:"light",palette:{primary:{main:wi,contrastText:Ci},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:wi,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)"},action:{active:"#545454",hover:"rgba(0, 0, 0, 0.03)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.05)",disabled:"rgba(0, 0, 0, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},background:{paper:Ci,default:Ci,lightest:Ci,lighter:"#FBFBFB",darker:"#F2F2F2",darkest:"#E6E6E6"},custom:{focusBorder:Ei,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)"},selected:{main:xi,alternative:"#E4E4E4",excluded:"#BEBEBE",mainContrastText:Ci,alternativeContrastText:wi,excludedContrastText:wi},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)"}}},Oi={mode:"dark",palette:{primary:{main:Li,contrastText:Ci},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:Ci,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)"},action:{active:Ci,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:wi,lighter:Li,darker:"#262626",darkest:Ri},custom:{focusBorder:Ei,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)"},selected:{main:xi,alternative:Li,excluded:Ri,mainContrastText:Ci,alternativeContrastText:Ci,excludedContrastText:Ci},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)"}}},qi={},ki=e=>({MuiTypography:{root:{color:e.palette.text.primary}},MuiGrid:{variants:[{props:{alignItems:"center"},style:{"align-items":"center"}}]},MuiButtonBase:{root:{borderRadius:2,border:"1px solid transparent","&:focus":{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)}}},MuiIconButton:{root:{padding:7,borderRadius:2,border:"1px solid transparent","&:hover":{backgroundColor:e.palette.btn.hover},"&:focus-visible":{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)},"&:active":{borderColor:"transparent",boxShadow:"none",backgroundColor:e.palette.btn.active},"&:not(:active):not(:focus-visible)":{borderColor:"transparent",boxShadow:"none"}}},MuiOutlinedInput:{root:{backgroundColor:e.palette.custom.inputBackground,"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.btn.border},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.custom.focusBorder,borderWidth:2}}},MuiButton:{outlined:{padding:"3px 11px",["&.".concat(vi.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(vi.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(vi.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(vi.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function _i(e){let t=Ii,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=Oi));const r=JSON.stringify(t);if(qi[r])return qi[r];const o={palette:$($({type:t.mode},Si.palette),t.palette),typography:$({},Si.typography),shadows:Si.shadows,props:$({},Si.props),shape:$({},Si.shape)};return qi[r]=si(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:i={},styleOverrides:a={}}=e,s=Ft({},Wt(e,To),{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=_r(e.spacing);const l=cr(e.breakpoints||{}),c=s.spacing;s.mixins=Ft({gutters:(e={})=>Ft({paddingLeft:c(2),paddingRight:c(2)},e,{[l.up("sm")]:Ft({paddingLeft:c(3),paddingRight:c(3)},e[l.up("sm")])})},n);const{type:u,mode:d}=o,p=Wt(o,Do),h=d||u||"light";return s.palette=Ft({text:{hint:"dark"===h?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:h,type:h},p),s}($($({},o),{},{overrides:ki(o)}))),qi[r].name=n,qi[r]}Pt.configure((e=>"njs-".concat("28e4","-").concat(e.replace("Mui",""))));var Ti=t.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null}),Di=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};const t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=[],i={get:e=>t[e],set:(n,r)=>{if(void 0===n||"object"==typeof n)throw new Error("Invalid key: ".concat(JSON.stringify(n)));return t[n]=r,e({type:"SET",value:r}),r},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));t[e]=null},dispatch:e=>{o.forEach((n=>n(e?{}:t)))}};return[()=>{const[,e]=n(t);return r((()=>(o.push(e),()=>{const t=o.indexOf(e);o.splice(t,1)})),[e]),[i]},i]};const[Ai,Pi]=Di({}),[Ni,Mi]=Di({}),[zi,ji]=Di({}),[Fi,Wi]=Di({});function Bi(e){if(!e.session)return[];const[t]=Ai(),n=e?e.id:null;let o=t.get(n);return r((()=>{e&&!o&&(o=function(e){let{app:t}=e;const n="".concat(t.id),r=async function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=Wi.get(n);t&&(await t.endSelections(e),Wi.clear(n),ji.get(t.id).emit("deactivated"))},o={begin:async function(e,o){let i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e===Wi.get(n))return;r(i),Wi.set(n,e);const a=Array.isArray(o)?o:[o],s=async r=>{try{await e.beginSelections(a),Wi.set(n,e)}catch(e){6003!==e.code||r?Wi.clear(n):(await t.abortModal(i),s(!0))}};await s()},end:r};Mi.set(n,o);const i={model:t,isInModal:()=>!!Wi.get(n),isModal:e=>e?Wi.get(n)===e:!!Wi.get(n),forward:()=>o.end().then((()=>t.forward())),back:()=>o.end().then((()=>t.back())),clear:()=>o.end().then((()=>t.clearAll())),clearField(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$";return o.end().then((()=>t.getField(e,n).then((e=>e.clear()))))}};return i}({app:e}),t.set(n,o),t.dispatch(!0))}),[e]),[o]}const Hi={active:!0,select:!0,passive:!0,edit:!1};function Ui(e){const t={},n={},r=function(e){const{constraints:t={},interactions:n={}}=e;if(Object.keys(n).length>0)return n;const r={};return Object.keys(t).forEach((e=>{r[e]=!t[e]})),r}(e);Object.keys(Hi).forEach((e=>{void 0!==r[e]?(t[e]=r[e],n[e]=!r[e]):(t[e]=Hi[e],n[e]=!Hi[e])})),e.constraints=n,e.interactions=t}const $i=o(((e,o)=>{let{initialContext:s,app:l,renderCallback:c}=e;const[u]=Bi(l),[d,p]=n(s),[h,f]=n(),{theme:m}=i((()=>({theme:_i(h)})),[h]),[g,y]=n([]);return r((()=>{c&&c()}),[]),a(o,(()=>({setComps(e){y([...e])},setMuiThemeName:f,setContext:e=>p((t=>JSON.stringify(t)!==JSON.stringify(e)?e:t)),getAppSelections:()=>u})),[]),t.createElement(or,{injectFirst:!0},t.createElement(fi,{theme:m},t.createElement(Ti.Provider,{value:d},g)))}));const[Gi,Vi]=Di({}),[Ki,Zi]=Di({}),[Ji,Xi]=Di({}),[Yi,Qi]=Di({}),[ea,ta]=Di({}),[,na]=Di({}),ra=e=>{let{type:t,value:n}=e;const r=na.get(n.id);na.set(n.id,{});const o=()=>{Zi.clear(n.id),ta.set(n.id,{}),ta.dispatch(!0)},i=()=>{n.removeListener("changed",o),Vi.clear(n.id),Zi.clear(n.id),Xi.clear(n.id),Qi.clear(n.id),ta.clear(n.id),na.clear(n.id)};if("SET"===t)r||(n.on("changed",o),n.once("closed",(()=>{i()})));return i},[oa,ia]=Di({},ra),aa=e=>{const t=ra({type:"SET",value:e});return()=>{t(),ia.clear(e.id)}};function sa(e,t){const o=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[i]=oa(),[a]=Ji(),[s,l]=n();let c;o&&(c=a.get(o));for(var u=arguments.length,d=new Array(u>2?u-2:0),p=2;p<u;p++)d[p-2]=arguments[p];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,...d]),[s]}const la={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function ca(e){return sa(la,e)}const ua=(e,t)=>{const{rpcResultStore:n,key:r,method:o}=t;let i;switch(t.type){case"INVALID":i=$($({},e),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":i={result:$({},t.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":i=$($({},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 da(e,t){const n=e?"".concat(e.id):null,[o]=Gi(),[i,a]=s(ua,n?o.get(n):null),[l]=ea(),[c]=Ki();let u;n&&(u=c.get(n),u||(u={},c.set(n,u)));const d=async r=>{let i=u[t];if(!i||i&&i.rpcRetry){i={rpc:e[t](),rpcRetry:!1},u[t]=i,a({type:"INVALID",method:t,key:n,model:e,rpcResultStore:o,canCancel:!0})}try{const r=await i.rpc;a({type:"VALID",result:r,key:n,method:t,model:e,rpcResultStore:o})}catch(e){15!==e.code||r||(i.rpcRetry||(i.rpcRetry=!0),d(!0))}},p={cancel:async()=>{const r=e.session.getObjectApi({handle:-1});await r.cancelRequest(u[t].rpc.requestId),a({type:"CANCELLED",key:n,method:t,model:e,rpcResultStore:o})},retry:()=>{u[t].rpcRetry=!0,d()}};return r((()=>{e&&d()}),[e,l.get(e&&e.id),n,t]),[i&&i.result,{validating:i&&i.validating,canCancel:i&&i.canCancel,canRetry:i&&i.canRetry},p]}function pa(e){return da(e,"getLayout")}function ha(e){return da(e,"getAppLayout")}function fa(){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 ma(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function ga(e){let{size:n,style:r={},viewBox:o="0 0 16 16",shapes:i=[]}=e;const a=$({fontSize:ma(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,V({key:n},o))}))))}var ya=e=>ga((e=>$($({},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 ba=e=>ga((e=>$($({},e),{},{shapes:[{type:"path",attrs:{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10ZM3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0v1.652ZM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9Zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0Z"}}]}))(e));var va=e=>ga((e=>$($({},e),{},{shapes:[{type:"path",attrs:{d:"M2.5,7 L11,7 C11.5522847,7 12,7.44771525 12,8 L12,15 C12,15.5522847 11.5522847,16 11,16 L1,16 C0.44771525,16 0,15.5522847 0,15 L0,8 C0,7.44771525 0.44771525,7 1,7 L1,4.98151367 C1,2.23029964 3.23857625,0 6,0 C8.4241995,0 10.4454541,1.71883353 10.9029715,4 L9.34209114,4 C8.9671727,2.54028848 7.9088888,1.5 6,1.5 C3.54860291,1.5 2.5,3.21561511 2.5,5.33193359 L2.5,7 Z"}}]}))(e));var Sa=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}}(),xa=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},Ea=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=xa(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},xa(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,u),Sa(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),d=l+1;d<=u&&!t(d);d++)l=d;a.push(s,l)}if(a.length)for(;a[1]-a[0]+1<r&&a[0]>0;){var p=a[0]-1;if(t(p))break;a[0]=p}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"],wa=e=>e.reduce(((e,t)=>e.concat(t)));function La(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[t]=e;return n=t.qState,!!Ca.includes(n)&&t.qElemNumber;var n}));return t.filter((e=>!1!==e))}));return wa(t)}async function Ra(e){let{selections:t,elemNumbers:n,toggle:r,isSingleSelect:o}=e;if(0===n.length)return!1;let i=!1;if(!n.some((e=>Number.isNaN(e)))){const e=n;try{i=!1!==await t.select({method:"selectListObjectValues",params:["/qListObjectDef",e,r]})}catch(e){i=!1}i||(o?t.cancel():t.clear())}return i}const Ia="RowColumn",Oa={row:"".concat(Ia,"-row"),rowBorderBottom:"".concat(Ia,"-rowBorderBottom"),column:"".concat(Ia,"-column"),fieldRoot:"".concat(Ia,"-fieldRoot"),cell:"".concat(Ia,"-cell"),labelText:"".concat(Ia,"-labelText"),labelDense:"".concat(Ia,"-labelDense"),highlighted:"".concat(Ia,"-highlighted"),checkboxLabel:"".concat(Ia,"-checkboxLabel"),icon:"".concat(Ia,"-icon"),S:"".concat(Ia,"-S"),XS:"".concat(Ia,"-XS"),A:"".concat(Ia,"-A"),X:"".concat(Ia,"-X"),frequencyCount:"".concat(Ia,"-frequencyCount"),barContainer:"".concat(Ia,"-barContainer"),bar:"".concat(Ia,"-bar"),barSelected:"".concat(Ia,"-barSelected"),barWithCheckbox:"".concat(Ia,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(Ia,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(Ia,"-excludedTextWithCheckbox")},qa=".".concat(Oa.fieldRoot),ka=e=>!(null!=e&&e.metaKey||null!=e&&e.ctrlKey);function _a(e){var t,n;let{selectionState:o,selections:i,checkboxes:a=!1,doc:s=document,loaderRef:c}=e;const u=d({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});r((()=>{var e,t;if(null===(e=c.current)||void 0===e||null===(t=e._listRef)||void 0===t||!t._outerRef)return;const n=e=>e.preventDefault(),r=e=>e.preventDefault(),o=e=>e.preventDefault(),i=c.current._listRef._outerRef;return i.addEventListener("gesturestart",n),i.addEventListener("gesturechange",r),i.addEventListener("gestureend",o),()=>{i.removeEventListener("gesturestart",n),i.removeEventListener("gesturechange",r),i.removeEventListener("gestureend",o)}}),[null===(t=c.current)||void 0===t||null===(n=t._listRef)||void 0===n?void 0:n._outerRef]);const p=()=>(o.setSelectableValuesUpdating(),Ra({selections:i,elemNumbers:u.current.elemNumbers,isSingleSelect:o.isSingleSelect,toggle:u.current.toggle})),h=(e,t)=>{const n=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 wa(t)}(o.enginePages);return function(e,t){if(!e)return[];if(e.length<=1)return e;const{min:n,max:r}=function(e,t){let n=1/0,r=-1/0;return e.forEach((e=>{const o=t.indexOf(e);n=o<n?o:n,r=o>r?o:r})),{min:n,max:r}}(e,t);return t.slice(n,r+1)}([e,t],n)},f=e=>{const{startElemNumber:t}=u.current;if(t===e)return;const n=h(u.current.startElemNumber,e);o.updateItems(n,!0,u.current.elemNumbers)},m=l((e=>{if(o.selectDisabled())return;const t=+e.target.getAttribute("data-n"),n=!o.isSingleSelect&&ka(e.nativeEvent);u.current.elemNumbers=[t],u.current.toggle=n,n||o.clearItemStates(!0),o.updateItem(t),u.current.active=!1,p()}),[]),g=l((e=>{if(0!==e.button||o.selectDisabled())return;const t=+e.currentTarget.getAttribute("data-n"),n=!o.isSingleSelect&&ka(e);u.current.isRange=!1,u.current.startElemNumber=t,u.current.elemNumbers=[t],u.current.toggle=n,u.current.active=!0,n||o.clearItemStates(!0),o.updateItem(t),o.isSingleSelect&&(u.current.active=!1,p()),((e,t)=>{(e.ctrlKey||e.metaKey)&&(t.focus(),e.preventDefault())})(e,e.currentTarget)}),[]),y=l((e=>{if(0===e.button&&u.current.active){if(u.current.active=!1,u.current.isRange){const t=+e.currentTarget.getAttribute("data-n");f(t)}p()}}),[]),b=l((e=>{0===e.button&&u.current.active&&(u.current.active=!1,p())}),[]),v=l((e=>{if(!u.current.active)return;u.current.isRange||(u.current.isRange=!0,o.isSelected(u.current.startElemNumber)||(o.updateItem(u.current.startElemNumber,!0),u.current.elemNumbers=[]));const t=+e.currentTarget.getAttribute("data-n");f(t)}),[]),S=l((e=>{var t,n,r,i;if(u.current.active||u.current.isRange||o.isSingleSelect||e.touches.length<=1)return;if(e.touches.length>2)return void p();const a=Number(null===(t=e.touches[0].target)||void 0===t||null===(n=t.closest(qa))||void 0===n?void 0:n.getAttribute("data-n")),s=Number(null===(r=e.touches[1].target)||void 0===r||null===(i=r.closest(qa))||void 0===i?void 0:i.getAttribute("data-n"));if(Number.isNaN(a)||Number.isNaN(a))return void p();u.current.active=!0;h(a,s).length<7&&(u.current.touchRangeSmall=!0),u.current.elemNumbers=[],u.current.touchElemNumbers=[a,s]}),[]),x=l((()=>{if(2!==u.current.touchElemNumbers.length)return;if(u.current.touchRangeSmall)return u.current.touchRangeSmall=!1,u.current.touchElemNumbers=[],void(u.current.active=!1);const[e,t]=u.current.touchElemNumbers;u.current.startElemNumber=e,f(t),u.current.touchElemNumbers=[],u.current.active=!1,u.current.toggle=!0,p()}),[]);r((()=>(s.addEventListener("mouseup",b),()=>{s.removeEventListener("mouseup",b)})),[b]),r((()=>{const e=()=>{o.clearItemStates(!1)},t=()=>{o.clearItemStates(!0),o.triggerStateChanged()};return i.on("clearItemStates",e),i.on("deactivated",e),i.on("cleared",t),()=>{i.removeListener("clearItemStates",e),i.removeListener("deactivated",e),i.removeListener("cleared",t)}}),[i]);const E={};return a?Object.assign(E,{onChange:m}):Object.assign(E,{onMouseUp:y,onMouseDown:g,onMouseEnter:v,onTouchStart:S,onTouchEnd:x}),{interactionEvents:E,select:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const r=!o.isSingleSelect&&ka(null==n?void 0:n.nativeEvent);r||o.clearItemStates(!0);const a=[];return o.updateItems(e,t,a),o.setSelectableValuesUpdating(),Ra({selections:i,elemNumbers:t?a:e,isSingleSelect:o.isSingleSelect,toggle:r})}}}const Ta=e=>$($({},e),{},{shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]});var Da=e=>ga(Ta(e));const Aa=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,Pa=e=>e?"A"===e.qState:null,Na=e=>{let{cell:t,checkboxes:n}=e;return(Pa(t)||Aa(t))&&n},Ma=e=>{let{column:t,histogram:n,checkboxes:r,cell:o,showGray:i}=e;const a=[t?Oa.column:Oa.row];return n||a.push(Oa.rowBorderBottom),o?(r||("XS"===o.qState?a.push(i?Oa.XS:Oa.S):"S"===o.qState||"L"===o.qState?a.push(Oa.S):i&&Pa(o)?a.push(Oa.A):i&&Aa(o)&&a.push(Oa.X)),a):[]},za=9,ja=80,Fa=10,Wa=150,Ba=40,Ha=56,Ua=20,$a="-",Ga=e=>e.filter((e=>!!e)).join(" ").trim(),Va=e=>{let{qFrequency:t,frequencyMax:n}=e;const r=String(t),o="%"===r.substring(r.length-1),i=parseFloat(o?r:t);return"".concat(o?i:i/n*100,"%")},Ka=e=>e||$a,Za=e=>{let{theme:t}=e;return{background:t.palette.selected.main,color:t.palette.selected.mainContrastText,"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder),outline:"none"},"& $cell":{paddingRight:0}}},Ja={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},Xa=pi("div",{shouldForwardProp:e=>!["flexBasisProp","isGridMode","isGridCol","dense","frequencyWidth","direction"].includes(e)})((e=>{var t,n,r,o,i,a,s,l,c,u;let{theme:d,flexBasisProp:p,isGridMode:h,isGridCol:f,dense:m,frequencyWidth:g,direction:y}=e;return{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(d.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"},"& .value":{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(d.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"}},["& .".concat(Oa.row)]:{flexWrap:"nowrap",color:null!==(t=null===(n=d.listBox)||void 0===n||null===(r=n.content)||void 0===r?void 0:r.color)&&void 0!==t?t:d.palette.text.primary},["& .".concat(Oa.rowBorderBottom)]:{borderBottom:f?"none":"1px solid ".concat(d.palette.divider),borderLeft:f?"1px solid ".concat(d.palette.divider):"none"},["& .".concat(Oa.column)]:{flexWrap:"nowrap",borderRight:"1px solid ".concat(d.palette.divider),color:null!==(o=null===(i=d.listBox)||void 0===i||null===(a=i.content)||void 0===a?void 0:a.color)&&void 0!==o?o:d.palette.text.primary},["& .".concat(Oa.cell)]:{display:"flex",alignItems:"center",minWidth:0,flexGrow:1,paddingLeft:"".concat(za,"px"),paddingRight:0},["& .".concat(Oa.labelText)]:$($({flexBasis:p,lineHeight:"16px",userSelect:"none",paddingRight:"1px"},Ja),{},{fontSize:null===(s=d.listBox)||void 0===s||null===(l=s.content)||void 0===l?void 0:l.fontSize,fontFamily:null===(c=d.listBox)||void 0===c||null===(u=c.content)||void 0===u?void 0:u.fontFamily}),["& .".concat(Oa.labelDense)]:{fontSize:12},["& .".concat(Oa.highlighted)]:{backgroundColor:"#FFC72A"},["& .".concat(Oa.checkboxLabel)]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":$($({},Ja),{},{display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"})},["& .".concat(Oa.icon)]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24},["& .".concat(Oa.S)]:$($({},Za({theme:d})),{},{border:h?"none":void 0}),["& .".concat(Oa.XS)]:$($({},Za({theme:d})),{},{background:d.palette.selected.excluded,color:d.palette.selected.excludedContrastText,border:h?"none":void 0}),["& .".concat(Oa.A)]:{background:d.palette.selected.alternative,color:d.palette.selected.alternativeContrastText,border:h?"none":void 0},["& .".concat(Oa.X)]:{background:d.palette.selected.excluded,color:d.palette.selected.excludedContrastText,border:h?"none":void 0},["& .".concat(Oa.frequencyCount)]:$($({justifyContent:"flex-end"},Ja),{},{flex:"0 1 ".concat(g,"px"),textAlign:"rtl"===y?"left":"right",paddingLeft:"2px"}),["&.".concat(Oa.barContainer)]:{height:"100%",display:"flex",alignItems:"center"},["& .".concat(Oa.bar)]:{height:m?"16px":"20px",position:"absolute",zIndex:"-1",alignSelf:"center",left:4,width:"calc(100% - ".concat(8,"px)"),display:"flex",alignItems:"center","& .bar-filled":{border:"".concat(1,"px solid"),borderColor:"#D9D9D9",transition:"width 0.2s",backgroundColor:"#FAFAFA",height:"100%"}},["& .".concat(Oa.barSelected)]:{zIndex:"0","& .bar-filled":{opacity:"30%",background:d.palette.background.lighter}},["& .".concat(Oa.barWithCheckbox)]:{left:"rtl"===y?4:29,width:"calc(100% - ".concat(33,"px)")},["& .".concat(Oa.barSelectedWithCheckbox)]:{"& .bar-filled":{background:"#BFE5D0",borderColor:"#BFE5D0"}},["& .".concat(Oa.excludedTextWithCheckbox)]:{color:"#828282",fontStyle:"italic"}}}));var Ya=t.memo(Xa);const Qa="ListBoxCheckbox",es={cbIcon:"".concat(Qa,"-cbIcon"),cbIconChecked:"".concat(Qa,"-cbIconChecked"),cbIconExcluded:"".concat(Qa,"-cbIconExcluded"),cbIconAlternative:"".concat(Qa,"-cbIconAlternative"),checkbox:"".concat(Qa,"-checkbox"),dense:"".concat(Qa,"-dense")},ts=pi(b)((e=>{let{theme:t}=e;return{["& .".concat(es.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(es.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(es.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:t.palette.selected.excluded},["& .".concat(es.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:t.palette.selected.alternative},["&.".concat(es.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(es.dense)]:{padding:"4px 8px"}}})),ns=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 rs(e){let{onChange:n,checked:r,label:o,dense:i,excluded:a,showGray:s=!0,dataN:l}=e;return t.createElement(ts,{edge:"start",onChange:n,checked:r,disableRipple:!0,className:[es.checkbox,i&&es.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":o,"data-n":l},name:o,icon:ns(es,s,a),checkedIcon:t.createElement("span",{className:es.cbIconChecked})})}const os="ListBoxRadioButton",is={denseRadioButton:"".concat(os,"-denseRadioButton"),radioButton:"".concat(os,"-radioButton")},as=pi(v)((e=>{let{theme:t,checked:n}=e;return{["&.".concat(is.radioButton)]:{right:"5px",color:n?t.palette.selected.main:t.palette.main}}}));function ss(e){let{onChange:n,checked:r,label:o,dense:i,dataN:a}=e;return t.createElement(as,{checked:r,onChange:n,value:o,name:o,className:is.radioButton,inputProps:{"data-n":a},style:{backgroundColor:"transparent"},disableRipple:!0,size:i?"small":"medium",sx:i&&{padding:"0px 0px 0px 12px"}})}function ls(e){let{label:n,color:r,dense:o,showGray:i=!0,checkboxes:a,cell:s,valueTextAlign:l}=e;return t.createElement(S,{component:"span",variant:"body2",className:Ga([Oa.labelText,o&&Oa.labelDense,i&&Na({cell:s,checkboxes:a})&&Oa.excludedTextWithCheckbox]),color:r,align:l,dir:"auto"},t.createElement("span",null,n))}function cs(e){let{label:n,color:r,dense:o,showGray:i,checkboxes:a,cell:s,valueTextAlign:l}=e;return"string"==typeof n?t.createElement(ls,{label:n,color:r,dense:o,showGray:i,checkboxes:a,cell:s,valueTextAlign:l}):n}function us(e){let{onChange:n,label:r,color:o,qElemNumber:i,isSelected:a,dense:s,cell:l,isGridCol:c,showGray:u,isSingleSelect:d,checkboxes:p,valueTextAlign:h}=e;const f=t.createElement(rs,{onChange:n,label:r,checked:a,dense:s,excluded:Aa(l),isGridCol:c,showGray:u,dataN:i}),m=t.createElement(ss,{onChange:n,label:r,checked:a,dense:s,dataN:i});return t.createElement(x,{color:o,control:d?m:f,className:Oa.checkboxLabel,label:t.createElement(cs,{label:r,color:o,dense:s,showGray:u,checkboxes:p,cell:l,valueTextAlign:h}),key:i})}function ds(e){let{labels:n,dense:r,showGray:o,checkboxes:i}=e;const a=n.map(((e,n)=>{let[r,o]=e;return t.createElement("span",{id:n,className:o?Oa.highlighted:""},r)}));return t.createElement(ls,{label:a,dense:r,showGray:o,checkboxes:i})}function ps(e){let{onChange:n,labels:r,checkboxes:o,dense:i,showGray:a,color:s,qElemNumber:l,isSelected:c,cell:u,isGridCol:d,isSingleSelect:p,valueTextAlign:h}=e;const f=t.createElement(ds,{labels:r,dense:i,showGray:a,checkboxes:o});return o?t.createElement(us,{onChange:n,label:f,color:s,qElemNumber:l,isSelected:c,dense:i,cell:u,isGridCol:d,showGray:a,isSingleSelect:p,checkboxes:o,valueTextAlign:h}):f}var hs=t.memo((function(e){let{onChange:n,label:r,color:o,qElemNumber:i,isSelected:a,dense:s,cell:l,isGridCol:c,showGray:u,isSingleSelect:d,checkboxes:p,valueTextAlign:h}=e;return p?t.createElement(us,{onChange:n,label:r,color:o,qElemNumber:i,isSelected:a,dense:s,cell:l,isGridCol:c,showGray:u,isSingleSelect:d,checkboxes:p,valueTextAlign:h}):t.createElement(ls,{label:r,color:o,dense:s,showGray:!0,checkboxes:p,cell:l,valueTextAlign:h})}));function fs(e){let{qFrequency:n,histogram:r,checkboxes:o,isSelected:i,frequencyMax:a}=e;if(!(n&&r&&Ka(n)!==$a))return;const s=Va({qFrequency:n,checkboxes:o,frequencyMax:a});return t.createElement(E,{className:Ga([Oa.bar,o&&Oa.barWithCheckbox,i&&(o?Oa.barSelectedWithCheckbox:Oa.barSelected)])},t.createElement(E,{className:"bar-filled",width:s}))}function ms(e){let{cell:n,checkboxes:r,dense:o,showGray:i}=e;const a=Ka(null==n?void 0:n.qFrequency);return t.createElement(C,{item:!0,style:{display:"flex",alignItems:"center"},className:Oa.frequencyCount,"aria-label":a,title:a},t.createElement(S,{noWrap:!0,color:"inherit",variant:"body2",className:Ga([o&&Oa.labelDense,Oa.labelText,i&&Na({cell:n,checkboxes:r})&&Oa.excludedTextWithCheckbox])},a))}function gs(e){let{dataLayout:t,layoutOrder:n,itemPadding:r}=e;if("singleColumn"===t)return{height:"100%",width:"100%"};switch(n){case"row":case"column":return{height:"calc(100% - ".concat(r,"px)"),width:"calc(100% - ".concat(2*r,"px)"),position:"absolute",left:4};default:return{}}}const ys=pi(C,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction"].includes(e)})((e=>{let{dataLayout:t,layoutOrder:n,itemPadding:r,cellPaddingRight:o,direction:i}=e;const a="padding".concat("rtl"===i?"Left":"Right");return{["&.".concat(Oa.fieldRoot)]:$($({},gs({dataLayout:t,layoutOrder:n,itemPadding:r})),{},{[a]:o?"8px":void 0})}}));const bs={S:"Object.Listbox.Selected",A:"Object.Listbox.Alternative",O:"Object.Listbox.Optional",XS:"Object.Listbox.SelectedExcluded",L:"Object.Listbox.Locked",X:"Object.Listbox.Excluded",XL:"Object.Listbox.ExcludedLock"};function vs(e){var n;let{layout:r}=e;const{translator:o}=p(Ti),{qStateCounts:i={}}=(null==r||null===(n=r.qListObject)||void 0===n?void 0:n.qDimensionInfo)||{},a=i.qSelected+i.qSelectedExcluded+i.qLocked+i.qLockedExcluded;let s;switch(a){case 0:s="ScreenReader.ZeroSelected";break;case 1:s="ScreenReader.OneSelected";break;default:s="ScreenReader.ManySelected"}const l=o.get(s,[a]);return t.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},l)}const Ss=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===Ss.ARROW_UP||e===Ss.ARROW_DOWN||e===Ss.ARROW_LEFT||e===Ss.ARROW_RIGHT}),xs=e=>+e.getAttribute("data-n"),Es=e=>{const t=null==e?void 0:e.querySelector(".search input");return null==t||t.focus(),t},Cs=e=>{const t=null==e?void 0:e.querySelector(".value.last-focused, .value.selector, .value");return null==t||t.setAttribute("tabIndex",0),null==t||t.focus(),t},ws=e=>{let{rowIndex:t,columnIndex:n,rowCount:r,columnCount:o,layoutOrder:i,keyCode:a,numCells:s}=e;const l=e=>{let t;return"row"===i?(t=s%o,e<t?r:r-1):(t=s%r,e<o-1?r:t)};let c=t,u=n;if(a===Ss.ARROW_DOWN)if(t>=l(n)-1){if(n===o-1)return-1;c=0,u=n+1}else c=t+1;else if(0===t){if(0===n)return-1;c=l(n-1)-1,u=n-1}else c=t-1;if("row"===i)return c*o+u;const d=s%r;return 0===d||c<d?c*o+u:(c-d)*(o-1)+u+d*o};function Ls(e){var o,a,s;let{index:c,rowIndex:u,columnIndex:d,style:p,data:h}=e;const{onChange:f,onClick:m,onMouseDown:g,onMouseUp:y,onMouseEnter:b,onTouchStart:v,onTouchEnd:S,pages:x,isLocked:E,column:w=!1,checkboxes:L=!1,textAlign:R,direction:I,layoutOptions:O={},freqIsAllowed:q,isSingleSelect:k,actions:_,frequencyMax:T="",histogram:D=!1,keyboard:A,showGray:P=!0,showTick:N=!0,columnCount:M=1,rowCount:z=1,dataOffset:j,focusListItems:F,listCount:W,itemPadding:B,frequencyWidth:H,translator:U,showSearch:G,isModal:V}=h,{dense:K=!1,dataLayout:Z="singleColumn",layoutOrder:J}=O;let X,Y;const Q={max:null,currentIndex:null};if("number"==typeof u&&"number"==typeof d){"row"===J?(X=u*M+d,Q.max=z,Q.currentIndex=u):(X=d*z+u,Q.max=M,Q.currentIndex=d);const e=0;Y=$($({},p),{},{left:e+(0===d?p.left:Number(p.left)+d*e),top:0===u?p.top:Number(p.top)+u*e})}else X=c,Q.max=W,Q.currentIndex=c,Y=$({},p);X+=j;const[ee,te]=n(null);r((()=>{null!==ee&&(0===Q.currentIndex&&F.first&&(ee.focus(),F.setFirst(!1)),Q.currentIndex===Q.max-1&&F.last&&(ee.focus(),F.setLast(!1)))}),[ee,F.first,F.last]);const ne=l(function(e){let{select:t,selectAll:n,onCtrlF:r,confirm:o,cancel:i,setScrollPosition:a,focusListItems:s,keyboard:l,isModal:c,rowCount:u,columnCount:d,rowIndex:p,columnIndex:h,layoutOrder:f}=e;const m=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e===Ss.ARROW_LEFT||e===Ss.ARROW_RIGHT||"number"!=typeof p||"number"!=typeof h){const e=null==t?void 0:t.parentElement[n?"nextElementSibling":"previousElementSibling"];return null==e?void 0:e.querySelector("[role]")}const r=null==t?void 0:t.parentElement.parentElement,o=null==r?void 0:r.childElementCount;if(o){const n=ws({rowIndex:p,columnIndex:h,rowCount:u,columnCount:d,layoutOrder:f,keyCode:e,numCells:o}),r=null==t?void 0:t.parentElement.parentElement.children[n];return null==r?void 0:r.querySelector("[role]")}};let g=!1;const y=e=>{g=e};return e=>{let u;const{currentTarget:d,nativeEvent:p}=e,{keyCode:h,shiftKey:f=!1,ctrlKey:b=!1,metaKey:v=!1}=p;switch(h){case Ss.TAB:{const e=d.closest(".listbox-container"),t=c();if(d.classList.add("last-focused"),f){Es(e)||(t?l.focusSelection():l.blur(!0));break}t?l.focusSelection():(d.blur(),l.blur());break}case Ss.SHIFT:y(!0);break;case Ss.SPACE:t([xs(d)],!1,e);break;case Ss.ARROW_DOWN:case Ss.ARROW_RIGHT:u=m(h,d,!0),f&&u&&(g&&(t([xs(d)],!0),y(!1)),t([xs(u)],!0));break;case Ss.ARROW_UP:case Ss.ARROW_LEFT:u=m(h,d,!1),f&&u&&(g&&(t([xs(d)],!0),y(!1)),t([xs(u)],!0));break;case Ss.ENTER:o();break;case Ss.ESCAPE:if(!c())return;i();break;case Ss.HOME:if(s.setFirst(!0),b){null==a||a("overflowStart");break}null==a||a("start");break;case Ss.END:if(s.setLast(!0),b){null==a||a("overflowEnd");break}null==a||a("end");break;case Ss.A:if(b||v){n();break}return;case Ss.F:if(b||v){r();break}return;default:return}u&&u.focus(),e.preventDefault(),e.stopPropagation()}}($($({},_),{},{focusListItems:F,keyboard:A,isModal:V,rowCount:z,columnCount:M,rowIndex:u,columnIndex:d,layoutOrder:J})),[_,null==A?void 0:A.innerTabStops,z,M,u,d,J]),re=i((()=>function(e){let t,{pages:n,cellIndex:r}=e;const o=n.filter((e=>e.qArea.qTop<=r&&r<e.qArea.qTop+e.qArea.qHeight))[0];if(o){const e=o.qArea;r>=e.qTop&&r<e.qTop+e.qHeight&&([t]=o.qMatrix[r-e.qTop])}return t}({pages:x,cellIndex:X})),[x,X]),oe="S"===(null==re?void 0:re.qState)||"XS"===(null==re?void 0:re.qState)||"L"===(null==re?void 0:re.qState)||"XL"===(null==re?void 0:re.qState),ie=i((()=>Ma({column:w,histogram:D,checkboxes:L,cell:re,showGray:P})),[null==re?void 0:re.qState,D,K,L]),ae=l((e=>{e.preventDefault()}),[L]);if(!re)return null;const se=!["NaN",void 0].includes(null==re?void 0:re.qNum);let le;le=!R||R.auto?se?"rtl"===I?"left":"right":{rtl:"right",ltr:"left"}[I]:(null==R?void 0:R.align)||"left";const ce="grid"===Z&&"column"===J,ue=null!==(o=null==re?void 0:re.qText)&&void 0!==o?o:"";let de;if(null!==(a=re.qHighlightRanges)&&void 0!==a&&null!==(s=a.qRanges)&&void 0!==s&&s.length){de=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}(ue,re.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[])}const pe={alignItems:"center",display:"flex",fontSize:"8px"},he={display:"flex",alignItems:"center",minWidth:0,flexGrow:1,paddingLeft:"rtl"===I?8:L?0:void 0,paddingRight:L?0:"rtl"===I?8:0,justifyContent:le},fe=0===c,me=L?"auto":"max-content",ge=oe&&E,ye=!L&&oe&&!E,be=!L&&N,ve=L||!N,Se=function(e){let{translator:t,label:n,qState:r,isSelected:o,currentIndex:i,maxIndex:a,showSearch:s}=e;const l=bs[r],c=t.get(l),u=[];if(o){const e=s?"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu":"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",n=t.get(e);u.push(n)}const d="".concat(n," ").concat(c),p=t.get("CurrentSelections.Of",[i+1,a+1]);return u.unshift(d,p),u.join(". ").trim()}({translator:U,label:ue,qState:re.qState,currentIndex:Q.currentIndex,maxIndex:Q.max,showSearch:G});return t.createElement(Ya,{className:Oa.barContainer,flexBasisProp:me,style:Y,isGridCol:ce,isGridMode:"grid"===Z,dense:K,frequencyWidth:H,direction:I,"data-testid":"listbox.item"},t.createElement(ys,{role:"row","aria-label":Se,"aria-selected":oe,"aria-setsize":Q.max,"aria-rowindex":Q.currentIndex,ref:te,container:!0,dataLayout:Z,cellPaddingRight:ve,layoutOrder:J,itemPadding:B,gap:0,className:Ga(["value",...ie]),classes:{root:Oa.fieldRoot},onClick:m,onMouseDown:g,onMouseUp:y,onMouseEnter:b,onKeyDown:ne,onTouchStart:v,onTouchEnd:S,onContextMenu:ae,tabIndex:fe&&A.innerTabStops?0:-1,"data-n":null==re?void 0:re.qElemNumber,direction:I},(null==re?void 0:re.qFrequency)&&t.createElement(fs,{qFrequency:null==re?void 0:re.qFrequency,histogram:D,checkboxes:L,isSelected:oe,frequencyMax:T}),t.createElement(C,{item:!0,style:he,className:Ga([Oa.cell,Oa.selectedCell]),title:"".concat(ue)},de?t.createElement(ps,{onChange:f,labels:de,checkboxes:L,dense:K,showGray:P,color:"inherit",qElemNumber:re.qElemNumber,isSelected:oe,cell:re,isGridCol:ce,isSingleSelect:k,valueTextAlign:le}):t.createElement(hs,{onChange:f,label:ue,color:"inherit",qElemNumber:re.qElemNumber,isSelected:oe,dense:K,cell:re,isGridCol:ce,showGray:P,isSingleSelect:k,checkboxes:L,valueTextAlign:le})),q&&t.createElement(ms,{cell:re,checkboxes:L,dense:K,showGray:P}),be&&t.createElement(C,{item:!0,className:Oa.icon},ge&&t.createElement(ba,{style:pe,size:"small"}),ye&&t.createElement(Da,{style:pe,size:"small"}))))}var Rs=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Is(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||Rs(r)&&Rs(o)))return!1;var r,o;return!0}function Os(e,t){var n;void 0===t&&(t=Is);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 qs="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function ks(e){cancelAnimationFrame(e.id)}function _s(e,t){var n=qs();var r={id:requestAnimationFrame((function o(){qs()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var Ts=-1;function Ds(e){if(void 0===e&&(e=!1),-1===Ts||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),Ts=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Ts}var As=null;function Ps(e){if(void 0===e&&(e=!1),null===As||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?As="positive-descending":(t.scrollLeft=1,As=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),As}return As}var Ns=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function Ms(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,d=e.getRowHeight,p=e.getRowOffset,f=e.getRowStartIndexForOffset,m=e.getRowStopIndexForStartIndex,g=e.initInstanceProps,y=e.shouldResetStyleCacheOnItemSizeChange,b=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=g(r.props,bi(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:bi(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=Os((function(e,t,n,o,i,a,s,l){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})})),r._callOnScroll=void 0,r._callOnScroll=Os((function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,s=a.columnWidth,l=a.direction,c=a.rowHeight,u=r._getItemStyleCache(y&&s,y&&l,y&&c),h=e+":"+t;if(u.hasOwnProperty(h))o=u[h];else{var f=n(r.props,t,r._instanceProps),m="rtl"===l;u[h]=o={position:"absolute",left:m?void 0:f,right:m?f:void 0,top:p(r.props,e,r._instanceProps),height:d(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=Os((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,c=i;if("rtl"===t)switch(Ps()){case"negative":c=-i;break;case"positive-descending":c=l-o-i}c=Math.max(0,Math.min(c,l-o));var u=Math.max(0,Math.min(a,s-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:c,scrollTop:u,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&ks(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=_s(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}yi(t,e),t.getDerivedStateFromProps=function(e,t){return zs(e,t),b(e),null};var u=t.prototype;return u.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},u.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,u=i.columnCount,d=i.height,p=i.rowCount,h=i.width,f=this.state,m=f.scrollLeft,g=f.scrollTop,y=Ds();void 0!==r&&(r=Math.max(0,Math.min(r,u-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var b=a(this.props,this._instanceProps),v=s(this.props,this._instanceProps)>h?y:0,S=b>d?y:0;this.scrollTo({scrollLeft:void 0!==r?l(this.props,r,n,m,this._instanceProps,S):m,scrollTop:void 0!==o?c(this.props,o,n,g,this._instanceProps,v):g})},u.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},u.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(Ps()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},u.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&ks(this._resetIsScrollingTimeoutId)},u.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,l=e.innerRef,c=e.innerElementType,u=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?Ns:p,m=e.outerElementType,g=e.outerTagName,y=e.rowCount,b=e.style,v=e.useIsScrolling,S=e.width,x=this.state.isScrolling,E=this._getHorizontalRangeToRender(),C=E[0],w=E[1],L=this._getVerticalRangeToRender(),R=L[0],I=L[1],O=[];if(r>0&&y)for(var q=R;q<=I;q++)for(var k=C;k<=w;k++)O.push(h(t,{columnIndex:k,data:d,isScrolling:v?x:void 0,key:f({columnIndex:k,data:d,rowIndex:q}),rowIndex:q,style:this._getItemStyle(q,k)}));var _=a(this.props,this._instanceProps),T=s(this.props,this._instanceProps);return h(m||g||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:mi({position:"relative",height:i,width:S,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},h(c||u||"div",{children:O,ref:l,style:{height:_,pointerEvents:x?"none":void 0,width:T}}))},u._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],c=i[3],u=this._getVerticalRangeToRender(),d=u[0],p=u[1],h=u[2],f=u[3];this._callOnItemsRendered(a,s,d,p,l,c,h,f)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,y=m.scrollLeft,b=m.scrollTop,v=m.scrollUpdateWasRequested,S=m.verticalScrollDirection;this._callOnScroll(y,b,g,S,v)}},u._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,c=l.horizontalScrollDirection,u=l.isScrolling,d=l.scrollLeft,p=n||i||a||1;if(0===t||0===s)return[0,0,0,0];var h=r(this.props,d,this._instanceProps),f=o(this.props,h,d,this._instanceProps),m=u&&"backward"!==c?1:Math.max(1,p),g=u&&"forward"!==c?1:Math.max(1,p);return[Math.max(0,h-m),Math.max(0,Math.min(t-1,f+g)),h,f]},u._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,c=a.scrollTop,u=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=f(this.props,c,this._instanceProps),p=m(this.props,d,c,this._instanceProps),h=s&&"backward"!==l?1:Math.max(1,u),g=s&&"forward"!==l?1:Math.max(1,u);return[Math.max(0,d-h),Math.max(0,Math.min(i-1,p+g)),d,p]},t}(u),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var zs=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},js=function(e,t){return e};function Fs(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){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=l(r.props,bi(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:bi(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=Os((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=Os((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 d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),h="horizontal"===a||"horizontal"===l,f="rtl"===a,m=h?d:0;u[e]=t={position:"absolute",left:f?void 0:m,right:f?m:void 0,top:h?0:d,height:h?"100%":p,width:h?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=Os((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(Ps()){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(){null!==r._resetIsScrollingTimeoutId&&ks(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=_s(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}yi(t,e),t.getDerivedStateFromProps=function(e,t){return Ws(e,t),d(e),null};var u=t.prototype;return u.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)},u.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?Ds():0:l.scrollHeight>l.clientHeight?Ds():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},u.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()},u.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(Ps()){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()},u.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&ks(this._resetIsScrollingTimeoutId)},u.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,d=e.itemKey,p=void 0===d?js:d,f=e.layout,m=e.outerElementType,g=e.outerTagName,y=e.style,b=e.useIsScrolling,v=e.width,S=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,E=x?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),w=C[0],L=C[1],R=[];if(c>0)for(var I=w;I<=L;I++)R.push(h(t,{data:u,key:p(I,u),index:I,isScrolling:b?S:void 0,style:this._getItemStyle(I)}));var O=r(this.props,this._instanceProps);return h(m||g||"div",{className:n,onScroll:E,ref:this._outerRefSetter,style:mi({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},y)},h(s||l||"div",{children:R,ref:a,style:{height:x?"100%":O,pointerEvents:S?"none":void 0,width:x?O:"100%"}}))},u._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)}},u._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),d=o&&"backward"!==i?1:Math.max(1,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+p)),c,u]},t}(u),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var Ws=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},Bs=Ms({getColumnOffset:function(e,t){return t*e.columnWidth},getColumnWidth:function(e,t){return e.columnWidth},getRowOffset:function(e,t){return t*e.rowHeight},getRowHeight:function(e,t){return e.rowHeight},getEstimatedTotalHeight:function(e){var t=e.rowCount;return e.rowHeight*t},getEstimatedTotalWidth:function(e){var t=e.columnCount;return e.columnWidth*t},getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){var a=e.columnCount,s=e.columnWidth,l=e.width,c=Math.max(0,a*s-l),u=Math.min(c,t*s),d=Math.max(0,t*s-l+i+s);switch("smart"===n&&(n=r>=d-l&&r<=u+l?"auto":"center"),n){case"start":return u;case"end":return d;case"center":var p=Math.round(d+(u-d)/2);return p<Math.ceil(l/2)?0:p>c+Math.floor(l/2)?c:p;default:return r>=d&&r<=u?r:d>u||r<d?d:u}},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){var a=e.rowHeight,s=e.height,l=e.rowCount,c=Math.max(0,l*a-s),u=Math.min(c,t*a),d=Math.max(0,t*a-s+i+a);switch("smart"===n&&(n=r>=d-s&&r<=u+s?"auto":"center"),n){case"start":return u;case"end":return d;case"center":var p=Math.round(d+(u-d)/2);return p<Math.ceil(s/2)?0:p>c+Math.floor(s/2)?c:p;default:return r>=d&&r<=u?r:d>u||r<d?d:u}},getColumnStartIndexForOffset:function(e,t){var n=e.columnWidth,r=e.columnCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getColumnStopIndexForStartIndex:function(e,t,n){var r=e.columnWidth,o=e.columnCount,i=e.width,a=t*r,s=Math.ceil((i+n-a)/r);return Math.max(0,Math.min(o-1,t+s-1))},getRowStartIndexForOffset:function(e,t){var n=e.rowHeight,r=e.rowCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getRowStopIndexForStartIndex:function(e,t,n){var r=e.rowHeight,o=e.rowCount,i=e.height,a=t*r,s=Math.ceil((i+n-a)/r);return Math.max(0,Math.min(o-1,t+s-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}}),Hs=Fs({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,s=e.height,l=e.itemCount,c=e.itemSize,u=e.layout,d=e.width,p="horizontal"===a||"horizontal"===u?d:s,h=Math.max(0,l*c-p),f=Math.min(h,t*c),m=Math.max(0,t*c-p+c+i);switch("smart"===n&&(n=r>=m-p&&r<=f+p?"auto":"center"),n){case"start":return f;case"end":return m;case"center":var g=Math.round(m+(f-m)/2);return g<Math.ceil(p/2)?0:g>h+Math.floor(p/2)?h:g;default:return r>=m&&r<=f?r:r<m?m:f}},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,d=Math.ceil((u+n-c)/a);return Math.max(0,Math.min(i-1,t+d-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const Us="#BBB",$s="#f1f1f1",Gs={styledScrollbars:"".concat("ListBox","-styledScrollbars")};const Vs=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStopIndex)||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex,Ks=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStartIndex)||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex,Zs=(e,t,n,r)=>e===t*n+r+n;function Js(e){let{renderProps:t,layoutOptions:n,maxCount:r,columnCount:o,rowCount:i,overflowDisclaimer:a,qCardinal:s,dataOffset:l}=e;const c="column"===(null==n?void 0:n.layoutOrder)&&"singleColumn"!==n.dataLayout,u=Vs(t,c),d=c?r.column:r.row,p=(c?o:i)>=d,h=Zs(s,u,c?i:o,l),f=!!l&&Ks(t,c),m=p&&!h&&u>=d-1||f||a.state.show;a.set(m)}const{StyledFixedSizeList:Xs,StyledFixedSizeGrid:Ys}=function(){const e=e=>({scrollbarColor:"".concat(Us," ").concat($s),overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:$s},"&::-webkit-scrollbar-thumb":{backgroundColor:Us,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:W(Hs,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(Gs.styledScrollbars)]:e(n)}})),StyledFixedSizeGrid:W(Bs,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(Gs.styledScrollbars)]:e(n)}}))}}();function Qs(e){let{layout:t,width:n,height:r,listCount:o,count:i,textWidth:a,freqIsAllowed:s,checkboxes:l}=e;const{layoutOptions:c={}}=t||{},{layoutOrder:u,maxVisibleRows:d={},maxVisibleColumns:p,dense:h,dataLayout:f}=c,m=s?Ba:0,g=l?Ua:0;let y=Ha+m+g;!l&&y>=ja&&(y+=Ua);let b,v,S,x,E=a+18+m+g;!l&&E>=ja&&(E+=Ua),E=Math.min(Wa,Math.max(E,y));const C="grid"===f;let w=h?20:C?32:29;C&&(w+=4);const L=null!=r?r:8*w;if(u){let e=n;"row"===u?(b={overflowX:"hidden"},e+=8,({rowCount:x,columnWidth:S,columnCount:v}=function(e){let{maxVisibleColumns:t,listCount:n,containerWidth:r,columnAutoWidth:o,itemMinWidth:i}=e;const a=(null==t?void 0:t.maxColumns)||3,s=r-Fa;let l;const c=Math.min(n,Math.max(1,Math.round(s/Math.max(i,o))));l=!1!==(null==t?void 0:t.auto)?c:Math.min(n,a,c);const u=s/l;return{rowCount:Math.ceil(n/l),columnWidth:u,columnCount:l}}({maxVisibleColumns:p,listCount:o,containerWidth:e,columnAutoWidth:E,itemMinWidth:y}))):(b={overflowY:"hidden"},({rowCount:x,columnWidth:S,columnCount:v}=function(e){let t,{maxVisibleRows:n,itemHeight:r,listCount:o,listHeight:i,columnAutoWidth:a,containerWidth:s,itemMinWidth:l}=e;const c=(null==n?void 0:n.maxRows)||3,u=Math.floor(i/r);t=!1!==n.auto?u:Math.min(o,c,u);const d=Math.ceil(o/t);return{columnWidth:Math.max(a,s/d,l),columnCount:d,rowCount:t}}({maxVisibleRows:d,itemHeight:w,listCount:o,listHeight:L,columnAutoWidth:E,containerWidth:e,itemMinWidth:y})))}v=("singleColumn"===f?1:v)||1,x=("singleColumn"===f?i:x)||o;const R=c.dense?838e3:577e3;x=Math.min(x,R);const I=Math.floor(3355e4/S);v=Math.min(v,I)||1;const O=x*v,q=Math.min(o,O);return{columnCount:v,columnWidth:S,rowCount:x,overflowStyling:b,itemHeight:w,listHeight:L,scrollBarWidth:Fa,count:i,listCount:q,maxCount:{row:R,column:I},itemPadding:4,frequencyWidth:Ba}}const el=(e,t)=>{const n=(()=>{const e=document.createDocumentFragment(),t=document.createElement("canvas");return e.appendChild(t),t.getContext("2d")})();if(n.font=t,Array.isArray(e))return Math.max(...e.map((e=>n.measureText(e).width)));return n.measureText(e).width},tl=e=>{const t=i((()=>"text"in e?e:{}),[e]);return i((()=>el(t.text,t.font||"14px Source Sans Pro")),[t.text,t.font])};function nl(e){if(!e)return"";const t=e.qListObject.qDimensionInfo.qApprMaxGlyphCount;let n="";for(let e=0;e<t;e++)n+="M";return n}const rl=e=>{let{pages:t=[],minimumBatchSize:n,count:r}=e;const o=t.some((e=>e.qArea.qHeight<n)),i=Math.max(...t.map((e=>e.qArea.qTop+e.qArea.qHeight)));return o?i:r};const[ol,il]=Di({});function al(e){const t="".concat(e.id),[n]=ol();return{setStoreValue:(e,r)=>n.set("".concat(t,"/").concat(e),r),getStoreValue:e=>n.get("".concat(t,"/").concat(e))}}const sl=pi(S,{shouldForwardProp:e=>!["width","dense"].includes(e)})((e=>{let{width:t,dense:n}=e;return $({minWidth:"".concat(t,"px"),textAlign:"center",fontSize:"".concat(n?"12px":"14px")},n&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:t})}));function ll(e){let{width:n,text:r,dense:o,tooltip:i}=e;const{translator:a}=p(Ti);return t.createElement(w,{title:i?a.get(r):""},t.createElement(sl,{width:n,dense:o,component:"div",variant:"body1",py:"12px"},a.get(r)))}var cl,ul={},dl={exports:{}};(cl=dl).exports=function(e){return e&&e.__esModule?e:{default:e}},cl.exports.__esModule=!0,cl.exports.default=cl.exports;var pl=dl.exports,hl={};function fl(e){return Mt("MuiSvgIcon",e)}zt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ml=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],gl=e=>{const{color:t,fontSize:n,classes:r}=e;return function(e,t,n){const r={};return Object.keys(e).forEach((o=>{r[o]=e[o].reduce(((e,r)=>{if(r){const o=t(r);""!==o&&e.push(o),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}({root:["root","inherit"!==t&&`color${vt(t)}`,`fontSize${vt(n)}`]},fl,r)},yl=pi("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${vt(n.color)}`],t[`fontSize${vt(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,c,u,d,p,h,f,m,g,y,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(i=o.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(a=e.typography)||null==(s=a.pxToRem)?void 0:s.call(a,20))||"1.25rem",medium:(null==(l=e.typography)||null==(c=l.pxToRem)?void 0:c.call(l,24))||"1.5rem",large:(null==(u=e.typography)||null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(p=null==(h=(e.vars||e).palette)||null==(f=h[t.color])?void 0:f.main)?p:{action:null==(m=(e.vars||e).palette)||null==(g=m.action)?void 0:g.active,disabled:null==(y=(e.vars||e).palette)||null==(b=y.action)?void 0:b.disabled,inherit:void 0}[t.color]}})),bl=e.forwardRef((function(e,t){const n=ui({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=n,p=Wt(n,ml),h=Ft({},n,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d}),f={};c||(f.viewBox=d);const m=gl(h);return nr.jsxs(yl,Ft({as:a,className:po(m.root,o),focusable:"false",color:l,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},f,p,{ownerState:h,children:[r,u?nr.jsx("title",{children:u}):null]}))}));bl.muiName="SvgIcon";var vl=bl;const Sl={configure:e=>{Pt.configure(e)}};var xl,El=Object.freeze({__proto__:null,capitalize:vt,createChainedFunction:function(...e){return e.reduce(((e,t)=>null==t?e:function(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))},createSvgIcon:function(t,n){function r(e,r){return nr.jsx(vl,Ft({"data-testid":`${n}Icon`,ref:r},e,{children:t}))}return r.muiName=vl.muiName,e.memo(e.forwardRef(r))},debounce:function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r},deprecatedPropType:function(e,t){return()=>null},isMuiElement:function(t,n){return e.isValidElement(t)&&-1!==n.indexOf(t.type.muiName)},ownerDocument:St,ownerWindow:function(e){return St(e).defaultView||window},requirePropFactory:function(e,t){return()=>null},setRef:xt,unstable_ClassNameGenerator:Sl,unstable_useEnhancedEffect:Et,unstable_useId:function(t){if(void 0!==wt){const e=wt();return null!=t?t:e}return function(t){const[n,r]=e.useState(t),o=t||n;return e.useEffect((()=>{null==n&&(Ct+=1,r(`mui-${Ct}`))}),[n]),o}(t)},unsupportedProp:function(e,t,n,r,o){return null},useControlled:function({controlled:t,default:n,name:r,state:o="value"}){const{current:i}=e.useRef(void 0!==t),[a,s]=e.useState(n);return[i?t:a,e.useCallback((e=>{i||s(e)}),[])]},useEventCallback:function(t){const n=e.useRef(t);return Et((()=>{n.current=t})),e.useCallback(((...e)=>(0,n.current)(...e)),[])},useForkRef:function(...t){return e.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{xt(t,e)}))}),t)},useIsFocusVisible:function(){const t=e.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",qt,!0),t.addEventListener("mousedown",kt,!0),t.addEventListener("pointerdown",kt,!0),t.addEventListener("touchstart",kt,!0),t.addEventListener("visibilitychange",_t,!0))}),[]),n=e.useRef(!1);return{isFocusVisibleRef:n,onFocus:function(e){return!!Tt(e)&&(n.current=!0,!0)},onBlur:function(){return!!n.current&&(It=!0,window.clearTimeout(Lt),Lt=window.setTimeout((()=>{It=!1}),100),n.current=!1,!0)},ref:t}}}),Cl=H(El);var wl=pl;Object.defineProperty(ul,"__esModule",{value:!0});var Ll=ul.default=void 0,Rl=wl((xl||(xl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Cl}(hl)),hl)),Il=nr,Ol=(0,Rl.default)((0,Il.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");Ll=ul.default=Ol;const ql=pi(L)((e=>{let{theme:t,left:n}=e;return{position:"absolute",bottom:"12px",display:"flex",border:"1px solid ".concat(t.palette.divider),width:"calc(100% - 11px)",left:n}})),kl=pi("div")((()=>({paddingLeft:"6px",flexGrow:1}))),_l=pi("div")((e=>{let{dense:t}=e;return{display:"flex",alignItems:"".concat(t?"center":"flex-start")}})),Tl=pi(Ll)((()=>({fontSize:"14px"})));function Dl(e){let{text:n,dismiss:r,dense:o,parentWidth:i=0}=e;const a="function"==typeof r,s=o?370:282,l=Math.max(i/2-s/2,0),c=Math.min(s,i)-42,u=o&&i<s;return t.createElement(ql,{left:l,style:{maxWidth:s}},t.createElement(kl,null,t.createElement(ll,{text:n,dense:o,width:c,tooltip:u})),t.createElement(_l,{dense:o},a&&t.createElement(R,{"aria-label":"close",onClick:()=>r()},t.createElement(Tl,null))))}const Al=(e,t)=>e.qListObject.qDimensionInfo.qCardinal-t;const Pl=80;function Nl(e){let{itemWidth:t,layout:n,frequencyMode:r}=e;const o=t>Pl,{frequencyEnabled:i=!1}=(null==n?void 0:n.qListObject)||{},a=!["none",void 0].includes(r);return!(!o||!a&&!i)}const Ml=e=>{const t=(e=>e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)?e:"[".concat(e.replace(/\]/g,"]]"),"]"):e)(e);return"Max(AGGR(Count(".concat(t,"), ").concat(t,"))")},zl=(e,t)=>{const o=(e=>"fetch"===(null==e?void 0:e.frequencyMax))(t),[i,a]=n(),[s,l]=n(o);return r((()=>{if(!o)return;(async()=>{const n=await(async(e,t)=>{const n=e.qListObject.qDimensionInfo,r=n.qGroupFieldDefs[n.qGroupPos],o=Ml(r);return(await t.evaluateEx(o)).qNumber})(t,e);a(n),l(!1)})()}),[o&&t]),{frequencyMax:o?i:null==t?void 0:t.frequencyMax,awaitingFrequencyMax:s}},jl=["isLoadingData"],Fl=100,Wl=I("div")((()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}})));function Bl(e){var o,i,a,s;let{model:c,app:u,constraints:h,layout:f,selections:m,selectionState:g,direction:y,checkboxes:b,height:v,width:S,frequencyMode:x,update:E,fetchStart:C,postProcessPages:w,calculatePagesHeight:L=!1,keyboard:R={},showGray:I=!0,scrollState:O,selectDisabled:q=(()=>!1),keyScroll:k={state:{},reset:()=>{}},currentScrollIndex:_={set:()=>{}},renderedCallback:T,onCtrlF:D,showSearch:A,isModal:P}=e;const{translator:N}=p(Ti),[M,z]=n(!1),j=!(!f||!f.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:F=b,histogram:W}=null!=f?f:{},B=d(null),H=d({queue:[],validPages:!1,dataOffset:0}),U=d({pages:[]}),{frequencyMax:G,awaitingFrequencyMax:Z}=zl(u,f),J=function(e){let{local:t,loaderRef:r,model:o,fetchStart:i,scrollTimeout:a,postProcessPages:s,listData:l}=e;const[c,u]=n(!1),[d,p]=n([]);let[h]=n(0);const f=(e,n)=>{const c=t.current.dataOffset;t.current.queue.push({start:e+c,stop:n+c});const d=!!r.current&&r.current._listRef&&r.current._listRef.state.isScrolling;return t.current.queue.length>10&&t.current.queue.shift(),clearTimeout(t.current.timeout),u(!0),new Promise((e=>{t.current.timeout=setTimeout((()=>{const n=t.current.queue.slice(-1)[0],r=o.getListObjectData("/qListObjectDef",[{qTop:n.start>h?n.start-h:0,qHeight:h,qLeft:0,qWidth:1},{qTop:n.start,qHeight:h,qLeft:0,qWidth:1}]).then((n=>{const r=s?s(n):n;t.current.validPages=!0,l.current.pages=r,p(r),u(!1),e()}));i&&i(r)}),d?a:0)}))};return{loadMoreItems:{with(e){let{minimumBatchSize:t}=e;return t&&(h=t),f}},pages:d,isLoading:c}}({local:H,loaderRef:B,model:c,fetchStart:C,scrollTimeout:0,postProcessPages:w,listData:U}),X=K(J,jl),{setStoreValue:Y}=al(c),Q=l(X.loadMoreItems,[f]),[ee,te]=n({show:!1,dismissed:!1}),[ne,re]=n([]);null!=X&&X.pages&&g.update({setPages:re,pages:X.pages,isSingleSelect:j,selectDisabled:q,layout:f});const oe=null==f?void 0:f.qListObject.qDimensionInfo.qCardinal;(null!=X&&X.pages.length&&!Z||0===oe)&&(null==T||T());const ie=l((e=>{if(null==ne||!ne.length||!H.current.validPages)return!1;H.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=ne.filter((e=>t(e)))[0];return n&&t(n)}),[f,ne]),{interactionEvents:ae,select:se}=_a({selectionState:g,selections:m,checkboxes:F,doc:document,loaderRef:B}),{layoutOptions:le={}}=f||{};let ce=!0;le.dataLayout&&(ce="singleColumn"===le.dataLayout||"row"===(null==le?void 0:le.layoutOrder));const ue="grid"===(null==le?void 0:le.dataLayout),de=e=>{const t=$({},ce?{rowIndex:e}:{columnIndex:e}),n=ue?t:e;B.current._listRef.scrollToItem(n)},pe=()=>{if(H.current.queue=[],H.current.validPages=!1,B.current){B.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===k.state.scrollPosition;if(f&&f.qSelectionInfo.qInSelections||e)return void(e&&k.reset());H.current.dataOffset=0,de(0)}};E&&E.call(null,pe),r((()=>{O&&!M&&B.current&&(B.current._listRef.scrollToItem(O.initScrollPos),z(!0))}),[B.current]),r((()=>{pe()}),[f,H.current.dataOffset]);const he=tl({text:nl(f),font:"14px Source sans pro"});let fe=Fl;const me="grid"!==le.dataLayout,ge=null==f||null===(o=f.qListObject.qSize)||void 0===o?void 0:o.qcy,ye=function(e){let{pages:t,minimumBatchSize:n,count:r,calculatePagesHeight:o=!1}=e;return(null!=t&&t.length&&o?rl({pages:t,minimumBatchSize:n,count:r}):r)||0}({pages:ne,minimumBatchSize:fe,count:ge,calculatePagesHeight:L,layoutOptions:le,model:c});let be=Nl({itemWidth:S,layout:f,frequencyMode:x});const ve=Qs({layout:f,width:S,height:v,listCount:ye,count:ge,textWidth:he,freqIsAllowed:be,checkboxes:F});ve.columnWidth&&(be=Nl({itemWidth:ve.columnWidth,layout:f,frequencyMode:x}));const{listCount:Se}=ve;Y("listCount",Se);const xe=e=>{const{scrollIndex:t,offset:n,triggerRerender:r}=function(e){let t,{position:n,isRow:r,sizes:o,layout:i,offset:a}=e,s=!1,l=null!=a?a:0;switch(n){case"start":t=0;break;case"end":t=r?o.rowCount:o.columnCount;break;case"overflowStart":l=0,t=0,s=!0;break;case"overflowEnd":l=Al(i,o.listCount),t=i.qListObject.qDimensionInfo.qCardinal,s=!0}return{scrollIndex:t,offset:l,triggerRerender:s}}({position:e,isRow:ce,sizes:ve,layout:f,offset:H.current.dataOffset});H.current.dataOffset=n,r&&g.triggerStateChanged(),de(t)};r((()=>{const e=k.state;e.up?de(_.state.start-e.up):e.down?de(_.state.stop+e.down):e.scrollPosition&&xe(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&k.reset()}),[k.state.up,k.state.down,k.state.scrollPosition]);const{textAlign:Ee}=(null==f?void 0:f.qListObject.qDimensionInfo)||{},[Ce,we]=n({first:!1,last:!1}),{List:Le,Grid:Re}=function(e){let{layout:n,width:r,checkboxes:o,local:i,isVertical:a,pages:s,selectDisabled:l,interactionEvents:c,frequencyMode:u,histogram:d,isSingleSelect:p,select:h,selectAll:f,onCtrlF:m,textAlign:g,selections:y,keyboard:b,showGray:v,scrollState:S,direction:x,sizes:E,listCount:C,overflowDisclaimer:w,setScrollPosition:L,focusListItems:R,setCurrentScrollIndex:I,constraints:O,frequencyMax:q,freqIsAllowed:k,translator:_,showSearch:T,isModal:D}=e;const{layoutOptions:A={}}=n||{},{columnWidth:P,itemPadding:N,listHeight:M,itemHeight:z,rowCount:j,columnCount:F,frequencyWidth:W}=E||{},B=("grid"===A.dataLayout?P:r)>ja,H={direction:"rtl"===x?"rtl":"ltr",useIsScrolling:!0,className:Gs.styledScrollbars},U=null==n?void 0:n.qListObject.qDimensionInfo.qLocked,G=$($({isLocked:U,column:!a,pages:s},U||l()?{}:c),{},{checkboxes:o,layoutOptions:A,frequencyMode:u,freqIsAllowed:k,isSingleSelect:p,textAlign:g,itemPadding:N,frequencyWidth:W,actions:{select:h,confirm:()=>null==y?void 0:y.confirm.call(y),cancel:()=>null==y?void 0:y.cancel.call(y),setScrollPosition:L,selectAll:f,onCtrlF:m},frequencyMax:q,histogram:d,keyboard:b,showGray:v,showTick:B,dataOffset:i.current.dataOffset,focusListItems:R,direction:x,translator:_,showSearch:T,isModal:D});return{List:e=>{let{onItemsRendered:o,ref:a}=e;return i.current.listRef=a,t.createElement(Xs,V({},H,{dataTestid:"fixed-size-list",scrollDisabled:null==O?void 0:O.active,height:M,width:r,itemCount:C,itemData:$($({},G),{},{listCount:C}),itemSize:z,onItemsRendered:e=>{var t,r;I({start:e.visibleStartIndex,stop:e.visibleStopIndex}),S&&S.setScrollPos(e.visibleStopIndex),Js({renderProps:e,layoutOptions:A,maxCount:E.maxCount,columnCount:F,rowCount:j,overflowDisclaimer:w,qCardinal:null==n||null===(t=n.qListObject)||void 0===t||null===(r=t.qDimensionInfo)||void 0===r?void 0:r.qCardinal,dataOffset:i.current.dataOffset}),o($({},e))},ref:a}),Ls)},Grid:e=>{let{onItemsRendered:o,ref:a}=e;const{overflowStyling:s,scrollBarWidth:l}=E,{layoutOrder:c}=A||{},u=Math.min(M,j*z+l);return i.current.listRef=a,t.createElement(Ys,V({},H,{dataTestid:"fixed-size-grid",scrollDisabled:null==O?void 0:O.active,height:u,width:r,columnCount:F,columnWidth:P,rowCount:j,rowHeight:z,style:$({},s),itemData:$($({},G),{},{column:void 0,columnCount:F,rowCount:j}),onItemsRendered:e=>{var t,r;const a="row"===c;I({start:a?e.visibleRowStartIndex:e.visibleColumnStartIndex,stop:a?e.visibleRowStopIndex:e.visibleColumnStopIndex});const s=function(e){const{renderProps:t,scrollState:n,layoutOrder:r,rowCount:o,columnCount:i}=e,{overscanRowStartIndex:a,overscanRowStopIndex:s,overscanColumnStartIndex:l,overscanColumnStopIndex:c,visibleStopIndex:u}=t;let d,p,h,f;return n&&n.setScrollPos(u),"column"===r?(d=l*o,p=a,h=c*o,f=s):(d=l,p=a*i,h=c,f=s*i),{visibleStartIndex:d+p,visibleStopIndex:h+f}}({renderProps:e,scrollState:S,layoutOrder:c,rowCount:j,columnCount:F});Js({renderProps:e,layoutOptions:A,maxCount:E.maxCount,columnCount:F,rowCount:j,overflowDisclaimer:w,qCardinal:null==n||null===(t=n.qListObject)||void 0===t||null===(r=t.qDimensionInfo)||void 0===r?void 0:r.qCardinal,dataOffset:i.current.dataOffset}),o(s)},ref:a}),Ls)}}}({direction:y,layout:f,height:v,width:S,checkboxes:F,frequencyMode:x,histogram:W,keyboard:R,showGray:I,interactionEvents:ae,select:se,selectAll:()=>{g.clearItemStates(!1),c.selectListObjectAll("/qListObjectDef")},onCtrlF:D,textAlign:Ee,isVertical:me,pages:ne,selectDisabled:q,isSingleSelect:j,selections:m,scrollState:O,local:H,sizes:ve,listCount:Se,overflowDisclaimer:{state:ee,set:e=>te((t=>$($({},t),{},{show:e})))},setScrollPosition:xe,focusListItems:{first:Ce.first,setFirst:e=>we((t=>$($({},t),{},{first:e}))),last:Ce.last,setLast:e=>we((t=>$($({},t),{},{last:e})))},setCurrentScrollIndex:_.set,constraints:h,frequencyMax:G,freqIsAllowed:be,translator:N,showSearch:A,isModal:P}),{columnWidth:Ie,listHeight:Oe,itemHeight:qe}=ve||{};return me||(fe=function(e){let{width:t,columnWidth:n,listHeight:r,itemHeight:o}=e;return Math.ceil(t/n)*Math.ceil(r/o)*2}({width:S,columnWidth:Ie,listHeight:Oe,itemHeight:qe})),t.createElement(Wl,null,t.createElement(vs,{className:"screenReaderOnly",layout:f}),!Se&&oe>0&&t.createElement(ll,{width:S,text:"Listbox.NoMatchesForYourTerms"}),t.createElement(Ea,{isItemLoaded:ie,itemCount:Se||1,loadMoreItems:Q.with({minimumBatchSize:fe}),threshold:0,minimumBatchSize:fe,ref:B,role:"grid"},me?Le:Re),ee.show&&!ee.dismissed&&t.createElement(Dl,{text:"Listbox.ItemsOverflow",dismiss:()=>te((e=>$($({},e),{},{dismissed:!0}))),parentWidth:null==B||null===(i=B.current)||void 0===i||null===(a=i._listRef)||void 0===a||null===(s=a.props)||void 0===s?void 0:s.width,dense:null==le?void 0:le.dense}))}const Hl=e=>$($({},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"}}]}),Ul=e=>$($({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),$l=e=>$($({},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"}}]}),Gl=e=>$($({},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 Vl=e=>{let{layout:t,model:n,translator:r,selectionState:o,isDirectQuery:i=!1}=e;if(t.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];return[{key:"selectAll",type:"menu-icon-button",label:r.get("Selection.SelectAll"),getSvgIconShape:Hl,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectAll("/qListObjectDef")}},{key:"selectPossible",type:"menu-icon-button",label:r.get("Selection.SelectPossible"),getSvgIconShape:$l,enabled:()=>["qOption"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectPossible("/qListObjectDef")}},!i&&{key:"selectAlternative",type:"menu-icon-button",label:r.get("Selection.SelectAlternative"),getSvgIconShape:Ul,enabled:()=>["qAlternative"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectAlternative("/qListObjectDef")}},!i&&{key:"selectExcluded",type:"menu-icon-button",label:r.get("Selection.SelectExcluded"),getSvgIconShape:Gl,enabled:()=>["qAlternative","qExcluded"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectExcluded("/qListObjectDef")}}].filter(Boolean)};const Kl=e=>$($({},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 Zl(e){const t=ci(),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 Jl={className:"njs-cell-action"},Xl=t.forwardRef(((e,n)=>{let{ariaExpanded:r=!1,item:o,addAnchor:i=!1}=e;const a=ci(),{hidden:s,disabled:l,style:c,hasSvgIconShape:u}=Zl(o);if(s)return null;const d=Number.parseInt(a.spacing(.5),10),p=o.keyboardAction||o.action,h=p?e=>["Enter"].includes(e.key)&&p():null,f=p?e=>[" ","Spacebar"].includes(e.key)&&p():null,m="actions-toolbar-".concat(o.key);return t.createElement(R,{ref:i?null:n,title:o.label,onClick:o.action,onKeyDown:h,onKeyUp:f,disabled:l,style:c,className:[Jl.className,m].join(" "),size:"large",disableRipple:!0,"aria-expanded":r,"aria-controls":"moreMenuList","data-testid":m},u&&ga(o.getSvgIconShape()),i&&t.createElement("div",{ref:n,style:{bottom:-d,right:0,position:"absolute",width:"100%",height:0}}))})),Yl=e=>$($({},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"}}]}),Ql=e=>$($({},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 ec=e=>ga(Ql(e));const tc="njs-action-toolbar-more",nc={icon:"".concat("More","-icon")},rc=pi(O)((e=>{let{theme:t}=e;return{pointerEvents:"none",["& .".concat(nc.icon)]:{color:t.palette.text.primary}}}));function oc(e){let{item:n,autoFocus:r,onActionClick:o=(()=>{})}=e;const{hidden:i,disabled:a,hasSvgIconShape:s}=Zl(n);return i?null:t.createElement(k,{autoFocus:r,title:n.label,onClick:()=>{n.action(),o()},disabled:a,tabindex:"0"},s&&t.createElement(_,{className:nc.icon},ga(n.getSvgIconShape())),t.createElement(S,{noWrap:!0},n.label))}const ic=t.forwardRef(((e,n)=>{let{actions:r=[],show:o=!0,alignTo:i,popoverProps:a={},popoverPaperStyle:s={},onCloseOrActionClick:l=(()=>{})}=e;const c=r.length>0,u=r.findIndex((e=>!e.disabled));return c&&t.createElement(rc,V({},a,{onClose:l,ref:n,open:o,anchorEl:i.current,getContentAnchorEl:null,container:i.current,disablePortal:!0,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:tc}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{style:$({pointerEvents:"auto",maxWidth:"250px"},s)}}),t.createElement(q,{id:"moreMenuList"},r.map(((e,n)=>t.createElement(oc,{key:n,item:e,autoFocus:n===u,onActionClick:l})))))})),ac=e=>{const t=e.closest("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");return Array.from(n).indexOf(e)},sc=e=>{const t=document.querySelector("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");if(!n.length)return;n[Math.min(Math.max(0,e),n.length-1)].focus()};const lc="ActionsToolbar",cc={item:"".concat(lc,"-item"),itemSpacing:"".concat(lc,"-itemSpacing")},uc=pi(O)((e=>{let{theme:t}=e;return{["& .".concat(cc.itemSpacing)]:{padding:t.spacing(0,.25)}}})),dc={className:"njs-action-toolbar-popover"},pc=t.forwardRef(((e,n)=>{let{className:r,ariaExpanded:o=!1,actions:i=[],addAnchor:a=!1,isRtl:s=!1}=e;return i.length>0?t.createElement(C,{item:!0,container:!0,gap:0,flexDirection:s?"row-reverse":"row",wrap:"nowrap",className:r},i.map(((e,r)=>t.createElement(C,{item:!0,key:e.key,className:"".concat(cc.itemSpacing," ").concat(cc.item)},t.createElement(Xl,{ariaExpanded:o,key:e.key,item:e,ref:0===r?n:null,addAnchor:a}))))):null})),hc={pointerEvents:"none"},fc={vertical:"bottom",horizontal:"right"};function mc(e){var o,a;let{show:s=!0,actions:l=[],maxItems:c=3,selections:u={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},more:h={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{}},popover:f={show:!1,anchorEl:null},focusHandler:m=null,actionsRefMock:g=null,direction:y="ltr"}=e;const b=function(e){let{api:t,onConfirm:n=(()=>{}),onCancel:r=(()=>{}),onKeyDeactivate:o=(()=>{})}=e;const{translator:i}=p(Ti);return[{key:"clear",type:"icon-button",label:i.get("Selection.Clear"),enabled:()=>t.canClear(),action:()=>t.clear(),getSvgIconShape:Ql},{key:"cancel",type:"icon-button",label:i.get("Selection.Cancel"),enabled:()=>t.canCancel(),action:()=>{r(),t.cancel()},keyboardAction:()=>{o(),r(),t.cancel()},getSvgIconShape:Yl},{key:"confirm",type:"icon-button",label:i.get("Selection.Confirm"),enabled:()=>t.canConfirm(),action:()=>{n(),t.confirm()},keyboardAction:()=>{o(),n(),t.confirm()},getSvgIconShape:Ta}]}(u),{translator:v,keyboardNavigation:S}=p(Ti),[x,E]=n(!1),w={vertical:12,horizontal:(null!==(o=null===(a=f.anchorEl)||void 0===a?void 0:a.clientWidth)&&void 0!==o?o:0)-7},L=d(),R=d(),I=ci(),O=i((()=>({margin:I.spacing(.5,0)}))),q=e=>{const t=L.current||g;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]},k=i((()=>function(e){let{keyboardNavigation:t,focusHandler:n,getEnabledButton:r,selections:o}=e;return e=>{const{target:i,nativeEvent:a}=e,{keyCode:s}=a;switch(s){case Ss.ARROW_LEFT:case Ss.ARROW_DOWN:case Ss.ARROW_RIGHT:case Ss.ARROW_UP:if(i.classList.contains("njs-cell-action")){const e=ac(i),t=[Ss.ARROW_LEFT,Ss.ARROW_DOWN].includes(s);sc(t?e-1:e+1)}e.stopPropagation(),e.preventDefault();break;case Ss.SPACE:e.preventDefault();break;case Ss.TAB:t&&null!=n&&n.refocusContent&&(e.shiftKey&&r(!1)===e.target||!e.shiftKey&&r(!0)===e.target)&&(e.preventDefault(),e.stopPropagation(),n.refocusContent());break;case Ss.ESCAPE:o&&(o.onCancel(),o.api.cancel(),e.preventDefault(),e.stopPropagation())}}}({keyboardNavigation:S,focusHandler:m,getEnabledButton:q,selections:u})),[S,m,q,u]);r((()=>()=>{E(!1)}),[f.show,s,u.show]),r((()=>{if(!m)return;m.on("focus_toolbar_first",(()=>{const e=q(!1);e&&e.focus()})),m.on("focus_toolbar_last",(()=>{const e=q(!0);e&&e.focus()}))}),[]);let _=h.enabled,D=h.actions;const A=h.alignTo||R,P=l.filter((e=>!e.hidden));if(P.length>c){const e=P.splice(-(P.length-c)-1);_=!0,D=[...e,...h.actions]}if(!u.show&&0===P.length)return null;const N={key:"more",label:v.get("Menu.More"),getSvgIconShape:Kl,hidden:!1,active:x,enabled:()=>_,action:()=>E(!x)},M=P.length>0,z=D.length>0,j=M&&u.show||z&&u.show,F="rtl"===y,W=t.createElement(C,{ref:L,onKeyDown:k,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:F?"row-reverse":"row"}},M&&t.createElement(pc,{actions:P}),z&&t.createElement(pc,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:R,ariaExpanded:x,actions:[N],addAnchor:!0}),j&&t.createElement(C,{item:!0,className:cc.itemSpacing,style:O},t.createElement(T,{orientation:"vertical"})),u.show&&t.createElement(pc,{className:"actions-toolbar-default-actions",actions:b,isRtl:F}),x&&t.createElement(ic,{show:x,actions:D,alignTo:A,popoverProps:h.popoverProps,popoverPaperStyle:h.popoverPaperStyle,onCloseOrActionClick:()=>{E(!1)}}));return f.show?t.createElement(uc,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:f.show,anchorEl:f.anchorEl,anchorOrigin:w,transformOrigin:fc,hideBackdrop:!0,style:hc,PaperProps:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:dc.className,style:{pointerEvents:"auto",padding:I.spacing(.5,.25)}}},W):s&&W}var gc=e=>ga((e=>$($({},e),{},{shapes:[{type:"path",attrs:{d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014l-4.128-4.026ZM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0Zm-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6.034 6.034 0 0 1-1.413 1.415Z"}}]}))(e));const yc="/qListObjectDef",bc="**",vc=pi(D)((e=>{var t,n;let{theme:r}=e;return{color:null===(t=r.listBox)||void 0===t||null===(n=t.content)||void 0===n?void 0:n.color}})),Sc=pi(A)((e=>{var t,n;let{theme:r}=e;return{color:null===(t=r.listBox)||void 0===t||null===(n=t.content)||void 0===n?void 0:n.color,display:"flex"}}));function xc(e){let{selections:o,selectionState:i,model:a,keyboard:s,dense:l=!1,visible:c=!0,autoFocus:u=!0,wildCardSearch:h=!1,searchEnabled:f,direction:m,hide:g}=e;const{translator:y}=p(Ti),[b,v]=n(""),[S,x]=n(!1),E=d(),C=ci(),{getStoreValue:w}=al(a),L="rtl"===m,R=L?"right":"left",I=async()=>{if(o.isModal())try{await a.abortListObjectSearch(yc)}finally{v("")}};r((()=>{c||I()}),[c]),r((()=>(o.on("deactivated",I),()=>{o.removeListener&&o.removeListener("deactivated",I)})),[]),r((()=>{if(S&&E.current){const e=b.length-1;E.current.setSelectionRange(e,e),x(!1)}}),[S,E.current]);const O=async()=>{let e;return await a.searchListObjectFor(yc,b)&&b.length&&w("listCount")>0&&(e=a.acceptListObjectSearch(yc,!0),o.selectionsMade=!0,i.clearItemStates(!1),v("")),e};function q(e){const t=(null==e?void 0:e.querySelector(".last-focused"))||(null==e?void 0:e.querySelector('[role="row"]:first-child'));t.setAttribute("tabIndex",0),null==t||t.focus()}return c&&!1!==f?t.createElement(Sc,{startAdornment:t.createElement(vc,{position:"start"},t.createElement(gc,{size:l?"small":"normal"})),className:"search",sx:[{border:"none",fontSize:14,borderRadius:0,backgroundColor:"transparent","& fieldset":{border:"1px solid ".concat(C.palette.divider),borderWidth:"1px 0 1px 0",borderRadius:0},"&:hover":{border:"none"},paddingLeft:"".concat(za,"px")},l&&{fontSize:12,paddingLeft:C.spacing(1),"& input":{paddingTop:"5px",paddingBottom:"5px"}},{flexDirection:L?"row-reverse":"row"}],inputRef:E,size:"small",fullWidth:!0,placeholder:y.get("Listbox.Search"),value:b,onFocus:()=>{h&&(v(bc),x(!0)),o.isModal()||o.begin(["/qListObjectDef"])},onChange:async e=>(v(e.target.value),e.target.value.length?a.searchListObjectFor(yc,e.target.value):I()),onKeyDown:async e=>{const{currentTarget:t}=e,n=t.closest(".listbox-container");switch(e.key){case"Enter":O();break;case"Escape":q(n),o.isActive()&&o.cancel();break;case"Tab":e.shiftKey?s.focusSelection():(q(n),null==n||n.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")})));break;case"f":case"F":if(!e.ctrlKey&&!e.metaKey)return;g&&(g(),q(n));break;default:return}e.preventDefault(),e.stopPropagation()},autoFocus:u,inputProps:{tabIndex:s.innerTabStops?0:-1,style:{textAlign:"".concat(R)},"data-testid":"search-input-field"}}):null}function Ec(e){return Object.keys(te.prototype).forEach((t=>{e[t]=te.prototype[t]})),te.init(e),e}const Cc=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 Ec(s),s},wc=e=>{let{elements:t,objectSelections:n,options:r={}}=e;const o=function(e){let{elements:t,handleClickOutside:n}=e;return e=>{if(!document.contains(e.target))return;const r=t.map((e=>"string"==typeof e?document.querySelector(e):null==e?void 0:e.current)).filter((e=>!!e&&!!document.contains(e)));r.length&&!r.some((t=>t.contains(e.target)))&&n(e)}}({elements:t,handleClickOutside:()=>n.confirm.call(n)});return{activateClickOut(){var e;document.addEventListener("mousedown",o),null==r||null===(e=r.onSelectionActivated)||void 0===e||e.call(r)},deactivateClickOut(){var e;document.removeEventListener("mousedown",o),null==r||null===(e=r.onSelectionDeactivated)||void 0===e||e.call(r)}}};function Lc(e,t,n,o){const i=Array.isArray(n)?n:[n],[a]=Bi(e),[s]=pa(t),l=t?t.id:null,[c]=Ni(),[u]=zi(),d=c.get(e.id);let p=u.get(l);return r((()=>{a&&t&&!p&&(p=Cc({appSelections:a,appModal:d,model:t}),u.set(l,p),u.dispatch(!0))}),[a,t]),r((()=>{if(!p)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=wc({elements:i,objectSelections:p,options:o});return p.addListener("activated",e),p.addListener("deactivated",t),()=>{p.isActive()&&p.confirm(),p.removeListener("activated",e),p.removeListener("deactivated",t)}}),[p]),r((()=>{p&&p.setLayout(s)}),[p,s]),[p]}function Rc(){const e={itemStates:{},ignoreSelectionState:!1,selectedInEngine:[],enginePages:[],setPages:void 0,lastRowCount:void 0,lastApprMaxGlyphCount:void 0,update(t){var n,r,o;let{setPages:i,pages:a,isSingleSelect:s,selectDisabled:l,layout:c}=t;this.setPages=i;const u=this.lastRowCount===c.qListObject.qSize.qcy,d=this.lastApprMaxGlyphCount===c.qListObject.qDimensionInfo.qApprMaxGlyphCount;u&&d||(this.lastRowCount=c.qListObject.qSize.qcy,this.lastApprMaxGlyphCount=c.qListObject.qDimensionInfo.qApprMaxGlyphCount,this.clearItemStates(!1)),e.enginePages!==a&&void 0!==a&&(e.enginePages=null!=a?a:[],e.selectedInEngine=La(a),e.selectableValuesUpdating=!1,e.triggerStateChanged()),e.isSingleSelect=s,e.selectDisabled=l,e.isDimCalculated=null!==(n=null==c||null===(r=c.qListObject)||void 0===r||null===(o=r.qDimensionInfo)||void 0===o?void 0:o.qIsCalculated)&&void 0!==n&&n},allowedToSelect:()=>!e.selectDisabled()&&!(e.isDimCalculated&&e.selectableValuesUpdating),setSelectableValuesUpdating(){e.selectableValuesUpdating=!0},useClientItemState:t=>e.ignoreSelectionState||t in e.itemStates,isSelected:t=>e.useClientItemState(t)?!!e.itemStates[t]:e.selectedInEngine.includes(t),getState(t){const{qElemNumber:n,qState:r}=t;return e.useClientItemState(n)?e.itemStates[n]?"XS"===r?"XS":"S":"S"===r||"XS"===r?"A":r:r},updateItemNoEvents(t,n,r){const o=e.isSelected(t);o&&!n?e.itemStates[t]=!1:o||(null==r||r.push(t),e.itemStates[t]=!0)},triggerStateChanged(){if(this.setPages){const t=e.applySelectionsOnPages(e.enginePages);this.setPages(t)}},applySelectionsOnPages(t){const n=t.map((t=>{const n=t.qMatrix.map((t=>{const[n]=t,r=e.getState(n);return[$($({},n),{},{qState:r}),...t.slice(1)]}));return $($({},t),{},{qMatrix:n})}));return n},updateItem(t,n,r){e.updateItemNoEvents(t,n,r),e.triggerStateChanged()},updateItems(t,n,r){t.forEach((t=>{e.updateItemNoEvents(t,n,r)})),e.triggerStateChanged()},clearItemStates(t){e.itemStates={},e.ignoreSelectionState=t}};return e}const Ic=function(e,t){var n;let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return null!==(n=null==e?void 0:e[t])&&void 0!==n?n:r};function Oc(e){let{alignTo:o,anchorOrigin:i={vertical:"bottom",horizontal:"center"},transformOrigin:a={vertical:"top",horizontal:"center"},show:s,close:c,app:u,fieldName:h,stateName:f="$",autoFocus:m}=e;const g=Boolean(null==h?void 0:h.qLibraryId),y=s&&Boolean(o.current),[b,v]=n(0),S=ci(),x=d(),[E]=sa({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:f,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],qFieldDefs:g?void 0:[h]},qLibraryId:g?h.qLibraryId:void 0}},u,h,f),w=l((()=>{E.lock("/qListObjectDef")}),[E]),L=l((()=>{E.unlock("/qListObjectDef")}),[E]),{translator:I}=p(Ti),q=d(),k=d(),[_]=Lc(u,E,k),[T]=pa(E),[D]=n((()=>Rc()));if(r((()=>{_&&y&&(_.isModal(E)||_.goModal("/qListObjectDef"))}),[_,y]),!E||!T||!I)return null;const A=!0===T.qListObject.qDimensionInfo.qLocked,P=(e,t)=>{const n="escapeKeyDown"!==t;_.noModal(n),c()},N=Vl({layout:T,model:E,translator:I,selectionState:D}),M=function(e){const t=(null==e?void 0:e.qListObject.qDimensionInfo.qStateCounts)||{};return Ic(t,"qSelected",0)+Ic(t,"qSelectedExcluded",0)+Ic(t,"qLocked",0)+Ic(t,"qLockedExcluded",0)>0}(T);return t.createElement(O,{open:y,onClose:P,anchorEl:o.current,anchorOrigin:i,transformOrigin:a,PaperProps:{style:{minWidth:"250px"}}},t.createElement(C,{container:!0,direction:"column",gap:0,ref:k},t.createElement(C,{item:!0,container:!0,style:{padding:S.spacing(1)}},t.createElement(C,{item:!0},A?t.createElement(R,{onClick:L,disabled:!A,size:"large"},t.createElement(ba,{title:I.get("Listbox.Unlock")})):t.createElement(R,{onClick:w,disabled:!M,size:"large"},t.createElement(va,{title:I.get("Listbox.Lock")}))),t.createElement(C,{item:!0,xs:!0}),t.createElement(C,{item:!0},t.createElement(mc,{more:{enabled:!A,actions:N,alignTo:q,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:_,onConfirm:P,onCancel:()=>P(0,"escapeKeyDown")}}))),t.createElement(C,{item:!0,xs:!0},t.createElement("div",{ref:q}),t.createElement(C,{item:!0,ref:x},t.createElement(xc,{visible:!0,model:E,listCount:b,selections:_,selectionState:D,keyboard:{enabled:!1},autoFocus:null==m||m})),t.createElement(Bl,{model:E,app:u,layout:T,selections:_,selectionState:D,direction:"ltr",onSetListCount:e=>v(e),onCtrlF:()=>{const e=x.current.querySelector("input");null==e||e.focus()}}))))}function qc(e){let{field:r,api:o,stateIx:i=0,skipHandleShowListBoxPopover:a=!1,moreAlignTo:s=null,onClose:l=(()=>{})}=e;const{translator:c}=p(Ti),u=s||d(),h=ci(),[f,m]=n(!1),g=e=>{e.currentTarget.contains(e.target)&&m(!f)},y=()=>{m(!1),l()},b=r.selections[i];void 0===b.qTotal&&(b.qTotal=0);const v=b.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},x=(v.qSelected+v.qLocked)/b.qTotal,E=v.qAlternative/b.qTotal,w=(v.qExcluded+v.qLockedExcluded+v.qSelectedExcluded)/b.qTotal,L=v.qSelected+v.qSelectedExcluded+v.qLocked+v.qLockedExcluded,I=0===L&&0===b.qTotal;let O="";b.qTotal===L&&b.qTotal>1?O=c.get("CurrentSelections.All"):L>1&&b.qTotal?O=c.get("CurrentSelections.Of",[L,b.qTotal]):b.qSelectedFieldSelectionInfo&&(O=b.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==r.states[i]&&(O="".concat(r.states[i],": ").concat(O));const q=[{color:h.palette.selected.main,ratio:x},{color:h.palette.selected.alternative,ratio:E},{color:h.palette.selected.excluded,ratio:w}];q.forEach(((e,t)=>{e.offset=t?q[t-1].offset+q[t-1].ratio:0}));let k=null,_=null,T=null,D=null;return s||(k=t.createElement(C,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:b.qLocked?"0.3":""}},t.createElement(S,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},b.qField),t.createElement(S,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},O)),b.qLocked?_=t.createElement(C,{item:!0},t.createElement(R,{size:"large"},t.createElement(ba,null))):b.qOneAndOnlyOne||(_=t.createElement(C,{item:!0},t.createElement(R,{title:c.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),o.clearField(b.qField,r.states[i])},size:"large"},t.createElement(ya,null)))),T=t.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===I&&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,"%")}})))),D=t.createElement(C,{container:!0,gap:1,ref:u,sx:{backgroundColor:h.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:h.palette.action.hover}},onClick:!1===a&&g||null},k,_,T,f&&t.createElement(Oc,{alignTo:u,show:f,close:y,app:o.model,fieldName:b.qField,stateName:r.states[i]}))),s?t.createElement(Oc,{alignTo:u,show:!0,close:y,app:o.model,fieldName:b.qField,stateName:r.states[i]}):D}var kc=e=>ga((e=>$($({},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 _c={item:"".concat("MultiState","-item")},Tc=pi(C)((e=>{let{theme:t}=e;return{["&.".concat(_c.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"}}}));function Dc(e){let{field:r,api:o,moreAlignTo:i=null,onClose:a=(()=>{})}=e;const[s,l]=n(!!i),[c,u]=n(-1),[h,f]=n(i?i.current:null),m=i||d(),{translator:g}=p(Ti),y=g.get("Selection.ClearAllStates"),b=()=>{u(-1),a()};let v=null;i||(v=t.createElement(t.Fragment,null,t.createElement(C,{item:!0,xs:!0,zeroMinWidth:!0},t.createElement(P,{style:{padding:"0px 8px"},color:"secondary",badgeContent:r.states.length},t.createElement(S,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},r.name))),t.createElement(C,{item:!0},t.createElement("div",{style:{width:"12px"}})),t.createElement(C,{item:!0},t.createElement(R,{size:"large"},t.createElement(kc,null)))));const x=t.createElement(N,{dense:!0},t.createElement(M,{title:y,onClick:()=>{r.states.forEach((e=>o.clearField(r.name,e)))}},t.createElement(z,{variant:"contained",fullWidth:!0},y)),r.states.map(((e,n)=>t.createElement(M,{key:n,title:r.name,onClick:e=>((e,t)=>{e.stopPropagation(),l(!1),u(t)})(e,n)},t.createElement(E,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},t.createElement(qc,{field:r,api:o,stateIx:n,skipHandleShowListBoxPopover:!0})))))),w=t.createElement(O,{open:s,onClose:()=>{l(!1),a()},anchorEl:h,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},x),L=i?w:t.createElement(Tc,{container:!0,gap:0,className:_c.item,onClick:e=>{e.currentTarget.contains(e.target)&&(f(e.currentTarget),m.current=e.currentTarget,l(!s))}},v,s&&w,c>-1&&t.createElement(Oc,{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(Oc,{alignTo:m,show:c>-1,close:b,app:o.model,fieldName:r.selections[c].qField,stateName:r.states[c]}):L}const Ac="More",Pc={item:"".concat(Ac,"-item"),badge:"".concat(Ac,"-badge")},Nc=pi(C)((e=>{let{theme:t}=e;return{["&.".concat(Pc.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(Pc.badge)]:{padding:t.spacing(0,1)}}}));function Mc(e){let{items:r=[],api:o}=e;const i=ci(),[a,s]=n(!1),[l,c]=n(-1),[u,p]=n(null),h=d(),f=()=>{c(-1)};let m=null;return l>-1&&(m=r[l].states.length>1?t.createElement(Dc,{field:r[l],api:o,moreAlignTo:h,onClose:f}):t.createElement(qc,{field:r[l],api:o,skipHandleShowListBoxPopover:!0,moreAlignTo:h,onClose:f})),t.createElement(Nc,{container:!0,gap:0,className:Pc.item,onClick:e=>{e.currentTarget.contains(e.target)&&(p(e.currentTarget),h.current=e.currentTarget,s(!a))}},t.createElement(C,{item:!0},t.createElement(E,{borderRadius:i.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:i.palette.selected.main,color:i.palette.selected.mainContrastText}},t.createElement(S,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",r.length))),t.createElement(C,{item:!0},t.createElement(R,{size:"large"},t.createElement(kc,null))),a&&t.createElement(O,{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(N,{dense:!0},r.map(((e,n)=>t.createElement(M,{key:n,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),s(!1),c(t)})(e,n)},t.createElement(E,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?t.createElement(Dc,{field:e,api:o}):t.createElement(qc,{field:e,api:o}))))))),m)}const zc=120,jc=72;function Fc(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 Wc(e){let{api:o,app:i}=e;const a=ci(),[s]=ca(i),[l]=pa(s),[c,u]=n({items:[],more:[]}),[d]=Fi(),[p,h]=fa(),[f,m]=n(0);return r((()=>{if(!h)return;const{width:e}=h,t=Math.floor(e)-jc,n=Math.floor(t/zc);m(n)}),[h]),r((()=>{if(!(i&&s&&l&&f))return;const e=function(e){if(!e)return[];const t={};return e.qSelectionObject&&Fc(e.qSelectionObject,t),e.alternateStates&&e.alternateStates.forEach((e=>Fc(e.qSelectionObject,t,e.stateName))),Object.keys(t).map((e=>t[e])).filter((e=>!e.selections.some((e=>e.qIsHidden))))}(l);u((t=>{const n=e;if((()=>{const e=d.get(i.id);return e&&"njsListbox"===e.genericType})()&&n.length+1===t.items.length){const e=t.items.filter((e=>!1===n.some((t=>e.name===t.name))))[0],{qField:r}=e.selections[0];e.selections=[{qField:r}];const o=t.items.indexOf(e);n.splice(o,0,e)}let r=[];return f<n.length&&(r=n.splice(f-n.length)),{items:n,more:r}}))}),[i,s,l,o.isInModal(),f]),t.createElement(C,{ref:p,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},c.items.map((e=>t.createElement(C,{item:!0,key:"".concat(e.states.join("::"),"::").concat(e.name),style:{position:"relative",maxWidth:"240px",minWidth:"".concat(zc,"px"),background:a.palette.background.paper,borderRight:"1px solid ".concat(a.palette.divider)}},e.states.length>1?t.createElement(Dc,{field:e,api:o}):t.createElement(qc,{field:e,api:o})))),c.more.length>0&&t.createElement(C,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(jc,"px"),background:a.palette.background.paper,borderRight:"1px solid ".concat(a.palette.divider)}},t.createElement(Mc,{items:c.more,api:o})))}var Bc=e=>ga((e=>$($({},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 Hc=e=>ga((e=>$($({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M12,7 C12,5.66666667 12,5 12,5 C14.6666667,7.33333333 16,8.5 16,8.5 C13.3333333,10.8333333 12,12 12,12 L12,10 C7.83948865,9.86624054 6,12.1872632 6,12.1872632 C6,10.1337595 8.50904357,7 12,7 Z"}}]}))(e));const Uc=(e,t,n)=>{const r=[...n.qStateNames||[]].map((e=>({stateName:e,qSelectionObjectDef:{qStateName:e}})));(t&&t.alternateStates?t.alternateStates.map((e=>e.stateName)):[]).join("::")!==(n.qStateNames||[]).map((e=>e)).join("::")&&e.applyPatches([{qOp:"replace",qPath:"/alternateStates",qValue:JSON.stringify(r)}],!0)};function $c(e){let{api:o,app:i}=e;const{translator:a}=p(Ti),[s]=function(e){const[t]=ca(e),[o]=pa(t),[i]=ha(e),[a,s]=n(null);return r((()=>{i&&t&&o&&Uc(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]}(i);return t.createElement(C,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},t.createElement(C,{item:!0},t.createElement(R,{style:{marginRight:"8px"},disabled:!s||!s.canGoBack,title:a.get("Navigate.Back"),onClick:()=>o.back(),size:"large"},t.createElement(Bc,null))),t.createElement(C,{item:!0},t.createElement(R,{style:{marginRight:"8px"},disabled:!s||!s.canGoForward,title:a.get("Navigate.Forward"),onClick:()=>o.forward(),size:"large"},t.createElement(Hc,null))),t.createElement(C,{item:!0},t.createElement(R,{disabled:!s||!s.canClear,title:a.get("Selection.ClearAll"),onClick:()=>o.clear(),size:"large"},t.createElement(ec,null))))}const Gc=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function Vc(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function Kc(){return Gc.map(Vc).join("")}function Zc(e){let{app:n}=e;const r=ci(),[o]=Bi(n);return o?t.createElement(C,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:r.palette.background.paper,minHeight:"40px"}},t.createElement(C,{item:!0,style:{borderRight:"1px solid ".concat(r.palette.divider)}},t.createElement($c,{api:o,app:n})),t.createElement(C,{item:!0,xs:!0,style:{backgroundColor:r.palette.background.darker,overflow:"hidden"}},t.createElement(Wc,{api:o,app:n}))):null}var Jc="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{};function Xc(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}var Yc;let Qc;Qc="undefined"!=typeof window?window:"undefined"!=typeof self?self:Jc;let eu=null,tu=null;const nu=Qc.clearTimeout,ru=Qc.setTimeout,ou=Qc.cancelAnimationFrame||Qc.mozCancelAnimationFrame||Qc.webkitCancelAnimationFrame,iu=Qc.requestAnimationFrame||Qc.mozRequestAnimationFrame||Qc.webkitRequestAnimationFrame;function au(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}null==ou||null==iu?(eu=nu,tu=function(e){return ru(e,20)}):(eu=function([e,t]){ou(e),nu(t)},tu=function(e){const t=iu((function(){nu(n),e()})),n=ru((function(){ou(t),e()}),20);return[t,n]}),Yc={createDetectElementResize:function(e){let t,n,r,o,i,a,s;const l="undefined"!=typeof document&&document.attachEvent;if(!l){a=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},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)return;const t=this;a(this),this.__resizeRAF__&&eu(this.__resizeRAF__),this.__resizeRAF__=tu((function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))};let e=!1,l="";r="animationstart";const c="Webkit Moz O ms".split(" ");let u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),d="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){d=c[n],l="-"+d.toLowerCase()+"-",r=u[n],e=!0;break}}n="resizeanim",t="@"+l+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",o=l+"animation: 1ms "+n+"; "}return{addResizeListener:function(i,c){if(l)i.attachEvent("onresize",c);else{if(!i.__resizeTriggers__){const l=i.ownerDocument,c=Qc.getComputedStyle(i);c&&"static"===c.position&&(i.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(o||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',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)}}(l),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=l.createElement("div")).className="resize-triggers";const u=l.createElement("div");u.className="expand-trigger",u.appendChild(l.createElement("div"));const d=l.createElement("div");d.className="contract-trigger",i.__resizeTriggers__.appendChild(u),i.__resizeTriggers__.appendChild(d),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){}}}}}};var su={};function lu(e){return e&&!0!==e.disableHeight&&!0!==e.disableWidth}function cu(e){return e&&!0!==e.disableHeight&&!0===e.disableWidth}function uu(e){return e&&!0===e.disableHeight&&!0!==e.disableWidth}Xc(su,"isHeightAndWidthProps",(()=>lu)),Xc(su,"isHeightOnlyProps",(()=>cu)),Xc(su,"isWidthOnlyProps",(()=>uu));var du=class extends f{constructor(...e){super(...e),au(this,"state",{height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0}),au(this,"_autoSizer",null),au(this,"_detectElementResize",null),au(this,"_parentNode",null),au(this,"_resizeObserver",null),au(this,"_onResize",(()=>{const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){var r,o,i,a;const s=window.getComputedStyle(this._parentNode)||{},l=parseFloat(null!==(r=s.paddingLeft)&&void 0!==r?r:"0"),c=parseFloat(null!==(o=s.paddingRight)&&void 0!==o?o:"0"),u=parseFloat(null!==(i=s.paddingTop)&&void 0!==i?i:"0"),d=parseFloat(null!==(a=s.paddingBottom)&&void 0!==a?a:"0"),p=this._parentNode.getBoundingClientRect(),h=p.height-u-d,f=p.width-l-c,m=this._parentNode.offsetHeight-u-d,g=this._parentNode.offsetWidth-l-c;(e||this.state.height===m&&this.state.scaledHeight===h)&&(t||this.state.width===g&&this.state.scaledWidth===f)||(this.setState({height:m,width:g,scaledHeight:h,scaledWidth:f}),"function"==typeof n&&n({height:m,scaledHeight:h,scaledWidth:f,width:g}))}})),au(this,"_setRef",(e=>{this._autoSizer=e}))}componentDidMount(){const{nonce:e}=this.props;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,null!=this._parentNode&&("undefined"!=typeof ResizeObserver?(this._resizeObserver=new ResizeObserver((()=>{setTimeout(this._onResize,0)})),this._resizeObserver.observe(this._parentNode)):(this._detectElementResize=(0,Yc.createDetectElementResize)(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize)),this._onResize()))}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._resizeObserver&&(this._resizeObserver.observe(this._parentNode),this._resizeObserver.disconnect()))}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:r=!1,disableWidth:o=!1,nonce:i,onResize:a,style:s={},tagName:l="div",...c}=this.props,{height:u,scaledHeight:d,scaledWidth:p,width:f}=this.state,m={overflow:"visible"},g={};let y=!1;return r||(0===u&&(y=!0),m.height=0,g.height=u,g.scaledHeight=d),o||(0===f&&(y=!0),m.width=0,g.width=f,g.scaledWidth=p),h(l,{ref:this._setRef,style:{...m,...s},...c},!y&&e(g))}};var pu=e=>ga((e=>$($({},e),{},{shapes:[{type:"path",attrs:{d:"M15.9993744,3 L15.9993744,5 L4.99937445,5 L4.99937445,3 L15.9993744,3 Z M8.99937445,7 L15.9993744,7 L15.9993744,9 L8.99937445,9 L8.99937445,7 Z M11.9993744,11 L15.9993744,11 L15.9993744,13 L11.9993744,13 L11.9993744,11 Z M2.2,11 L7,11 L7,9.00369263 C7,8.89323568 7.08954305,8.80369263 7.2,8.80369263 C7.2549016,8.80369263 7.30738916,8.82626165 7.34515712,8.86610844 L10.1852182,11.8624926 C10.2583124,11.93961 10.258346,12.0604218 10.1852948,12.13758 L7.34523376,15.1373102 C7.2692928,15.2175206 7.14270711,15.2209817 7.06249671,15.1450407 C7.02260076,15.1072683 7,15.0547472 7,14.9998069 L7,12.9043747 C4.79351111,12.9043747 2.8018683,12.9266213 1.02507156,12.9711145 L1.02507252,12.9711526 C0.472939773,12.9849787 0.014139487,12.5485949 0.000313396522,11.9964622 C0.000104473692,11.988119 -1.32268838e-12,11.9797736 -1.3231638e-12,11.9714278 L-1.83320026e-12,3 L2,3 L2,10.8 C2,10.9104569 2.08954305,11 2.2,11 Z"}}]}))(e));function hu(e){null==e||e.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")}))}function fu(e){return(null==e?void 0:e.closest(".njs-cell"))||(null==e?void 0:e.closest(".qv-gridcell"))}function mu(e){let{keyboard:t,hovering:n,updateKeyScroll:r,containerRef:o,currentScrollIndex:i,isModal:a,constraints:s}=e;return{handleKeyDown:e=>{const{keyCode:n,shiftKey:r=!1}=e.nativeEvent,i=()=>{e.stopPropagation(),e.preventDefault()};if(!t.enabled)return;const s=e.currentTarget.closest(".listbox-container"),l=a();switch(n){case Ss.TAB:if(l)r?Cs(s)||Es(s):Es(s)||Cs(s);else{if(!r)break;t.blur(!0)}i();break;case Ss.ENTER:case Ss.SPACE:if(!e.target.classList.contains("listbox-container"))break;t.focus(),i();break;case Ss.ESCAPE:(e=>{const{currentTarget:n,target:r}=e,i=r.classList.contains("listbox-container"),a=fu(n.closest(".listbox-container")),s=1===(null==a?void 0:a.querySelectorAll(".listbox-container").length);if(i||s)t.blur(!0);else{hu(o.current),n.classList.add("last-focused"),t.blur();const e=n.closest(".listbox-container");e.setAttribute("tabIndex",-1),null==e||e.focus()}})(e)}},handleOnMouseEnter:()=>{(()=>{const e=(null==s?void 0:s.select)||(null==s?void 0:s.active),t=a();return e||t})()||(n.current=!0)},handleOnMouseLeave:()=>{n.current&&(n.current=!1)},globalKeyDown:e=>{if(!n.current)return;const{keyCode:t,ctrlKey:o=!1,shiftKey:a=!1}=e;switch(t){case Ss.ARROW_UP:r({up:1});break;case Ss.ARROW_DOWN:r({down:1});break;case Ss.PAGE_UP:r({up:i.stop-i.start});break;case Ss.PAGE_DOWN:r({down:i.stop-i.start});break;case Ss.HOME:r({scrollPosition:o&&a?"overflowStart":"start"});break;case Ss.END:r({scrollPosition:o&&a?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const gu=pi("div")((()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"})));function yu(e){let{text:n}=e;const{translator:r}=p(Ti);return t.createElement(gu,null,r.get(n))}const bu="ListBoxInline",vu={listBoxHeader:"".concat(bu,"-listBoxHeader"),screenReaderOnly:"".concat(bu,"-screenReaderOnly"),listboxWrapper:"".concat(bu,"-listboxWrapper")},Su=pi(C,{shouldForwardProp:e=>!["containerPadding","isGridMode"].includes(e)})((e=>{var t,n;let{theme:r,containerPadding:o,isGridMode:i}=e;return{backgroundColor:null!==(t=null===(n=r.listBox)||void 0===n?void 0:n.backgroundColor)&&void 0!==t?t:r.palette.background.default,["& .".concat(vu.listBoxHeader)]:{alignSelf:"center",display:"flex"},["& .".concat(vu.screenReaderOnly)]:{position:"absolute",height:0,width:0,overflow:"hidden"},["& .".concat(vu.listboxWrapper)]:{padding:o},"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(r.palette.custom.focusBorder," !important")},"&:focus ::-webkit-scrollbar-track":{boxShadow:i?void 0:"inset -2px -2px 0px #3F8AB3"},"&:focus-visible":{outline:"none"}}})),xu=pi(S)((e=>{var t,n,r,o,i,a,s,l,c,u,d,p;let{theme:h}=e;return{color:null===(t=h.listBox)||void 0===t||null===(n=t.title)||void 0===n||null===(r=n.main)||void 0===r?void 0:r.color,fontSize:null===(o=h.listBox)||void 0===o||null===(i=o.title)||void 0===i||null===(a=i.main)||void 0===a?void 0:a.fontSize,fontFamily:null===(s=h.listBox)||void 0===s||null===(l=s.title)||void 0===l||null===(c=l.main)||void 0===c?void 0:c.fontFamily,fontWeight:(null===(u=h.listBox)||void 0===u||null===(d=u.title)||void 0===d||null===(p=d.main)||void 0===p?void 0:p.fontWeight)||"bold"}}));const Eu=t.memo((function(e){var o,a,s,c,u;let{options:h,layout:f}=e;const{app:m,direction:g,frequencyMode:y,checkboxes:b,search:v=!0,focusSearch:S=!1,rangeSelect:x=!0,model:E,selections:w,update:L,fetchStart:I,selectDisabled:O=(()=>!1),postProcessPages:q,calculatePagesHeight:k,showGray:_=!0,scrollState:T,renderedCallback:D,toolbar:A=!0,isPopover:P=!1}=h,N=ci(),M=l((()=>{E.unlock("/qListObjectDef")}),[E]),{translator:z,keyboardNavigation:j,themeApi:F,constraints:W}=p(Ti);N.listBox=(e=>{const t=(t,n)=>e.getStyle("object.listBox",t,n);return{backgroundColor:t("","backgroundColor"),title:{main:{color:t("title.main","color"),fontSize:t("title.main","fontSize"),fontFamily:t("title.main","fontFamily"),fontWeight:t("title.main","fontWeight")}},content:{color:t("content","color"),fontSize:t("content","fontSize"),fontFamily:t("content","fontFamily")}}})(F);const B=function(e){let{appLayout:t}=e;return!(null==t||!t.qIsDirectQueryMode)}({appLayout:null==m?void 0:m.layout}),H=d(),[U,G]=fa(),[K,Z]=(()=>{const[e,t]=n({}),r=l((e=>{t({current:e})}),[t]);return[e,r]})(),[J,X]=n(!1),[Y,Q]=n(!1),ee=d(!1),[te,ne]=n({down:0,up:0,scrollPosition:""}),re=e=>ne((t=>$($({},t),e))),[oe,ie]=n({start:0,stop:0}),[ae]=Bi(m),se=d(null),[le]=n((()=>Rc())),ce=function(e){let{containerRef:t,enabled:r}=e;const[o,i]=n(!1);return{enabled:r,active:o,innerTabStops:!r||o,blur(e){var n;if(!r)return;i(!1);const o=fu(t.current)||(null===(n=t.current)||void 0===n?void 0:n.parentElement);var a;null==(a=t.current)||a.querySelectorAll('[tabIndex="0"]').forEach((e=>{e.setAttribute("tabIndex",-1)})),hu(t.current),e&&o&&(o.setAttribute("tabIndex",0),o.focus())},focus(){if(!r)return;i(!0);const e=t.current,n=null==e?void 0:e.querySelector(".search input"),o=null==e?void 0:e.querySelector(".value.last-focused"),a=null==e?void 0:e.querySelector(".value.selector, .value"),s=null==e?void 0:e.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),l=n||o||a||s;null==l||l.setAttribute("tabIndex",0),null==l||l.focus()},focusSelection(){const e=document.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm");null==e||e.setAttribute("tabIndex",0),null==e||e.focus()}}}({containerRef:H,enabled:j}),ue=l((()=>(e=>{var t,n;let{app:r,appSelections:o}=e;return null!==(t=null===(n=r.isInModalSelection)||void 0===n?void 0:n.call(r))&&void 0!==t?t:o.isInModal()})({app:m,appSelections:ae})),[m,ae]),de=null==f?void 0:f.qListObject.qDimensionInfo.qError,pe=de&&W.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",[he,fe]=n(!1),{handleKeyDown:me,handleOnMouseEnter:ge,handleOnMouseLeave:ye,globalKeyDown:be}=i((()=>mu({keyboard:ce,hovering:ee,updateKeyScroll:re,containerRef:H,currentScrollIndex:oe,app:m,appSelections:ae,constraints:W,isModal:ue})),[ce,ee,re,H,oe,m,ae,W,ue]),ve=A&&(""===(null==f?void 0:f.title)||!1===(null==f?void 0:f.showTitle))&&!P,Se=A&&""!==(null==f?void 0:f.title)&&!1!==(null==f?void 0:f.showTitle)||P;r((()=>(document.addEventListener("keydown",be),()=>{document.removeEventListener("keydown",be)})),[be]),r((()=>{const e=()=>{X(!0)},t=()=>{X(!1),"toggle"===v&&Q(!1)};return P&&(w.isActive()||(w.begin("/qListObjectDef"),w.on("activated",e),w.on("deactivated",t)),X(P)),w&&(w.isModal()||(w.on("activated",e),w.on("deactivated",t)),X(w.isActive())),()=>{w&&w.removeListener&&(w.removeListener("activated",e),w.removeListener("deactivated",t))}}),[w,P]),r((()=>{if(K&&K.current&&(v&&S||"toggle"===v&&Y)){const e=K.current.querySelector("input");e&&e.focus()}}),[K&&K.current,Y,v,S]);const{wildCardSearch:xe,searchEnabled:Ee,layoutOptions:Ce={}}=null!=f?f:{},we=!1!==Ee&&"toggle"===v,Le=!0===(null==f||null===(o=f.qListObject)||void 0===o||null===(a=o.qDimensionInfo)||void 0===a?void 0:a.qLocked),Re=Le||we,Ie="H"===(null==f||null===(s=f.qListObject)||void 0===s||null===(c=s.qDimensionInfo)||void 0===c?void 0:c.qGrouping),Oe=Re||Ie,qe=(Re?28:0)+(Ie?19:0),ke="rtl"===g,_e=za-(Re?7:0),Te=ke?za-(Oe?7:0):4;if(r((()=>{if(!se.current||!G)return;const e=function(e){var t,n,r,o;let{containerRect:i,titleRef:a,iconsWidth:s,headerPaddingLeft:l,headerPaddingRight:c}=e;const u=l+c,d=i.width<(null!==(t=null==a||null===(n=a.current)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)+s+u+2+128,p=(null==a||null===(r=a.current)||void 0===r?void 0:r.scrollWidth)>(null==a||null===(o=a.current)||void 0===o?void 0:o.offsetWidth);return!(!d&&!p)}({containerRect:G,titleRef:se,iconsWidth:qe,headerPaddingLeft:_e,headerPaddingRight:Te});fe(e)}),[se.current,G]),!E||!f||!z)return null;const De=Vl({layout:f,model:E,translator:z,selectionState:le,isDirectQuery:B}),Ae=(!0===v||"toggle"===v&&Y)&&!O()&&!1!==Ee,Pe=null!==(u=Ce.dense)&&void 0!==u&&u,Ne=Se?49+(Ae?Pe?27:40:0)+(Pe?39:49):0,Me=()=>{Q(!Y)},ze=()=>{if("toggle"===v)Me();else{const e=K.current.querySelector("input");null==e||e.focus()}},je=e=>function(e){let{isDetached:t,showToolbar:n,containerRef:r,isLocked:o,listboxSelectionToolbarItems:i,selections:a,keyboard:s}=e;return{show:n&&!t,popover:{show:n&&t,anchorEl:r.current},more:{enabled:!o,actions:i,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:n,api:a,onConfirm:()=>{null==s||s.focus()},onCancel:()=>{null==s||s.focus()}}}}({isDetached:!P&&e,showToolbar:J,containerRef:H,isLocked:Le,listboxSelectionToolbarItems:De,selections:w,keyboard:ce}),Fe=Ae&&"toggle"===v,We="grid"===(null==Ce?void 0:Ce.dataLayout);let Be;We&&(Be="row"===Ce.layoutOrder?"2px 4px":"2px 6px 2px 4px");const He=null!=W&&W.active?t.createElement(gc,{title:z.get("Listbox.Search"),size:"large",style:{fontSize:"12px",padding:"7px"}}):t.createElement(R,{onClick:Me,tabIndex:-1,title:z.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},t.createElement(gc,{style:{fontSize:"12px"}})),Ue=O()?t.createElement(ba,{size:"large",style:{fontSize:"12px",padding:"7px"}}):t.createElement(R,{title:z.get("SelectionToolbar.ClickToUnlock"),tabIndex:-1,onClick:M,size:"large"},t.createElement(ba,{disableRipple:!0,style:{fontSize:"12px"}}));return de&&(null==D||D()),t.createElement(t.Fragment,null,ve&&t.createElement(mc,V({direction:g},je(!0))),t.createElement(Su,{className:"listbox-container",container:!0,tabIndex:ce.enabled?-1:void 0,direction:"column",gap:0,containerPadding:Be,style:{height:"100%",minHeight:"".concat(Ne,"px"),flexFlow:"column nowrap"},onKeyDown:me,onMouseEnter:ge,onMouseLeave:ye,ref:e=>{H.current=e,U(e)},isGridMode:We},Se&&t.createElement(C,{item:!0,container:!0,minHeight:32,flexDirection:ke?"row-reverse":"row",marginY:1,paddingLeft:"".concat(_e,"px"),paddingRight:"".concat(Te,"px"),wrap:"nowrap"},Oe&&t.createElement(C,{item:!0,container:!0,alignItems:"center",width:qe},Le?Ue:we&&He,Ie&&t.createElement(pu,{tabIndex:-1,title:z.get("Listbox.DrillDown"),size:"large",style:{fontSize:"12px"}})),t.createElement(C,{item:!0,xs:!0,minWidth:0,justifyContent:ke?"flex-end":"flex-start",className:vu.listBoxHeader},t.createElement(xu,{variant:"h6",noWrap:!0,ref:se,title:f.title},f.title)),t.createElement(C,{item:!0},t.createElement(mc,V({direction:g},je(he))))),t.createElement(C,{item:!0,container:!0,direction:"column",style:{height:"100%",minHeight:"50px"},role:"region","aria-label":z.get("Listbox.ResultFilterLabel")},t.createElement(C,{item:!0,ref:Z},t.createElement("div",{className:vu.screenReaderOnly},z.get("Listbox.Search.ScreenReaderInstructions")),t.createElement(xc,{selections:w,selectionState:le,model:E,dense:Pe,keyboard:ce,visible:Ae,search:v,autoFocus:Fe,wildCardSearch:xe,searchEnabled:Ee,direction:g,hide:we&&Me})),t.createElement(C,{item:!0,xs:!0,className:vu.listboxWrapper},t.createElement("div",{className:vu.screenReaderOnly},z.get("Listbox.ScreenReaderInstructions")),de?t.createElement(yu,{text:pe}):t.createElement(du,null,(e=>{let{height:n,width:r}=e;return t.createElement(Bl,{model:E,app:m,constraints:W,layout:f,selections:w,selectionState:le,direction:g,frequencyMode:y,rangeSelect:x,checkboxes:b,height:n,width:r,update:L,fetchStart:I,postProcessPages:q,calculatePagesHeight:k,selectDisabled:O,keyboard:ce,showGray:_,scrollState:T,keyScroll:{state:te,reset:()=>ne({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:oe,set:ie},renderedCallback:D,onCtrlF:ze,isModal:ue})}))))))}));function Cu(e){let{options:n={}}=e;const{model:r}=n,[o]=pa(r);return t.createElement(Eu,{options:n,layout:o})}const wu={qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:"",qShowAlternatives:!0,frequencyEnabled:!1,qFrequencyMode:"N",qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},histogram:!1,frequencyMax:void 0,checkboxes:!1,searchEnabled:!0,showTitle:!0,wildCardSearch:!1,layoutOptions:{dense:!1,dataLayout:"singleColumn",layoutOrder:"row",maxVisibleColumns:{auto:!0,maxColumns:3},maxVisibleRows:{auto:!0,maxRows:3}},title:""};const Lu=["__DO_NOT_USE__"],Ru=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{__DO_NOT_USE__:t={}}=e,n={update:void 0,fetchStart:void 0,showGray:!0,focusSearch:!1,sessionModel:void 0,selectionsApi:void 0,selectDisabled:void 0,postProcessPages:void 0,calculatePagesHeight:!1};return $($($({},K(e,Lu)),n),t)};function Iu(e){let{app:o,fieldIdentifier:a,qId:s,stateName:l,element:c,options:u,renderedCallback:p}=e;const{isExistingObject:h,hasExternalSelectionsApi:f}=function(e){let{qId:t,options:n}=e;return{isExistingObject:!(!t&&!n.sessionModel),hasExternalSelectionsApi:!!n.selectionsApi}}({qId:s,options:u}),[m,g]=n(0);r((()=>{if(m)throw new Error("Source or selection Api can not change after a listbox has been mounted");g(m+1)}),[h,f]);const y=h?function(e){let{app:t,qId:o,options:i={}}=e;const[a,s]=n(),[l]=oa(),{sessionModel:c}=i,u=["dense","frequencyMode","checkboxes","histogram","title","stateName","listLayout"],d=Object.keys(i).filter((e=>u.includes(e)));if(d.length)throw new Error('Option "'.concat(d.join(", "),'" is not applicable for existing objects.'));return r((()=>{c?s(c):async function(){const e=l.get(o);if(e)s(e);else{const e=await t.getObject(o);l.set(e.id,e),e.once("closed",(()=>{l.clear(e.id)})),s(e)}}()}),[]),a}({app:o,qId:s,options:u}):function(e){var t;let{app:o,fieldIdentifier:i,stateName:a,options:s={}}=e;const[l,c]=n(""),[u,p]=n(!0),[h,f]=n(),[m,g]=n(),y=null!==(t=s.title)&&void 0!==t?t:m;r((()=>{const e=s.histogram||"N"!==s.frequencyMode;i.qLibraryId&&e?async function(){try{const e=await o.getDimension(i.qLibraryId),t=await e.getLayout();g(t.qDim.title),"N"===t.qDim.qGrouping?c(t.qDim.qFieldDefs?t.qDim.qFieldDefs[0]:""):c({multiFieldDim:!0}),p(!1)}catch(e){throw p(!1),c({failedToFetchFieldDef:!0}),new Error("Disabling frequency count and histogram: ".concat(e&&e.message))}}():(p(!1),g(i))}),[]);const{dense:b,checkboxes:v,listLayout:S,properties:x={}}=s;let{frequencyMode:E,histogram:C=!1}=s;switch(l&&l.failedToFetchFieldDef&&(C=!1,E="N"),!0){case["none","N","NX_FREQUENCY_NONE"].includes(E):E="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(E):E="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(E):E="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(E):E="R";break;default:E="N"}const w={dense:b};"horizontal"===S&&(w.dataLayout="grid",w.layoutOrder="column",w.maxVisibleColumns={auto:!0},w.maxVisibleRows={auto:!1,maxRows:1});const L=d();L.current||(L.current=Kc());const R=$e(!0,{},wu,{qInfo:{qId:L.current},qListObjectDef:{qStateName:a,qFrequencyMode:C&&"N"===E?"V":E},histogram:C,checkboxes:v,layoutOptions:w,title:y});let I;if($e(!0,R,x),i.qLibraryId?(R.qListObjectDef.qLibraryId=i.qLibraryId,I=i.qLibraryId):(R.qListObjectDef.qDef.qFieldDefs=[i],I=i),"P"!==E&&C)if(null!=l&&l.multiFieldDim)R.frequencyMax="fetch";else{const e=i.qLibraryId?l:I;R.frequencyMax={qValueExpression:Ml(e)}}const[O]=sa(R,u?null:o,I,a);return r((()=>{O&&f(O)}),[O]),h}({app:o,fieldIdentifier:a,stateName:l,options:u}),b=d(c),v=f?u.selectionsApi:Lc(o,y,[b,".njs-action-toolbar-more",".njs-action-toolbar-popover"],u)[0],S=i((()=>$($({},u),{},{selections:v,model:y,app:o,renderedCallback:p})),[u,v,y,o]);return v&&y?t.createElement(Cu,{options:S}):null}const Ou={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function qu(e){let{app:r,fieldIdentifier:o,stateName:i,element:a,options:s={}}=e;const[l,c]=n(!!s.show);return t.createElement(Oc,{show:l,app:r,alignTo:{current:a},anchorOrigin:s.anchorOrigin,transformOrigin:s.transformOrigin,close:()=>{c(!1),s.onPopoverClose&&s.onPopoverClose()},fieldName:o,stateName:i,autoFocus:s.autoFocus})}function ku(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function _u(e,t){let n=0;for(let r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n}const Tu=e=>({qDef:{qFieldDefs:[e]}}),Du=e=>({qDef:{qDef:e}});function Au(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?Tu(e):$($({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||Kc(),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),ku(t.qInterColumnSortOrder,t.qDimensions.length-1),n.dimensions.added(r,o)):(t.qLayoutExclude=t.qLayoutExclude||{},t.qLayoutExclude.qHyperCubeDef=t.qLayoutExclude.qHyperCubeDef||{},t.qLayoutExclude.qHyperCubeDef.qDimensions=t.qLayoutExclude.qHyperCubeDef.qDimensions||[],t.qLayoutExclude.qHyperCubeDef.qMeasures=t.qLayoutExclude.qHyperCubeDef.qMeasures||[],t.qLayoutExclude.qHyperCubeDef.qDimensions.push(r)),r},removeDimension(e){const r=t.qDimensions.splice(e,1)[0];return _u(t.qInterColumnSortOrder,e),n.dimensions.removed(r,o,e),r},addMeasure(e){const r="string"==typeof e?Du(e):$($({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||Kc(),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),ku(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];_u(t.qInterColumnSortOrder,t.qDimensions.length+e),n.measures.removed(r,o,e)},maxDimensions:()=>n.dimensions.max(t.qMeasures.length),maxMeasures:()=>n.measures.max(t.qDimensions.length),canAddDimension:()=>t.qDimensions.length<i.maxDimensions(),canAddMeasure:()=>t.qMeasures.length<i.maxMeasures()};return i}const Pu=e=>({qDef:{qFieldDefs:[e]}});function Nu(e){let{dc:t,def:n,properties:r}=e;t.qInitialDataFetch=t.qInitialDataFetch||[];const o=r,i={dimensions:()=>t.qLibraryId||t.qDef&&t.qDef.qFieldDefs&&0!==t.qDef.qFieldDefs.length?[t]:[],measures:()=>[],addDimension(e){const r="string"==typeof e?Pu(e):$($({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||Kc(),r.qDef.qSortCriterias=t.qDef.qSortCriterias||[{qSortByState:1,qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],Object.keys(r).forEach((e=>{t[e]=r[e]})),n.dimensions.added(r,o),r},removeDimension(e){const r=t;return delete t.qDef,delete t.qLibraryId,n.dimensions.removed(r,o,e),r},addMeasure(){},removeMeasure(){},maxDimensions:()=>1,maxMeasures:()=>0,canAddDimension:()=>0===i.dimensions().length,canAddMeasure:()=>!1};return i}const Mu=e=>({qDef:{qFieldDefs:[e]}}),zu=e=>{let t;return t="string"==typeof e?$e(!0,{},wu,{qListObjectDef:Mu(e)}):e.qListObjectDef?$e(!0,{},wu,e):$e(!0,{},wu,{qListObjectDef:e}),t};function ju(e){let{children:t,halo:n}=e;return{async addDimension(e){const r=zu(e),o=r.qListObjectDef;if(o.qDef.cId=o.qDef.cId||Kc(),!r.title)if(o.qLibraryId){const e=await n.app.getDimension(o.qLibraryId),t=await e.getProperties();t.qDim.qLabelExpression?r.title={qStringExpression:{qExpr:t.qDim.qLabelExpression}}:r.title=t.qDim.title}else{var i,a;r.title=o.qDef.title||(null===(i=o.qDef.qFieldLabels)||void 0===i?void 0:i[0])||(null===(a=o.qDef.qFieldDefs)||void 0===a?void 0:a[0])}t.push({qProperty:r,qChildren:[]})},addMeasure(){}}}function Fu(e){return"string"==typeof e&&"="===e[0]||"object"==typeof e&&e.qDef&&e.qDef.qDef||"object"==typeof e&&e.qLibraryId&&"measure"===e.type?"measure":"dimension"}async function Wu(e,t){let{sn:n,properties:r,fields:o,children:i}=e;if(!o.length)return;const a=n.qae.data.targets[0];if(!a)return;const{propertyPath:s}=a,l=s.split("/");let c=r;for(let e=0;e<l.length;e++){const t=l[e];c=t?c[t]:c}const u=function(e){return e.match("/qListObjectDef")?Nu:e.match("/qChildListDef")?ju:Au}(s),d=u({dc:c,def:a,properties:r,children:i,halo:t});for(let e=0;e<o.length;++e){const t=o[e];"measure"===Fu(t)?await d.addMeasure(t):await d.addDimension(t)}}var Bu={getValue:(e,t,n)=>{if(null==e||null==t)return n;const r=t.split(".");let o=e;for(let e=0;e<r.length;++e){const t=r[e];if(""!==t){if(void 0===o[t]||null===o[t])return n;o=o[t]}}return o},setValue:(e,t,n)=>{if(null==e||null==t)return;const r=t.split("."),o=r[r.length-1];let 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]},isEmpty:e=>0===Object.keys(e).length&&e.constructor===Object};var Hu={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;let n=e.indexOf(t[0]);if(-1!==n){for(let r=0;r<t.length;r++){const o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){let n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r}};const Uu=2**53-1;function $u(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function Gu(e,t){const n=$e(!0,{},t,e);return Bu.getValue(n,"qOtherTotalSpec.qOtherCounted")||Bu.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),Bu.getValue(n,"qOtherTotalSpec.qOtherLimit")||Bu.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function Vu(e,t){return $e(!0,{},t,e)}function Ku(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var Zu={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===Bu.getValue(e,t)&&Bu.setValue(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:$u,importCommonProperties:function(e,t,n){const r="masterobject"===Bu.getValue(t,"properties.qInfo.qType")?"masterobject":Bu.getValue(n,"qInfo.qType");Bu.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},copyPropertyIfExist:function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},copyPropertyOrSetDefault:function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},createDefaultDimension:Gu,createDefaultMeasure:Vu,resolveValue:Ku,getHypercubePath:function(e){const t=Bu.getValue(e,"data.targets.0.propertyPath","").split("/");return t.length&&"qHyperCubeDef"===t[t.length-1]&&(t.length-=1),t.join(".")},getDefaultDimension:function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},getDefaultMeasure:function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},setInterColumnSortOrder:function(e){let{exportFormat:t,newHyperCubeDef:n}=e;const r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();let i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(Hu.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,Hu.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=$e(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?Bu.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||$u(e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),o=$e(!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=Ku(i.max,r.dimensions.length,Uu),s=Ku(i.min,r.dimensions.length,0);return{maxDimensions:Ku(o.max,a,Uu),minDimensions:Ku(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(Gu(a.dimensions[s],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(Gu(a.dimensions[s],i));else if(a.dimensions.length)for(s=0;s<a.dimensions.length;++s)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(Gu(a.dimensions[s],i));if(a.excludedDimensions.length)for(s=0;s<a.excludedDimensions.length;++s)o.qDimensions.length<r?o.qDimensions.push(Gu(a.excludedDimensions[s],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(Gu(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(Vu(a.measures[s],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(Vu(a.measures[s],i));else if(a.measures.length)for(s=0;s<a.measures.length;++s)o.qLayoutExclude.qHyperCubeDef.qMeasures.push(Vu(a.measures[s],i));if(a.excludedMeasures.length)for(s=0;s<a.excludedMeasures.length;++s)o.qMeasures.length<r?o.qMeasures.push(Vu(a.excludedMeasures[s],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(Vu(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=Bu.getValue(t,r||"").qHyperCubeDef,o=[...e.qDimensions];e.qDimensions=[],o.forEach((r=>{e.qDimensions.push(r),n.dimensions.added(r,t)}))}},updateMeasuresOnAdded:function(e){let{newProperties:t,dataDefinition:n,hypercubePath:r}=e;if(n.measures&&"function"==typeof n.measures.added){const e=Bu.getValue(t,r||"").qHyperCubeDef,o=[...e.qMeasures];e.qMeasures=[],o.forEach((r=>{e.qMeasures.push(r),n.measures.added(r,t)}))}}};var Ju={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=Bu.getValue(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();Hu.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&&(Zu.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!Bu.isEmpty(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=Zu.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:i}),l=Bu.getValue(n,i||"").qHyperCubeDef,c=Bu.getValue(s,i||"").qHyperCubeDef,{maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:h}=Zu.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:f=Zu.getDefaultDimension(),defaultMeasure:m=Zu.getDefaultMeasure()}=o;return c.qDimensions.length=0,c.qMeasures.length=0,Zu.shouldInitLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:h})&&Zu.initLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:h,newHyperCubeDef:c}),Zu.addDefaultDimensions({exportFormat:t,maxDimensions:u,minDimensions:d,newHyperCubeDef:c,defaultDimension:f}),Zu.addDefaultMeasures({exportFormat:t,maxMeasures:p,minMeasures:h,newHyperCubeDef:c,defaultMeasure:m}),Zu.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:c}),Zu.copyPropertyIfExist("qMaxStackedCells",l,c),Zu.copyPropertyIfExist("qNoOfLeftDims",l,c),Zu.copyPropertyOrSetDefault("qInitialDataFetch",l,c,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),Zu.copyPropertyOrSetDefault("qMode",l,c,"S"),Zu.copyPropertyOrSetDefault("qReductionMode",l,c,"N"),Zu.copyPropertyOrSetDefault("qSortbyYValue",l,c),Zu.copyPropertyOrSetDefault("qIndentMode",l,c),Zu.copyPropertyOrSetDefault("qShowTotalsAbove",l,c),Zu.importCommonProperties(s,t,n),Zu.updateDimensionsOnAdded({newProperties:s,dataDefinition:r,hypercubePath:i}),Zu.updateMeasuresOnAdded({newProperties:s,dataDefinition:r,hypercubePath:i}),a.qProperty=s,a}(e)};const Xu=e=>Bu.getValue(e,"data.targets.0.propertyPath"),Yu=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return Ju.exportProperties})(Xu(e))},Qu=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return Ju.importProperties})(Xu(e))},ed=async e=>{let{halo:t,model:n,cellRef:r,newType:o}=e;const i=await n.getFullPropertyTree(),a=r.current.getQae(),s=Yu(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 Qu(c)({exportFormat:s({propertyTree:i,hypercubePath:Zu.getHypercubePath(a)}),initialProperties:$({qInfo:{qType:o},visualization:o},Bu.getValue(c,"properties.initial",{})),dataDefinition:Bu.getValue(c,"data.targets.0.",{}),hypercubePath:Zu.getHypercubePath(c)})},td={hypercube:Ju};var nd=e=>ga((e=>$($({},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 rd(e){let{d:n}=e;const r=ci();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(S,{style:{lineHeight:"30px",paddingRight:r.spacing(1)}},t.createElement(j,null,n.missing||n.error?t.createElement(nd,{style:a}):t.createElement(Da,{style:a})));return t.createElement(C,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},t.createElement(C,{item:!0},s),t.createElement(C,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},t.createElement(S,{noWrap:!0,component:"p"},t.createElement(S,{component:"span",variant:"subtitle2",color:o},n.description),t.createElement(S,{component:"span"}," "),t.createElement(S,{component:"span",variant:"subtitle2",color:n.error?"error":"inherit",style:{fontWeight:400}},n.label))))}function od(e){let{data:n}=e;const r=ci();return t.createElement(C,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},n.map(((e,n)=>{const o=e.descriptions.map(((e,n)=>t.createElement(rd,{d:e,key:n})));return o.length>0&&t.createElement(C,{container:!0,item:!0,key:n,direction:"column",style:{paddingBottom:r.spacing(2)}},t.createElement(S,{noWrap:!0,key:n,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),o)})))}function id(e){let{title:n="Error",message:r="",data:o=[]}=e;return t.createElement(C,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},t.createElement(C,{item:!0},t.createElement(nd,{style:{fontSize:"38px"}})),t.createElement(C,{item:!0},t.createElement(S,{variant:"h6",align:"center","data-tid":"error-title"},n)),t.createElement(C,{item:!0},t.createElement(S,{variant:"subtitle1",align:"center","data-tid":"error-message"},r)),t.createElement(od,{data:o}))}const ad=["size"],sd="Progress",ld={root:"".concat(sd,"-root"),front:"".concat(sd,"-front"),back:"".concat(sd,"-back")},cd=pi("div")((e=>{let{theme:t}=e;return{["&.".concat(ld.root)]:{position:"relative",display:"inline-block"},["& .".concat(ld.front)]:{color:t.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(ld.back)]:{color:t.palette.divider}}})),ud={small:16,medium:32,large:64,xlarge:128};function dd(e){let{size:n="medium"}=e,r=K(e,ad);const o=ud[n];return t.createElement(cd,{className:ld.root},t.createElement(F,V({variant:"determinate",value:100,className:ld.back,size:o,thickness:3},r)),t.createElement(F,V({variant:"indeterminate",disableShrink:!0,className:ld.front,size:o,thickness:3},r)))}const pd=["cancel","translator"],hd=["retry","translator"],fd={stripes:"".concat("LongRunningQuery","-stripes")},md=pi(C)((()=>({["& .".concat(fd.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 gd(e){let{cancel:n,translator:r}=e,o=K(e,pd);return t.createElement(t.Fragment,null,t.createElement(md,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},t.createElement(C,{item:!0},t.createElement(dd,null)),t.createElement(C,{item:!0},t.createElement(S,{variant:"h6",align:"center","data-tid":"update-active"},r.get("Object.Update.Active")))),t.createElement(C,V({item:!0},o),t.createElement(z,{variant:"contained",onClick:n},r.get("Cancel"))))}function yd(e){let{retry:n,translator:r}=e,o=K(e,hd);return t.createElement(t.Fragment,null,t.createElement(C,{item:!0},t.createElement(nd,{style:{fontSize:"38px"}})),t.createElement(C,{item:!0},t.createElement(S,{variant:"h6",align:"center","data-tid":"update-cancelled"},r.get("Object.Update.Cancelled"))),t.createElement(C,{item:!0},t.createElement(z,V({variant:"contained",onClick:n},o),r.get("Retry"))))}function bd(e){let{canCancel:n,canRetry:r,api:o}=e;const{translator:i}=p(Ti);return t.createElement(C,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:fd.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},n&&t.createElement(gd,{cancel:o.cancel,translator:i,className:fd.cancel}),r&&t.createElement(yd,{retry:o.retry,translator:i,className:fd.retry}))}function vd(){return t.createElement(C,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t.createElement(dd,{size:"large"}))}const Sd="Header",xd={containerStyle:"".concat(Sd,"-containerStyle"),containerTitleStyle:"".concat(Sd,"-containerTitleStyle")},Ed=pi(C)((e=>{let{theme:t}=e;return{["&.".concat(xd.containerStyle)]:{flexGrow:0},["&.".concat(xd.containerTitleStyle)]:{paddingBottom:t.spacing(1)}}})),Cd="njs-cell-title",wd="njs-cell-sub-title";function Ld(e){let{layout:o,sn:i,anchorEl:a,hovering:s,focusHandler:l,titleStyles:c={}}=e;const u=o.showTitles&&!!o.title,d=o.showTitles&&!!o.subtitle,p=o.qSelectionInfo&&o.qSelectionInfo.qInSelections,[h,f]=n([]),[m,g]=fa(),[y,b]=n(!1);r((()=>{i&&i.component&&i.component.isHooked&&i.component.observeActions((e=>{f([...e,...i&&i.selectionToolbar&&i.selectionToolbar.items||[]])}))}),[i]),r((()=>{if(!g)return;const{width:e}=g;b(e<221)}),[g]);const v=u||d,x=[xd.containerStyle,...v?[xd.containerTitleStyle]:[]],E=(s||p)&&(y||!v),w=v&&!E&&!y,L=t.createElement(mc,{show:w,selections:{show:p,api:i.component.selections,onKeyDeactivate:l.refocusContent},actions:h,popover:{show:E,anchorEl:a},focusHandler:l});return t.createElement(Ed,{ref:m,item:!0,container:!0,wrap:"nowrap",className:x.join(" ")},t.createElement(C,{item:!0,zeroMinWidth:!0,xs:!0},t.createElement(C,{container:!0,wrap:"nowrap",direction:"column"},u&&t.createElement(S,{variant:"h6",noWrap:!0,className:Cd,style:c.main},o.title),d&&t.createElement(S,{variant:"body2",noWrap:!0,className:wd,style:c.subTitle},o.subtitle))),t.createElement(C,{item:!0},L))}const Rd={itemStyle:"".concat("Footer","-itemStyle")},Id=pi(C)((e=>{let{theme:t}=e;return{["& .".concat(Rd.itemStyle)]:{minWidth:0,paddingTop:t.spacing(1)}}})),Od="njs-cell-footer";function qd(e){let{layout:n,titleStyles:r={}}=e;return n&&n.showTitles&&n.footnote?t.createElement(Id,{container:!0},t.createElement(C,{item:!0,className:Rd.itemStyle},t.createElement(S,{noWrap:!0,variant:"body2",className:Od,style:r.footer},n.footnote))):null}class kd{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 _d="njs-viz";function Td(e){let{sn:o,snOptions:i,snPlugins:a,layout:s,appLayout:c,halo:u}=e;const{component:d}=o,{theme:h,language:f,constraints:m,interactions:g,keyboardNavigation:y}=p(Ti),[b]=n((()=>new kd)),[v,S]=n(!1),[x,E]=n(0),[C,w,L]=fa(),[R,I]=n(null),O=l((e=>{e&&I(e)}),[]);return r((()=>{if(R)return d.created({options:i}),d.mounted(R),S(!0),()=>{b.stop(),d.willUnmount()}}),[R,d]),r((()=>{v&&R&&w&&(!d.isHooked&&s&&s.qSelectionInfo&&s.qSelectionInfo.qInSelections||b.schedule((()=>{const e=[];return m.passive||e.push("passive"),m.active||e.push("interact"),m.select||e.push("select"),m.edit||e.push("edit"),u.app&&u.app.session&&e.push("fetch"),Promise.resolve(d.render({layout:s,options:i,plugins:a,embed:u.public.nebbie,context:$({constraints:m,interactions:g,theme:u.public.theme,appLayout:c,keyboardNavigation:y},d.isHooked?{}:{logicalSize:o.logicalSize({layout:s}),localeInfo:(c||{}).qLocaleInfo,permissions:e})})).then((e=>{!1!==e&&(0===x&&"function"==typeof i.onInitialRender&&i.onInitialRender.call(null),E(x+1))}))})))}),[w,i,a,R,L,s,c,h,f,m,g,v,y]),t.createElement("div",{ref:C,"data-render-count":x,style:{position:"relative",height:"100%"},className:_d},t.createElement("div",{ref:O,style:{position:"absolute",width:"100%",height:"100%"}}))}const Dd={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},Ad={"top-left":"top left","top-center":"top center","top-right":"top right","center-left":"center left","center-center":"center center","center-right":"center right","bottom-left":"bottom left","bottom-center":"bottom center","bottom-right":"bottom right"};function Pd(e,t){return t?function(e){var t;let n,r,o,i;return null!=e&&null!==(t=e.session)&&void 0!==t&&t.config?(n=e.session.config,r=new URL(n.url),i="wss:"===r.protocol,o=i?"https://":"http://",o+r.host):""}(e)+t:void 0}function Nd(e,t){const n=null==e?void 0:e.bgImage;if(n){let i="";var r,o;if("media"===n.mode||"media"===e.useImage)i=null!=n&&null!==(r=n.mediaUrl)&&void 0!==r&&null!==(o=r.qStaticContentUrl)&&void 0!==o&&o.qUrl?decodeURIComponent(n.mediaUrl.qStaticContentUrl.qUrl):void 0,i=Pd(t,i);"expression"===n.mode&&(i=n.expressionUrl?decodeURIComponent(n.expressionUrl):void 0);const a=function(e){var t;let n="center center";return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.position&&(n=Ad[e.bgImage.position]),n}(e),s=function(e){var t;let n=Dd.originalSize;return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.sizing&&(n=Dd[e.bgImage.sizing]),n}(e);return i?{url:i,pos:a,size:s}:void 0}}function Md(e,t,n){const r=null==e?void 0:e.bgColor;return r&&t?r.useExpression?t.validateColor(r.colorExpression):r.color&&"none"!==r.color.color?t.getColorPickerColor(r.color,!0):void 0:t&&n?t.getStyle("object.".concat(n),"","backgroundColor"):t?t.getStyle("","","backgroundColor"):void 0}function zd(e,t,n,r){var o;const i=(null==e||null===(o=e.title)||void 0===o?void 0:o[t])||{},a=function(e,t){return e&&Array.isArray(e)?e:"main"===t?["bold"]:[]}(i.fontStyle,t);return{fontFamily:i.fontFamily||n.getStyle("object.".concat(r),"title.".concat(t),"fontFamily"),color:i.color&&"none"!==i.color.color?n.getColorPickerColor(i.color,!0):n.getStyle("object.".concat(r),t,"color"),fontWeight:a.includes("bold")?"bold":"normal",fontStyle:a.includes("italic")?"italic":"normal",textDecoration:a.includes("underline")?"underline":"initial"}}const jd="njs-cell",Fd=(e,t)=>{switch(t.type){case"LOADING":return $($({},e),{},{loading:!0});case"LOADED":return $($({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization});case"RENDER":return $($({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null});case"LONG_RUNNING_QUERY":return $($({},e),{},{longRunningQuery:!0});case"ERROR":return $($({},e),{},{loading:!1,longRunningQuery:!1,error:t.error});default:throw new Error("Unhandled type: ".concat(t.type))}};function Wd(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(vd,null):null}const Bd=e=>!e.qError||7005===e.qError.qErrorCode,Hd=(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}})),Ud=e=>e&&(Array.isArray(e)?e:[e])||[],$d=(e,t,n,r)=>{const o=r.dimensions.min(),i=r.measures.min(),a=r.resolveLayout(t);return{reqDimErrors:Hd(o,Ud(a.qDimensionInfo||a.qItems),(e=>r.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:Hd(i,Ud(a.qMeasureInfo),(e=>r.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},Gd=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],d=u.dimensions.min(),p=u.measures.min(),h=u.resolveLayout(n),f=Ud(h.qDimensionInfo||h.qItems).filter(Bd),m=Ud(h.qMeasureInfo).filter(Bd);if(o+=d,i+=p,(f.length<d||m.length<p)&&(r=!0),h.qError){a=!0,s=7005===h.qError.qErrorCode;const t=s&&h.qCalcCondMsg?h.qCalcCondMsg:s?e.get("Visualization.UnfulfilledCalculationCondition"):e.get("Visualization.LayoutError");l.push({title:t,descriptions:[]})}}return{hasUnfulfilledErrors:r,aggMinD:o,aggMinM:i,hasLayoutErrors:a,layoutErrors:l}})(e,o,t),u=[],d=[];let p=null;for(let n=0;n<o.length;++n){const a=o[n];if(!l&&i){const n=p||await r.getProperties();p=n;const o=$d(e,t,n,a);u.push(...o.reqDimErrors),d.push(...o.reqMeasErrors)}}const h=u.filter((e=>!(e.missing||e.error))).length,f=e.get("Visualization.Incomplete.Dimensions",[h,a]),m=d.filter((e=>!(e.missing||e.error))).length,g=e.get("Visualization.Incomplete.Measures",[m,s]),y=[{title:f,descriptions:[...u]},{title:g,descriptions:[...d]}],b=l?c:y;return[l||i,{title:l?c[0].title:e.get("Visualization.Incomplete"),data:b}]},Vd=o(((e,o)=>{let{halo:i,model:l,initialSnOptions:c,initialSnPlugins:u,initialError:h,onMount:f,currentId:m,emitter:g}=e;const{app:y,types:b}=i,{nebbie:v}=i.public,{theme:S,translator:x,language:E,keyboardNavigation:w,disableCellPadding:R=!1}=p(Ti),I=ci(),[O,q,k]=fa(),[_,T]=s(Fd,{loading:!1,loaded:!1,longRunningQuery:!1,error:(D=h)?{title:D.message}:null,sn:null,visualization:null});var D;const[A,{validating:P,canCancel:N,canRetry:M},z]=pa(l),[j]=ha(y),[F,W,B]=fa(),[H,U]=n(c),[G,V]=n(u),K="njs-cell-".concat(m),[Z]=Lc(y,l,["#".concat(K),".njs-action-toolbar-popover"]),[J,X]=n(!1),Y=d({enter:null,leave:null}),[Q,ee]=n(void 0),[te,ne]=n(void 0),[re,oe]=n(void 0),ie=d({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});r((()=>{Ec(ie.current)}),[]),r((()=>{if(A&&i.public.theme){const e=A.components?A.components.find((e=>"general"===e.key)):null;oe({main:zd(e,"main",i.public.theme,A.visualization),footer:zd(e,"footer",i.public.theme,A.visualization),subTitle:zd(e,"subTitle",i.public.theme,A.visualization)}),ee(Md(e,i.public.theme,A.visualization)),ne(Nd(e,i.app))}}),[A,i.public.theme,i.app,S]),ie.current.blurCallback=e=>{i.root.toggleFocusOfCells(),e&&B&&B.focus()},ie.current.refocusContent=()=>{_.sn.component&&"function"==typeof _.sn.component.focus&&_.sn.component.focus()};r((()=>{if(h||!j||!A)return;if(_.visualization===A.visualization&&_.sn)return void(async e=>{const[t,n]=await Gd(x,A,e.generator.qae.data,l);T(t?{type:"ERROR",error:n}:{type:"RENDER"}),(e=>{let{sn:t,layout:n,model:r}=e;const o=t&&t.component&&t.component.selections;if(o&&o.id&&r.id&&o.id===r.id){if(n&&n.qSelectionInfo&&n.qSelectionInfo.qInSelections&&!o.isModal()){const{targets:e}=t.generator.qae.data,n=e[0].propertyPath;o.goModal(n)}n.qSelectionInfo&&n.qSelectionInfo.qInSelections||o.isModal()&&o.noModal()}})({sn:_.sn,layout:A,model:l})})(_.sn);const e=b.getSupportedVersion(A.visualization,A.version);return(async(e,t)=>{T({type:"LOADING"});const n=await(async e=>{let{dispatch:t,types:n,visualization:r,version:o,model:i,app:a,selections:s,nebbie:l,focusHandler:c,emitter:u}=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,emitter:u})}catch(e){t(o?{type:"ERROR",error:{title:e.message}}:{type:"ERROR",error:{title:"Could not find a version of '".concat(r,"' that supports current object version. Did you forget to register ").concat(r,"?")}})}})({dispatch:T,types:b,visualization:e,version:t,model:l,app:y,selections:Z,nebbie:v,focusHandler:ie.current,emitter:g});n&&(T({type:"LOADED",sn:n,visualization:e}),f())})(A.visualization,e),()=>{}}),[b,_.sn,l,Z,A,j,E]),r((()=>{if(!P)return;const e=setTimeout((()=>T({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[P]),a(o,(()=>({getQae:()=>_.sn.generator.qae,toggleFocus(e){"function"==typeof _.sn.component.focus&&(e?_.sn.component.focus():_.sn.component.blur())},setSnOptions:U,setSnPlugins:V,getImperativeHandle(){var e;return null!==(e=_.sn)&&void 0!==e&&e.component&&"function"==typeof _.sn.component.getImperativeHandle?_.sn.component.getImperativeHandle():{}},async takeSnapshot(){const{width:e,height:t}=q;let n=JSON.parse(JSON.stringify(A));return"function"==typeof _.sn.component.setSnapshotData&&(n=await _.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:x.language(),theme:I.name,appLayout:j,size:{width:Math.round(e),height:Math.round(t)}},layout:n}},async exportImage(){if("function"!=typeof i.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const e=await this.takeSnapshot();return i.config.snapshot.capture(e)}})),[_.sn,W,q,A,I.name,j]);let ae=null;return _.loading&&!_.longRunningQuery?ae=t.createElement(Wd,null):_.error?ae=t.createElement(id,_.error):_.loaded&&(ae=t.createElement(Td,{key:A.visualization,sn:_.sn,halo:i,snOptions:H,snPlugins:G,layout:A,appLayout:j})),t.createElement(L,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:Q||"unset",backgroundImage:te&&te.url?"url(".concat(te.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:te&&te.size,backgroundPosition:te&&te.pos},elevation:0,square:!0,className:jd,ref:O,id:K,onMouseEnter:()=>{Y.current.leave&&clearTimeout(Y.current.leave),Y.enter||(Y.current.enter=setTimeout((()=>{X(!0),Y.current.enter=null}),250))},onMouseLeave:()=>{Y.current.enter&&clearTimeout(Y.current.enter),Y.current.leave||(Y.current.leave=setTimeout((()=>{X(!1),Y.current.leave=null}),750))}},t.createElement(C,{container:!0,direction:"column",gap:0,style:$($({position:"relative",width:"100%",height:"100%"},R?{}:{padding:I.spacing(1)}),_.longRunningQuery?{opacity:"0.3"}:{})},k&&A&&_.sn&&t.createElement(Ld,{layout:A,sn:_.sn,anchorEl:k,hovering:J,focusHandler:ie.current,titleStyles:re}," "),t.createElement(C,{tabIndex:w?0:-1,onKeyDown:w?e=>{["Enter"," ","Spacebar"].includes(e.key)&&i.root.toggleFocusOfCells(m)}:null,item:!0,xs:!0,style:{height:"100%"},ref:F},ae),k&&A&&_.sn&&t.createElement(qd,{layout:A,titleStyles:re})),_.longRunningQuery&&t.createElement(bd,{canCancel:N,canRetry:M,api:z}))}));function Kd(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Zd(){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];var a,s;"object"!=typeof n[o]||"object"!=typeof i||Array.isArray(i)?(a=i,s=n[o],(Kd(a)&&Kd(s)?JSON.stringify(a)===JSON.stringify(s):!Array.isArray(a)&&!Array.isArray(s)&&a===s)||r.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])})):r.push(...Zd("".concat(e).concat(o,"/"),t[o],n[o]))})),r}function Jd(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 Xd=()=>{};function Yd(){let{model:e,halo:n,initialError:r,onDestroy:o=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=Xd,a=null,s=null,l=null,c=null;const u=new Promise((e=>{l=e})),d=new Promise((e=>{c=e})),p=e=>()=>{e&&e(),c()};let h={},f=[];const g=new te,y={id:e.id,model:e,async destroy(){await o(),i(),i=Xd},async convertTo(t){let r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const o=await ed({halo:n,model:e,cellRef:a,newType:t});return r&&(e.__snInterceptor?await e.__snInterceptor.setProperties.call(e,o.qProperty):await e.setProperties(o.qProperty)),o},addListener(e,t){g.addListener(e,t)},removeListener(e,t){g.removeListener(e,t)},getImperativeHandle:async()=>(await d,a.current.getImperativeHandle()),__DO_NOT_USE__:{mount(o){if(s)throw new Error("Already mounted");return s=o,[i,a]=function(e){let{halo:n,element:r,model:o,initialSnOptions:i,initialSnPlugins:a,onMount:s,emitter:l,initialError:c}=e;const{root:u}=n,d=t.createRef(),p=Kc(),h=m.createPortal(t.createElement(Vd,{ref:d,halo:n,model:o,currentId:p,initialSnOptions:i,initialSnPlugins:a,initialError:c,onMount:s,emitter:l}),r,p),f=()=>{u.remove(h),o.removeListener("closed",f)};return o.on("closed",f),u.add(h),u.addCell(p,d),[f,d]}({halo:n,element:o,model:e,initialSnOptions:h,initialSnPlugins:f,initialError:r,onMount:l,emitter:g}),u},async applyProperties(t){const n=Zd("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{const t=e.onInitialRender;s?(async()=>{await u,a.current.setSnOptions($($($({},h),e),{onInitialRender:p(t)}))})():h=$($($({},h),e),{onInitialRender:p(t)})})(e)},plugins(e){(async e=>{Jd(e),s?(async()=>{await u,a.current.setSnPlugins(e)})():f=e})(e)},exportImage:()=>a.current.exportImage(),takeSnapshot:()=>a.current.takeSnapshot(),getModel:()=>e}};return y}async function Qd(e,t,n,r){const o=Yd({model:e,halo:n,initialError:r,onDestroy:arguments.length>4&&void 0!==arguments[4]?arguments[4]:async()=>{}});return t.options&&o.__DO_NOT_USE__.options(t.options),t.plugins&&o.__DO_NOT_USE__.plugins(t.plugins),t.element&&await o.__DO_NOT_USE__.mount(t.element),o}async function ep(e,t,n){let{type:r,version:o,fields:i,properties:a,extendProperties:s}=e,l={};const c=[];try{const e=t.types.get({name:r,version:o});l=await e.initialProperties(a,s);const n=await e.supernova();i&&await Wu({sn:n,properties:l,fields:i,children:c},t),a&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},l)}catch(e){l=n?null:{qInfo:{qType:r},visualization:r}}if(!n){const e=await t.app.createObject(l);return c.length>0&&await e.setFullPropertyTree({qProperty:l,qChildren:c}),ia.set(e.id,e),e}return l}const tp={className:"njs-sheet"};function np(e){let{model:o,halo:a,initialSnOptions:s,initialSnPlugins:l,initialError:c,onMount:u}=e;const{root:d}=a,[h]=pa(o),{theme:f}=p(Ti),[m,g]=n([]),[y,b]=n(void 0),[v,S]=n(void 0),[x,E]=n("");r((()=>{if(h){const e=JSON.stringify(h.cells);if(e===x)return;E(e);const n=async()=>{m.forEach((e=>{d.removeCell(e.currentId)}));const e=h.cells,n=await Promise.all(e.map((async e=>{let n;const r=new Promise((e=>{n=e})),o=m.find((t=>t.id===e.name));if(o)return o.bounds=e.bounds,delete o.mountedPromise,o;const i=await async function(e,t){let{id:n,options:r,plugins:o,element:i}=e;const a="".concat(n);let s=Qi.get(a);s||(s=t.app.getObject(n),Qi.set(a,s));const l=await s;return ia.set(a,l),Qd(l,{options:r,plugins:o,element:i},t)}({id:e.name},a);return{model:i.model,id:e.name,bounds:e.bounds,cellRef:t.createRef(),currentId:Kc(),mounted:n,mountedPromise:r}})));n.forEach((e=>d.addCell(e.currentId,e.cellRef))),g(n)};n()}}),[h]);const C=i((()=>m?m.map((e=>function(e,n,r,o,i,a){const{x:s,y:l,width:c,height:u}=e.bounds;return t.createElement("div",{style:{left:"".concat(s,"%"),top:"".concat(l,"%"),width:"".concat(c,"%"),height:"".concat(u,"%"),position:"absolute"}},t.createElement(Vd,{ref:e.cellRef,halo:n,model:e.model,currentId:e.currentId,initialSnOptions:r,initialSnPlugins:o,initialError:i,onMount:a}))}(e,a,s,l,c,e.mounted))):[]),[m]);r((()=>{const e=null!=h&&h.components?h.components.find((e=>"general"===e.key)):null;b(Md(e,a.public.theme)),S(Nd(e,a.app))}),[h,a.public.theme,a.app,f]);const w=!h||Number.isNaN(h.height)?"100%":"".concat(Number(h.height),"%"),L=m.map((e=>e.mountedPromise)),R=L.filter((e=>!!e));return R.length&&Promise.all(L).then((()=>{u()})),t.createElement("div",{className:tp.className,style:{width:"100%",height:w,position:"relative",backgroundColor:y,backgroundImage:v&&v.url?"url(".concat(v.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:v&&v.size,backgroundPosition:v&&v.pos}},C)}const rp=()=>{};function op(){let{model:e,halo:n,initialError:r,onDestroy:o=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=rp,a=null,s=null,l=null;const c=new Promise((e=>{l=e}));let u={},d=[];const p={id:e.id,model:e,async destroy(){await o(),i(),i=rp},__DO_NOT_USE__:{mount(o){if(s)throw new Error("Already mounted");return s=o,[i,a]=function(e){let{halo:n,element:r,model:o,initialSnOptions:i,initialSnPlugins:a,onMount:s,initialError:l}=e;const{root:c}=n,u=t.createRef(),d=m.createPortal(t.createElement(np,{ref:u,halo:n,model:o,initialSnOptions:i,initialSnPlugins:a,initialError:l,onMount:s}),r,o.id),p=()=>{c.remove(d),o.removeListener("closed",p)};return o.on("closed",p),c.add(d),[p,u]}({halo:n,element:o,model:e,initialSnOptions:u,initialSnPlugins:d,initialError:r,onMount:l}),c},async applyProperties(t){const n=Zd("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{s?(async()=>{await c,a.current.setSnOptions($($({},u),e))})():u=$($({},u),e)})(e)},plugins(e){(async e=>{Jd(e),s?(async()=>{await c,a.current.setSnPlugins(e)})():d=e})(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return p}async function ip(e,t){let{id:n,options:r,plugins:o,element:i}=e;const a="".concat(n);let s=Qi.get(a);s||(s=t.app.getObject(n),Qi.set(a,s));const l=await s;return ia.set(a,l),"sheet"===l.genericType?async function(e,t,n,r){const o=op({model:e,halo:n,initialError:r,onDestroy:arguments.length>4&&void 0!==arguments[4]?arguments[4]:async()=>{}});return t.options&&o.__DO_NOT_USE__.options(t.options),t.plugins&&o.__DO_NOT_USE__.plugins(t.plugins),t.element&&await o.__DO_NOT_USE__.mount(t.element),o}(l,{options:r,plugins:o,element:i},t):Qd(l,{options:r,plugins:o,element:i},t)}function ap(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}const sp=$e.bind(null,!0),lp={},{isArray:cp}=Array;function up(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function dp(e){return void 0===e}function pp(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function hp(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]=dp(e[r||t])?i:e[t],e=e[r||t]})),e}function fp(e,t){let n=!0;if(up(e)&&up(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{fp(e[r],t[r])||(n=!1)})),n);if(cp(e)&&cp(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!fp(e[n],t[n]))return!1;return!0}return e===t}lp.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const i=function(e){return e?sp({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(n,"/").concat(o);fp(i,a)||pp(t,o)||(dp(a)?r.push({op:"add",path:s,value:i}):up(i)&&up(a)?r=r.concat(lp.generate(a,i,s)):cp(i)&&cp(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]&&dp(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(fp(t,o))return r;if(!dp(t[0])&&dp(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(lp.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=>{dp(t[o])&&!pp(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},lp.apply=function(e,t){t.forEach((t=>{let n=hp(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(cp(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(cp(o)&&cp(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(up(o)&&up(t.value))a=o,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!pp(a,e)&&delete a[e]})),sp(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=hp(e,t.from);cp(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(cp(n)?n.splice(+r,1):delete n[r]);var a}))},lp.clone=function(e){return sp({},e)},lp.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},lp.updateObject=function(e,t){Object.keys(e).length?lp.apply(e,lp.generate(e,t)):sp(e,t)};const mp=e=>t=>{const n=(r=$($({},t),{},{action(){"function"==typeof t.action&&t.action.call(n,e),n.emit("changed")},enabled:()=>"function"!=typeof t.enabled||t.enabled.call(n,e),active:"function"==typeof t.active?function(){return t.active.call(n,e)}:void 0}),Object.keys(te.prototype).forEach((e=>{r[e]=te.prototype[e]})),te.init(r),r);var r;return n};let gp,yp;function bp(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 vp(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 Sp(e){Ep(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 xp(e){if(e.__hooks.obsolete)return Promise.resolve();yp=-1,gp=e,gp.__hooks.initiated&&gp.__hooks.list.length;try{gp.fn.call(null)}catch(e){console.error(e)}gp.__hooks.initiated=!0;const t=gp.__hooks;return Rp(gp),yp=void 0,gp=void 0,t.chain.promise||(t.chain.promise=new Promise((e=>{t.chain.resolve=e}))),function(e){Ep(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame((()=>{!function(e){Ep(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 Ep(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 Cp(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 wp(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 Lp(e){return e.__hooks.imperativeHandle}function Rp(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function Ip(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,Rp(e))}function Op(e){if(void 0===gp)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=gp.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function qp(e){Op(++yp);return gp.context[e]}function kp(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function _p(e){return{__hooked:!0,fn:e,initiate:vp,run:xp,teardown:Sp,runSnaps:Cp,runMenu:wp,focus:sh,blur:lh,observeActions:Ip,getImperativeHandle:Lp,updateRectOnNextRun:kp}}function Tp(e){const t=Op(++yp);if(!t.value){t.component=gp;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,xp(r)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function Dp(e,t){const n=Op(++yp);bp(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===gp.__hooks.pendingEffects.indexOf(n)&&gp.__hooks.pendingEffects.push(n))}function Ap(e,t){const n=Op(++yp);bp(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],gp.__hooks.pendingLayoutEffects.push(n))}function Pp(e,t){const n=Op(++yp);return bp(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function Np(e,t){const[n,r]=Tp((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=Op(++yp);return o.component||(o.component=gp),Ap((()=>{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 Mp(){return qp("element")}function zp(){const e=Mp(),t=gp.__hooks.resizer,[n,r]=Tp((()=>{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()),Ap((()=>{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 jp(){return qp("layout")}function Fp(){const e=qp("layout"),[t]=Tp({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current}function Wp(){return qp("appLayout")}function Bp(){const e=qp("model");return e&&e.session?e:void 0}function Hp(){const e=qp("app");return e&&e.session?e:void 0}function Up(){const e=qp("global");return e&&e.session?e:void 0}function $p(){return qp("selections")}function Gp(){return qp("theme")}function Vp(){return qp("nebbie")}function Kp(){return qp("translator")}function Zp(){return qp("deviceType")}function Jp(){return qp("plugins")}function Xp(e,t){const[n]=Tp({action(){n._config.action.call(null)}});return n.component||(n.component=gp,gp.__hooks.actions.list.push(n)),Pp((()=>{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 Yp(){return qp("constraints")}function Qp(){return qp("interactions")}function eh(){return qp("options")}function th(e,t){const n=Op(++yp);if(n.imperative||(n.imperative=!0),bp(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],gp.__hooks.imperativeHandle=r}}function nh(e){const t=Op(++yp);t.value||(t.value=1,gp.__hooks.snaps.push(t)),t.fn=e}function rh(e){const t=Op(++yp);t.value||(t.value=1,gp.__hooks.menus.push(t)),t.fn=e}function oh(){Op(++yp);const e=gp.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}}function ih(){return qp("emitter")}function ah(){const e=qp("keyboardNavigation"),t=qp("focusHandler");if(!gp.__hooks.accessibility.exitFunction){const e=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const n=this.__hooks.accessibility;n.enabled&&n.active&&(lh(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(gp);gp.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),sh(this))}.bind(gp);gp.__hooks.accessibility.focusFunction=n;const r=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(gp);gp.__hooks.accessibility.focusSelectionFunction=r}const n=gp.__hooks.accessibility.focusFunction,r=gp.__hooks.accessibility.exitFunction,o=gp.__hooks.accessibility.focusSelectionFunction,[i,a]=Tp({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return gp.__hooks.accessibility.setter=a,gp.__hooks.accessibility.enabled=e,Dp((()=>a({active:!1,enabled:e,blur:r,focus:n,focusSelection:o})),[e]),i}function sh(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 lh(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 ch={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},uh=Object.keys(ch),dh=e=>(Object.keys(te.prototype).forEach((t=>{e[t]=te.prototype[t]})),te.init(e),e);function ph(e,t){const n=$({},ch);dh(n);const r={emit(){n.emit(...arguments)}};Object.keys(e.component||{}).forEach((t=>{-1!==uh.indexOf(t)?n[t]=e.component[t].bind(r):r[t]=e.component[t]}));const o=function(e){let{sn:t,component:n}=e;const r={},o=[],i=mp(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:r}),i=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(r,{model:t.model,app:t.app,global:i,selections:t.selections,actions:o.actions}),Object.assign(n,{actions:o.actions,model:t.model,app:t.app,selections:t.selections}),[n,o]}function hh(e,t,n){"function"==typeof e.component&&(e.component=_p(e.component));const[r,o]=e.component&&e.component.__hooked?function(e,t,n){const r=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):void 0;let o=!1;const i={},a=["appLayout","constraints","interactions"],s={},l={};t.model&&t.model.session||(s.select=!0,s.edit=!0,l.select=!1,l.edit=!1);const c={context:{model:t.model,app:t.app,global:r,selections:t.selections,nebbie:t.nebbie,element:void 0,emitter:t.emitter,deviceType:n.deviceType,theme:void 0,translator:n.translator,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,focusHandler:t.focusHandler,constraints:s,interactions:l,options:{},plugins:[]},fn:e.component.fn,created(){},mounted(n){this.context.element=n,e.component.initiate(c,{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($($({},r[e]),s))),"interactions"===e&&(t=JSON.stringify($($({},r[e]),l))),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=c.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(c.context[e])})),i.themeName=c.context.theme?c.context.theme.name():void 0,i.language=c.context.translator?c.context.translator.language():void 0,Object.assign(c,{selections:t.selections}),[c,null]}(e,t,n):ph(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=lp.clone(o),a=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));lp.apply(o,a),e.qae.properties.onChange.call({model:t.model},o);const s=lp.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 fh=()=>{};function mh(e,t){return void 0===e?()=>t:()=>e}function gh(e){const t=e||{};return{min:"function"==typeof t.min?t.min:mh(t.min,0),max:"function"==typeof t.max?t.max:mh(t.max,1e3),added:t.added||t.add||fh,description:t.description||fh,moved:t.moved||t.move||fh,removed:t.removed||t.remove||fh,replaced:t.replaced||t.replace||fh,isDefined:()=>!!e}}const yh=(e,t,n)=>{const r=t.split("/");let o=e;if(void 0===o)return n;for(let e=0;e<r.length;++e)if(""!==r[e]){if(void 0===o[r[e]])return n;o=o[r[e]]}return o};function bh(e){const t=e.path||"/qHyperCubeDef",n=t.slice(0,-3);if(!1===/\/(qHyperCube|qListObject|qChildList)$/.test(n)){const e=n.includes("/qHyperCube")?"qHyperCubeDef":"qListObjectDef";throw new Error("Incorrect definition for ".concat(e," at ").concat(t,". Valid paths include /qHyperCubeDef, /qListObjectDef, or /qChildListDef, e.g. data/qHyperCubeDef"))}return{propertyPath:t,layoutPath:n,resolveLayout:e=>yh(e,n,{}),dimensions:gh(e.dimensions),measures:gh(e.measures)}}function vh(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.properties||{};t.properties&&(t.properties.initial||t.properties.onChange)&&(n=t.properties.initial,e=t.properties.onChange);return{properties:{initial:n,onChange:e},data:{targets:((t.data||{}).targets||[]).map(bh)},exportProperties:t.exportProperties,importProperties:t.importProperties}}function Sh(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:vh(n.qae),component:n.component||{},create:e=>hh(r,e,t),definition:{}};return Object.keys(n).forEach((e=>{r[e]||(r.definition[e]=n[e])})),r}var xh={exports:{}};!function(e,t){var n;t=xh.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=256,o=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],a=t.src=[],s=t.tokens={},l=0;function c(e){s[e]=l++}c("NUMERICIDENTIFIER"),a[s.NUMERICIDENTIFIER]="0|[1-9]\\d*",c("NUMERICIDENTIFIERLOOSE"),a[s.NUMERICIDENTIFIERLOOSE]="[0-9]+",c("NONNUMERICIDENTIFIER"),a[s.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",c("MAINVERSION"),a[s.MAINVERSION]="("+a[s.NUMERICIDENTIFIER]+")\\.("+a[s.NUMERICIDENTIFIER]+")\\.("+a[s.NUMERICIDENTIFIER]+")",c("MAINVERSIONLOOSE"),a[s.MAINVERSIONLOOSE]="("+a[s.NUMERICIDENTIFIERLOOSE]+")\\.("+a[s.NUMERICIDENTIFIERLOOSE]+")\\.("+a[s.NUMERICIDENTIFIERLOOSE]+")",c("PRERELEASEIDENTIFIER"),a[s.PRERELEASEIDENTIFIER]="(?:"+a[s.NUMERICIDENTIFIER]+"|"+a[s.NONNUMERICIDENTIFIER]+")",c("PRERELEASEIDENTIFIERLOOSE"),a[s.PRERELEASEIDENTIFIERLOOSE]="(?:"+a[s.NUMERICIDENTIFIERLOOSE]+"|"+a[s.NONNUMERICIDENTIFIER]+")",c("PRERELEASE"),a[s.PRERELEASE]="(?:-("+a[s.PRERELEASEIDENTIFIER]+"(?:\\."+a[s.PRERELEASEIDENTIFIER]+")*))",c("PRERELEASELOOSE"),a[s.PRERELEASELOOSE]="(?:-?("+a[s.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+a[s.PRERELEASEIDENTIFIERLOOSE]+")*))",c("BUILDIDENTIFIER"),a[s.BUILDIDENTIFIER]="[0-9A-Za-z-]+",c("BUILD"),a[s.BUILD]="(?:\\+("+a[s.BUILDIDENTIFIER]+"(?:\\."+a[s.BUILDIDENTIFIER]+")*))",c("FULL"),c("FULLPLAIN"),a[s.FULLPLAIN]="v?"+a[s.MAINVERSION]+a[s.PRERELEASE]+"?"+a[s.BUILD]+"?",a[s.FULL]="^"+a[s.FULLPLAIN]+"$",c("LOOSEPLAIN"),a[s.LOOSEPLAIN]="[v=\\s]*"+a[s.MAINVERSIONLOOSE]+a[s.PRERELEASELOOSE]+"?"+a[s.BUILD]+"?",c("LOOSE"),a[s.LOOSE]="^"+a[s.LOOSEPLAIN]+"$",c("GTLT"),a[s.GTLT]="((?:<|>)?=?)",c("XRANGEIDENTIFIERLOOSE"),a[s.XRANGEIDENTIFIERLOOSE]=a[s.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",c("XRANGEIDENTIFIER"),a[s.XRANGEIDENTIFIER]=a[s.NUMERICIDENTIFIER]+"|x|X|\\*",c("XRANGEPLAIN"),a[s.XRANGEPLAIN]="[v=\\s]*("+a[s.XRANGEIDENTIFIER]+")(?:\\.("+a[s.XRANGEIDENTIFIER]+")(?:\\.("+a[s.XRANGEIDENTIFIER]+")(?:"+a[s.PRERELEASE]+")?"+a[s.BUILD]+"?)?)?",c("XRANGEPLAINLOOSE"),a[s.XRANGEPLAINLOOSE]="[v=\\s]*("+a[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+a[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+a[s.XRANGEIDENTIFIERLOOSE]+")(?:"+a[s.PRERELEASELOOSE]+")?"+a[s.BUILD]+"?)?)?",c("XRANGE"),a[s.XRANGE]="^"+a[s.GTLT]+"\\s*"+a[s.XRANGEPLAIN]+"$",c("XRANGELOOSE"),a[s.XRANGELOOSE]="^"+a[s.GTLT]+"\\s*"+a[s.XRANGEPLAINLOOSE]+"$",c("COERCE"),a[s.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",c("COERCERTL"),i[s.COERCERTL]=new RegExp(a[s.COERCE],"g"),c("LONETILDE"),a[s.LONETILDE]="(?:~>?)",c("TILDETRIM"),a[s.TILDETRIM]="(\\s*)"+a[s.LONETILDE]+"\\s+",i[s.TILDETRIM]=new RegExp(a[s.TILDETRIM],"g");c("TILDE"),a[s.TILDE]="^"+a[s.LONETILDE]+a[s.XRANGEPLAIN]+"$",c("TILDELOOSE"),a[s.TILDELOOSE]="^"+a[s.LONETILDE]+a[s.XRANGEPLAINLOOSE]+"$",c("LONECARET"),a[s.LONECARET]="(?:\\^)",c("CARETTRIM"),a[s.CARETTRIM]="(\\s*)"+a[s.LONECARET]+"\\s+",i[s.CARETTRIM]=new RegExp(a[s.CARETTRIM],"g");c("CARET"),a[s.CARET]="^"+a[s.LONECARET]+a[s.XRANGEPLAIN]+"$",c("CARETLOOSE"),a[s.CARETLOOSE]="^"+a[s.LONECARET]+a[s.XRANGEPLAINLOOSE]+"$",c("COMPARATORLOOSE"),a[s.COMPARATORLOOSE]="^"+a[s.GTLT]+"\\s*("+a[s.LOOSEPLAIN]+")$|^$",c("COMPARATOR"),a[s.COMPARATOR]="^"+a[s.GTLT]+"\\s*("+a[s.FULLPLAIN]+")$|^$",c("COMPARATORTRIM"),a[s.COMPARATORTRIM]="(\\s*)"+a[s.GTLT]+"\\s*("+a[s.LOOSEPLAIN]+"|"+a[s.XRANGEPLAIN]+")",i[s.COMPARATORTRIM]=new RegExp(a[s.COMPARATORTRIM],"g");c("HYPHENRANGE"),a[s.HYPHENRANGE]="^\\s*("+a[s.XRANGEPLAIN]+")\\s+-\\s+("+a[s.XRANGEPLAIN]+")\\s*$",c("HYPHENRANGELOOSE"),a[s.HYPHENRANGELOOSE]="^\\s*("+a[s.XRANGEPLAINLOOSE]+")\\s+-\\s+("+a[s.XRANGEPLAINLOOSE]+")\\s*$",c("STAR"),a[s.STAR]="(<|>)?=?\\s*\\*";for(var u=0;u<l;u++)n(u,a[u]),i[u]||(i[u]=new RegExp(a[u]));function d(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>r)return null;if(!(t.loose?i[s.LOOSE]:i[s.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>r)throw new TypeError("version is longer than "+r+" characters");if(!(this instanceof p))return new p(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var a=e.trim().match(t.loose?i[s.LOOSE]:i[s.FULL]);if(!a)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");a[4]?this.prerelease=a[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<o)return t}return e})):this.prerelease=[],this.build=a[5]?a[5].split("."):[],this.format()}t.parse=d,t.valid=function(e,t){var n=d(e,t);return n?n.version:null},t.clean=function(e,t){var n=d(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(b(e,t))return null;var n=d(e),r=d(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 h=/^[0-9]+$/;function f(e,t){var n=h.test(e),r=h.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function m(e,t,n){return new p(e,n).compare(new p(t,n))}function g(e,t,n){return m(e,t,n)>0}function y(e,t,n){return m(e,t,n)<0}function b(e,t,n){return 0===m(e,t,n)}function v(e,t,n){return 0!==m(e,t,n)}function S(e,t,n){return m(e,t,n)>=0}function x(e,t,n){return m(e,t,n)<=0}function E(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 b(e,n,r);case"!=":return v(e,n,r);case">":return g(e,n,r);case">=":return S(e,n,r);case"<":return y(e,n,r);case"<=":return x(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===w?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=m,t.compareLoose=function(e,t){return m(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 m(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=g,t.lt=y,t.eq=b,t.neq=v,t.gte=S,t.lte=x,t.cmp=E,t.Comparator=C;var w={};function L(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof L)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new L(e.raw,t);if(e instanceof C)return new L(e.value,t);if(!(this instanceof L))return new L(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function R(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 I(e){return!e||"x"===e.toLowerCase()||"*"===e}function O(e,t,n,r,o,i,a,s,l,c,u,d,p){return((t=I(n)?"":I(r)?">="+n+".0.0":I(o)?">="+n+"."+r+".0":">="+t)+" "+(s=I(l)?"":I(c)?"<"+(+l+1)+".0.0":I(u)?"<"+l+"."+(+c+1)+".0":d?"<="+l+"."+c+"."+u+"-"+d:"<="+s)).trim()}function q(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!==w&&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 L(t,n)}catch(e){return!1}return t.test(e)}function _(e,t,n,r){var o,i,a,s,l;switch(e=new p(e,r),t=new L(t,r),n){case">":o=g,i=x,a=y,s=">",l=">=";break;case"<":o=y,i=S,a=g,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,h=null;if(u.forEach((function(e){e.semver===w&&(e=new C(">=0.0.0")),d=d||e,h=h||e,o(e.semver,d.semver,r)?d=e:a(e.semver,h.semver,r)&&(h=e)})),d.operator===s||d.operator===l)return!1;if((!h.operator||h.operator===s)&&i(e,h.semver))return!1;if(h.operator===l&&a(e,h.semver))return!1}return!0}C.prototype.parse=function(e){var t=this.options.loose?i[s.COMPARATORLOOSE]:i[s.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=w},C.prototype.toString=function(){return this.value},C.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===w||e===w)return!0;if("string"==typeof e)try{e=new p(e,this.options)}catch(e){return!1}return E(e,this.operator,this.semver,this.options)},C.prototype.intersects=function(e,t){if(!(e instanceof C))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new L(e.value,t),k(this.value,n,t));if(""===e.operator)return""===e.value||(n=new L(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=E(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=E(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||o||i&&a||s||l},t.Range=L,L.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},L.prototype.toString=function(){return this.range},L.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[s.HYPHENRANGELOOSE]:i[s.HYPHENRANGE];e=e.replace(r,O),n("hyphen replace",e),e=e.replace(i[s.COMPARATORTRIM],"$1$2$3"),n("comparator trim",e,i[s.COMPARATORTRIM]),e=(e=(e=e.replace(i[s.TILDETRIM],"$1~")).replace(i[s.CARETTRIM],"$1^")).split(/\s+/).join(" ");var o=t?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],a=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?i[s.CARETLOOSE]:i[s.CARET];return e.replace(r,(function(t,r,o,i,a){var s;return n("caret",e,t,r,o,i,a),I(r)?s="":I(o)?s=">="+r+".0.0 <"+(+r+1)+".0.0":I(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?i[s.TILDELOOSE]:i[s.TILDE];return e.replace(r,(function(t,r,o,i,a){var s;return n("tilde",e,t,r,o,i,a),I(r)?s="":I(o)?s=">="+r+".0.0 <"+(+r+1)+".0.0":I(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?i[s.XRANGELOOSE]:i[s.XRANGE];return e.replace(r,(function(r,o,i,a,s,l){n("xRange",e,r,o,i,a,s,l);var c=I(i),u=c||I(a),d=u||I(s),p=d;return"="===o&&p&&(o=""),l=t.includePrerelease?"-0":"",c?r=">"===o||"<"===o?"<0.0.0-0":"*":o&&p?(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:d&&(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(i[s.STAR],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(e){return!!e.match(o)}))),a=a.map((function(e){return new C(e,this.options)}),this)},L.prototype.intersects=function(e,t){if(!(e instanceof L))throw new TypeError("a Range is required");return this.set.some((function(n){return R(n,t)&&e.set.some((function(e){return R(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new L(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},L.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new p(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(q(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 L(t,n)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(r&&-1!==o.compare(e)||(o=new p(r=e,n)))})),r},t.minSatisfying=function(e,t,n){var r=null,o=null;try{var i=new L(t,n)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(r&&1!==o.compare(e)||(o=new p(r=e,n)))})),r},t.minVersion=function(e,t){e=new L(e,t);var n=new p("0.0.0");if(e.test(n))return n;if(n=new p("0.0.0-0"),e.test(n))return n;n=null;for(var r=0;r<e.set.length;++r){e.set[r].forEach((function(e){var t=new p(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!g(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new L(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return _(e,t,"<",n)},t.gtr=function(e,t,n){return _(e,t,">",n)},t.outside=_,t.prerelease=function(e,t){var n=d(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new L(e,n),t=new L(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof p)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=i[s.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),i[s.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;i[s.COERCERTL].lastIndex=-1}else n=e.match(i[s.COERCE]);if(null===n)return null;return d(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}}(0,xh.exports);var Eh=xh.exports;const Ch={};function wh(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)||Eh.satisfies(e,i.deps.properties),supernova:()=>async function(e,t,n,r){let{config:o}=n;const i="".concat(e,"__").concat(t);if(!Ch[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);Ch[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 Ch[i]}(a.name,a.version,t,o.load).then((e=>(n=n||Sh(e,t.public.galaxy),r=JSON.stringify(n.qae.properties.initial),n))),initialProperties(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.supernova().then((()=>{const n=$({qInfo:{qType:a.name},visualization:a.name,version:a.version,showTitles:!0},JSON.parse(r));return t?($e(!0,n,e),n):$($({},n),e)}))}};return a}function Lh(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]=wh({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 Rh(e){let{halo:t,parent:n}=e;const r={},o=n||{get:()=>{}};return{register:(e,n)=>{r[e.name]||(r[e.name]=Lh(e.name,t)),r[e.name].register(e.version,n)},getSupportedVersion:(e,t)=>{if(r[e])return r[e].getMatchingVersionFromProperties(t)},get(e){const{name:t}=e;let{version:n}=e;if(r[t]){if(!r[t].versions[n]){n=Object.keys(r[t].versions)[0]}}else this.register({name:t,version:n});return r[t].get(n)||o.get(e)},getList:()=>Object.keys(r).map((e=>({name:e,versions:Object.keys(r[e].versions).map((e=>"undefined"===e?void 0:e))}))),clearFromCache:e=>{r[e]&&(r[e]=void 0),function(e){Object.keys(Ch).forEach((t=>{t.split("__")[0]===e&&(Ch[t]=void 0)}))}(e)}}}const Ih={context:{},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()))}};Ih.context={theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1};const Oh=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return $($({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),e)},qh=function(){return[...arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],...arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]].filter(((e,t,n)=>n.indexOf(e)===t))};var kh=function e(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=X(n.context.language);function o(e,i){if(i)return o.createConfiguration(i)(e);let a=$($({},n.context),{},{translator:r.translator});const[s]=function(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","4.2.0"),s.setAttribute("data-app-id",r.id),document.body.appendChild(s),o&&Ui(o),ht.createRoot(s).render(t.createElement($i,{ref:a,app:r,initialContext:o,renderCallback:n}));const l={},c=[];return[{toggleFocusOfCells(e){Object.keys(l).forEach((t=>{l[t].current.toggleFocus(t===e)}))},cells:l,addCell(e,t){l[e]=t},removeCell(e){delete l[e]},add(e){(async()=>{await i,c.push(e),a.current.setComps(c)})()},remove(e){(async()=>{await i;const t=c.indexOf(e);-1!==t&&c.splice(t,1),a.current.setComps(c)})()},setMuiThemeName(e){(async()=>{await i,a.current.setMuiThemeName(e)})()},context(e){(async()=>{await i,e&&Ui(e),a.current.setContext(e)})()},getAppSelections:async()=>(await i,a.current.getAppSelections())},a,i]}({app:e,context:a}),l=function(){let{themes:e=[],loadTheme:t,root:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=ct();return{setTheme:async o=>{let i=e.filter((e=>e.id===o))[0],a="dark"===o?"dark":"light";if(!i&&t&&(i={load:t}),i&&i.load)try{const e=await Promise.race([i.load(o),ut(dt,{__timedOut:!0})]);e.__timedOut||(a="dark"===e.type?"dark":"light",r.internalAPI.setTheme(e,o),n.setMuiThemeName(a))}catch(e){}else r.internalAPI.setTheme({type:a},o),n.setMuiThemeName(a)},externalAPI:r.externalAPI}}({themes:n.themes,loadTheme:n.loadTheme,root:s});a.themeApi=l.externalAPI;const c={galaxy:{translator:r.translator,flags:ap(n.flags),deviceType:pt(n.context.deviceType),anything:n.anything},theme:l.externalAPI,translator:r.translator,nebbie:null},u={app:e,root:s,config:n,public:c,context:a,types:null},d=Rh({halo:u});n.types.forEach((e=>d.register({name:e.name,version:e.version},{meta:e.meta,load:e.load})));let p=l.setTheme(n.context.theme),h=null,f=null;const g={render:async e=>(await p,e.id?ip(e,u):async function(e,t){let{type:n,version:r,fields:o,properties:i,options:a,plugins:s,element:l,extendProperties:c}=e,u={};const d=[];let p;try{const e=t.types.get({name:n,version:r});u=await e.initialProperties(i,c);const a=await e.supernova();o&&await Wu({sn:a,properties:u,fields:o,children:d},t),i&&a&&a.qae.properties.onChange&&a.qae.properties.onChange.call({},u)}catch(e){p=e,u={qInfo:{qType:n},visualization:n}}const h=await t.app.createSessionObject(u);d.length>0&&await h.setFullPropertyTree({qProperty:u,qChildren:d}),ia.set(h.id,h);const f=aa(h);return Qd(h,{options:a,plugins:s,element:l},t,p,(async()=>{await t.app.destroySessionObject(h.id),f()}))}(e,u)),create:async e=>ep(e,u,!1),generateProperties:async e=>ep(e,u,!0),context:async e=>{let t;["theme","language","constraints","interactions","keyboardNavigation"].forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==a[n]&&(t||(t={}),t[n]=e[n])})),t&&(a=$($($({},a),t),{},{translator:r.translator}),t.theme&&(p=l.setTheme(t.theme),await p),t.language&&u.public.translator.language(t.language),s.context(a))},selections:async()=>(h||(h={mount(n){f||(f=function(e){let{element:n,app:r}=e;return m.createPortal(t.createElement(Zc,{app:r}),n,Kc())}({element:n,app:e}),s.add(f))},unmount(){f&&(s.remove(f),f=null)}}),h),field:async n=>{let r;const o="string"==typeof n?n:n.qLibraryId;if(n.qId)r=n.qId;else if(!o)throw new Error("Field identifier or object id must be provided");const i={fieldName:o,async mount(a){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!a)throw new Error("Element for ".concat(o||r," not provided"));if(this._instance)throw new Error("Field or object ".concat(o||r," already mounted"));const c=()=>i.emit("selectionActivated"),u=()=>i.emit("selectionDeactivated");return new Promise((o=>{this._instance=function(e){let{element:n,app:r,fieldIdentifier:o,qId:i,stateName:a="$",options:s={},renderedCallback:l}=e;return m.createPortal(t.createElement(Iu,{app:r,element:n,fieldIdentifier:o,qId:i,stateName:a,options:s,renderedCallback:l}),n,Kc())}({element:a,app:e,fieldIdentifier:n,qId:r,options:Ru($({onSelectionActivated:c,onSelectionDeactivated:u},l)),stateName:l.stateName||"$",renderedCallback:o}),s.add(this._instance)}))},unmount(){this._instance&&(s.remove(this._instance),this._instance=null)}};return Ec(i),i},getRegisteredTypes:d.getList,__DO_NOT_USE__:{types:d,popover(n,r,o){g._popoverInstance&&(s.remove(g._popoverInstance),g._popoverInstance=null);const i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=$({},Ou);return $e(!0,t,e),t}($({onPopoverClose:()=>g.emit("fieldPopoverClose")},o));g._popoverInstance=t.createElement(qu,{element:n,key:Kc(),app:e,fieldIdentifier:r,options:i,stateName:o.stateName||"$"}),s.add(g._popoverInstance)}}};return u.public.nebbie=g,u.types=d,Ec(g),g}return o.createConfiguration=t=>e(((e,t)=>({context:Oh(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:$({},t.snapshot||e.snapshot),types:qh(e.types,t.types),themes:qh(e.themes,t.themes),flags:Oh(e.flags,t.flags),anything:Oh(e.anything,t.anything)}))(n,t)),o.config=n,o}(Ih);function _h(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}const Th=globalThis.crypto||{getRandomValues:()=>123456};function Dh(){return e=>{const t=$e({},e);t.qInfo=t.qInfo||{},t.qInfo.qId=t.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^Th.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))));const n=t._mock;let r=t;return n&&(delete t._mock,r=$e({},t,n)),Promise.resolve($({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(r),getProperties:()=>Promise.resolve(t),getEffectiveProperties:()=>Promise.resolve(t),id:t.qInfo.qId},t))}}const Ah=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},Ph=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=Ah(e,{defaultValue:t,args:i});return n?new Promise((e=>{setTimeout((()=>e(s)),r)})):s}},Nh=["id","session"],Mh=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function zh(e){return!Mh.includes(e)}function jh(e){const t=Ah(e.getLayout);return t.qInfo&&t.qInfo.qId}function Fh(e,t){return e.reduce(((e,n)=>$($({},e),function(e,t){let n=jh(e);const{delay:r}=t,{id:o,session:i}=e,a=K(e,Nh);if(o&&n&&o!==n)throw new Error("Generic object has multiple IDs, qInfo.qId: ".concat(n,", id: ").concat(o));return n=n||o||"object - ".concat(+Date.now()),{[n]:$($({id:n,session:Ah(i,{defaultValue:!0}),on:()=>{},once:()=>{}},Object.entries(a).reduce(((e,t)=>{let[n,o]=t;return $($({},e),{},{[n]:Ph(o,{async:zh(n),delay:r})})}),{})),{},{genericType:e.type})}}(n,t))),{})}function Wh(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!jh(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function Bh(){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(Wh);const n=Fh(e,t);return async e=>Promise.resolve(n[e])}function Hh(){return()=>Promise.resolve({id:"app-layout"})}const Uh={fromGenericObjects(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new _h,r=new Dh,o=new Bh(e,t),i=new Hh,a={id:"app - ".concat(+Date.now()),session:n,createSessionObject:r,getObject:o,getAppLayout:i};return Promise.resolve(a)}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}},$h={generator:Sh,hook:_p,theme:ct,locale:Z};export{Uh as EnigmaMocker,$h as __DO_NOT_USE__,td as conversion,kh as embed,rh as onContextMenu,nh as onTakeSnapshot,Xp as useAction,Hp as useApp,Wp as useAppLayout,Yp as useConstraints,Zp as useDeviceType,Dp as useEffect,Mp as useElement,Vp as useEmbed,ih as useEmitter,Up as useGlobal,th as useImperativeHandle,Qp as useInteractionState,ah as useKeyboard,jp as useLayout,Pp as useMemo,Bp as useModel,eh as useOptions,Jp as usePlugins,Np as usePromise,zp as useRect,oh as useRenderState,$p as useSelections,Fp as useStaleLayout,Tp as useState,Gp as useTheme,Kp as useTranslator};
|
|
15
15
|
//# sourceMappingURL=index.js.map
|