@nebula.js/stardust 4.11.0 → 4.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/core/esm/index.js CHANGED
@@ -1,15 +1,15 @@
1
1
  /*
2
- * @nebula.js/stardust v4.11.0
2
+ * @nebula.js/stardust v4.13.0
3
3
  * Copyright (c) 2024 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 b}from"@emotion/react";import{Checkbox as y,Radio as v,Typography as S,FormControlLabel as x,Box as E,Grid as C,Tooltip as w,Paper as L,IconButton as k,styled as R,Popover as I,MenuList as q,MenuItem as _,ListItemIcon as O,Divider as T,OutlinedInput as A,InputAdornment as D,Badge as M,List as P,ListItem as N,Button as z,ButtonBase as j,CircularProgress as F,Icon as W}from"@mui/material";import B from"@emotion/styled";function H(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(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}function G(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?G(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function V(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function K(e,t,n){return(t=V(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z(){return Z=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},Z.apply(this,arguments)}function J(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 b?t:b,a=Object.create(i.prototype),s=new _(r||[]);return o(a,"_invoke",{value:k(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 b(){}function y(){}function v(){}var S={};c(S,a,(function(){return this}));var x=Object.getPrototypeOf,E=x&&x(x(O([])));E&&E!==n&&r.call(E,a)&&(S=E);var C=v.prototype=b.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 k(e,n,r){var o=p;return function(i,a){if(o===f)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=R(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=f;var c=d(e,n,r);if("normal"===c.type){if(o=r.done?m:h,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function R(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,R(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 I(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 _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function O(e){if(null!=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}}throw new TypeError(typeof e+" is not iterable")}return y.prototype=v,o(C,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:y,configurable:!0}),y.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,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:_,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:O(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 X=function(){let{initial:e="en-US",fallback:t="en-US"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=function(){let{initial:e="en-US",fallback:t="en-US"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n={};let r=e;const o={language:e=>(e&&(r=e),r),add:e=>{const{id:t,locale:r}=e;Object.keys(r).forEach((e=>{n[e]||(n[e]={}),n[e][t]=r[e]}))},get(e,o){let 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 Y={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_ManySearchResults:{id:"ScreenReader.ManySearchResults",locale:{"de-DE":"Es sind {0} Ergebnisse verfügbar","en-US":"There are {0} available results","es-ES":"Hay {0} resultados disponibles","fr-FR":"Il existe {0} résultats disponibles.","it-IT":"{0} risultati disponibili","ja-JP":"利用可能な結果が {0} つあります","ko-KR":"{0}개의 결과를 사용할 수 있음","nl-NL":"Er zijn {0} beschikbare resultaten","pl-PL":"Liczba dostępnych wyników: {0}","pt-BR":"Há {0} resultados disponíveis","ru-RU":"Имеются доступные результаты: {0}","sv-SE":"Det finns {0} tillgängliga resultat","tr-TR":"Kullanılabilir {0} sonuç mevcut","zh-CN":"有 {0} 个可用结果","zh-TW":"有 {0} 個可用的結果"}},ScreenReader_ManySelected:{id:"ScreenReader.ManySelected",locale:{"de-DE":"Es sind {0} Werte ausgewählt.","en-US":"There are {0} selected values.","es-ES":"Hay {0} valores seleccionados.","fr-FR":"{0} valeurs sont sélectionnées.","it-IT":"Sono presenti {0} valori selezionati.","ja-JP":"値が {0} 個選択されています。","ko-KR":"{0}개의 값이 선택되었습니다.","nl-NL":"Er zijn {0} geselecteerde waarden.","pl-PL":"Wybranych wartości: {0}","pt-BR":"Há {0} valores selecionados.","ru-RU":"Выбраны {0} значений(я).","sv-SE":"{0} värden är valda.","tr-TR":"Seçilen {0} değer var.","zh-CN":"存在 {0} 个已选择的值。","zh-TW":"有 {0} 個選取的值。"}},ScreenReader_OneSearchResult:{id:"ScreenReader.OneSearchResult",locale:{"de-DE":"Es ist ein Ergebnis verfügbar","en-US":"There is one available result","es-ES":"Hay un resultado disponible","fr-FR":"Il existe un résultat disponible.","it-IT":"Un risultato disponibile","ja-JP":"利用可能な結果が 1 つあります","ko-KR":"하나의 결과를 사용할 수 있음","nl-NL":"Er is één beschikbaar resultaat","pl-PL":"Jest jeden dostępny wynik","pt-BR":"Há um resultado disponível","ru-RU":"Имеется один доступный результат","sv-SE":"Det finns ett tillgängligt resultat","tr-TR":"Kullanılabilir bir sonuç mevcut","zh-CN":"有一个可用结果","zh-TW":"有一個可用的結果"}},ScreenReader_OneSelected:{id:"ScreenReader.OneSelected",locale:{"de-DE":"Es ist ein Wert ausgewählt.","en-US":"There is one selected value.","es-ES":"Hay un valor seleccionado.","fr-FR":"Une valeur est sélectionnée.","it-IT":"È presente un valore selezionato.","ja-JP":"値が 1 つ選択されています。","ko-KR":"하나의 값이 선택되었습니다.","nl-NL":"Er is één waarde geselecteerd.","pl-PL":"Istnieje jedna wybrana wartość.","pt-BR":"Há um valor selecionado.","ru-RU":"Выбрано одно значение.","sv-SE":"Ett värde är valt.","tr-TR":"Seçilen bir değer var.","zh-CN":"存在一个已选择的值。","zh-TW":"有一個選取的值。"}},ScreenReader_ZeroSelected:{id:"ScreenReader.ZeroSelected",locale:{"de-DE":"Es sind keine Werte ausgewählt.","en-US":"No values are selected.","es-ES":"No se ha seleccionado ningún valor.","fr-FR":"Aucune valeur n'est sélectionnée.","it-IT":"Nessun valore selezionato.","ja-JP":"値が選択されていません。","ko-KR":"선택된 값이 없습니다.","nl-NL":"Geen waarden geselecteerd.","pl-PL":"Brak wybranych wartości.","pt-BR":"Nenhum valor selecionado.","ru-RU":"Значения не выбраны.","sv-SE":"Inga värden är valda.","tr-TR":"Seçilen değer yok.","zh-CN":"未选择值。","zh-TW":"沒有選取任何值。"}},Selection_Cancel:{id:"Selection.Cancel",locale:{"de-DE":"Auswahl abbrechen","en-US":"Cancel selection","es-ES":"Cancelar selección","fr-FR":"Annuler la sélection","it-IT":"Annulla selezione","ja-JP":"選択のキャンセル","ko-KR":"선택 취소","nl-NL":"Selectie annuleren","pl-PL":"Anuluj selekcję","pt-BR":"Cancelar seleção","ru-RU":"Отменить выборку","sv-SE":"Avbryt urval","tr-TR":"Seçimi iptal et","zh-CN":"取消选择","zh-TW":"取消選取"}},Selection_Clear:{id:"Selection.Clear",locale:{"de-DE":"Auswahl löschen","en-US":"Clear selection","es-ES":"Borrar selección","fr-FR":"Effacer la sélection","it-IT":"Cancella selezione","ja-JP":"選択をクリア","ko-KR":"선택 해제","nl-NL":"Selectie wissen","pl-PL":"Wyczyść selekcję","pt-BR":"Limpar seleção","ru-RU":"Очистить выбор","sv-SE":"Rensa urval","tr-TR":"Seçimi temizle","zh-CN":"清除选择","zh-TW":"清除選項"}},Selection_ClearAll:{id:"Selection.ClearAll",locale:{"de-DE":"Alle Auswahlen löschen","en-US":"Clear all selections","es-ES":"Borrar todas las selecciones","fr-FR":"Effacer toutes les sélections","it-IT":"Cancella tutte le selezioni","ja-JP":"選択をすべてクリアする","ko-KR":"모든 선택 해제","nl-NL":"Alle selecties wissen","pl-PL":"Wyczyść wszystkie selekcje","pt-BR":"Limpar todas as seleções","ru-RU":"Очистить от всех выборок","sv-SE":"Radera alla urval","tr-TR":"Tüm seçimleri temizle","zh-CN":"清除所有选择项","zh-TW":"清除所有選項"}},Selection_ClearAllStates:{id:"Selection.ClearAllStates",locale:{"de-DE":"Alle Status löschen","en-US":"Clear all states","es-ES":"Borrar todos los estados","fr-FR":"Effacer tous les états","it-IT":"Cancella tutti gli stati","ja-JP":"全ステートをクリア","ko-KR":"모든 상태 지우기","nl-NL":"Alle states wissen","pl-PL":"Wyczyść wszystkie stany","pt-BR":"Limpar todos os estados","ru-RU":"Очистить все состояния","sv-SE":"Rensa alla tillstånd","tr-TR":"Tüm durumları temizle","zh-CN":"清除所有状态","zh-TW":"清除所有狀態"}},Selection_Confirm:{id:"Selection.Confirm",locale:{"de-DE":"Auswahl bestätigen","en-US":"Confirm selection","es-ES":"Confirmar selección","fr-FR":"Confirmer la sélection","it-IT":"Conferma selezione","ja-JP":"選択の確認","ko-KR":"선택 확인","nl-NL":"Selectie bevestigen","pl-PL":"Potwierdź selekcję","pt-BR":"Confirmar seleção","ru-RU":"Подтвердить выборку","sv-SE":"Bekräfta urval","tr-TR":"Seçimi onayla","zh-CN":"确认选择","zh-TW":"確認選取"}},Selection_Menu:{id:"Selection.Menu",locale:{"de-DE":"Auswahlmenü","en-US":"Selection menu","es-ES":"Menú de selección","fr-FR":"Menu Sélection","it-IT":"Menu Selezione","ja-JP":"選択メニュー","ko-KR":"선택 메뉴","nl-NL":"Selectiemenu","pl-PL":"Menu selekcji","pt-BR":"Menu de seleção","ru-RU":'Меню "Выборка"',"sv-SE":"Urvalsmeny","tr-TR":"Seçim menüsü","zh-CN":"选择菜单","zh-TW":"選項功能表"}},Selection_SelectAll:{id:"Selection.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutto","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar todos","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},Selection_SelectAlternative:{id:"Selection.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替値を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},Selection_SelectExcluded:{id:"Selection.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外値を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluído","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},Selection_SelectPossible:{id:"Selection.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込値を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possível","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olasıyı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},SelectionToolbar_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":"不符計算條件"}},SelectionToolbar_ClickToLock:{id:"SelectionToolbar.ClickToLock",locale:{"de-DE":"Klicken zum Sperren","en-US":"Click to lock","es-ES":"Haga clic para bloquearla","fr-FR":"Cliquez pour verrouiller","it-IT":"Fare clic per bloccare","ja-JP":"クリックしてロック","ko-KR":"잠그려면 클릭하십시오.","nl-NL":"Klik om te vergrendelen","pl-PL":"Aby zablokować, kliknij","pt-BR":"Clique para travar","ru-RU":"Щелкните, чтобы заблокировать","sv-SE":"Klicka för att låsa","tr-TR":"Kilitlemek için tıklayın","zh-CN":"单击以锁定","zh-TW":"按一下鎖定"}}};function Q(e){const t=X({initial:e});return Object.keys(Y).forEach((e=>{t.translator.add(Y[e])})),{translator:t.translator}}var ee={};function te(){te.init.call(this)}ee.isObject=function(e){return"object"==typeof e&&null!==e},ee.isNumber=function(e){return"number"==typeof e},ee.isUndefined=function(e){return void 0===e},ee.isFunction=function(e){return"function"==typeof e};var ne=te;te.EventEmitter=te,te.prototype._events=void 0,te.prototype._maxListeners=void 0,te.defaultMaxListeners=10,te.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},te.prototype.setMaxListeners=function(e){if(!ee.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},te.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],ee.isUndefined(n))return!1;if(ee.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(ee.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},te.prototype.addListener=function(e,t){var n;if(!ee.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,ee.isFunction(t.listener)?t.listener:t),this._events[e]?ee.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,ee.isObject(this._events[e])&&!this._events[e].warned)&&((n=ee.isUndefined(this._maxListeners)?te.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,ee.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),ee.isFunction(console.trace)&&console.trace()));return this},te.prototype.on=te.prototype.addListener,te.prototype.once=function(e,t){if(!ee.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},te.prototype.removeListener=function(e,t){var n,r,o,i;if(!ee.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||ee.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(ee.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},te.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],ee.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},te.prototype.listeners=function(e){return this._events&&this._events[e]?ee.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},te.listenerCount=function(e,t){return e._events&&e._events[t]?ee.isFunction(e._events[t])?1:e._events[t].length:0};var re=H(ne);function oe(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ie(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ae(){}var se=.7,le=1/se,ce="\\s*([+-]?\\d+)\\s*",ue="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",de="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",pe=/^#([0-9a-f]{3,8})$/,he=new RegExp(`^rgb\\(${ce},${ce},${ce}\\)$`),fe=new RegExp(`^rgb\\(${de},${de},${de}\\)$`),me=new RegExp(`^rgba\\(${ce},${ce},${ce},${ue}\\)$`),ge=new RegExp(`^rgba\\(${de},${de},${de},${ue}\\)$`),be=new RegExp(`^hsl\\(${ue},${de},${de}\\)$`),ye=new RegExp(`^hsla\\(${ue},${de},${de},${ue}\\)$`),ve={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Se(){return this.rgb().formatHex()}function xe(){return this.rgb().formatRgb()}function Ee(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=pe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Ce(t):3===n?new ke(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?we(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?we(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=he.exec(e))?new ke(t[1],t[2],t[3],1):(t=fe.exec(e))?new ke(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=me.exec(e))?we(t[1],t[2],t[3],t[4]):(t=ge.exec(e))?we(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=be.exec(e))?Te(t[1],t[2]/100,t[3]/100,1):(t=ye.exec(e))?Te(t[1],t[2]/100,t[3]/100,t[4]):ve.hasOwnProperty(e)?Ce(ve[e]):"transparent"===e?new ke(NaN,NaN,NaN,0):null}function Ce(e){return new ke(e>>16&255,e>>8&255,255&e,1)}function we(e,t,n,r){return r<=0&&(e=t=n=NaN),new ke(e,t,n,r)}function Le(e,t,n,r){return 1===arguments.length?((o=e)instanceof ae||(o=Ee(o)),o?new ke((o=o.rgb()).r,o.g,o.b,o.opacity):new ke):new ke(e,t,n,null==r?1:r);var o}function ke(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Re(){return`#${Oe(this.r)}${Oe(this.g)}${Oe(this.b)}`}function Ie(){const e=qe(this.opacity);return`${1===e?"rgb(":"rgba("}${_e(this.r)}, ${_e(this.g)}, ${_e(this.b)}${1===e?")":`, ${e})`}`}function qe(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function _e(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Oe(e){return((e=_e(e))<16?"0":"")+e.toString(16)}function Te(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new De(e,t,n,r)}function Ae(e){if(e instanceof De)return new De(e.h,e.s,e.l,e.opacity);if(e instanceof ae||(e=Ee(e)),!e)return new De;if(e instanceof De)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 De(a,s,l,e.opacity)}function De(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Me(e){return(e=(e||0)%360)<0?e+360:e}function Pe(e){return Math.max(0,Math.min(1,e||0))}function Ne(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}oe(ae,Ee,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Se,formatHex:Se,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ae(this).formatHsl()},formatRgb:xe,toString:xe}),oe(ke,Le,ie(ae,{brighter(e){return e=null==e?le:Math.pow(le,e),new ke(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?se:Math.pow(se,e),new ke(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ke(_e(this.r),_e(this.g),_e(this.b),qe(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:Re,formatHex:Re,formatHex8:function(){return`#${Oe(this.r)}${Oe(this.g)}${Oe(this.b)}${Oe(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ie,toString:Ie})),oe(De,(function(e,t,n,r){return 1===arguments.length?Ae(e):new De(e,t,n,null==r?1:r)}),ie(ae,{brighter(e){return e=null==e?le:Math.pow(le,e),new De(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?se:Math.pow(se,e),new De(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 ke(Ne(e>=240?e-240:e+120,o,r),Ne(e,o,r),Ne(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new De(Me(this.h),Pe(this.s),Pe(this.l),qe(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=qe(this.opacity);return`${1===e?"hsl(":"hsla("}${Me(this.h)}, ${100*Pe(this.s)}%, ${100*Pe(this.l)}%${1===e?")":`, ${e})`}`}}));var ze=Object.prototype.hasOwnProperty,je=Object.prototype.toString,Fe=Object.defineProperty,We=Object.getOwnPropertyDescriptor,Be=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===je.call(e)},He=function(e){if(!e||"[object Object]"!==je.call(e))return!1;var t,n=ze.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&ze.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||ze.call(e,t)},Ue=function(e,t){Fe&&"__proto__"===t.name?Fe(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Ge=function(e,t){if("__proto__"===t){if(!ze.call(e,t))return;if(We)return We(e,t).value}return e[t]},$e=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=Ge(s,n),s!==(o=Ge(t,n))&&(u&&o&&(He(o)||(i=Be(o)))?(i?(i=!1,a=r&&Be(r)?r:[]):a=r&&He(r)?r:{},Ue(s,{name:n,newValue:e(u,a,o)})):void 0!==o&&Ue(s,{name:n,newValue:o}));return s},Ve=H($e),Ke={fontSize:"12px",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"]}]}},Ze={_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"},Je={_variables:{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},type:"dark",color:"@B98",object:{listBox:{backgroundColor:"@B20",title:{main:{color:"@B98",fontSize:"14px",fontWeight:"bold"}},content:{color:"#@B98",fontSize:"12px"}}}},Xe={object:{listBox:{backgroundColor:"#ffffff",title:{main:{color:"#404040",fontSize:"14px",fontWeight:"bold"}},content:{color:"#404040",fontSize:"12px"}}}};class Ye{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=Ee(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([Ee(e),Ee(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 Le(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 Qe(e,t,n){const r=.25+(t+1)/n*.25,o=.5-r;return o+e/1*(.5+r-o)}function et(e,t,n){const r=[],o=new Ye(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 tt(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=Qe(1/t*o,t,n);i=e.getColor(r);break}}r.push(Ee(i).formatHex())}return r}function nt(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=et(e,n,!0),o=et(tt(r,t-1,t),n,!1),i=[null];for(let e=0;e<t;e++)i.push(tt(o,e,t));return i}(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}}))}function rt(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 ot(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 it(e,t,n,r){let o;if(""===e)o=rt(null,n);else{o=rt(e.split("."),n)}return function(e,t,n){const r=t.split(".");for(let t=0;t<e.length;t++){const o=ot(n,[...e[t],...r]);if(void 0!==o)return o}}(o,t,r)}function at(e,t){const n=e.split(".");return{getStyle:(e,r)=>it(e,r,n.concat(),t)}}function st(e,t){Object.keys(e).forEach((n=>{"object"==typeof e[n]&&null!==e[n]?st(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])}))}function lt(e){const t=Ee(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)}at.resolveRawTheme=e=>{const t=Ve(!0,{},e);return st(t,t._variables),t.scales&&nt(t.scales,t.dataColors&&t.dataColors.nullColor),t};const ct=1e3;function ut(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["#333333","#ffffff"],t={},n=0;const r=e.map(lt);return{getBestContrastColor(o){if(!t[o]){n>ct&&(t={},n=0);const i=lt(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 dt(){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]=at(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=Ee(...arguments);return n?n.toString():void 0}},i={setTheme(i,a){e=function(e,t){const n="dark"===e.type?Je:Ze;let r=Xe;!1!==e._inherit&&"false"!==e._inherit||(r={});const o=Ve(!0,{},Ke,r,n),i=Ve(!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,at.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=lt(s);n=ut([s,l<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>a}};return Object.keys(re.prototype).forEach((e=>{o[e]=re.prototype[e]})),re.init(o),i.setTheme({},"light"),{externalAPI:o,internalAPI:i}}const pt=(e,t)=>new Promise((n=>{setTimeout((()=>n(t)),e)})),ht=5e3;function ft(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 mt={},gt=m;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."}mt.createRoot=gt.createRoot,mt.hydrateRoot=gt.hydrateRoot;var yt="$$material";function vt(){return vt=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},vt.apply(this,arguments)}function St(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 xt=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}(),Et="-ms-",Ct="-moz-",wt="-webkit-",Lt="comm",kt="rule",Rt="decl",It="@keyframes",qt=Math.abs,_t=String.fromCharCode,Ot=Object.assign;function Tt(e){return e.trim()}function At(e,t,n){return e.replace(t,n)}function Dt(e,t){return e.indexOf(t)}function Mt(e,t){return 0|e.charCodeAt(t)}function Pt(e,t,n){return e.slice(t,n)}function Nt(e){return e.length}function zt(e){return e.length}function jt(e,t){return t.push(e),e}var Ft=1,Wt=1,Bt=0,Ht=0,Ut=0,Gt="";function $t(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Ft,column:Wt,length:a,return:""}}function Vt(e,t){return Ot($t("",null,null,"",null,null,0),e,{length:-e.length},t)}function Kt(){return Ut=Ht>0?Mt(Gt,--Ht):0,Wt--,10===Ut&&(Wt=1,Ft--),Ut}function Zt(){return Ut=Ht<Bt?Mt(Gt,Ht++):0,Wt++,10===Ut&&(Wt=1,Ft++),Ut}function Jt(){return Mt(Gt,Ht)}function Xt(){return Ht}function Yt(e,t){return Pt(Gt,e,t)}function Qt(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 Ft=Wt=1,Bt=Nt(Gt=e),Ht=0,[]}function tn(e){return Gt="",e}function nn(e){return Tt(Yt(Ht-1,an(91===e?e+2:40===e?e+1:e)))}function rn(e){for(;(Ut=Jt())&&Ut<33;)Zt();return Qt(e)>2||Qt(Ut)>3?"":" "}function on(e,t){for(;--t&&Zt()&&!(Ut<48||Ut>102||Ut>57&&Ut<65||Ut>70&&Ut<97););return Yt(e,Xt()+(t<6&&32==Jt()&&32==Zt()))}function an(e){for(;Zt();)switch(Ut){case e:return Ht;case 34:case 39:34!==e&&39!==e&&an(Ut);break;case 40:41===e&&an(e);break;case 92:Zt()}return Ht}function sn(e,t){for(;Zt()&&e+Ut!==57&&(e+Ut!==84||47!==Jt()););return"/*"+Yt(t,Ht-1)+"*"+_t(47===e?e:Zt())}function ln(e){for(;!Qt(Jt());)Zt();return Yt(e,Ht)}function cn(e){return tn(un("",null,null,null,[""],e=en(e),0,[0],e))}function un(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,b=1,y=0,v="",S=o,x=i,E=r,C=v;g;)switch(f=y,y=Zt()){case 40:if(108!=f&&58==Mt(C,d-1)){-1!=Dt(C+=At(nn(y),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:C+=nn(y);break;case 9:case 10:case 13:case 32:C+=rn(f);break;case 92:C+=on(Xt()-1,7);continue;case 47:switch(Jt()){case 42:case 47:jt(pn(sn(Zt(),Xt()),t,n),l);break;default:C+="/"}break;case 123*m:s[c++]=Nt(C)*b;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==b&&(C=At(C,/\f/g,"")),h>0&&Nt(C)-d&&jt(h>32?hn(C+";",r,n,d-1):hn(At(C," ","")+";",r,n,d-2),l);break;case 59:C+=";";default:if(jt(E=dn(C,t,n,c,u,o,s,v,S=[],x=[],d),i),123===y)if(0===u)un(C,t,E,E,S,i,d,s,x);else switch(99===p&&110===Mt(C,3)?100:p){case 100:case 108:case 109:case 115:un(e,E,E,r&&jt(dn(e,E,E,0,0,o,s,v,o,S=[],d),x),o,x,d,s,r?S:x);break;default:un(C,E,E,E,[""],x,0,s,x)}}c=u=h=0,m=b=1,v=C="",d=a;break;case 58:d=1+Nt(C),h=f;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==Kt())continue;switch(C+=_t(y),y*m){case 38:b=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(Nt(C)-1)*b,b=1;break;case 64:45===Jt()&&(C+=nn(Zt())),p=Jt(),u=d=Nt(v=C+=ln(Xt())),y++;break;case 45:45===f&&2==Nt(C)&&(m=0)}}return i}function dn(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,p=0===o?i:[""],h=zt(p),f=0,m=0,g=0;f<r;++f)for(var b=0,y=Pt(e,d+1,d=qt(m=a[f])),v=e;b<h;++b)(v=Tt(m>0?p[b]+" "+y:At(y,/&\f/g,p[b])))&&(l[g++]=v);return $t(e,t,n,0===o?kt:s,l,c,u)}function pn(e,t,n){return $t(e,t,n,Lt,_t(Ut),Pt(e,2,-2),0)}function hn(e,t,n,r){return $t(e,t,n,Rt,Pt(e,0,r),Pt(e,r+1,-1),r)}function fn(e,t){for(var n="",r=zt(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function mn(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Rt:return e.return=e.return||e.value;case Lt:return"";case It:return e.return=e.value+"{"+fn(e.children,r)+"}";case kt:e.value=e.props.join(",")}return Nt(n=fn(e.children,r))?e.return=e.value+"{"+n+"}":""}function gn(e){var t=zt(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 bn=function(e,t,n){for(var r=0,o=0;r=o,o=Jt(),38===r&&12===o&&(t[n]=1),!Qt(o);)Zt();return Yt(e,Ht)},yn=function(e,t){return tn(function(e,t){var n=-1,r=44;do{switch(Qt(r)){case 0:38===r&&12===Jt()&&(t[n]=1),e[n]+=bn(Ht-1,t,n);break;case 2:e[n]+=nn(r);break;case 4:if(44===r){e[++n]=58===Jt()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=_t(r)}}while(r=Zt());return e}(en(e),t))},vn=new WeakMap,Sn=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)||vn.get(n))&&!r){vn.set(e,!0);for(var o=[],i=yn(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]}}},xn=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function En(e,t){switch(function(e,t){return 45^Mt(e,0)?(((t<<2^Mt(e,0))<<2^Mt(e,1))<<2^Mt(e,2))<<2^Mt(e,3):0}(e,t)){case 5103:return wt+"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 wt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return wt+e+Ct+e+Et+e+e;case 6828:case 4268:return wt+e+Et+e+e;case 6165:return wt+e+Et+"flex-"+e+e;case 5187:return wt+e+At(e,/(\w+).+(:[^]+)/,wt+"box-$1$2"+Et+"flex-$1$2")+e;case 5443:return wt+e+Et+"flex-item-"+At(e,/flex-|-self/,"")+e;case 4675:return wt+e+Et+"flex-line-pack"+At(e,/align-content|flex-|-self/,"")+e;case 5548:return wt+e+Et+At(e,"shrink","negative")+e;case 5292:return wt+e+Et+At(e,"basis","preferred-size")+e;case 6060:return wt+"box-"+At(e,"-grow","")+wt+e+Et+At(e,"grow","positive")+e;case 4554:return wt+At(e,/([^-])(transform)/g,"$1"+wt+"$2")+e;case 6187:return At(At(At(e,/(zoom-|grab)/,wt+"$1"),/(image-set)/,wt+"$1"),e,"")+e;case 5495:case 3959:return At(e,/(image-set\([^]*)/,wt+"$1$`$1");case 4968:return At(At(e,/(.+:)(flex-)?(.*)/,wt+"box-pack:$3"+Et+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+wt+e+e;case 4095:case 3583:case 4068:case 2532:return At(e,/(.+)-inline(.+)/,wt+"$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(Nt(e)-1-t>6)switch(Mt(e,t+1)){case 109:if(45!==Mt(e,t+4))break;case 102:return At(e,/(.+:)(.+)-([^]+)/,"$1"+wt+"$2-$3$1"+Ct+(108==Mt(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Dt(e,"stretch")?En(At(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Mt(e,t+1))break;case 6444:switch(Mt(e,Nt(e)-3-(~Dt(e,"!important")&&10))){case 107:return At(e,":",":"+wt)+e;case 101:return At(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+wt+(45===Mt(e,14)?"inline-":"")+"box$3$1"+wt+"$2$3$1"+Et+"$2box$3")+e}break;case 5936:switch(Mt(e,t+11)){case 114:return wt+e+Et+At(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return wt+e+Et+At(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return wt+e+Et+At(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return wt+e+Et+e+e}return e}var Cn="undefined"!=typeof document,wn=Cn?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]}}))})),Ln=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Rt:e.return=En(e.value,e.length);break;case It:return fn([Vt(e,{value:At(e.value,"@","@"+wt)})],r);case kt: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 fn([Vt(e,{props:[At(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return fn([Vt(e,{props:[At(t,/:(plac\w+)/,":"+wt+"input-$1")]}),Vt(e,{props:[At(t,/:(plac\w+)/,":-moz-$1")]}),Vt(e,{props:[At(t,/:(plac\w+)/,Et+"input-$1")]})],r)}return""}))}}],kn={exports:{}},Rn={},In=t,qn=Symbol.for("react.element"),_n=Symbol.for("react.fragment"),On=Object.prototype.hasOwnProperty,Tn=In.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,An={key:!0,ref:!0,__self:!0,__source:!0};function Dn(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)On.call(t,r)&&!An.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:qn,type:e,key:i,ref:a,props:o,_owner:Tn.current}}Rn.Fragment=_n,Rn.jsx=Dn,Rn.jsxs=Dn,kn.exports=Rn;var Mn=kn.exports;let Pn;function Nn(e){const{injectFirst:t,children:n}=e;return t&&Pn?Mn.jsx(g,{value:Pn,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,Global as b,ThemeContext as y,css as v,keyframes as S}from"@emotion/react";import{Checkbox as x,Radio as E,Typography as C,FormControlLabel as w,Box as L,Grid as k,Tooltip as R,Paper as _,IconButton as I,styled as q,Popover as O,MenuList as T,MenuItem as A,ListItemIcon as D,Divider as P,OutlinedInput as M,InputAdornment as N,Badge as z,List as j,ListItem as F,Button as W,ButtonBase as B,CircularProgress as H,Icon as U}from"@mui/material";import $ from"@emotion/styled";function G(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function V(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}function K(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 Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach((function(t){X(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function J(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function X(e,t,n){return(t=J(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y(){return Y=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},Y.apply(this,arguments)}function Q(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 b?t:b,a=Object.create(i.prototype),s=new q(r||[]);return o(a,"_invoke",{value:k(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 b(){}function y(){}function v(){}var S={};c(S,a,(function(){return this}));var x=Object.getPrototypeOf,E=x&&x(x(O([])));E&&E!==n&&r.call(E,a)&&(S=E);var C=v.prototype=b.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 k(e,n,r){var o=p;return function(i,a){if(o===f)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var l=R(s,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=f;var c=d(e,n,r);if("normal"===c.type){if(o=r.done?m:h,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function R(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,R(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 _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function q(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function O(e){if(null!=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}}throw new TypeError(typeof e+" is not iterable")}return y.prototype=v,o(C,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:y,configurable:!0}),y.displayName=c(v,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,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,q.prototype={constructor:q,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return 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),I(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;I(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:O(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 ee=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 te={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_ManySearchResults:{id:"ScreenReader.ManySearchResults",locale:{"de-DE":"Es sind {0} Ergebnisse verfügbar","en-US":"There are {0} available results","es-ES":"Hay {0} resultados disponibles","fr-FR":"Il existe {0} résultats disponibles.","it-IT":"{0} risultati disponibili","ja-JP":"利用可能な結果が {0} つあります","ko-KR":"{0}개의 결과를 사용할 수 있음","nl-NL":"Er zijn {0} beschikbare resultaten","pl-PL":"Liczba dostępnych wyników: {0}","pt-BR":"Há {0} resultados disponíveis","ru-RU":"Имеются доступные результаты: {0}","sv-SE":"Det finns {0} tillgängliga resultat","tr-TR":"Kullanılabilir {0} sonuç mevcut","zh-CN":"有 {0} 个可用结果","zh-TW":"有 {0} 個可用的結果"}},ScreenReader_ManySelected:{id:"ScreenReader.ManySelected",locale:{"de-DE":"Es sind {0} Werte ausgewählt.","en-US":"There are {0} selected values.","es-ES":"Hay {0} valores seleccionados.","fr-FR":"{0} valeurs sont sélectionnées.","it-IT":"Sono presenti {0} valori selezionati.","ja-JP":"値が {0} 個選択されています。","ko-KR":"{0}개의 값이 선택되었습니다.","nl-NL":"Er zijn {0} geselecteerde waarden.","pl-PL":"Wybranych wartości: {0}","pt-BR":"Há {0} valores selecionados.","ru-RU":"Выбраны {0} значений(я).","sv-SE":"{0} värden är valda.","tr-TR":"Seçilen {0} değer var.","zh-CN":"存在 {0} 个已选择的值。","zh-TW":"有 {0} 個選取的值。"}},ScreenReader_OneSearchResult:{id:"ScreenReader.OneSearchResult",locale:{"de-DE":"Es ist ein Ergebnis verfügbar","en-US":"There is one available result","es-ES":"Hay un resultado disponible","fr-FR":"Il existe un résultat disponible.","it-IT":"Un risultato disponibile","ja-JP":"利用可能な結果が 1 つあります","ko-KR":"하나의 결과를 사용할 수 있음","nl-NL":"Er is één beschikbaar resultaat","pl-PL":"Jest jeden dostępny wynik","pt-BR":"Há um resultado disponível","ru-RU":"Имеется один доступный результат","sv-SE":"Det finns ett tillgängligt resultat","tr-TR":"Kullanılabilir bir sonuç mevcut","zh-CN":"有一个可用结果","zh-TW":"有一個可用的結果"}},ScreenReader_OneSelected:{id:"ScreenReader.OneSelected",locale:{"de-DE":"Es ist ein Wert ausgewählt.","en-US":"There is one selected value.","es-ES":"Hay un valor seleccionado.","fr-FR":"Une valeur est sélectionnée.","it-IT":"È presente un valore selezionato.","ja-JP":"値が 1 つ選択されています。","ko-KR":"하나의 값이 선택되었습니다.","nl-NL":"Er is één waarde geselecteerd.","pl-PL":"Istnieje jedna wybrana wartość.","pt-BR":"Há um valor selecionado.","ru-RU":"Выбрано одно значение.","sv-SE":"Ett värde är valt.","tr-TR":"Seçilen bir değer var.","zh-CN":"存在一个已选择的值。","zh-TW":"有一個選取的值。"}},ScreenReader_ZeroSelected:{id:"ScreenReader.ZeroSelected",locale:{"de-DE":"Es sind keine Werte ausgewählt.","en-US":"No values are selected.","es-ES":"No se ha seleccionado ningún valor.","fr-FR":"Aucune valeur n'est sélectionnée.","it-IT":"Nessun valore selezionato.","ja-JP":"値が選択されていません。","ko-KR":"선택된 값이 없습니다.","nl-NL":"Geen waarden geselecteerd.","pl-PL":"Brak wybranych wartości.","pt-BR":"Nenhum valor selecionado.","ru-RU":"Значения не выбраны.","sv-SE":"Inga värden är valda.","tr-TR":"Seçilen değer yok.","zh-CN":"未选择值。","zh-TW":"沒有選取任何值。"}},Selection_Cancel:{id:"Selection.Cancel",locale:{"de-DE":"Auswahl abbrechen","en-US":"Cancel selection","es-ES":"Cancelar selección","fr-FR":"Annuler la sélection","it-IT":"Annulla selezione","ja-JP":"選択のキャンセル","ko-KR":"선택 취소","nl-NL":"Selectie annuleren","pl-PL":"Anuluj selekcję","pt-BR":"Cancelar seleção","ru-RU":"Отменить выборку","sv-SE":"Avbryt urval","tr-TR":"Seçimi iptal et","zh-CN":"取消选择","zh-TW":"取消選取"}},Selection_Clear:{id:"Selection.Clear",locale:{"de-DE":"Auswahl löschen","en-US":"Clear selection","es-ES":"Borrar selección","fr-FR":"Effacer la sélection","it-IT":"Cancella selezione","ja-JP":"選択をクリア","ko-KR":"선택 해제","nl-NL":"Selectie wissen","pl-PL":"Wyczyść selekcję","pt-BR":"Limpar seleção","ru-RU":"Очистить выбор","sv-SE":"Rensa urval","tr-TR":"Seçimi temizle","zh-CN":"清除选择","zh-TW":"清除選項"}},Selection_ClearAll:{id:"Selection.ClearAll",locale:{"de-DE":"Alle Auswahlen löschen","en-US":"Clear all selections","es-ES":"Borrar todas las selecciones","fr-FR":"Effacer toutes les sélections","it-IT":"Cancella tutte le selezioni","ja-JP":"選択をすべてクリアする","ko-KR":"모든 선택 해제","nl-NL":"Alle selecties wissen","pl-PL":"Wyczyść wszystkie selekcje","pt-BR":"Limpar todas as seleções","ru-RU":"Очистить от всех выборок","sv-SE":"Radera alla urval","tr-TR":"Tüm seçimleri temizle","zh-CN":"清除所有选择项","zh-TW":"清除所有選項"}},Selection_ClearAllStates:{id:"Selection.ClearAllStates",locale:{"de-DE":"Alle Status löschen","en-US":"Clear all states","es-ES":"Borrar todos los estados","fr-FR":"Effacer tous les états","it-IT":"Cancella tutti gli stati","ja-JP":"全ステートをクリア","ko-KR":"모든 상태 지우기","nl-NL":"Alle states wissen","pl-PL":"Wyczyść wszystkie stany","pt-BR":"Limpar todos os estados","ru-RU":"Очистить все состояния","sv-SE":"Rensa alla tillstånd","tr-TR":"Tüm durumları temizle","zh-CN":"清除所有状态","zh-TW":"清除所有狀態"}},Selection_Confirm:{id:"Selection.Confirm",locale:{"de-DE":"Auswahl bestätigen","en-US":"Confirm selection","es-ES":"Confirmar selección","fr-FR":"Confirmer la sélection","it-IT":"Conferma selezione","ja-JP":"選択の確認","ko-KR":"선택 확인","nl-NL":"Selectie bevestigen","pl-PL":"Potwierdź selekcję","pt-BR":"Confirmar seleção","ru-RU":"Подтвердить выборку","sv-SE":"Bekräfta urval","tr-TR":"Seçimi onayla","zh-CN":"确认选择","zh-TW":"確認選取"}},Selection_Menu:{id:"Selection.Menu",locale:{"de-DE":"Auswahlmenü","en-US":"Selection menu","es-ES":"Menú de selección","fr-FR":"Menu Sélection","it-IT":"Menu Selezione","ja-JP":"選択メニュー","ko-KR":"선택 메뉴","nl-NL":"Selectiemenu","pl-PL":"Menu selekcji","pt-BR":"Menu de seleção","ru-RU":'Меню "Выборка"',"sv-SE":"Urvalsmeny","tr-TR":"Seçim menüsü","zh-CN":"选择菜单","zh-TW":"選項功能表"}},Selection_SelectAll:{id:"Selection.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutto","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar todos","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},Selection_SelectAlternative:{id:"Selection.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替値を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},Selection_SelectExcluded:{id:"Selection.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外値を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluído","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},Selection_SelectPossible:{id:"Selection.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込値を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possível","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olasıyı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},SelectionToolbar_ClickToLock:{id:"SelectionToolbar.ClickToLock",locale:{"de-DE":"Klicken zum Sperren","en-US":"Click to lock","es-ES":"Haga clic para bloquearla","fr-FR":"Cliquez pour verrouiller","it-IT":"Fare clic per bloccare","ja-JP":"クリックしてロック","ko-KR":"클릭하여 잠금","nl-NL":"Klik om te vergrendelen","pl-PL":"Kliknij, aby zablokować","pt-BR":"Clique para bloquear","ru-RU":"Щелкните, чтобы заблокировать","sv-SE":"Klicka för att låsa","tr-TR":"Kilitlemek için tıklayın","zh-CN":"单击以锁定","zh-TW":"按一下以鎖定"}},SelectionToolbar_ClickToUnlock:{id:"SelectionToolbar.ClickToUnlock",locale:{"de-DE":"Zum Entsperren klicken","en-US":"Click to unlock","es-ES":"Haga clic para desbloquearla","fr-FR":"Cliquez pour déverrouiller","it-IT":"Fare clic per sbloccare","ja-JP":"クリックしてロック解除","ko-KR":"잠금을 해제하려면 클릭하십시오.","nl-NL":"Klik om te ontgrendelen","pl-PL":"Aby odblokować, kliknij","pt-BR":"Clique para destravar","ru-RU":"Щелкните, чтобы разблокировать","sv-SE":"Klicka för att låsa upp","tr-TR":"Kilidi kaldırmak için tıklayın","zh-CN":"单击以解锁","zh-TW":"按一下以解除鎖定"}},Visualization_Incomplete:{id:"Visualization.Incomplete",locale:{"de-DE":"Unvollständige Visualisierung","en-US":"Incomplete visualization","es-ES":"Visualización incompleta","fr-FR":"Visualisation incomplète","it-IT":"Visualizzazione incompleta","ja-JP":"未完了のビジュアライゼーション","ko-KR":"완료되지 않은 시각화","nl-NL":"Onvolledige visualisatie","pl-PL":"Niekompletna wizualizacja","pt-BR":"Visualização incompleta","ru-RU":"Незавершенная визуализация","sv-SE":"Ofullständig visualisering","tr-TR":"Tamamlanmamış görselleştirme","zh-CN":"不完整的可视化","zh-TW":"視覺化未完成"}},Visualization_Incomplete_Dimensions:{id:"Visualization.Incomplete.Dimensions",locale:{"de-DE":"{0} von {1} Dimensionen","en-US":"{0} of {1} dimensions","es-ES":"{0} de {1} dimensiones","fr-FR":"{0} dimensions sur {1}","it-IT":"{0} di {1} dimensioni","ja-JP":"{0} / {1} 軸","ko-KR":"{1} 차원의 {0}","nl-NL":"{0} van {1} dimensies","pl-PL":"{0} z {1} wymiarów","pt-BR":"{0} de {1} dimensões","ru-RU":"Измерения: {0} из {1}","sv-SE":"{0} av {1} dimensioner","tr-TR":"{0}/{1} boyut","zh-CN":"{0} / {1} 个维度","zh-TW":"{1} 個維度中的 {0} 個"}},Visualization_Incomplete_Measures:{id:"Visualization.Incomplete.Measures",locale:{"de-DE":"{0} von {1} Kennzahlen","en-US":"{0} of {1} measures","es-ES":"{0} de {1} medidas","fr-FR":"{0} mesures sur {1}","it-IT":"{0} di {1} misure","ja-JP":"{0} / {1} メジャー","ko-KR":"{1} 측정값의 {0}","nl-NL":"{0} van {1} metingen","pl-PL":"{0} z {1} miar","pt-BR":"{0} de {1} medidas","ru-RU":"Меры: {0} из {1}","sv-SE":"{0} av {1} mått","tr-TR":"{0}/{1} hesaplama","zh-CN":"{0} / {1} 个度量","zh-TW":"{1} 個量值中的 {0} 個"}},Visualization_Invalid_Dimension:{id:"Visualization.Invalid.Dimension",locale:{"de-DE":"Ungültige Dimension","en-US":"Invalid dimension","es-ES":"Dimensión no válida","fr-FR":"Dimension non valide","it-IT":"Dimensione non valida","ja-JP":"無効な軸です","ko-KR":"잘못된 차원","nl-NL":"Ongeldige dimensie","pl-PL":"Nieprawidłowy wymiar","pt-BR":"Dimensão inválida","ru-RU":"Недопустимое измерение","sv-SE":"Ogiltig dimension","tr-TR":"Geçersiz boyut","zh-CN":"无效维度","zh-TW":"維度無效"}},Visualization_Invalid_Measure:{id:"Visualization.Invalid.Measure",locale:{"de-DE":"Ungültige Kennzahl","en-US":"Invalid measure","es-ES":"Medida no válida","fr-FR":"Mesure non valide","it-IT":"Misura non valida","ja-JP":"無効なメジャーです","ko-KR":"잘못된 측정값","nl-NL":"Ongeldige meting","pl-PL":"Nieprawidłowa miara","pt-BR":"Medida inválida","ru-RU":"Недопустимая мера","sv-SE":"Ogiltigt mått","tr-TR":"Geçersiz hesaplama","zh-CN":"无效度量项","zh-TW":"量值無效"}},Visualization_LayoutError:{id:"Visualization.LayoutError",locale:{"de-DE":"Fehler","en-US":"Error","es-ES":"Error","fr-FR":"Erreur","it-IT":"Errore","ja-JP":"エラー","ko-KR":"오류","nl-NL":"Fout","pl-PL":"Błąd","pt-BR":"Erro","ru-RU":"Ошибка","sv-SE":"Fel","tr-TR":"Hata","zh-CN":"错误","zh-TW":"錯誤"}},Visualization_UnfulfilledCalculationCondition:{id:"Visualization.UnfulfilledCalculationCondition",locale:{"de-DE":"Die Berechnungsbedingung ist nicht erfüllt","en-US":"The calculation condition is not fulfilled","es-ES":"La condición de cálculo no se cumple","fr-FR":"Condition de calcul non remplie","it-IT":"La condizione di calcolo non è soddisfatta","ja-JP":"演算実行条件が満たされていません","ko-KR":"계산 조건이 충족되지 않았습니다.","nl-NL":"Er is niet aan de berekeningsvoorwaarde voldaan","pl-PL":"Warunek obliczenia nie jest spełniony","pt-BR":"A condição de cálculo não foi atendida","ru-RU":"Условие вычисления не выполнено","sv-SE":"Beräkningsvillkoret uppfylls inte","tr-TR":"Hesaplama koşulu yerine getirilmedi","zh-CN":"不满足计算条件","zh-TW":"不符計算條件"}}};function ne(e){const t=ee({initial:e});return Object.keys(te).forEach((e=>{t.translator.add(te[e])})),{translator:t.translator}}var re={};function oe(){oe.init.call(this)}re.isObject=function(e){return"object"==typeof e&&null!==e},re.isNumber=function(e){return"number"==typeof e},re.isUndefined=function(e){return void 0===e},re.isFunction=function(e){return"function"==typeof e};var ie=oe;oe.EventEmitter=oe,oe.prototype._events=void 0,oe.prototype._maxListeners=void 0,oe.defaultMaxListeners=10,oe.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},oe.prototype.setMaxListeners=function(e){if(!re.isNumber(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},oe.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],re.isUndefined(n))return!1;if(re.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(re.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},oe.prototype.addListener=function(e,t){var n;if(!re.isFunction(t))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,re.isFunction(t.listener)?t.listener:t),this._events[e]?re.isObject(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,re.isObject(this._events[e])&&!this._events[e].warned)&&((n=re.isUndefined(this._maxListeners)?oe.defaultMaxListeners:this._maxListeners)&&n>0&&this._events[e].length>n&&(this._events[e].warned=!0,re.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),re.isFunction(console.trace)&&console.trace()));return this},oe.prototype.on=oe.prototype.addListener,oe.prototype.once=function(e,t){if(!re.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},oe.prototype.removeListener=function(e,t){var n,r,o,i;if(!re.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||re.isFunction(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(re.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},oe.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],re.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},oe.prototype.listeners=function(e){return this._events&&this._events[e]?re.isFunction(this._events[e])?[this._events[e]]:this._events[e].slice():[]},oe.listenerCount=function(e,t){return e._events&&e._events[t]?re.isFunction(e._events[t])?1:e._events[t].length:0};var ae=G(ie);function se(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function le(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ce(){}var ue=.7,de=1/ue,pe="\\s*([+-]?\\d+)\\s*",he="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",fe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",me=/^#([0-9a-f]{3,8})$/,ge=new RegExp(`^rgb\\(${pe},${pe},${pe}\\)$`),be=new RegExp(`^rgb\\(${fe},${fe},${fe}\\)$`),ye=new RegExp(`^rgba\\(${pe},${pe},${pe},${he}\\)$`),ve=new RegExp(`^rgba\\(${fe},${fe},${fe},${he}\\)$`),Se=new RegExp(`^hsl\\(${he},${fe},${fe}\\)$`),xe=new RegExp(`^hsla\\(${he},${fe},${fe},${he}\\)$`),Ee={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 Ce(){return this.rgb().formatHex()}function we(){return this.rgb().formatRgb()}function Le(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=me.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?ke(t):3===n?new Ie(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Re(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Re(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=ge.exec(e))?new Ie(t[1],t[2],t[3],1):(t=be.exec(e))?new Ie(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ye.exec(e))?Re(t[1],t[2],t[3],t[4]):(t=ve.exec(e))?Re(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Se.exec(e))?Pe(t[1],t[2]/100,t[3]/100,1):(t=xe.exec(e))?Pe(t[1],t[2]/100,t[3]/100,t[4]):Ee.hasOwnProperty(e)?ke(Ee[e]):"transparent"===e?new Ie(NaN,NaN,NaN,0):null}function ke(e){return new Ie(e>>16&255,e>>8&255,255&e,1)}function Re(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ie(e,t,n,r)}function _e(e,t,n,r){return 1===arguments.length?((o=e)instanceof ce||(o=Le(o)),o?new Ie((o=o.rgb()).r,o.g,o.b,o.opacity):new Ie):new Ie(e,t,n,null==r?1:r);var o}function Ie(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function qe(){return`#${De(this.r)}${De(this.g)}${De(this.b)}`}function Oe(){const e=Te(this.opacity);return`${1===e?"rgb(":"rgba("}${Ae(this.r)}, ${Ae(this.g)}, ${Ae(this.b)}${1===e?")":`, ${e})`}`}function Te(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ae(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function De(e){return((e=Ae(e))<16?"0":"")+e.toString(16)}function Pe(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ne(e,t,n,r)}function Me(e){if(e instanceof Ne)return new Ne(e.h,e.s,e.l,e.opacity);if(e instanceof ce||(e=Le(e)),!e)return new Ne;if(e instanceof Ne)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 Ne(a,s,l,e.opacity)}function Ne(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ze(e){return(e=(e||0)%360)<0?e+360:e}function je(e){return Math.max(0,Math.min(1,e||0))}function Fe(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}se(ce,Le,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ce,formatHex:Ce,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Me(this).formatHsl()},formatRgb:we,toString:we}),se(Ie,_e,le(ce,{brighter(e){return e=null==e?de:Math.pow(de,e),new Ie(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?ue:Math.pow(ue,e),new Ie(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ie(Ae(this.r),Ae(this.g),Ae(this.b),Te(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:qe,formatHex:qe,formatHex8:function(){return`#${De(this.r)}${De(this.g)}${De(this.b)}${De(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Oe,toString:Oe})),se(Ne,(function(e,t,n,r){return 1===arguments.length?Me(e):new Ne(e,t,n,null==r?1:r)}),le(ce,{brighter(e){return e=null==e?de:Math.pow(de,e),new Ne(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?ue:Math.pow(ue,e),new Ne(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 Ie(Fe(e>=240?e-240:e+120,o,r),Fe(e,o,r),Fe(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Ne(ze(this.h),je(this.s),je(this.l),Te(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=Te(this.opacity);return`${1===e?"hsl(":"hsla("}${ze(this.h)}, ${100*je(this.s)}%, ${100*je(this.l)}%${1===e?")":`, ${e})`}`}}));var We=Object.prototype.hasOwnProperty,Be=Object.prototype.toString,He=Object.defineProperty,Ue=Object.getOwnPropertyDescriptor,$e=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Be.call(e)},Ge=function(e){if(!e||"[object Object]"!==Be.call(e))return!1;var t,n=We.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&We.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||We.call(e,t)},Ve=function(e,t){He&&"__proto__"===t.name?He(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Ke=function(e,t){if("__proto__"===t){if(!We.call(e,t))return;if(Ue)return Ue(e,t).value}return e[t]},Ze=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=Ke(s,n),s!==(o=Ke(t,n))&&(u&&o&&(Ge(o)||(i=$e(o)))?(i?(i=!1,a=r&&$e(r)?r:[]):a=r&&Ge(r)?r:{},Ve(s,{name:n,newValue:e(u,a,o)})):void 0!==o&&Ve(s,{name:n,newValue:o}));return s},Je=G(Ze),Xe={fontSize:"12px",fontFamily:"'Source Sans Pro', 'Arial', 'sans-serif'",backgroundColor:"transparent",dataColors:{primaryColor:"#26a0a7",othersColor:"#a5a5a5",errorColor:"#ff4444",nullColor:"#d2d2d2"},object:{title:{main:{color:"@B50",fontSize:"15px"},subTitle:{color:"@B50",fontSize:"12px"},footer:{color:"@B50",fontSize:"12px",backgroundColor:"transparent"}}},scales:[{name:"Sequential Gradient",translation:"properties.colorScheme.sequential",type:"gradient",propertyValue:"sg",scale:["#26a0a7","#c7ea8b"]},{name:"Sequential Classes",translation:"properties.colorScheme.sequentialC",propertyValue:"sc",type:"class",scale:["#26a0a7","#c7ea8b"]},{name:"Diverging gradient",translation:"properties.colorScheme.diverging",propertyValue:"dg",type:"gradient",scale:["#26a0a7","#c3ea8c","#ec983d"]},{name:"Diverging Classes",translation:"properties.colorScheme.divergingC",propertyValue:"dc",type:"class",scale:["#26a0a7","#c3ea8c","#ec983d"]}],palettes:{data:[{name:"12 Colors",translation:"properties.colorNumberOfColors.12",propertyValue:"12",type:"pyramid",scale:[["#26A0A7"],["#26A0A7","#EC983D"],["#26A0A7","#CBE989","#EC983D"],["#26A0A7","#79D69F","#F9EC86","#EC983D"],["#26A0A7","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D","#D76C6C"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"],["#138185","#26A0A7","#65D3DA","#79D69F","#70BA6E","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"]]}],ui:[{name:"Palette",colors:["#b0afae","#7b7a78","#a54343","#d76c6c","#ec983d","#ecc43d","#f9ec86","#cbe989","#70ba6e","#578b60","#79d69f","#26a0a7","#138185","#65d3da","#ffffff","#000000"]}]}},Ye={_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"},Qe={_variables:{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},type:"dark",color:"@B98",object:{listBox:{backgroundColor:"@B20",title:{main:{color:"@B98",fontSize:"14px",fontWeight:"bold"}},content:{color:"#@B98",fontSize:"12px"}}}},et={object:{listBox:{backgroundColor:"#ffffff",title:{main:{color:"#404040",fontSize:"14px",fontWeight:"bold"}},content:{color:"#404040",fontSize:"12px"}}}};class tt{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=Le(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([Le(e),Le(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 _e(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 nt(e,t,n){const r=.25+(t+1)/n*.25,o=.5-r;return o+e/1*(.5+r-o)}function rt(e,t,n){const r=[],o=new tt(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 ot(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=nt(1/t*o,t,n);i=e.getColor(r);break}}r.push(Le(i).formatHex())}return r}function it(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=rt(e,n,!0),o=rt(ot(r,t-1,t),n,!1),i=[null];for(let e=0;e<t;e++)i.push(ot(o,e,t));return i}(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}}))}function at(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 st(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 lt(e,t,n,r){let o;if(""===e)o=at(null,n);else{o=at(e.split("."),n)}return function(e,t,n){const r=t.split(".");for(let t=0;t<e.length;t++){const o=st(n,[...e[t],...r]);if(void 0!==o)return o}}(o,t,r)}function ct(e,t){const n=e.split(".");return{getStyle:(e,r)=>lt(e,r,n.concat(),t)}}function ut(e,t){Object.keys(e).forEach((n=>{"object"==typeof e[n]&&null!==e[n]?ut(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])}))}function dt(e){const t=Le(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)}ct.resolveRawTheme=e=>{const t=Je(!0,{},e);return ut(t,t._variables),t.scales&&it(t.scales,t.dataColors&&t.dataColors.nullColor),t};const pt=1e3;function ht(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["#333333","#ffffff"],t={},n=0;const r=e.map(dt);return{getBestContrastColor(o){if(!t[o]){n>pt&&(t={},n=0);const i=dt(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 ft(){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]=ct(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=Le(...arguments);return n?n.toString():void 0}},i={setTheme(i,a){e=function(e,t){const n="dark"===e.type?Qe:Ye;let r=et;!1!==e._inherit&&"false"!==e._inherit||(r={});const o=Je(!0,{},Xe,r,n),i=Je(!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,ct.resolveRawTheme),r={},t=function(e){let t;return{dataScales(){const t=[];return e.scales.forEach((e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,scheme:!0,type:e.type,colors:e.scale})})),t},dataPalettes(){const t=[];return e.palettes.data.forEach((e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,type:e.type,colors:e.scale})})),t},uiPalettes(){const t=[];return e.palettes.ui.forEach((e=>{t.push({key:"ui",name:e.name,translation:e.translation,type:"row",colors:e.colors})})),t},dataColors:()=>({primary:e.dataColors.primaryColor,nil:e.dataColors.nullColor,others:e.dataColors.othersColor}),uiColor(e,n){const r="number"==typeof(null==e?void 0:e.index)&&!Number.isNaN(null==e?void 0:e.index),o="string"==typeof(null==e?void 0:e.color);if(r||o)return n=!!n,(null==e?void 0:e.index)<0||void 0===(null==e?void 0:e.index)?e.color:(void 0===t&&(t=this.uiPalettes()[0]||!1),t?void 0===t.colors[e.index-n]?e.color:t.colors[e.index-n]:e.color)}}}(e);const s=o.getStyle("","","color"),l=dt(s);n=ht([s,l<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>a}};return Object.keys(ae.prototype).forEach((e=>{o[e]=ae.prototype[e]})),ae.init(o),i.setTheme({},"light"),{externalAPI:o,internalAPI:i}}const mt=(e,t)=>new Promise((n=>{setTimeout((()=>n(t)),e)})),gt=5e3;function bt(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 yt={},vt=m;function St(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."}yt.createRoot=vt.createRoot,yt.hydrateRoot=vt.hydrateRoot;var xt=Object.freeze({__proto__:null,default:St}),Et="$$material";function Ct(){return Ct=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},Ct.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 Lt=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}(),kt="-ms-",Rt="-moz-",_t="-webkit-",It="comm",qt="rule",Ot="decl",Tt="@keyframes",At=Math.abs,Dt=String.fromCharCode,Pt=Object.assign;function Mt(e){return e.trim()}function Nt(e,t,n){return e.replace(t,n)}function zt(e,t){return e.indexOf(t)}function jt(e,t){return 0|e.charCodeAt(t)}function Ft(e,t,n){return e.slice(t,n)}function Wt(e){return e.length}function Bt(e){return e.length}function Ht(e,t){return t.push(e),e}var Ut=1,$t=1,Gt=0,Vt=0,Kt=0,Zt="";function Jt(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Ut,column:$t,length:a,return:""}}function Xt(e,t){return Pt(Jt("",null,null,"",null,null,0),e,{length:-e.length},t)}function Yt(){return Kt=Vt>0?jt(Zt,--Vt):0,$t--,10===Kt&&($t=1,Ut--),Kt}function Qt(){return Kt=Vt<Gt?jt(Zt,Vt++):0,$t++,10===Kt&&($t=1,Ut++),Kt}function en(){return jt(Zt,Vt)}function tn(){return Vt}function nn(e,t){return Ft(Zt,e,t)}function rn(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 on(e){return Ut=$t=1,Gt=Wt(Zt=e),Vt=0,[]}function an(e){return Zt="",e}function sn(e){return Mt(nn(Vt-1,un(91===e?e+2:40===e?e+1:e)))}function ln(e){for(;(Kt=en())&&Kt<33;)Qt();return rn(e)>2||rn(Kt)>3?"":" "}function cn(e,t){for(;--t&&Qt()&&!(Kt<48||Kt>102||Kt>57&&Kt<65||Kt>70&&Kt<97););return nn(e,tn()+(t<6&&32==en()&&32==Qt()))}function un(e){for(;Qt();)switch(Kt){case e:return Vt;case 34:case 39:34!==e&&39!==e&&un(Kt);break;case 40:41===e&&un(e);break;case 92:Qt()}return Vt}function dn(e,t){for(;Qt()&&e+Kt!==57&&(e+Kt!==84||47!==en()););return"/*"+nn(t,Vt-1)+"*"+Dt(47===e?e:Qt())}function pn(e){for(;!rn(en());)Qt();return nn(e,Vt)}function hn(e){return an(fn("",null,null,null,[""],e=on(e),0,[0],e))}function fn(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,b=1,y=0,v="",S=o,x=i,E=r,C=v;g;)switch(f=y,y=Qt()){case 40:if(108!=f&&58==jt(C,d-1)){-1!=zt(C+=Nt(sn(y),"&","&\f"),"&\f")&&(b=-1);break}case 34:case 39:case 91:C+=sn(y);break;case 9:case 10:case 13:case 32:C+=ln(f);break;case 92:C+=cn(tn()-1,7);continue;case 47:switch(en()){case 42:case 47:Ht(gn(dn(Qt(),tn()),t,n),l);break;default:C+="/"}break;case 123*m:s[c++]=Wt(C)*b;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==b&&(C=Nt(C,/\f/g,"")),h>0&&Wt(C)-d&&Ht(h>32?bn(C+";",r,n,d-1):bn(Nt(C," ","")+";",r,n,d-2),l);break;case 59:C+=";";default:if(Ht(E=mn(C,t,n,c,u,o,s,v,S=[],x=[],d),i),123===y)if(0===u)fn(C,t,E,E,S,i,d,s,x);else switch(99===p&&110===jt(C,3)?100:p){case 100:case 108:case 109:case 115:fn(e,E,E,r&&Ht(mn(e,E,E,0,0,o,s,v,o,S=[],d),x),o,x,d,s,r?S:x);break;default:fn(C,E,E,E,[""],x,0,s,x)}}c=u=h=0,m=b=1,v=C="",d=a;break;case 58:d=1+Wt(C),h=f;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==Yt())continue;switch(C+=Dt(y),y*m){case 38:b=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(Wt(C)-1)*b,b=1;break;case 64:45===en()&&(C+=sn(Qt())),p=en(),u=d=Wt(v=C+=pn(tn())),y++;break;case 45:45===f&&2==Wt(C)&&(m=0)}}return i}function mn(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,p=0===o?i:[""],h=Bt(p),f=0,m=0,g=0;f<r;++f)for(var b=0,y=Ft(e,d+1,d=At(m=a[f])),v=e;b<h;++b)(v=Mt(m>0?p[b]+" "+y:Nt(y,/&\f/g,p[b])))&&(l[g++]=v);return Jt(e,t,n,0===o?qt:s,l,c,u)}function gn(e,t,n){return Jt(e,t,n,It,Dt(Kt),Ft(e,2,-2),0)}function bn(e,t,n,r){return Jt(e,t,n,Ot,Ft(e,0,r),Ft(e,r+1,-1),r)}function yn(e,t){for(var n="",r=Bt(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function vn(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Ot:return e.return=e.return||e.value;case It:return"";case Tt:return e.return=e.value+"{"+yn(e.children,r)+"}";case qt:e.value=e.props.join(",")}return Wt(n=yn(e.children,r))?e.return=e.value+"{"+n+"}":""}function Sn(e){var t=Bt(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}var xn=function(e,t,n){for(var r=0,o=0;r=o,o=en(),38===r&&12===o&&(t[n]=1),!rn(o);)Qt();return nn(e,Vt)},En=function(e,t){return an(function(e,t){var n=-1,r=44;do{switch(rn(r)){case 0:38===r&&12===en()&&(t[n]=1),e[n]+=xn(Vt-1,t,n);break;case 2:e[n]+=sn(r);break;case 4:if(44===r){e[++n]=58===en()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Dt(r)}}while(r=Qt());return e}(on(e),t))},Cn=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)||Cn.get(n))&&!r){Cn.set(e,!0);for(var o=[],i=En(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]}}},Ln=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function kn(e,t){switch(function(e,t){return 45^jt(e,0)?(((t<<2^jt(e,0))<<2^jt(e,1))<<2^jt(e,2))<<2^jt(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+Rt+e+kt+e+e;case 6828:case 4268:return _t+e+kt+e+e;case 6165:return _t+e+kt+"flex-"+e+e;case 5187:return _t+e+Nt(e,/(\w+).+(:[^]+)/,_t+"box-$1$2"+kt+"flex-$1$2")+e;case 5443:return _t+e+kt+"flex-item-"+Nt(e,/flex-|-self/,"")+e;case 4675:return _t+e+kt+"flex-line-pack"+Nt(e,/align-content|flex-|-self/,"")+e;case 5548:return _t+e+kt+Nt(e,"shrink","negative")+e;case 5292:return _t+e+kt+Nt(e,"basis","preferred-size")+e;case 6060:return _t+"box-"+Nt(e,"-grow","")+_t+e+kt+Nt(e,"grow","positive")+e;case 4554:return _t+Nt(e,/([^-])(transform)/g,"$1"+_t+"$2")+e;case 6187:return Nt(Nt(Nt(e,/(zoom-|grab)/,_t+"$1"),/(image-set)/,_t+"$1"),e,"")+e;case 5495:case 3959:return Nt(e,/(image-set\([^]*)/,_t+"$1$`$1");case 4968:return Nt(Nt(e,/(.+:)(flex-)?(.*)/,_t+"box-pack:$3"+kt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+_t+e+e;case 4095:case 3583:case 4068:case 2532:return Nt(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(Wt(e)-1-t>6)switch(jt(e,t+1)){case 109:if(45!==jt(e,t+4))break;case 102:return Nt(e,/(.+:)(.+)-([^]+)/,"$1"+_t+"$2-$3$1"+Rt+(108==jt(e,t+3)?"$3":"$2-$3"))+e;case 115:return~zt(e,"stretch")?kn(Nt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==jt(e,t+1))break;case 6444:switch(jt(e,Wt(e)-3-(~zt(e,"!important")&&10))){case 107:return Nt(e,":",":"+_t)+e;case 101:return Nt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+_t+(45===jt(e,14)?"inline-":"")+"box$3$1"+_t+"$2$3$1"+kt+"$2box$3")+e}break;case 5936:switch(jt(e,t+11)){case 114:return _t+e+kt+Nt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return _t+e+kt+Nt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return _t+e+kt+Nt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return _t+e+kt+e+e}return e}var Rn="undefined"!=typeof document,_n=Rn?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]}}))})),In=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Ot:e.return=kn(e.value,e.length);break;case Tt:return yn([Xt(e,{value:Nt(e.value,"@","@"+_t)})],r);case qt: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 yn([Xt(e,{props:[Nt(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return yn([Xt(e,{props:[Nt(t,/:(plac\w+)/,":"+_t+"input-$1")]}),Xt(e,{props:[Nt(t,/:(plac\w+)/,":-moz-$1")]}),Xt(e,{props:[Nt(t,/:(plac\w+)/,kt+"input-$1")]})],r)}return""}))}}],qn={exports:{}},On={},Tn=t,An=Symbol.for("react.element"),Dn=Symbol.for("react.fragment"),Pn=Object.prototype.hasOwnProperty,Mn=Tn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Nn={key:!0,ref:!0,__self:!0,__source:!0};function zn(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)Pn.call(t,r)&&!Nn.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:An,type:e,key:i,ref:a,props:o,_owner:Mn.current}}On.Fragment=Dn,On.jsx=zn,On.jsxs=zn,qn.exports=On;var jn=qn.exports;let Fn;function Wn(e){const{injectFirst:t,children:n}=e;return t&&Fn?jn.jsx(g,{value:Fn,children:n}):n}"object"==typeof document&&(Fn=function(e){var t=e.key;if(Rn&&"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||In,a={},s=[];Rn&&(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,Ln];if(Rn){var u,d=[vn,(l=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],p=Sn(c.concat(i,d));o=function(e,t,n,r){u=n,yn(hn(e?e+"{"+t.styles+"}":t.styles),p),r&&(b.inserted[t.name]=!0)}}else{var h=[vn],f=Sn(c.concat(i,h)),m=_n(i)(t),g=function(e,t){var n=t.name;return void 0===m[n]&&(m[n]=yn(hn(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===b.compat?(r&&(b.inserted[o]=!0),i):r?void(b.inserted[o]=i):i}}var b={key:t,sheet:new Lt({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 b.sheet.hydrate(s),b}({key:"css",prepend:!0}));var Bn=Object.freeze({__proto__:null,GlobalStyles:function(e){const{styles:t,defaultTheme:n={}}=e,r="function"==typeof t?e=>{return t(null==(r=e)||0===Object.keys(r).length?n:e);var r}:t;return jn.jsx(b,{styles:r})}
8
8
  /**
9
- * @mui/styled-engine v5.15.7
9
+ * @mui/styled-engine v5.15.11
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&&(Pn=function(e){var t=e.key;if(Cn&&"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||Ln,a={},s=[];Cn&&(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=[Sn,xn];if(Cn){var u,d=[mn,(l=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],p=gn(c.concat(i,d));o=function(e,t,n,r){u=n,fn(cn(e?e+"{"+t.styles+"}":t.styles),p),r&&(b.inserted[t.name]=!0)}}else{var h=[mn],f=gn(c.concat(i,h)),m=wn(i)(t),g=function(e,t){var n=t.name;return void 0===m[n]&&(m[n]=fn(cn(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===b.compat?(r&&(b.inserted[o]=!0),i):r?void(b.inserted[o]=i):i}}var b={key:t,sheet:new xt({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 b.sheet.hydrate(s),b}({key:"css",prepend:!0}));function zn(){return zn=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},zn.apply(this,arguments)}function jn(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Fn(){return Fn=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},Fn.apply(this,arguments)}function Wn(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Bn(e){if(!Wn(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Bn(e[n])})),t}function Hn(e,t,n={clone:!0}){const r=n.clone?Fn({},e):e;return Wn(e)&&Wn(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Wn(t[o])&&o in e&&Wn(e[o])?r[o]=Hn(e[o],t[o],n):n.clone?r[o]=Wn(t[o])?Bn(t[o]):t[o]:r[o]=t[o])})),r}function Un(e){if("string"!=typeof e)throw new Error(bt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Gn(e){return e&&e.ownerDocument||document}function $n(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var Vn="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;let Kn=0;const Zn=e["useId".toString()];class Jn{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new Jn}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}let Xn=!0,Yn=!1;const Qn=new Jn,er={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 tr(e){e.metaKey||e.altKey||e.ctrlKey||(Xn=!0)}function nr(){Xn=!1}function rr(){"hidden"===this.visibilityState&&Yn&&(Xn=!0)}function or(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Xn||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!er[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function ir(e,t){const n=Fn({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Fn({},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]=Fn({},i),Object.keys(o).forEach((e=>{n[r][e]=ir(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}const ar=e=>e,sr=(()=>{let e=ar;return{configure(t){e=t},generate:t=>e(t),reset(){e=ar}}})(),lr={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function cr(e,t,n="Mui"){const r=lr[t];return r?`${n}-${r}`:`${sr.generate(e)}-${t}`}function ur(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=cr(e,t,n)})),r}const dr=["values","unit","step"],pr=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)=>zn({},e,{[t.key]:t.val})),{})};function hr(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=jn(e,dr),i=pr(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 zn({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 fr={borderRadius:4};function mr(e,t){return t?Hn(e,t,{clone:!1}):e}const gr={xs:0,sm:600,md:900,lg:1200,xl:1536},br={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${gr[e]}px)`};function yr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||br;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||br;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||gr).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function vr(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function Sr(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:vr(e,n)||r,t&&(o=t(o,r,e)),o}function xr(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=vr(e.theme,r)||{};return yr(e,i,(e=>{let r=Sr(a,o,e);return e===r&&"string"==typeof e&&(r=Sr(a,o,`${t}${"default"===e?"":Un(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const Er={m:"margin",p:"padding"},Cr={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},wr={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Lr=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!wr[e])return[e];e=wr[e]}const[t,n]=e.split(""),r=Er[t],o=Cr[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),kr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Rr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function Ir(e,t,n,r){var o;const i=null!=(o=vr(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function qr(e){return Ir(e,"spacing",8)}function _r(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 Or(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=_r(t,n),e)),{})}(Lr(n),r);return yr(e,e[n],o)}function Tr(e,t){const n=qr(e.theme);return Object.keys(e).map((r=>Or(e,t,r,n))).reduce(mr,{})}function Ar(e){return Tr(e,kr)}function Dr(e){return Tr(e,Rr)}function Mr(e=8){if(e.mui)return e;const t=qr({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 Pr(...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]?mr(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Nr(e){return"number"!=typeof e?e:`${e}px solid`}function zr(e,t){return xr({prop:e,themeKey:"borders",transform:t})}Ar.propTypes={},Ar.filterProps=kr,Dr.propTypes={},Dr.filterProps=Rr;const jr=zr("border",Nr),Fr=zr("borderTop",Nr),Wr=zr("borderRight",Nr),Br=zr("borderBottom",Nr),Hr=zr("borderLeft",Nr),Ur=zr("borderColor"),Gr=zr("borderTopColor"),$r=zr("borderRightColor"),Vr=zr("borderBottomColor"),Kr=zr("borderLeftColor"),Zr=zr("outline",Nr),Jr=zr("outlineColor"),Xr=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=Ir(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:_r(t,e)});return yr(e,e.borderRadius,n)}return null};Xr.propTypes={},Xr.filterProps=["borderRadius"],Pr(jr,Fr,Wr,Br,Hr,Ur,Gr,$r,Vr,Kr,Xr,Zr,Jr);const Yr=e=>{if(void 0!==e.gap&&null!==e.gap){const t=Ir(e.theme,"spacing",8),n=e=>({gap:_r(t,e)});return yr(e,e.gap,n)}return null};Yr.propTypes={},Yr.filterProps=["gap"];const Qr=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=Ir(e.theme,"spacing",8),n=e=>({columnGap:_r(t,e)});return yr(e,e.columnGap,n)}return null};Qr.propTypes={},Qr.filterProps=["columnGap"];const eo=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=Ir(e.theme,"spacing",8),n=e=>({rowGap:_r(t,e)});return yr(e,e.rowGap,n)}return null};eo.propTypes={},eo.filterProps=["rowGap"];function to(e,t){return"grey"===t?t:e}Pr(Yr,Qr,eo,xr({prop:"gridColumn"}),xr({prop:"gridRow"}),xr({prop:"gridAutoFlow"}),xr({prop:"gridAutoColumns"}),xr({prop:"gridAutoRows"}),xr({prop:"gridTemplateColumns"}),xr({prop:"gridTemplateRows"}),xr({prop:"gridTemplateAreas"}),xr({prop:"gridArea"}));function no(e){return e<=1&&0!==e?100*e+"%":e}Pr(xr({prop:"color",themeKey:"palette",transform:to}),xr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:to}),xr({prop:"backgroundColor",themeKey:"palette",transform:to}));const ro=xr({prop:"width",transform:no}),oo=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||gr[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:no(t)}};return yr(e,e.maxWidth,t)}return null};oo.filterProps=["maxWidth"];const io=xr({prop:"minWidth",transform:no}),ao=xr({prop:"height",transform:no}),so=xr({prop:"maxHeight",transform:no}),lo=xr({prop:"minHeight",transform:no});xr({prop:"size",cssProperty:"width",transform:no}),xr({prop:"size",cssProperty:"height",transform:no});Pr(ro,oo,io,ao,so,lo,xr({prop:"boxSizing"}));var co={border:{themeKey:"borders",transform:Nr},borderTop:{themeKey:"borders",transform:Nr},borderRight:{themeKey:"borders",transform:Nr},borderBottom:{themeKey:"borders",transform:Nr},borderLeft:{themeKey:"borders",transform:Nr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Nr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Xr},color:{themeKey:"palette",transform:to},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:to},backgroundColor:{themeKey:"palette",transform:to},p:{style:Dr},pt:{style:Dr},pr:{style:Dr},pb:{style:Dr},pl:{style:Dr},px:{style:Dr},py:{style:Dr},padding:{style:Dr},paddingTop:{style:Dr},paddingRight:{style:Dr},paddingBottom:{style:Dr},paddingLeft:{style:Dr},paddingX:{style:Dr},paddingY:{style:Dr},paddingInline:{style:Dr},paddingInlineStart:{style:Dr},paddingInlineEnd:{style:Dr},paddingBlock:{style:Dr},paddingBlockStart:{style:Dr},paddingBlockEnd:{style:Dr},m:{style:Ar},mt:{style:Ar},mr:{style:Ar},mb:{style:Ar},ml:{style:Ar},mx:{style:Ar},my:{style:Ar},margin:{style:Ar},marginTop:{style:Ar},marginRight:{style:Ar},marginBottom:{style:Ar},marginLeft:{style:Ar},marginX:{style:Ar},marginY:{style:Ar},marginInline:{style:Ar},marginInlineStart:{style:Ar},marginInlineEnd:{style:Ar},marginBlock:{style:Ar},marginBlockStart:{style:Ar},marginBlockEnd:{style:Ar},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:Yr},rowGap:{style:eo},columnGap:{style:Qr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:no},maxWidth:{style:oo},minWidth:{transform:no},height:{transform:no},maxHeight:{transform:no},minHeight:{transform:no},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};const uo=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=vr(n,s)||{};if(c)return c(o);return yr(o,t,(t=>{let n=Sr(u,l,t);return t===n&&"string"==typeof t&&(n=Sr(u,l,`${e}${"default"===t?"":Un(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:co;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=mr(l,e(n,o,i,a));else{const e=yr({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=mr(l,e):l[n]=t({sx:o,theme:i})}else l=mr(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)}}();function po(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){return{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return n.palette.mode===e?t:{}}uo.filterProps=["sx"];const ho=["breakpoints","palette","spacing","shape"];function fo(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=jn(e,ho),s=hr(n),l=Mr(o);let c=Hn({breakpoints:s,direction:"ltr",components:{},palette:zn({mode:"light"},r),spacing:l,shape:zn({},fr,i)},a);return c.applyStyles=po,c=t.reduce(((e,t)=>Hn(e,t)),c),c.unstable_sxConfig=zn({},co,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return uo({sx:e,theme:this})},c}function mo(t=null){const n=e.useContext(b);return n&&(r=n,0!==Object.keys(r).length)?n:t;var r}const go=fo();function bo(e=go){return mo(e)}function yo(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=yo(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function vo(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=yo(e))&&(r&&(r+=" "),r+=t);return r}const So=["variant"];function xo(e){return 0===e.length}function Eo(e){const{variant:t}=e,n=jn(e,So);let r=t||"";return Object.keys(n).sort().forEach((t=>{r+="color"===t?xo(r)?e[t]:Un(e[t]):`${xo(r)?t:Un(t)}${Un(e[t].toString())}`})),r}const Co=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];const wo=e=>{let t=0;const n={};return e&&e.forEach((e=>{let r="";"function"==typeof e.props?(r=`callback${t}`,t+=1):r=Eo(e.props),n[r]=e.style})),n},Lo=(e,t,n)=>{const{ownerState:r={}}=e,o=[];let i=0;return n&&n.forEach((n=>{let a=!0;if("function"==typeof n.props){const t=zn({},e,r);a=n.props(t)}else Object.keys(n.props).forEach((t=>{r[t]!==n.props[t]&&e[t]!==n.props[t]&&(a=!1)}));a&&("function"==typeof n.props?o.push(t[`callback${i}`]):o.push(t[Eo(n.props)])),"function"==typeof n.props&&(i+=1)})),o};function ko(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Ro=fo(),Io=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function qo({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function _o(e){return e?(t,n)=>n[e]:null}const Oo=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const o=e(zn({},t,{theme:qo(zn({},t,{defaultTheme:n,themeId:r}))}));let i;if(o&&o.variants&&(i=o.variants,delete o.variants),i){return[o,...Lo(t,wo(i),i)]}return o};function To(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?ir(t.components[n].defaultProps,r):r}function Ao(e,t=0,n=1){return function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}(e,t,n)}function Do(e){if(e.type)return e;if("#"===e.charAt(0))return Do(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 Po(e){let t="hsl"===(e=Do(e)).type||"hsla"===e.type?Do(function(e){e=Do(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))}function No(){return No=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},No.apply(this,arguments)}var zo=e.createContext(null);function jo(){return e.useContext(zo)}var Fo="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function Wo(t){const{children:n,theme:r}=t,o=jo(),i=e.useMemo((()=>{const e=null===o?r:function(e,t){if("function"==typeof t)return t(e);return No({},e,t)}(o,r);return null!=e&&(e[Fo]=null!==o),e}),[r,o]);return Mn.jsx(zo.Provider,{value:i,children:n})}const Bo={};function Ho(t,n,r,o=!1){return e.useMemo((()=>{const e=t&&n[t]||n;if("function"==typeof r){const i=r(e),a=t?zn({},n,{[t]:i}):i;return o?()=>a:a}return zn({},n,t?{[t]:r}:r)}),[t,n,r,o])}function Uo(e){const{children:t,theme:n,themeId:r}=e,o=mo(Bo),i=jo()||Bo,a=Ho(r,o,n),s=Ho(r,i,n,!0);return Mn.jsx(Wo,{theme:s,children:Mn.jsx(b.Provider,{value:a,children:t})})}const Go=["defaultProps","mixins","overrides","palette","props","styleOverrides"],$o=["type","mode"];var Vo={black:"#000",white:"#fff"};var Ko={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 Zo={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 Jo={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 Xo={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 Yo={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 Qo={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 ei={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 ti=["mode","contrastThreshold","tonalOffset"],ni={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:Vo.white,default:Vo.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}},ri={text:{primary:Vo.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:Vo.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 oi(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=Do(e),t=Ao(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=Do(e),t=Ao(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 ii(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=St(e,ti),i=e.primary||function(e="light"){return"dark"===e?{main:Yo[200],light:Yo[50],dark:Yo[400]}:{main:Yo[700],light:Yo[400],dark:Yo[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Zo[200],light:Zo[50],dark:Zo[400]}:{main:Zo[500],light:Zo[300],dark:Zo[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:Jo[500],light:Jo[300],dark:Jo[700]}:{main:Jo[700],light:Jo[400],dark:Jo[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:Qo[400],light:Qo[300],dark:Qo[700]}:{main:Qo[700],light:Qo[500],dark:Qo[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:ei[400],light:ei[300],dark:ei[700]}:{main:ei[800],light:ei[500],dark:ei[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:Xo[400],light:Xo[300],dark:Xo[700]}:{main:"#ed6c02",light:Xo[500],dark:Xo[900]}}(t);function d(e){const t=function(e,t){const n=Po(e),r=Po(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,ri.text.primary)>=n?ri.text.primary:ni.text.primary;return t}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=vt({},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 oi(e,"light",o,r),oi(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},h={dark:ri,light:ni};return Hn(vt({common:vt({},Vo),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:Ko,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},h[t]),o)}const ai=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const si={textTransform:"uppercase"},li='"Roboto", "Helvetica", "Arial", sans-serif';function ci(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=li,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:u,pxToRem:d}=n,p=St(n,ai),h=o/14,f=d||(e=>e/c*h+"rem"),m=(e,t,n,o,i)=>{return vt({fontFamily:r,fontWeight:e,fontSize:f(t),lineHeight:n},r===li?{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,si),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,si),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Hn(vt({htmlFontSize:c,pxToRem:f,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function ui(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const di=["none",ui(0,2,1,-1,0,1,1,0,0,1,3,0),ui(0,3,1,-2,0,2,2,0,0,1,5,0),ui(0,3,3,-2,0,3,4,0,0,1,8,0),ui(0,2,4,-1,0,4,5,0,0,1,10,0),ui(0,3,5,-1,0,5,8,0,0,1,14,0),ui(0,3,5,-1,0,6,10,0,0,1,18,0),ui(0,4,5,-2,0,7,10,1,0,2,16,1),ui(0,5,5,-3,0,8,10,1,0,3,14,2),ui(0,5,6,-3,0,9,12,1,0,3,16,2),ui(0,6,6,-3,0,10,14,1,0,4,18,3),ui(0,6,7,-4,0,11,15,1,0,4,20,3),ui(0,7,8,-4,0,12,17,2,0,5,22,4),ui(0,7,8,-4,0,13,19,2,0,5,24,4),ui(0,7,9,-4,0,14,21,2,0,5,26,4),ui(0,8,9,-5,0,15,22,2,0,6,28,5),ui(0,8,10,-5,0,16,24,2,0,6,30,5),ui(0,8,11,-5,0,17,26,2,0,6,32,5),ui(0,9,11,-5,0,18,28,2,0,7,34,6),ui(0,9,12,-6,0,19,29,2,0,7,36,6),ui(0,10,13,-6,0,20,31,3,0,8,38,7),ui(0,10,13,-6,0,21,33,3,0,8,40,7),ui(0,10,14,-6,0,22,35,3,0,8,42,7),ui(0,11,14,-7,0,23,36,3,0,9,44,8),ui(0,11,15,-7,0,24,38,3,0,9,46,8)],pi=["duration","easing","delay"],hi={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)"},fi={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function mi(e){return`${Math.round(e)}ms`}function gi(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function bi(e){const t=vt({},hi,e.easing),n=vt({},fi,e.duration);return vt({getAutoHeightDuration:gi,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return St(r,pi),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:mi(o)} ${i} ${"string"==typeof a?a:mi(a)}`)).join(",")}},e,{easing:t,duration:n})}var yi={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const vi=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Si(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=St(e,vi);if(e.vars)throw new Error(bt(18));const s=ii(r),l=fo(e);let c=Hn(l,{mixins:(u=l.breakpoints,d=n,vt({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:di.slice(),typography:ci(s,i),transitions:bi(o),zIndex:vt({},yi)});var u,d;return c=Hn(c,a),c=t.reduce(((e,t)=>Hn(e,t)),c),c.unstable_sxConfig=vt({},co,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return uo({sx:e,theme:this})},c}var xi=Si();function Ei(){const e=bo(xi);return e[yt]||e}function Ci({props:e,name:t}){return function({props:e,name:t,defaultTheme:n,themeId:r}){let o=bo(n);return r&&(o=o[r]||o),To({theme:o,name:t,props:e})}({props:e,name:t,defaultTheme:xi,themeId:yt})}const wi=function(e={}){const{themeId:t,defaultTheme:n=Ro,rootShouldForwardProp:r=ko,slotShouldForwardProp:o=ko}=e,i=e=>uo(zn({},e,{theme:qo(zn({},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=_o(Io(l))}=a,p=jn(a,Co),h=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,f=u||!1;let m=ko;"Root"===l||"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 B(e,t)}(e,zn({shouldForwardProp:m,label:undefined},p)),b=(r,...o)=>{const a=o?o.map((e=>{if("function"==typeof e&&e.__emotion_real!==e)return r=>Oo({styledArg:e,props:r,defaultTheme:n,themeId:t});if(Wn(e)){let t,n=e;return e&&e.variants&&(t=e.variants,delete n.variants,n=n=>{let r=e;return Lo(n,wo(t),t).forEach((e=>{r=Hn(r,e)})),r}),n}return e})):[];let l=r;if(Wn(r)){let e;r&&r.variants&&(e=r.variants,delete l.variants,l=t=>{let n=r;return Lo(t,wo(e),e).forEach((e=>{n=Hn(n,e)})),n})}else"function"==typeof r&&r.__emotion_real!==r&&(l=e=>Oo({styledArg:r,props:e,defaultTheme:n,themeId:t}));s&&d&&a.push((e=>{const r=qo(zn({},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(zn({},e,{theme:r})):o})),d(e,t)}return null})),s&&!h&&a.push((e=>{const r=qo(zn({},e,{defaultTheme:n,themeId:t}));return((e,t,n,r)=>{var o;const i=null==n||null==(o=n.components)||null==(o=o[r])?void 0:o.variants;return Lo(e,t,i)})(e,((e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),wo(n)})(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]}const u=g(l,...a);return e.muiName&&(u.muiName=e.muiName),u};return g.withConfig&&(b.withConfig=g.withConfig),b}}({themeId:yt,defaultTheme:xi,rootShouldForwardProp:e=>ko(e)&&"classes"!==e}),Li=["theme"];function ki(e){let{theme:t}=e,n=St(e,Li);const r=t[yt];return Mn.jsx(Uo,vt({},n,{themeId:r?yt:void 0,theme:r||t}))}function Ri(){return Ri=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},Ri.apply(this,arguments)}function Ii(e,t){return Ii=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ii(e,t)}function qi(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ii(e,t)}function _i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Oi=ur("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"]),Ti={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={green:"#009845",greenPale:"#0AAF54",red:"#DC423F",redPale:"#F05551",blue:"#3F8AB3",bluePale:"#469DCD",grey100:"#ffffff",grey98:"#FBFBFB",grey95:"#F2F2F2",grey90:"#E6E6E6",grey85:"#D9D9D9",grey55:"#8C8C8C",grey45:"#737373",grey30:"#4D4D4D",grey25:"#404040",grey20:"#333333",grey15:"#262626",grey10:"#1A1A1A",grey5:"#0E0E0E",grey0:"#000000"},Di={mode:"light",palette:{primary:{main:Ai.grey25,contrastText:Ai.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:Ai.grey25,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)",light:Ai.grey100,dark:Ai.grey0},action:{active:"#545454",hover:"rgba(0, 0, 0, 0.03)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.05)",disabled:"rgba(0, 0, 0, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},background:{paper:Ai.grey100,default:Ai.grey100,lightest:Ai.grey100,lighter:Ai.grey98,darker:Ai.grey95,darkest:Ai.grey90},custom:{focusBorder:Ai.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)",disabledBackground:Ai.grey45,disabledContrastText:Ai.grey100},selected:{main:Ai.green,alternative:"#E4E4E4",excluded:"#BEBEBE",selectedExcluded:"#BEBEBE",possible:Ai.grey100,selectedContrastText:Ai.grey100,mainContrastText:Ai.grey100,alternativeContrastText:Ai.grey25,excludedContrastText:Ai.grey25,selectedExcludedContrastText:Ai.grey100,possibleContrastText:Ai.grey0},btn:{normal:"rgba(255, 255, 255, 0.6)",hover:"rgba(0, 0, 0, 0.03)",active:"rgba(0, 0, 0, 0.1)",disabled:"rgba(255, 255, 255, 0.6)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.15)"}}},Mi={mode:"dark",palette:{primary:{main:Ai.grey20,contrastText:Ai.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:Ai.grey100,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)",light:Ai.grey100,dark:Ai.grey0},action:{active:Ai.grey100,hover:"rgba(255, 255, 255, 0.05)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.03)",disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},divider:"rgba(0,0,0,0.3)",background:{default:"#323232",paper:"#323232",lightest:Ai.grey25,lighter:Ai.grey20,darker:Ai.grey15,darkest:Ai.grey10},custom:{focusBorder:Ai.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)",disabledBackground:Ai.grey45,disabledContrastText:Ai.grey100},selected:{main:Ai.green,alternative:Ai.grey20,excluded:Ai.grey10,selectedExcluded:Ai.grey10,possible:Ai.grey80,selectedContrastText:Ai.grey100,mainContrastText:Ai.grey100,alternativeContrastText:Ai.grey100,excludedContrastText:Ai.grey100,selectedExcludedContrastText:Ai.grey100,possibleContrastText:Ai.grey0},btn:{normal:"rgba(255, 255, 255, 0.15)",hover:"rgba(255, 255, 255, 0.25)",active:"rgba(0, 0, 0, 0.6)",disabled:"rgba(255, 255, 255, 0.15)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.30)"}}},Pi={},Ni=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 zi(e){let t=Di,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=Mi));const r=JSON.stringify(t);if(Pi[r])return Pi[r];const o={palette:$($({type:t.mode},Ti.palette),t.palette),typography:$({},Ti.typography),shadows:Ti.shadows,props:$({},Ti.props),shape:$({},Ti.shape)};return Pi[r]=Si(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:i={},styleOverrides:a={}}=e,s=vt({},St(e,Go),{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=Mr(e.spacing);const l=hr(e.breakpoints||{}),c=s.spacing;s.mixins=vt({gutters:(e={})=>vt({paddingLeft:c(2),paddingRight:c(2)},e,{[l.up("sm")]:vt({paddingLeft:c(3),paddingRight:c(3)},e[l.up("sm")])})},n);const{type:u,mode:d}=o,p=St(o,$o),h=d||u||"light";return s.palette=vt({text:{hint:"dark"===h?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:h,type:h},p),s}($($({},o),{},{overrides:Ni(o)}))),Pi[r].name=n,Pi[r]}sr.configure((e=>"njs-".concat("339b","-").concat(e.replace("Mui",""))));var ji=t.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null}),Fi=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[Wi,Bi]=Fi({}),[Hi,Ui]=Fi({}),[Gi,$i]=Fi({});function Vi(e){if(!e.session)return[];const[t]=Wi(),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{model:t,objectSelections:r}=$i.get(n)||{};t&&(await t.endSelections(e),$i.clear(n),r.emit("deactivated"))},o={begin:async e=>{var o;let{model:i,paths:a,accept:s=!0,objectSelections:l}=e;if(l===(null===(o=$i.get(n))||void 0===o?void 0:o.objectSelections))return;r(s),$i.set(n,{model:i,objectSelections:l});const c=Array.isArray(a)?a:[a],u=async e=>{try{await i.beginSelections(c),$i.set(n,{model:i,objectSelections:l})}catch(r){6003!==r.code||e?$i.clear(n):(await t.abortModal(s),u(!0))}};await u()},end:r};Ui.set(n,o);const i={model:t,isInModal:()=>!!$i.get(n),isModal(e){var t;return e?(null===(t=$i.get(n))||void 0===t?void 0:t.objectSelections)===e:!!$i.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 Ki={active:!0,select:!0,passive:!0,edit:!1};function Zi(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(Ki).forEach((e=>{void 0!==r[e]?(t[e]=r[e],n[e]=!r[e]):(t[e]=Ki[e],n[e]=!Ki[e])})),e.constraints=n,e.interactions=t}const Ji=o(((e,o)=>{let{initialContext:s,app:l,renderCallback:c}=e;const[u]=Vi(l),[d,p]=n(s),[h,f]=n(),{theme:m}=i((()=>({theme:zi(h)})),[h]),[g,b]=n([]);return r((()=>{c&&c()}),[]),a(o,(()=>({setComps(e){b([...e])},setMuiThemeName:f,setContext:e=>p((t=>JSON.stringify(t)!==JSON.stringify(e)?e:t)),getAppSelections:()=>u})),[]),t.createElement(Nn,{injectFirst:!0},t.createElement(ki,{theme:m},t.createElement(ji.Provider,{value:d},g)))}));const[Xi,Yi]=Fi({}),[Qi,ea]=Fi({}),[ta,na]=Fi({}),[ra,oa]=Fi({}),[ia,aa]=Fi({}),[,sa]=Fi({}),la=e=>{let{type:t,value:n}=e;const r=sa.get(n.id);sa.set(n.id,{});const o=()=>{ea.clear(n.id),aa.set(n.id,{}),aa.dispatch(!0)},i=()=>{n.removeListener("changed",o),Yi.clear(n.id),ea.clear(n.id),na.clear(n.id),oa.clear(n.id),aa.clear(n.id),sa.clear(n.id)};if("SET"===t)r||(n.on("changed",o),n.once("closed",(()=>{i()})));return i},[ca,ua]=Fi({},la),da=e=>{const t=la({type:"SET",value:e});return()=>{t(),ua.clear(e.id)}};function pa(e,t){const o=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[i]=ca(),[a]=ta(),[s,l]=n();for(var c=arguments.length,u=new Array(c>2?c-2:0),d=2;d<c;d++)u[d-2]=arguments[d];return r((()=>{if(!t)return;(async()=>{let n=a.get(o);n||(n=t.createSessionObject(e),a.set(o,n));const r=await n;i.set(o,r),l(r)})()}),[t,...u]),[s]}const ha={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function fa(e){return pa(ha,e)}const ma=e=>new Promise((t=>{setTimeout(t,e)})),ga=(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 ba(e,t){const n=e?"".concat(e.id):null,[o]=Xi(),[i,a]=s(ga,n?o.get(n):null),[l]=ia(),[c]=Qi();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{await ma(0);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 ya(e){return ba(e,"getLayout")}function va(e){return ba(e,"getAppLayout")}function Sa(){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 xa(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function Ea(e){let{size:n,style:r={},viewBox:o="0 0 16 16",shapes:i=[]}=e;const a=$({fontSize:xa(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,Z({key:n},o))}))))}var Ca=e=>Ea((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 wa=e=>Ea((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));const La=e=>$($({},e),{},{viewBox:"0 0 12 16",shapes:[{type:"path",attrs:{d:"M2.5,7 L11,7 C11.5522847,7 12,7.44771525 12,8 L12,15 C12,15.5522847 11.5522847,16 11,16 L1,16 C0.44771525,16 0,15.5522847 0,15 L0,8 C0,7.44771525 0.44771525,7 1,7 L1,4.98151367 C1,2.23029964 3.23857625,0 6,0 C8.4241995,0 10.4454541,1.71883353 10.9029715,4 L9.34209114,4 C8.9671727,2.54028848 7.9088888,1.5 6,1.5 C3.54860291,1.5 2.5,3.21561511 2.5,5.33193359 L2.5,7 Z"}}]});var ka=e=>Ea(La(e));var Ra=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}}(),Ia=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},qa=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=Ia(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},Ia(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),Ra(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 _a=["S","XS"],Oa=e=>e.reduce(((e,t)=>e.concat(t)));function Ta(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[t]=e;return n=t.qState,!!_a.includes(n)&&t.qElemNumber;var n}));return t.filter((e=>!1!==e))}));return Oa(t)}async function Aa(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 Da="RowColumn",Ma={row:"".concat(Da,"-row"),rowBorderBottom:"".concat(Da,"-rowBorderBottom"),column:"".concat(Da,"-column"),fieldRoot:"".concat(Da,"-fieldRoot"),cell:"".concat(Da,"-cell"),labelText:"".concat(Da,"-labelText"),labelDense:"".concat(Da,"-labelDense"),highlighted:"".concat(Da,"-highlighted"),checkboxLabel:"".concat(Da,"-checkboxLabel"),icon:"".concat(Da,"-icon"),S:"".concat(Da,"-S"),XS:"".concat(Da,"-XS"),A:"".concat(Da,"-A"),X:"".concat(Da,"-X"),frequencyCount:"".concat(Da,"-frequencyCount"),barContainer:"".concat(Da,"-barContainer"),bar:"".concat(Da,"-bar"),barSelected:"".concat(Da,"-barSelected"),barWithCheckbox:"".concat(Da,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(Da,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(Da,"-excludedTextWithCheckbox")},Pa=".".concat(Ma.fieldRoot),Na=e=>!(null!=e&&e.metaKey||null!=e&&e.ctrlKey);function za(e){var t;let{selectionState:n,selections:o,checkboxes:i=!1,doc:a=document,loaderRef:s}=e;const c=d({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});r((()=>{var e;if(null===(e=s.current)||void 0===e||null===(e=e._listRef)||void 0===e||!e._outerRef)return;const t=e=>e.preventDefault(),n=e=>e.preventDefault(),r=e=>e.preventDefault(),o=s.current._listRef._outerRef;return o.addEventListener("gesturestart",t),o.addEventListener("gesturechange",n),o.addEventListener("gestureend",r),()=>{o.removeEventListener("gesturestart",t),o.removeEventListener("gesturechange",n),o.removeEventListener("gestureend",r)}}),[null===(t=s.current)||void 0===t||null===(t=t._listRef)||void 0===t?void 0:t._outerRef]);const u=()=>(n.setSelectableValuesUpdating(),Aa({selections:o,elemNumbers:c.current.elemNumbers,isSingleSelect:n.isSingleSelect,toggle:c.current.toggle})),p=(e,t)=>{const r=function(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[{qElemNumber:t}]=e;return t}));return t}));return Oa(t)}(n.enginePages);return function(e,t){if(!e)return[];if(e.length<=1)return e;const{min:n,max:r}=function(e,t){let n=1/0,r=-1/0;return e.forEach((e=>{const o=t.indexOf(e);n=o<n?o:n,r=o>r?o:r})),{min:n,max:r}}(e,t);return t.slice(n,r+1)}([e,t],r)},h=e=>{const{startElemNumber:t}=c.current;if(t===e)return;const r=p(c.current.startElemNumber,e);n.updateItems(r,!0,c.current.elemNumbers)},f=l((e=>{if(n.selectDisabled())return;const t=+e.target.getAttribute("data-n"),r=!n.isSingleSelect&&Na(e.nativeEvent);c.current.elemNumbers=[t],c.current.toggle=r,r||n.clearItemStates(!0),n.updateItem(t),c.current.active=!1,u()}),[]),m=l((e=>{if(0!==e.button||n.selectDisabled())return;const t=+e.currentTarget.getAttribute("data-n"),r=!n.isSingleSelect&&Na(e);c.current.isRange=!1,c.current.startElemNumber=t,c.current.elemNumbers=[t],c.current.toggle=r,c.current.active=!0,r||n.clearItemStates(!0),n.updateItem(t),n.isSingleSelect&&(c.current.active=!1,u()),((e,t)=>{(e.ctrlKey||e.metaKey)&&(t.focus(),e.preventDefault())})(e,e.currentTarget)}),[]),g=l((e=>{if(0===e.button&&c.current.active){if(c.current.active=!1,c.current.isRange){const t=+e.currentTarget.getAttribute("data-n");h(t)}u()}}),[]),b=l((e=>{0===e.button&&c.current.active&&(c.current.active=!1,u())}),[]),y=l((e=>{if(!c.current.active)return;c.current.isRange||(c.current.isRange=!0,n.isSelected(c.current.startElemNumber)||(n.updateItem(c.current.startElemNumber,!0),c.current.elemNumbers=[]));const t=+e.currentTarget.getAttribute("data-n");h(t)}),[]),v=l((e=>{var t,r;if(c.current.active||c.current.isRange||n.isSingleSelect||e.touches.length<=1)return;if(e.touches.length>2)return void u();const o=Number(null===(t=e.touches[0].target)||void 0===t||null===(t=t.closest(Pa))||void 0===t?void 0:t.getAttribute("data-n")),i=Number(null===(r=e.touches[1].target)||void 0===r||null===(r=r.closest(Pa))||void 0===r?void 0:r.getAttribute("data-n"));if(Number.isNaN(o)||Number.isNaN(o))return void u();c.current.active=!0;p(o,i).length<7&&(c.current.touchRangeSmall=!0),c.current.elemNumbers=[],c.current.touchElemNumbers=[o,i]}),[]),S=l((()=>{if(2!==c.current.touchElemNumbers.length)return;if(c.current.touchRangeSmall)return c.current.touchRangeSmall=!1,c.current.touchElemNumbers=[],void(c.current.active=!1);const[e,t]=c.current.touchElemNumbers;c.current.startElemNumber=e,h(t),c.current.touchElemNumbers=[],c.current.active=!1,c.current.toggle=!0,u()}),[]);r((()=>(a.addEventListener("mouseup",b),()=>{a.removeEventListener("mouseup",b)})),[b]),r((()=>{const e=()=>{n.clearItemStates(!1)},t=()=>{n.clearItemStates(!0),n.triggerStateChanged()};return o.on("clearItemStates",e),o.on("deactivated",e),o.on("cleared",t),()=>{o.removeListener("clearItemStates",e),o.removeListener("deactivated",e),o.removeListener("cleared",t)}}),[o]);const x={};return i?Object.assign(x,{onChange:f}):Object.assign(x,{onMouseUp:g,onMouseDown:m,onMouseEnter:y,onTouchStart:v,onTouchEnd:S}),{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],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const i=!n.isSingleSelect&&Na(null==r?void 0:r.nativeEvent);i||n.clearItemStates(!0);const a=[];return n.updateItems(e,t,a),n.setSelectableValuesUpdating(),Aa({selections:o,elemNumbers:t?a:e,isSingleSelect:n.isSingleSelect,toggle:i})}}}const ja=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 Fa=e=>Ea(ja(e));const Wa=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,Ba=e=>e?"A"===e.qState:null,Ha=e=>{let{cell:t,checkboxes:n}=e;return(Ba(t)||Wa(t))&&n},Ua=e=>{let{column:t,histogram:n,checkboxes:r,cell:o,showGray:i}=e;const a=[t?Ma.column:Ma.row];return n||a.push(Ma.rowBorderBottom),o?(r||("XS"===o.qState?a.push(i?Ma.XS:Ma.S):"S"===o.qState||"L"===o.qState?a.push(Ma.S):i&&Ba(o)?a.push(Ma.A):i&&Wa(o)&&a.push(Ma.X)),a):[]},Ga=9,$a=4,Va=7,Ka=12+2*(Va+1),Za=80,Ja=10,Xa=150,Ya=56,Qa=20,es="-",ts=32,ns=29,rs=20,os=4,is=e=>e.filter((e=>!!e)).join(" ").trim(),as=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,"%")},ss=e=>e||es,ls=["backgroundColor"],cs=e=>{let{sizes:t,frequencyMode:n,isGridMode:r,freqHitsValue:o}=e;if("P"===n)return"".concat(t.freqMinWidth,"px");return r&&!o?"max-content":"25%"},us=e=>{let{sizes:t,frequencyMode:n,isGridMode:r}=e;return r?"max-content":"P"===n?t.freqMinWidth:t.freqMaxWidth},ds=e=>{let{theme:t,styles:n,selectedState:r}=e;const o=n.selections,i=o[r],a=o["".concat(r,"Contrast")];return{background:i,color:a,"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder),outline:"none"},"& $cell":{paddingRight:0},["& .".concat(Ma.labelText)]:{color:a},["& .".concat(Ma.icon)]:{color:a}}},ps={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},hs=wi("div",{shouldForwardProp:e=>!["checkboxes","isGridMode","isGridCol","dense","direction","sizes","frequencyMode","freqHitsValue","layout","styles"].includes(e)})((e=>{let{theme:t,checkboxes:n,isGridMode:r,isGridCol:o,dense:i,direction:a,sizes:s,frequencyMode:l,freqHitsValue:c,styles:u}=e;const d=J(u.content,ls),p=ds({theme:t,styles:u,selectedState:"selected"}),h=ds({theme:t,styles:u,selectedState:"excluded"});return{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"},"& .value":{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"}},["& .".concat(Ma.row)]:$({flexWrap:"nowrap"},u.content),["& .".concat(Ma.rowBorderBottom)]:{borderBottom:o?"none":"1px solid ".concat(t.palette.divider),borderLeft:o?"1px solid ".concat(t.palette.divider):"none"},["& .".concat(Ma.column)]:$({flexWrap:"nowrap",borderRight:"1px solid ".concat(t.palette.divider)},u.content),["& .".concat(Ma.cell)]:{zIndex:2,display:"flex",alignItems:"center",flexGrow:1,minWidth:n?"52px":"26px",flexBasis:n?"auto":"max-content",paddingLeft:"".concat(Ga,"px"),paddingRight:0},["& .".concat(Ma.labelText)]:$($({lineHeight:"16px",userSelect:"none",paddingRight:"1px"},ps),d),["& .".concat(Ma.labelDense)]:{fontSize:12},["& .".concat(Ma.highlighted)]:{backgroundColor:"#FFC72A"},["& .".concat(Ma.checkboxLabel)]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":$($({},ps),{},{display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"})},["& .".concat(Ma.icon)]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24,color:d.color},["& .".concat(Ma.S)]:$($({},p),{},{border:r?"none":void 0}),["& .".concat(Ma.XS)]:$($({},ds({theme:t,styles:u,selectedState:"selectedExcluded"})),{},{border:r?"none":void 0}),["& .".concat(Ma.A)]:$($({},ds({theme:t,styles:u,selectedState:"alternative"})),{},{border:r?"none":void 0}),["& .".concat(Ma.X)]:$($({},h),{},{border:r?"none":void 0}),["& .".concat(Ma.frequencyCount)]:$($({zIndex:3,justifyContent:"flex-end"},ps),{},{flex:"0 0 ".concat(cs({sizes:s,frequencyMode:l,isGridMode:r,freqHitsValue:c})),minWidth:!r&&"P"!==l&&c?s.freqMinWidth:"max-content",maxWidth:us({sizes:s,frequencyMode:l,isGridMode:r}),textAlign:"rtl"===a?"left":"right",paddingLeft:"rtl"!==a?"8px":0}),["&.".concat(Ma.barContainer)]:{height:"100%",display:"flex",alignItems:"center"},["& .".concat(Ma.bar)]:{height:i?"16px":"20px",position:"absolute",zIndex:1,alignSelf:"center",left:4,width:"calc(100% - ".concat(8,"px)"),display:"flex",alignItems:"center","& .bar-filled":{border:"".concat(1,"px solid"),borderColor:"#D9D9D9",transition:"width 0.2s",backgroundColor:"#FAFAFA",height:"100%"}},["& .".concat(Ma.barSelected)]:{"& .bar-filled":{opacity:"30%",background:t.palette.background.lighter}},["& .".concat(Ma.barWithCheckbox)]:{left:"rtl"===a?4:29,width:"calc(100% - ".concat(33,"px)")},["& .".concat(Ma.barSelectedWithCheckbox)]:{"& .bar-filled":{opacity:"30%",background:p.background||"#BFE5D0",borderColor:p.background||"#BFE5D0"}},["& .".concat(Ma.excludedTextWithCheckbox)]:{color:"#828282",fontStyle:"italic"}}}));var fs=t.memo(hs);const ms="ListBoxCheckbox",gs={cbIcon:"".concat(ms,"-cbIcon"),cbIconChecked:"".concat(ms,"-cbIconChecked"),cbIconExcluded:"".concat(ms,"-cbIconExcluded"),cbIconAlternative:"".concat(ms,"-cbIconAlternative"),checkbox:"".concat(ms,"-checkbox"),dense:"".concat(ms,"-dense")},bs=wi(y,{shouldForwardProp:e=>"styles"!==e})((e=>{let{styles:t}=e;return{["& .".concat(gs.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(gs.cbIconChecked)]:{borderRadius:3,backgroundColor:t.selections.selected,backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))","&:before":{display:"block",width:16,height:16,backgroundImage:"url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23fff'/%3E%3C/svg%3E\")",content:'""'}},["& .".concat(gs.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:t.selections.excluded},["& .".concat(gs.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:t.selections.alternative},["&.".concat(gs.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(gs.dense)]:{padding:"4px 8px"}}})),ys=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 vs(e){let{onChange:n,checked:r,label:o,dense:i,excluded:a,styles:s,showGray:l=!0,dataN:c}=e;return t.createElement(bs,{edge:"start",onChange:n,checked:r,disableRipple:!0,className:[gs.checkbox,i&&gs.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":o,"data-n":c},name:o,icon:ys(gs,l,a),checkedIcon:t.createElement("span",{className:gs.cbIconChecked}),styles:s})}const Ss="ListBoxRadioButton",xs={denseRadioButton:"".concat(Ss,"-denseRadioButton"),radioButton:"".concat(Ss,"-radioButton")},Es=wi(v)((e=>{let{theme:t,checked:n}=e;return{["&.".concat(xs.radioButton)]:{right:"5px",color:n?t.palette.selected.main:t.palette.main}}}));function Cs(e){let{onChange:n,checked:r,label:o,dense:i,dataN:a}=e;return t.createElement(Es,{checked:r,onChange:n,value:o,name:o,className:xs.radioButton,inputProps:{"data-n":a},style:{backgroundColor:"transparent"},disableRipple:!0,size:i?"small":"medium",sx:i&&{padding:"0px 0px 0px 12px"}})}function ws(e){let{label:n,dense:r,showGray:o=!0,checkboxes:i,cell:a,valueTextAlign:s}=e;return t.createElement(S,{component:"span",variant:"body2",className:is([Ma.labelText,r&&Ma.labelDense,o&&Ha({cell:a,checkboxes:i})&&Ma.excludedTextWithCheckbox]),align:s,dir:"auto"},t.createElement("span",null,n))}function Ls(e){let{label:n,color:r,dense:o,showGray:i,checkboxes:a,cell:s,valueTextAlign:l}=e;return"string"==typeof n?t.createElement(ws,{label:n,color:r,dense:o,showGray:i,checkboxes:a,cell:s,valueTextAlign:l}):n}function ks(e){let{onChange:n,label:r,qElemNumber:o,isSelected:i,dense:a,cell:s,isGridCol:l,showGray:c,isSingleSelect:u,checkboxes:d,valueTextAlign:p,styles:h}=e;const f=t.createElement(vs,{onChange:n,label:r,checked:i,dense:a,excluded:Wa(s),isGridCol:l,showGray:c,dataN:o,styles:h}),m=t.createElement(Cs,{onChange:n,label:r,checked:i,dense:a,dataN:o});return t.createElement(x,{control:u?m:f,className:Ma.checkboxLabel,label:t.createElement(Ls,{label:r,dense:a,showGray:c,checkboxes:d,cell:s,valueTextAlign:p}),key:o})}function Rs(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?Ma.highlighted:""},r)}));return t.createElement(ws,{label:a,dense:r,showGray:o,checkboxes:i})}function Is(e){let{onChange:n,labels:r,checkboxes:o,dense:i,showGray:a,qElemNumber:s,isSelected:l,cell:c,isGridCol:u,isSingleSelect:d,valueTextAlign:p,styles:h}=e;const f=t.createElement(Rs,{labels:r,dense:i,showGray:a,checkboxes:o});return o?t.createElement(ks,{onChange:n,label:f,qElemNumber:s,isSelected:l,dense:i,cell:c,isGridCol:u,showGray:a,isSingleSelect:d,checkboxes:o,valueTextAlign:p,styles:h}):f}var qs=t.memo((function(e){let{onChange:n,label:r,qElemNumber:o,isSelected:i,dense:a,cell:s,isGridCol:l,showGray:c,isSingleSelect:u,checkboxes:d,valueTextAlign:p,styles:h}=e;return d?t.createElement(ks,{onChange:n,label:r,qElemNumber:o,isSelected:i,dense:a,cell:s,isGridCol:l,showGray:c,isSingleSelect:u,checkboxes:d,valueTextAlign:p,styles:h}):t.createElement(ws,{label:r,dense:a,showGray:!0,checkboxes:d,cell:s,valueTextAlign:p})}));function _s(e){let{qFrequency:n,histogram:r,checkboxes:o,isSelected:i,frequencyMax:a}=e;if(!(n&&r&&ss(n)!==es))return;const s=as({qFrequency:n,checkboxes:o,frequencyMax:a});return t.createElement(E,{className:is([Ma.bar,o&&Ma.barWithCheckbox,i&&(o?Ma.barSelectedWithCheckbox:Ma.barSelected)])},t.createElement(E,{className:"bar-filled",width:s}))}function Os(e){let{cell:n,checkboxes:r,dense:o,showGray:i}=e;const a=ss(null==n?void 0:n.qFrequency);return t.createElement(C,{item:!0,style:{display:"flex",alignItems:"center"},className:Ma.frequencyCount,"aria-label":a,title:a},t.createElement(S,{noWrap:!0,color:"inherit",variant:"body2",className:is([o&&Ma.labelDense,Ma.labelText,i&&Ha({cell:n,checkboxes:r})&&Ma.excludedTextWithCheckbox])},a))}function Ts(e){let{dataLayout:t,layoutOrder:n,itemPadding:r,fillHeight:o}=e;if("singleColumn"===t)return{height:"100%",width:"100%"};switch(n){case"row":case"column":return{height:o?"100%":"calc(100% - ".concat(r,"px)"),width:"calc(100% - ".concat(2*r,"px)"),position:"absolute",left:4};default:return{}}}const As=wi(C,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction","fillHeight"].includes(e)})((e=>{let{dataLayout:t,layoutOrder:n,itemPadding:r,cellPaddingRight:o,direction:i,fillHeight:a}=e;const s="padding".concat("rtl"===i?"Left":"Right");return{["&.".concat(Ma.fieldRoot)]:$($({},Ts({dataLayout:t,layoutOrder:n,itemPadding:r,fillHeight:a})),{},{[s]:o?"8px":void 0})}}));const Ds={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 Ms(e){var n;let{layout:r}=e;const{translator:o}=p(ji),{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 Ps=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===Ps.ARROW_UP||e===Ps.ARROW_DOWN||e===Ps.ARROW_LEFT||e===Ps.ARROW_RIGHT}),Ns=e=>+e.getAttribute("data-n"),zs=e=>{const t=null==e?void 0:e.querySelector(".search input");return null==t||t.focus(),t},js=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},Fs=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===Ps.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 Ws(e){var o,a;let{index:s,rowIndex:c,columnIndex:u,style:d,data:p}=e;const{onChange:h,onClick:f,onMouseDown:m,onMouseUp:g,onMouseEnter:b,onTouchStart:y,onTouchEnd:v,pages:S,isLocked:x,column:E=!1,checkboxes:w=!1,textAlign:L,direction:k,layoutOptions:R={},freqIsAllowed:I,isSingleSelect:q,actions:_,frequencyMax:O="",histogram:T=!1,keyboard:A,showGray:D=!0,showTick:M=!0,columnCount:P=1,rowCount:N=1,dataOffset:z,deducedFrequencyMode:j,focusListItems:F,listCount:W,sizes:B,translator:H,showSearch:U,isModal:G,contentFontStyle:V,styles:K,fillHeight:Z}=p,{dense:J=!1,dataLayout:X="singleColumn",layoutOrder:Y}=R,{itemPadding:Q}=B;let ee,te;const ne={max:null,currentIndex:null};if("number"==typeof c&&"number"==typeof u){"row"===Y?(ee=c*P+u,ne.max=N,ne.currentIndex=c):(ee=u*N+c,ne.max=P,ne.currentIndex=u);const e=0;te=$($({},d),{},{height:Z?"100%":d.height,left:e+(0===u?d.left:Number(d.left)+u*e),top:0===c?d.top:Number(d.top)+c*e})}else ee=s,ne.max=W,ne.currentIndex=s,te=$({},d);ee+=z;const[re,oe]=n(null);r((()=>{null!==re&&(0===ne.currentIndex&&F.first&&(re.focus(),F.setFirst(!1)),ne.currentIndex===ne.max-1&&F.last&&(re.focus(),F.setLast(!1)))}),[re,F.first,F.last]);const ie=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===Ps.ARROW_LEFT||e===Ps.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=Fs({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 b=e=>{g=e};return e=>{let u;const{currentTarget:d,nativeEvent:p}=e,{keyCode:h,shiftKey:f=!1,ctrlKey:y=!1,metaKey:v=!1}=p;switch(h){case Ps.TAB:{const e=d.closest(".listbox-container"),t=c();if(d.classList.add("last-focused"),f){zs(e)||(t?l.focusSelection():l.blur(!0));break}t?l.focusSelection():(d.blur(),l.blur());break}case Ps.SHIFT:b(!0);break;case Ps.SPACE:t([Ns(d)],!1,e);break;case Ps.ARROW_DOWN:case Ps.ARROW_RIGHT:u=m(h,d,!0),f&&u&&(g&&(t([Ns(d)],!0),b(!1)),t([Ns(u)],!0));break;case Ps.ARROW_UP:case Ps.ARROW_LEFT:u=m(h,d,!1),f&&u&&(g&&(t([Ns(d)],!0),b(!1)),t([Ns(u)],!0));break;case Ps.ENTER:o();break;case Ps.ESCAPE:if(!c())return;i();break;case Ps.HOME:if(s.setFirst(!0),y){null==a||a("overflowStart");break}null==a||a("start");break;case Ps.END:if(s.setLast(!0),y){null==a||a("overflowEnd");break}null==a||a("end");break;case Ps.A:if(y||v){n();break}return;case Ps.F:if(y||v){r();break}return;default:return}u&&u.focus(),e.preventDefault(),e.stopPropagation()}}($($({},_),{},{focusListItems:F,keyboard:A,isModal:G,rowCount:N,columnCount:P,rowIndex:c,columnIndex:u,layoutOrder:Y})),[_,null==A?void 0:A.innerTabStops,N,P,c,u,Y]),ae=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:S,cellIndex:ee})),[S,ee]),se="S"===(null==ae?void 0:ae.qState)||"XS"===(null==ae?void 0:ae.qState)||"L"===(null==ae?void 0:ae.qState)||"XL"===(null==ae?void 0:ae.qState),le=i((()=>Ua({column:E,histogram:T,checkboxes:w,cell:ae,showGray:D})),[null==ae?void 0:ae.qState,T,J,w]),ce=l((e=>{e.preventDefault()}),[w]),ue=i((()=>ae&&function(e){let{direction:t,cell:n,textAlign:r}=e;const o=!["NaN",void 0].includes(null==n?void 0:n.qNum);let i;return i=!r||r.auto?o?"rtl"===t?"left":"right":{rtl:"right",ltr:"left"}[t]:(null==r?void 0:r.align)||"left",["left","center","right"].includes(i)?i:"left"}({direction:k,cell:ae,textAlign:L})),[k,ae,L]);if(!ae)return null;const de="grid"===X&&"column"===Y,pe=null!==(o=null==ae?void 0:ae.qText)&&void 0!==o?o:"";let he;if(null!==(a=ae.qHighlightRanges)&&void 0!==a&&null!==(a=a.qRanges)&&void 0!==a&&a.length){he=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}(pe,ae.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[])}const fe={alignItems:"center",display:"flex",fontSize:"8px"},me="rtl"===k,ge={display:"flex",alignItems:"center",flexGrow:1,paddingLeft:me?8:w?0:void 0,paddingRight:w?0:me?8:0,justifyContent:ue,textAlign:ue},be=0===s,ye=se&&x,ve=!w&&se&&!x,Se=!w&&M,xe=w||!M,Ee=function(e){let{translator:t,label:n,qState:r,isSelected:o,currentIndex:i,maxIndex:a,showSearch:s}=e;const l=Ds[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:pe,qState:ae.qState,currentIndex:ne.currentIndex,maxIndex:ne.max,showSearch:U}),Ce=!me&&"right"===ue||me&&"left"===ue;return t.createElement(fs,{className:Ma.barContainer,checkboxes:w,style:te,styles:K,isGridCol:de,isGridMode:"grid"===X,dense:J,direction:k,sizes:B,frequencyMode:j,freqHitsValue:Ce,contentFontStyle:V,"data-testid":"listbox.item"},t.createElement(As,{role:"row","aria-label":Ee,"aria-selected":se,"aria-setsize":ne.max,"aria-rowindex":ne.currentIndex,ref:oe,container:!0,dataLayout:X,cellPaddingRight:xe,layoutOrder:Y,itemPadding:Q,gap:0,className:is(["value",...le]),classes:{root:Ma.fieldRoot},onClick:f,onMouseDown:m,onMouseUp:g,onMouseEnter:b,onKeyDown:ie,onTouchStart:y,onTouchEnd:v,onContextMenu:ce,tabIndex:be&&A.innerTabStops?0:-1,"data-n":null==ae?void 0:ae.qElemNumber,direction:k,fillHeight:Z},(null==ae?void 0:ae.qFrequency)&&t.createElement(_s,{qFrequency:null==ae?void 0:ae.qFrequency,histogram:T,checkboxes:w,isSelected:se,frequencyMax:O}),t.createElement(C,{item:!0,style:ge,className:is([Ma.cell,Ma.selectedCell]),title:"".concat(pe)},he?t.createElement(Is,{onChange:h,labels:he,checkboxes:w,dense:J,showGray:D,qElemNumber:ae.qElemNumber,isSelected:se,cell:ae,isGridCol:de,isSingleSelect:q,valueTextAlign:ue,styles:K}):t.createElement(qs,{onChange:h,label:pe,qElemNumber:ae.qElemNumber,isSelected:se,dense:J,cell:ae,isGridCol:de,showGray:D,isSingleSelect:q,checkboxes:w,valueTextAlign:ue,styles:K})),I&&t.createElement(Os,{cell:ae,checkboxes:w,dense:J,showGray:D}),Se&&t.createElement(C,{item:!0,className:Ma.icon},ye&&t.createElement(wa,{style:fe,size:"small"}),ve&&t.createElement(Fa,{style:fe,size:"small"}))))}var Bs=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Hs(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||Bs(r)&&Bs(o)))return!1;var r,o;return!0}function Us(e,t){var n;void 0===t&&(t=Hs);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 Gs="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function $s(e){cancelAnimationFrame(e.id)}function Vs(e,t){var n=Gs();var r={id:requestAnimationFrame((function o(){Gs()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var Ks=-1;function Zs(e){if(void 0===e&&(e=!1),-1===Ks||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),Ks=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Ks}var Js=null;function Xs(e){if(void 0===e&&(e=!1),null===Js||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?Js="positive-descending":(t.scrollLeft=1,Js=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),Js}return Js}var Ys=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function Qs(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,b=e.shouldResetStyleCacheOnItemSizeChange,y=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=g(r.props,_i(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:_i(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=Us((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=Us((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(b&&s,b&&l,b&&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=Us((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(Xs()){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&&$s(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=Vs(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}qi(t,e),t.getDerivedStateFromProps=function(e,t){return el(e,t),y(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,b=Zs();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 y=a(this.props,this._instanceProps),v=s(this.props,this._instanceProps)>h?b:0,S=y>d?b: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(Xs()){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&&$s(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?Ys:p,m=e.outerElementType,g=e.outerTagName,b=e.rowCount,y=e.style,v=e.useIsScrolling,S=e.width,x=this.state.isScrolling,E=this._getHorizontalRangeToRender(),C=E[0],w=E[1],L=this._getVerticalRangeToRender(),k=L[0],R=L[1],I=[];if(r>0&&b)for(var q=k;q<=R;q++)for(var _=C;_<=w;_++)I.push(h(t,{columnIndex:_,data:d,isScrolling:v?x:void 0,key:f({columnIndex:_,data:d,rowIndex:q}),rowIndex:q,style:this._getItemStyle(q,_)}));var O=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:Ri({position:"relative",height:i,width:S,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},y)},h(c||u||"div",{children:I,ref:l,style:{height:O,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,b=m.scrollLeft,y=m.scrollTop,v=m.scrollUpdateWasRequested,S=m.verticalScrollDirection;this._callOnScroll(b,y,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 el=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},tl=function(e,t){return e};function nl(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,_i(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:_i(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=Us((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=Us((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=Us((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(Xs()){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<a?"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&&$s(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=Vs(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}qi(t,e),t.getDerivedStateFromProps=function(e,t){return rl(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?Zs():0:l.scrollHeight>l.clientHeight?Zs():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(Xs()){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&&$s(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?tl:d,f=e.layout,m=e.outerElementType,g=e.outerTagName,b=e.style,y=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],k=[];if(c>0)for(var R=w;R<=L;R++)k.push(h(t,{data:u,key:p(R,u),index:R,isScrolling:y?S:void 0,style:this._getItemStyle(R)}));var I=r(this.props,this._instanceProps);return h(m||g||"div",{className:n,onScroll:E,ref:this._outerRefSetter,style:Ri({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},h(s||l||"div",{children:k,ref:a,style:{height:x?"100%":I,pointerEvents:S?"none":void 0,width:x?I:"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 rl=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},ol=Qs({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}}),il=nl({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 al="#BBB",sl="#f1f1f1",ll={styledScrollbars:"".concat("ListBox","-styledScrollbars")};const cl=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStopIndex)||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex,ul=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStartIndex)||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex,dl=(e,t,n,r)=>e===t*n+r+n;function pl(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=cl(t,c),d=c?r.column:r.row,p=(c?o:i)>=d,h=dl(s,u,c?i:o,l),f=!!l&&ul(t,c),m=p&&!h&&u>=d-1||f||a.state.show;a.set(m)}const{StyledFixedSizeList:hl,StyledFixedSizeGrid:fl}=function(){const e=e=>({scrollbarColor:"".concat(al," ").concat(sl),overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:sl},"&::-webkit-scrollbar-thumb":{backgroundColor:al,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:B(il,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(ll.styledScrollbars)]:e(n)}})),StyledFixedSizeGrid:B(ol,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(ll.styledScrollbars)]:e(n)}}))}}();const ml=(e,t)=>{const n=(()=>{const e=document.createDocumentFragment(),t=document.createElement("canvas");return e.appendChild(t),t.getContext("2d")})();if(n.font=t,Array.isArray(e))return Math.max(...e.map((e=>n.measureText(e).width)));const r=n.measureText(e);return Math.ceil(r.width||0)},gl=e=>{const t=i((()=>"text"in e?e:{}),[e]);return i((()=>ml(t.text,t.font||"12px Source Sans Pro")),[t.text,t.font])};function bl(e){if(!e)return"";const t="number"==typeof e?e:e.qListObject.qDimensionInfo.qApprMaxGlyphCount;return Array(t).fill("M").join("")}function yl(e){let{isGridMode:t,dense:n}=e;let r=n?rs:t?ts:ns;return t&&(r+=os),r}function vl(e){let{layout:t,width:n,height:r,listCount:o,count:i,freqIsAllowed:a,checkboxes:s,styles:l}=e;const{layoutOptions:c={}}=t||{},{layoutOrder:u,maxVisibleRows:d={},maxVisibleColumns:p,dense:h,dataLayout:f}=c,{fontSize:m="12px",fontFamily:g="Source sans pro"}=(null==l?void 0:l.content)||{},b="".concat(m," ").concat(g),y=gl({text:bl(t),font:b}),v=gl({text:bl(5),font:b}),S=gl({text:bl(8),font:b}),x=a?v:0,E=s?Qa:0;let C=Ya+x+E;!s&&C>=Za&&(C+=Qa);let w,L,k,R,I=y+18+x+E;!s&&I>=Za&&(I+=Qa),I=Math.min(Xa,Math.max(I,C));const q=yl({isGridMode:"grid"===f,dense:h}),_=null!=r?r:8*q;if(u){let e=n;"row"===u?(w={overflowX:"hidden"},e+=2*os,({rowCount:R,columnWidth:k,columnCount:L}=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-Ja;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),l=Math.max(l,1);const u=s/l;return{rowCount:Math.ceil(n/l),columnWidth:u,columnCount:l}}({maxVisibleColumns:p,listCount:o,containerWidth:e,columnAutoWidth:I,itemMinWidth:C}))):(w={overflowY:"hidden"},({rowCount:R,columnWidth:k,columnCount:L}=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),t=Math.max(t,1);const d=Math.ceil(o/t);return{columnWidth:Math.max(a,s/d,l),columnCount:d,rowCount:t}}({maxVisibleRows:d,itemHeight:q,listCount:o,listHeight:_,columnAutoWidth:I,containerWidth:e,itemMinWidth:C})))}L=("singleColumn"===f?1:L)||1,R=("singleColumn"===f?i:R)||o;const O=c.dense?838e3:577e3;R=Math.min(R,O);const T=Math.floor(3355e4/k);L=Math.min(L,T)||1;const A=R*L,D=Math.min(o,A);return{columnCount:L,columnWidth:k,rowCount:R,overflowStyling:w,itemHeight:q,listHeight:_,listWidth:n,scrollBarWidth:Ja,count:i,listCount:D,maxCount:{row:O,column:T},itemPadding:os,textWidth:y,freqMinWidth:v,freqMaxWidth:S}}const Sl=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[xl,El]=Fi({});function Cl(e){const t="".concat(e.id),[n]=xl();return{setStoreValue:(e,r)=>n.set("".concat(t,"/").concat(e),r),getStoreValue:e=>n.get("".concat(t,"/").concat(e))}}const wl=wi(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(ji);return t.createElement(w,{title:i?a.get(r):""},t.createElement(wl,{width:n,dense:o,component:"div",variant:"body1",py:"12px"},a.get(r)))}var kl,Rl={},Il={exports:{}};(kl=Il).exports=function(e){return e&&e.__esModule?e:{default:e}},kl.exports.__esModule=!0,kl.exports.default=kl.exports;var ql=Il.exports,_l={};function Ol(e){return cr("MuiSvgIcon",e)}ur("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Tl=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Al=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${Un(t)}`,`fontSize${Un(n)}`]},Ol,r)},Dl=wi("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Un(n.color)}`],t[`fontSize${Un(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,c,u,d,p,h,f;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.active,disabled:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.disabled,inherit:void 0}[t.color]}})),Ml=e.forwardRef((function(t,n){const r=Ci({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:p="0 0 24 24"}=r,h=St(r,Tl),f=e.isValidElement(o)&&"svg"===o.type,m=vt({},r,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:f}),g={};u||(g.viewBox=p);const b=Al(m);return Mn.jsxs(Dl,vt({as:s,className:vo(b.root,i),focusable:"false",color:c,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:n},g,h,f&&o.props,{ownerState:m,children:[f?o.props.children:o,d?Mn.jsx("title",{children:d}):null]}))}));Ml.muiName="SvgIcon";const Pl={configure:e=>{sr.configure(e)}};var Nl,zl=Object.freeze({__proto__:null,capitalize:Un,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 Mn.jsx(Ml,vt({"data-testid":`${n}Icon`,ref:r},e,{children:t}))}return r.muiName=Ml.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){var r,o;return e.isValidElement(t)&&-1!==n.indexOf(null!=(r=t.type.muiName)?r:null==(o=t.type)||null==(o=o._payload)||null==(o=o.value)?void 0:o.muiName)},ownerDocument:Gn,ownerWindow:function(e){return Gn(e).defaultView||window},requirePropFactory:function(e,t){return()=>null},setRef:$n,unstable_ClassNameGenerator:Pl,unstable_useEnhancedEffect:Vn,unstable_useId:function(t){if(void 0!==Zn){const e=Zn();return null!=t?t:e}return function(t){const[n,r]=e.useState(t),o=t||n;return e.useEffect((()=>{null==n&&(Kn+=1,r(`mui-${Kn}`))}),[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 Vn((()=>{n.current=t})),e.useRef(((...e)=>(0,n.current)(...e))).current},useForkRef:function(...t){return e.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{$n(t,e)}))}),t)},useIsFocusVisible:function(){const t=e.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",tr,!0),t.addEventListener("mousedown",nr,!0),t.addEventListener("pointerdown",nr,!0),t.addEventListener("touchstart",nr,!0),t.addEventListener("visibilitychange",rr,!0))}),[]),n=e.useRef(!1);return{isFocusVisibleRef:n,onFocus:function(e){return!!or(e)&&(n.current=!0,!0)},onBlur:function(){return!!n.current&&(Yn=!0,Qn.start(100,(()=>{Yn=!1})),n.current=!1,!0)},ref:t}}}),jl=U(zl);var Fl=ql;Object.defineProperty(Rl,"__esModule",{value:!0});var Wl=Rl.default=void 0,Bl=Fl((Nl||(Nl=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=jl}(_l)),_l)),Hl=Mn;Wl=Rl.default=(0,Bl.default)((0,Hl.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");const Ul=wi(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}})),Gl=wi("div")((()=>({paddingLeft:"6px",flexGrow:1}))),$l=wi("div")((e=>{let{dense:t}=e;return{display:"flex",alignItems:"".concat(t?"center":"flex-start")}})),Vl=wi(Wl)((()=>({fontSize:"14px"})));function Kl(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(Ul,{left:l,style:{maxWidth:s}},t.createElement(Gl,null,t.createElement(Ll,{text:n,dense:o,width:c,tooltip:u})),t.createElement($l,{dense:o},a&&t.createElement(k,{"aria-label":"close",onClick:()=>r()},t.createElement(Vl,null))))}const Zl=(e,t)=>e.qListObject.qDimensionInfo.qCardinal-t;const Jl=80;function Xl(e){let{itemWidth:t,layout:n,frequencyMode:r}=e;const o=t>Jl,{frequencyEnabled:i=!1}=(null==n?void 0:n.qListObject)||{},a=!["N",void 0].includes(r);return!(!o||!a&&!i)}const Yl=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,"))")},Ql=(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=Yl(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}};const ec=["isLoadingData"],tc=100,nc=R("div")((()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}})));function rc(e){var o,i;let{model:a,app:s,constraints:c,layout:u,selections:h,selectionState:f,direction:m,checkboxes:g,height:b,width:y,frequencyMode:v,update:S,fetchStart:x,postProcessPages:E,calculatePagesHeight:C=!1,keyboard:w={},showGray:L=!0,scrollState:k,selectDisabled:R=(()=>!1),keyScroll:I={state:{},reset:()=>{}},currentScrollIndex:q={set:()=>{}},renderedCallback:_,onCtrlF:O,showSearch:T,isModal:A,styles:D}=e;const{translator:M}=p(ji),[P,N]=n(!1),z=!(!u||!u.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:j=g,histogram:F}=null!=u?u:{},[W,B]=n(""),H=d(null),U=d({queue:[],validPages:!1,dataOffset:0}),G=d({pages:[]}),{frequencyMax:V,awaitingFrequencyMax:K}=Ql(s,u),X=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:H,model:a,fetchStart:x,scrollTimeout:0,postProcessPages:E,listData:G}),Y=J(X,ec),{getStoreValue:Q,setStoreValue:ee}=Cl(a),te=l(Y.loadMoreItems,[u]),[ne,re]=n({show:!1,dismissed:!1}),[oe,ie]=n([]);null!=Y&&Y.pages&&f.update({setPages:ie,pages:Y.pages,isSingleSelect:z,selectDisabled:R,layout:u});const ae=null==u?void 0:u.qListObject.qDimensionInfo.qCardinal;(null!=Y&&Y.pages.length&&!K||0===ae)&&(null==_||_());const se=l((e=>{if(null==oe||!oe.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=oe.filter((e=>t(e)))[0];return n&&t(n)}),[u,oe]),{interactionEvents:le,select:ce}=za({selectionState:f,selections:h,checkboxes:j,doc:document,loaderRef:H}),{layoutOptions:ue={}}=u||{};let de=!0;ue.dataLayout&&(de="singleColumn"===ue.dataLayout||"row"===(null==ue?void 0:ue.layoutOrder));const pe="grid"===(null==ue?void 0:ue.dataLayout),he=e=>{const t=$({},de?{rowIndex:e}:{columnIndex:e}),n=pe?t:e;H.current._listRef.scrollToItem(n)},fe=()=>{if(U.current.queue=[],U.current.validPages=!1,H.current){H.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===I.state.scrollPosition;if(u&&u.qSelectionInfo.qInSelections||e)return void(e&&I.reset());U.current.dataOffset=0,he(0)}};S&&S.call(null,fe),r((()=>{k&&!P&&H.current&&(H.current._listRef.scrollToItem(k.initScrollPos),N(!0))}),[H.current]),r((()=>{fe()}),[u,U.current.dataOffset]);let me=tc;const ge="grid"!==ue.dataLayout,be=null==u||null===(o=u.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?Sl({pages:t,minimumBatchSize:n,count:r}):r)||0}({pages:oe,minimumBatchSize:me,count:be,calculatePagesHeight:C,layoutOptions:ue,model:a});let ve=Xl({itemWidth:y,layout:u,frequencyMode:v});const Se=function(e){return e.some((e=>{let{qMatrix:t}=e;return t.some((e=>{var t;let[n]=e;return!(null===(t=n.qFrequency)||void 0===t||!t.match("%"))}))}))?"P":"-"}(oe),xe=vl({layout:u,width:y,height:b,listCount:ye,count:be,freqIsAllowed:ve,checkboxes:j,styles:D});xe.columnWidth&&(ve=Xl({itemWidth:xe.columnWidth,layout:u,frequencyMode:v}));const{listCount:Ee}=xe;ee("listCount",Ee);const Ce=Q("inputText");r((()=>{if(Ce){const e=function(e){let t;switch(e){case 0:t="Listbox.NoMatchesForYourTerms";break;case 1:t="ScreenReader.OneSearchResult";break;default:t="ScreenReader.ManySearchResults"}return t}(Ee),t=M.get(e,[Ee]);B(t)}}),[Ce,Ee]);const we=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=Zl(i,o.listCount),t=i.qListObject.qDimensionInfo.qCardinal,s=!0}return{scrollIndex:t,offset:l,triggerRerender:s}}({position:e,isRow:de,sizes:xe,layout:u,offset:U.current.dataOffset});U.current.dataOffset=n,r&&f.triggerStateChanged(),he(t)};r((()=>{const e=I.state;e.up?he(q.state.start-e.up):e.down?he(q.state.stop+e.down):e.scrollPosition&&we(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&I.reset()}),[I.state.up,I.state.down,I.state.scrollPosition]);const{textAlign:Le}=(null==u?void 0:u.qListObject.qDimensionInfo)||{},[ke,Re]=n({first:!1,last:!1}),{List:Ie,Grid:qe}=function(e){let{layout:n,width:r,checkboxes:o,local:i,isVertical:a,pages:s,selectDisabled:l,interactionEvents:c,deducedFrequencyMode:u,histogram:d,isSingleSelect:p,select:h,selectAll:f,onCtrlF:m,textAlign:g,selections:b,keyboard:y,showGray:v,scrollState:S,direction:x,sizes:E,listCount:C,overflowDisclaimer:w,setScrollPosition:L,focusListItems:k,setCurrentScrollIndex:R,constraints:I,frequencyMax:q,freqIsAllowed:_,translator:O,showSearch:T,isModal:A,styles:D}=e;const{layoutOptions:M={}}=n||{},{columnWidth:P,listHeight:N,itemHeight:z,rowCount:j,columnCount:F}=E||{},W=("grid"===M.dataLayout?P:r)>Za,B={direction:"rtl"===x?"rtl":"ltr",useIsScrolling:!0,className:ll.styledScrollbars},H=null==n?void 0:n.qListObject.qDimensionInfo.qLocked,U=N<=z,G=$($({isLocked:H,column:!a,pages:s},H||l()?{}:c),{},{checkboxes:o,layoutOptions:M,deducedFrequencyMode:u,freqIsAllowed:_,isSingleSelect:p,textAlign:g,sizes:E,actions:{select:h,confirm:()=>null==b?void 0:b.confirm.call(b),cancel:()=>null==b?void 0:b.cancel.call(b),setScrollPosition:L,selectAll:f,onCtrlF:m},frequencyMax:q,histogram:d,keyboard:y,showGray:v,showTick:W,dataOffset:i.current.dataOffset,focusListItems:k,direction:x,translator:O,showSearch:T,isModal:A,styles:D,fillHeight:U});return{List:e=>{let{onItemsRendered:o,ref:a}=e;return i.current.listRef=a,t.createElement(hl,Z({},B,{dataTestid:"fixed-size-list",scrollDisabled:null==I?void 0:I.active,height:N,width:r,itemCount:C,itemData:$($({},G),{},{listCount:C}),itemSize:z,onItemsRendered:e=>{var t;R({start:e.visibleStartIndex,stop:e.visibleStopIndex}),S&&S.setScrollPos(e.visibleStopIndex),pl({renderProps:e,layoutOptions:M,maxCount:E.maxCount,columnCount:F,rowCount:j,overflowDisclaimer:w,qCardinal:null==n||null===(t=n.qListObject)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.qCardinal,dataOffset:i.current.dataOffset}),o($({},e))},ref:a}),Ws)},Grid:e=>{let{onItemsRendered:o,ref:a}=e;const{overflowStyling:s,scrollBarWidth:l}=E,{layoutOrder:c}=M||{},u=Math.min(N,j*z+l);return i.current.listRef=a,t.createElement(fl,Z({},B,{dataTestid:"fixed-size-grid",scrollDisabled:null==I?void 0:I.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;const r="row"===c;R({start:r?e.visibleRowStartIndex:e.visibleColumnStartIndex,stop:r?e.visibleRowStopIndex:e.visibleColumnStopIndex});const a=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});pl({renderProps:e,layoutOptions:M,maxCount:E.maxCount,columnCount:F,rowCount:j,overflowDisclaimer:w,qCardinal:null==n||null===(t=n.qListObject)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.qCardinal,dataOffset:i.current.dataOffset}),o(a)},ref:a}),Ws)}}}({direction:m,layout:u,height:b,width:y,checkboxes:j,deducedFrequencyMode:Se,histogram:F,keyboard:w,showGray:L,interactionEvents:le,select:ce,selectAll:()=>{f.clearItemStates(!1),a.selectListObjectAll("/qListObjectDef")},onCtrlF:O,textAlign:Le,isVertical:ge,pages:oe,selectDisabled:R,isSingleSelect:z,selections:h,scrollState:k,local:U,sizes:xe,listCount:Ee,overflowDisclaimer:{state:ne,set:e=>re((t=>$($({},t),{},{show:e})))},setScrollPosition:we,focusListItems:{first:ke.first,setFirst:e=>Re((t=>$($({},t),{},{first:e}))),last:ke.last,setLast:e=>Re((t=>$($({},t),{},{last:e})))},setCurrentScrollIndex:q.set,constraints:c,frequencyMax:V,freqIsAllowed:ve,translator:M,showSearch:T,isModal:A,styles:D}),{columnWidth:_e,listHeight:Oe,itemHeight:Te}=xe||{};return ge||(me=function(e){let{width:t,columnWidth:n,listHeight:r,itemHeight:o}=e;return Math.ceil(t/n)*Math.ceil(r/o)*2}({width:y,columnWidth:_e,listHeight:Oe,itemHeight:Te})),t.createElement(nc,null,t.createElement(Ms,{className:"screenReaderOnly",layout:u}),t.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},W),!Ee&&ae>0&&t.createElement(Ll,{width:y,text:"Listbox.NoMatchesForYourTerms"}),t.createElement(qa,{isItemLoaded:se,itemCount:Ee||1,loadMoreItems:te.with({minimumBatchSize:me}),threshold:0,minimumBatchSize:me,ref:H,role:"grid"},ge?Ie:qe),ne.show&&!ne.dismissed&&t.createElement(Kl,{text:"Listbox.ItemsOverflow",dismiss:()=>re((e=>$($({},e),{},{dismissed:!0}))),parentWidth:null==H||null===(i=H.current)||void 0===i||null===(i=i._listRef)||void 0===i||null===(i=i.props)||void 0===i?void 0:i.width,dense:null==ue?void 0:ue.dense}))}const oc=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"}}]}),ic=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"}}]}),ac=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"}}]}),sc=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 lc=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:oc,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:ac,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:ic,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:sc,enabled:()=>["qAlternative","qExcluded"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectExcluded("/qListObjectDef")}}].filter(Boolean)};const cc=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 uc(e){const t=Ei(),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 dc={className:"njs-cell-action"},pc=t.forwardRef(((e,n)=>{let{ariaExpanded:r=!1,item:o,addAnchor:i=!1}=e;const a=Ei(),{hidden:s,disabled:l,style:c,hasSvgIconShape:u}=uc(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(k,{ref:i?null:n,title:o.label,onClick:o.action,onKeyDown:h,onKeyUp:f,disabled:l,style:c,className:[dc.className,m].join(" "),size:"large",disableRipple:!0,"aria-expanded":r,"aria-controls":"moreMenuList","data-testid":m},u&&Ea(o.getSvgIconShape()),i&&t.createElement("div",{ref:n,style:{bottom:-d,right:0,position:"absolute",width:"100%",height:0}}))})),hc=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"}}]}),fc=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 mc=e=>Ea(fc(e));const gc="njs-action-toolbar-more",bc={icon:"".concat("More","-icon")},yc=wi(I)((e=>{let{theme:t}=e;return{pointerEvents:"none",["& .".concat(bc.icon," *")]:{color:t.palette.text.primary}}}));function vc(e){let{item:n,autoFocus:r,onActionClick:o=(()=>{})}=e;const{hidden:i,disabled:a,hasSvgIconShape:s}=uc(n);return i?null:t.createElement(_,{autoFocus:r,title:n.label,onClick:()=>{n.action(),o()},disabled:a,tabindex:"0"},s&&t.createElement(O,{className:bc.icon},Ea(n.getSvgIconShape())),t.createElement(S,{noWrap:!0},n.label))}const Sc=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(yc,Z({},a,{onClose:l,ref:n,open:o,anchorEl:i.current,getContentAnchorEl:null,container:i.current,disablePortal:!0,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:gc},paper:{style:$({pointerEvents:"auto",maxWidth:"250px"},s)}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}),t.createElement(q,{id:"moreMenuList"},r.map(((e,n)=>t.createElement(vc,{key:n,item:e,autoFocus:n===u,onActionClick:l})))))})),xc=e=>{const t=e.closest("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");return Array.from(n).indexOf(e)},Ec=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 Cc="ActionsToolbar",wc={item:"".concat(Cc,"-item"),itemSpacing:"".concat(Cc,"-itemSpacing")},Lc=wi(I)((e=>{let{theme:t}=e;return{["& .".concat(wc.itemSpacing)]:{padding:t.spacing(0,.25)}}})),kc={className:"njs-action-toolbar-popover"},Rc=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(wc.itemSpacing," ").concat(wc.item)},t.createElement(pc,{ariaExpanded:o,key:e.key,item:e,ref:0===r?n:null,addAnchor:a}))))):null})),Ic={pointerEvents:"none"},qc={vertical:"bottom",horizontal:"right"};function _c(e){var o,a;let{show:s=!0,actions:l=[],maxItems:c=3,selections:u={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},extraItems:h,more:f={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{}},popover:m={show:!1,anchorEl:null},focusHandler:g=null,actionsRefMock:b=null,isRtl:y,autoConfirm:v=!1,layout:S}=e;const x=function(e){let{api:t,layout:n,onConfirm:r=(()=>{}),onCancel:o=(()=>{}),onKeyDeactivate:i=(()=>{})}=e;const{translator:a}=p(ji);return[{key:"clear",type:"icon-button",label:a.get("Selection.Clear"),enabled:()=>t.canClear(n),action:()=>t.clear(),getSvgIconShape:fc},{key:"cancel",type:"icon-button",label:a.get("Selection.Cancel"),enabled:()=>t.canCancel(n),action:()=>{o(),t.cancel()},keyboardAction:()=>{i(),o(),t.cancel()},getSvgIconShape:hc},{key:"confirm",type:"icon-button",label:a.get("Selection.Confirm"),enabled:()=>t.canConfirm(n),action:()=>{r(),t.confirm()},keyboardAction:()=>{i(),r(),t.confirm()},getSvgIconShape:ja}]}($($({},u),{},{layout:S})),{translator:E,keyboardNavigation:w}=p(ji),[L,k]=n(!1),R={vertical:12,horizontal:(null!==(o=null===(a=m.anchorEl)||void 0===a?void 0:a.clientWidth)&&void 0!==o?o:0)-7},I=d(),q=d(),_=Ei(),O=i((()=>({margin:_.spacing(.5,0)}))),A=e=>{const t=I.current||b;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]},D=i((()=>function(e){let{keyboardNavigation:t,focusHandler:n,getEnabledButton:r,selections:o,isRtl:i}=e;return e=>{const{target:a,nativeEvent:s}=e,{keyCode:l}=s;switch(l){case Ps.ARROW_LEFT:case Ps.ARROW_DOWN:case Ps.ARROW_RIGHT:case Ps.ARROW_UP:if(a.classList.contains("njs-cell-action")){const e=xc(a);let t=[Ps.ARROW_LEFT,Ps.ARROW_DOWN].includes(l);t=i?!t:t,Ec(t?e-1:e+1)}e.stopPropagation(),e.preventDefault();break;case Ps.SPACE:e.preventDefault();break;case Ps.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 Ps.ESCAPE:o&&(o.onCancel(),o.api.cancel(),e.preventDefault(),e.stopPropagation())}}}({keyboardNavigation:w,focusHandler:g,getEnabledButton:A,selections:u,isRtl:y})),[w,g,A,u,y]);if(r((()=>()=>{k(!1)}),[m.show,s,u.show]),r((()=>{if(!g)return;g.on("focus_toolbar_first",(()=>{const e=A(!1);null==e||e.focus()})),g.on("focus_toolbar_last",(()=>{const e=A(!0);null==e||e.focus()}))}),[]),v)return;let M=f.enabled,P=f.actions;const N=f.alignTo||q,z=l.filter((e=>!e.hidden));if(z.length>c){const e=z.splice(-(z.length-c)-1);M=!0,P=[...e,...f.actions]}if(!u.show&&0===z.length)return null;const j={key:"more",label:E.get("Menu.More"),getSvgIconShape:cc,hidden:!1,active:L,enabled:()=>M,action:()=>k(!L)},F=z.length>0,W=P.length>0,B=F&&u.show||W&&u.show,H=t.createElement(C,{ref:I,onKeyDown:D,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:y?"row-reverse":"row"}},(null==h?void 0:h.length)&&t.createElement(Rc,{className:"actions-toolbar-extra-actions",actions:h,isRtl:y}),F&&t.createElement(Rc,{actions:z}),W&&t.createElement(Rc,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:q,ariaExpanded:L,actions:[j],addAnchor:!0}),B&&t.createElement(C,{item:!0,className:wc.itemSpacing,style:O},t.createElement(T,{orientation:"vertical"})),u.show&&t.createElement(Rc,{className:"actions-toolbar-default-actions",actions:x,isRtl:y}),L&&t.createElement(Sc,{show:L,actions:P,alignTo:N,popoverProps:f.popoverProps,popoverPaperStyle:f.popoverPaperStyle,onCloseOrActionClick:()=>{k(!1)}}));return m.show?t.createElement(Lc,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:m.show,anchorEl:m.anchorEl,anchorOrigin:R,transformOrigin:qc,hideBackdrop:!0,style:Ic,slotProps:{paper:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:kc.className,style:{pointerEvents:"auto",padding:_.spacing(.5,.25)}}}},H):s&&H}var Oc=e=>Ea((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",Ac="**",Dc=wi(A,{shouldForwardProp:e=>!["styles","dense","isRtl"].includes(e)})((e=>{let{theme:t,styles:n,dense:r,isRtl:o}=e,i={};return r&&(i={fontSize:12,paddingLeft:t.spacing(1),"& input":{paddingTop:"5px",paddingBottom:"5px"}}),$({display:"flex",border:"none",fontSize:14,borderRadius:0,backgroundColor:n.search.backgroundColor,backdropFilter:n.background.backgroundImage?n.search.backdropFilter:void 0,paddingLeft:"".concat(Ga,"px"),flexDirection:o?"row-reverse":"row","& fieldset":{borderColor:"".concat(n.search.borderColor),borderWidth:"1px 0 1px 0",borderRadius:0},"&.Mui-focused fieldset":{borderColor:"".concat(n.search.highlightBorderColor," !important")},"& .MuiInputBase-root":$({},n.search),"& *":{color:n.search.color},"& input":{color:n.search.color,textAlign:o?"right":"left"}},i)}));function Mc(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,styles:b}=e;const{translator:y}=p(ji),[v,S]=n(""),[x,E]=n(!1),C=d(),{getStoreValue:w,setStoreValue:L}=Cl(a),k="rtl"===m,R=async()=>{if(o.isModal())try{await a.abortListObjectSearch(Tc)}finally{S("")}};r((()=>{c||R()}),[c]),r((()=>(o.on("deactivated",R),()=>{o.removeListener&&o.removeListener("deactivated",R)})),[]),r((()=>{if(x&&C.current){const e=v.length-1;C.current.setSelectionRange(e,e),E(!1)}}),[x,C.current]),r((()=>{L("inputText",v)}),[v]);const I=async()=>{let e;return await a.searchListObjectFor(Tc,v)&&v.length&&w("listCount")>0&&(e=a.acceptListObjectSearch(Tc,!0),o.selectionsMade=!0,i.clearItemStates(!1),S("")),e};function q(e){const t=(null==e?void 0:e.querySelector(".last-focused"))||(null==e?void 0:e.querySelector('[role="row"]:first-child'));null==t||t.setAttribute("tabIndex",0),null==t||t.focus()}return c&&!1!==f?t.createElement(Dc,{styles:b,dense:l,isRtl:k,startAdornment:t.createElement(D,{position:"start"},t.createElement(Oc,{size:l?"small":"normal"})),className:"search",inputRef:C,size:"small",fullWidth:!0,placeholder:y.get("Listbox.Search"),value:v,onFocus:()=>{h&&(S(Ac),E(!0)),o.isModal()||o.begin(["/qListObjectDef"])},onChange:async e=>(S(e.target.value),e.target.value.length?a.searchListObjectFor(Tc,e.target.value):R()),onKeyDown:async e=>{const{currentTarget:t}=e,n=t.closest(".listbox-container");switch(e.key){case"Enter":I();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,"data-testid":"search-input-field","aria-label":y.get("Listbox.Search.ScreenReaderInstructions")}}):null}function Pc(e){return Object.keys(re.prototype).forEach((t=>{e[t]=re.prototype[t]})),re.init(e),e}const Nc=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({model:o,paths:e,accept:!0,objectSelections:s}))},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(s),goModal:e=>r.begin({model:o,paths:e,accept:!1,objectSelections:s}),noModal:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return r.end(e)}};return Pc(s),s},zc=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 jc(e,t,o,i){const a=Array.isArray(o)?o:[o],[s]=Vi(e),[l]=ya(t),[c]=Hi(),u=c.get(e.id),[d,p]=n();return r((()=>{s&&t&&!d&&p(Nc({appSelections:s,appModal:u,model:t}))}),[s,t]),r((()=>{if(!d)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=zc({elements:a,objectSelections:d,options:i});return d.addListener("activated",e),d.addListener("deactivated",t),()=>{d.isActive()&&d.confirm(),d.removeListener("activated",e),d.removeListener("deactivated",t)}}),[d]),r((()=>{d&&d.setLayout(l)}),[d,l]),[d]}function Fc(){const e={itemStates:{},ignoreSelectionState:!1,selectedInEngine:[],enginePages:[],setPages:void 0,lastRowCount:void 0,lastApprMaxGlyphCount:void 0,update(t){var n,r;let{setPages:o,pages:i,isSingleSelect:a,selectDisabled:s,layout:l}=t;this.setPages=o;const c=this.lastRowCount===l.qListObject.qSize.qcy,u=this.lastApprMaxGlyphCount===l.qListObject.qDimensionInfo.qApprMaxGlyphCount;c&&u||(this.lastRowCount=l.qListObject.qSize.qcy,this.lastApprMaxGlyphCount=l.qListObject.qDimensionInfo.qApprMaxGlyphCount,this.clearItemStates(!1)),e.enginePages!==i&&void 0!==i&&(e.enginePages=null!=i?i:[],e.selectedInEngine=Ta(i),e.selectableValuesUpdating=!1,e.triggerStateChanged()),e.isSingleSelect=a,e.selectDisabled=s,e.isDimCalculated=null!==(n=null==l||null===(r=l.qListObject)||void 0===r||null===(r=r.qDimensionInfo)||void 0===r?void 0:r.qIsCalculated)&&void 0!==n&&n},allowedToSelect:()=>!e.selectDisabled()&&!(e.isDimCalculated&&e.selectableValuesUpdating),setSelectableValuesUpdating(){e.selectableValuesUpdating=!0},useClientItemState:t=>e.ignoreSelectionState||t in e.itemStates,isSelected:t=>e.useClientItemState(t)?!!e.itemStates[t]:e.selectedInEngine.includes(t),getState(t){const{qElemNumber:n,qState:r}=t;return e.useClientItemState(n)?e.itemStates[n]?"XS"===r?"XS":"S":"S"===r||"XS"===r?"A":r:r},updateItemNoEvents(t,n,r){const o=e.isSelected(t);o&&!n?e.itemStates[t]=!1:o||(null==r||r.push(t),e.itemStates[t]=!0)},triggerStateChanged(){if(this.setPages){const t=e.applySelectionsOnPages(e.enginePages);this.setPages(t)}},applySelectionsOnPages(t){const n=t.map((t=>{const n=t.qMatrix.map((t=>{const[n]=t,r=e.getState(n);return[$($({},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 Wc=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 Bc(e){const t=(null==e?void 0:e.qListObject.qDimensionInfo.qStateCounts)||{};return Wc(t,"qSelected",0)+Wc(t,"qSelectedExcluded",0)+Wc(t,"qLocked",0)+Wc(t,"qLockedExcluded",0)>0}const Hc={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},Uc=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,Gc=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,$c=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,Vc=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,Kc=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,Zc=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,{floor:Jc}=Math,{round:Xc}=Math;class Yc{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let r,o,i,a,s,l,c,u,d,p,h,f,m=0,g=0,b=0,y=1;if(this._invalid=!1,t[0]instanceof Yc)m=t[0]._r,g=t[0]._g,b=t[0]._b,y=t[0]._a,this._invalid=t[0]._invalid;else if(t.length<3)if("string"==typeof t[0])if(f=t[0],h=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(f))m=parseInt(h[1],10),g=parseInt(h[2],10),b=parseInt(h[3],10);else if(h=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(f))m=parseInt(h[1],10),g=parseInt(h[2],10),b=parseInt(h[3],10),y=parseFloat(h[4]);else if(h=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(f))y=parseInt(h[1],10)/255,m=parseInt(h[2],10),g=parseInt(h[3],10),b=parseInt(h[4],10);else if(h=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(f))m=parseInt(h[1],16),g=parseInt(h[2],16),b=parseInt(h[3],16),y=1;else if(h=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(f))m=parseInt(h[1]+h[1],16),g=parseInt(h[2]+h[2],16),b=parseInt(h[3]+h[3],16),y=1;else if(h=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(f)){switch(r=parseFloat(h[1]),o=parseFloat(h[3]),a=parseFloat(h[5]),r%=360,o/=100,a/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,a=a<0?0:a>1?1:a,l=a<=.5?2*a*o:(2-2*a)*o,c=r/60,u=l*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}p=a-.5*l,m=d[0]+p,g=d[1]+p,b=d[2]+p,m=Xc(255*m),g=Xc(255*g),b=Xc(255*b),y=1}else if(h=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(f)){switch(r=parseFloat(h[1]),o=parseFloat(h[3]),a=parseFloat(h[5]),y=parseFloat(h[7]),r%=360,o/=100,a/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,a=a<0?0:a>1?1:a,l=a<=.5?2*a*o:(2-2*a)*o,c=r/60,u=l*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}p=a-.5*l,m=d[0]+p,g=d[1]+p,b=d[2]+p,m=Xc(255*m),g=Xc(255*g),b=Xc(255*b)}else if(h=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(f)){switch(r=parseFloat(h[1]),o=parseFloat(h[3]),s=parseFloat(h[5]),r%=360,o/=100,s/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,s=s<0?0:s>1?1:s,l=s*o,c=r/60,u=l*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}p=s-l,m=d[0]+p,g=d[1]+p,b=d[2]+p,m=Xc(255*m),g=Xc(255*g),b=Xc(255*b),y=1}else Hc[f.toLowerCase()]?(i=f.toLowerCase(),m=Hc[i].r,g=Hc[i].g,b=Hc[i].b,y="number"==typeof Hc[i].a?Hc[i].a:1):this._invalid=!0;else"number"==typeof t[0]&&t[0]>=0&&"argb"===t[1]?(y=(4278190080&t[0])>>>24,y/=255,m=(16711680&t[0])>>16,g=(65280&t[0])>>8,b=255&t[0]):"number"==typeof t[0]&&t[0]>=0?(m=(16711680&t[0])>>16,g=(65280&t[0])>>8,b=255&t[0]):this._invalid=!0;else t.length>=3?(m=t[0],g=t[1],b=t[2],y=arguments.length>=4?t[3]:1):this._invalid=!0;Number.isNaN(+m+g+b+y)&&(this._invalid=!0),this._r=Jc(m),this._g=Jc(g),this._b=Jc(b),this._a=y,this._spaces={}}isInvalid(){return this._invalid}setAlpha(e){this._a=e,this._spaces={}}getAlpha(){return this._a}toRGB(){return this._spaces.rgb||(this._spaces.rgb=Yc.toRGB(this)),this._spaces.rgb}toRGBA(){return this._spaces.rgba||(this._spaces.rgba=Yc.toRGBA(this)),this._spaces.rgba}toString(){return this._spaces.rgb||(this._spaces.rgb=Yc.toRGB(this)),this._spaces.rgb}toHex(){return this._spaces.hex||(this._spaces.hex=Yc.toHex(this)),this._spaces.hex}toHSL(e){return this._spaces.hsl||(this._spaces.hsl=Yc.toHSL(this,e)),this._spaces.hsl}toHSLA(e){return this._spaces.hsla||(this._spaces.hsla=Yc.toHSLA(this,e)),this._spaces.hsla}toHSV(){const e=this.toHSVComponents();return"hsv(".concat(e.h,",").concat(e.s,",").concat(e.v,")")}toHSVComponents(){return this._spaces.hsvComp||(this._spaces.hsvComp=Yc.toHSVComponents(this)),this._spaces.hsvComp}toNumber(){return this._spaces.num||(this._spaces.num=Yc.toNumber(this)),this._spaces.num}isDark(){return this.isInvalid()||this.getLuminance()<125}getLuminance(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}shiftLuminance(e){const t=this.toHSLA(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),r=parseFloat(n[1]),o=parseFloat(n[3]);let i=parseFloat(n[5]);const a=parseFloat(n[7]);return i+=e,i=Math.max(0,Math.min(i,100)),"hsla(".concat(r,",").concat(o,",").concat(i,",").concat(a,")")}isEqual(e){return e instanceof Yc||(e=new Yc(e)),this._r===e._r&&this._g===e._g&&this._b===e._b&&this._a===e._a}blend(e,t){const n=Jc(this._r+(e._r-this._r)*t),r=Jc(this._g+(e._g-this._g)*t),o=Jc(this._b+(e._b-this._b)*t),i=Jc(this._a+(e._a-this._a)*t);return"rgba(".concat([n,r,o,i].join(","),")")}createShiftedColor(e){(void 0===e||Number.isNaN(+e))&&(e=1);const t=this.getLuminance(),n=this._g<126?1:1+this._g/512,r=this.shiftLuminance(20*(t*n<220?.8+1/(t+1)*4:-(.8+t/255*1))*e);return new Yc(r)}static toRGB(e){if(e instanceof Yc)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=Yc.toNumber(e));const t=(65280&e)>>8,n=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(n,")")}static toRGBA(e,t){if(e instanceof Yc)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=Yc.toNumber(e));const n=(65280&e)>>8,r=255&e;return"rgba(".concat((16711680&e)>>16,",").concat(n,",").concat(r,",").concat(void 0!==t?t:e._a,")")}static toHex(e){let t,n,r;return e instanceof Yc?(t=e._r.toString(16),n=e._g.toString(16),r=e._b.toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat([t,n,r].join(""))):("string"==typeof e&&(e=Yc.toNumber(e)),t=((16711680&e)>>16).toString(16),n=((65280&e)>>8).toString(16),r=(255&e).toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat(t).concat(n).concat(r))}static toHSL(e,t){let n,r,o,i=0;"string"==typeof e&&(e=new Yc(e));const a=e._r/255,s=e._g/255,l=e._b/255,c=Math.max(a,s,l),u=Math.min(a,s,l);if(r=t?.21*a+.72*s+.07*l:(c+u)/2,c===u)n=0,i=0;else{switch(o=c-u,n=r>.5?o/(2-c-u):o/(c+u),c){case a:i=(s-l)/o+(s<l?6:0);break;case s:i=(l-a)/o+2;break;case l:i=(a-s)/o+4}i/=6}return"hsl(".concat(360*i,",").concat(100*n,",").concat(100*r,")")}static toHSLA(e,t){let n,r,o,i=0;"string"==typeof e&&(e=new Yc(e));const a=e._r/255,s=e._g/255,l=e._b/255,c=e._a,u=Math.max(a,s,l),d=Math.min(a,s,l);if(r=t?.21*a+.72*s+.07*l:(u+d)/2,u===d)n=0,i=0;else{switch(o=u-d,n=r>.5?o/(2-u-d):o/(u+d),u){case a:i=(s-l)/o+(s<l?6:0);break;case s:i=(l-a)/o+2;break;case l:i=(a-s)/o+4}i/=6}return"hsla(".concat(360*i,",").concat(100*n,",").concat(100*r,",").concat(c,")")}static toHSVComponents(e){let t,n,r=0;"string"==typeof e&&(e=new Yc(e));const o=e._r/255,i=e._g/255,a=e._b/255,s=Math.max(o,i,a),l=Math.min(o,i,a),c=s;if(s===l)t=0,r=0;else{switch(n=s-l,t=0===n?0:n/c,s){case o:r=(i-a)/n+(i<a?6:0);break;case i:r=(a-o)/n+2;break;case a:r=(o-i)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*c}}static toNumber(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length&&t[0]instanceof Yc)return(t[0]._r<<16)+(t[0]._g<<8)+t[0]._b;let r,o,i=0,a=0,s=0;return 1===t.length&&"string"==typeof t[0]&&(o=t[0],(r=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(o))?(i=parseInt(r[1],10),a=parseInt(r[2],10),s=parseInt(r[3],10)):(r=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(o))?(i=parseInt(r[1],16),a=parseInt(r[2],16),s=parseInt(r[3],16)):(r=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(o))&&(i=parseInt(r[1]+r[1],16),a=parseInt(r[2]+r[2],16),s=parseInt(r[3]+r[3],16))),(i<<16)+(a<<8)+s}static blend(e,t,n){const r=(16711680&(e=Yc.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=Yc.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(i+((255&t)-i)*n)}static getBlend(e,t,n){const r=e._r+(t._r-e._r)*n,o=e._g+(t._g-e._g)*n,i=e._b+(t._b-e._b)*n,a=e._a+(t._a-e._a)*n;return new Yc(r,o,i,a)}static isCSSColor(e){return!(arguments.length>1||"string"!=typeof e)&&(Uc.test(e)||Gc.test(e)||$c.test(e)||Vc.test(e)||Kc.test(e)||Zc.test(e)||Hc[e.toLowerCase()])}static getBestContrast(e,t,n){const r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n}static getContrast(e,t){if(!e||!t)return;const n=e.getLuminance()/100,r=t.getLuminance()/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}static isDark(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Yc(...t).isDark(...t)}static useDarkLabel(e,t){return e._a>.5?!e.isDark():!t}}const Qc=/,(?![^(]*\))/,eu=/\s(?![^(]*\))/,tu=/^[0-9]+[a-zA-Z%]+?$/,nu=["none","inset","initial","inherit"],ru=e=>{if(!e)return;const t=e.split(eu).filter((e=>!nu.includes(e.toLowerCase()))).at(-1);var n;return!t||("0"===(n=t)||tu.test(n))||nu.includes(t.toLowerCase())?void 0:t},ou=e=>e?e.split(Qc).map((e=>e.trim())):[];function iu(e,t,n,r){return n&&r?n.getStyle("object.".concat(r),e,t):n?n.getStyle("",e,t):void 0}const au=!0;function su(e,t,n,r,o){return e&&r?"none"!==e.color?r.getColorPickerColor(e,au):void 0:iu(t,n,r,o)}const lu={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},cu={"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 uu(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 du(e,t){const n=null==e?void 0:e.bgImage;if(n){let r="";if("media"===n.mode||"media"===e.useImage){const e=null==n?void 0:n.mediaUrl,{qUrl:o}=(null==e?void 0:e.qStaticContentUrl)||{};r=o?decodeURIComponent(o):void 0,r=uu(t,r)}"expression"===n.mode&&(r=n.expressionUrl?decodeURIComponent(n.expressionUrl):void 0);const o=function(e){var t;let n="center center";return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.position&&(n=cu[e.bgImage.position]),n}(e),i=function(e){var t;let n=lu.originalSize;const r=null==e||null===(t=e.bgImage)||void 0===t?void 0:t.sizing;return r&&(n=lu[r]),n}(e);return r?{url:r,pos:o,size:i}:void 0}}function pu(e,t,n){const r=null==e?void 0:e.bgColor;return r&&t&&(r.useExpression||r.useColorExpression)?t.validateColor(r.colorExpression):su(null==r?void 0:r.color,"","backgroundColor",t,n)}function hu(e,t,n){var r,o;const i=iu("shadow","boxShadow",t,n);return((e,t,n)=>{if(e&&nu.includes(e.toLowerCase()))return e.toLowerCase();const r=ou(e);if(1!==r.length)return e;let o=n;if(!o){const n=ou(t);if(1!==n.length)return e;o=ru(n[0])}if(!o)return e;const i=ru(r[0]);return i?e.replace(i,o):"".concat(e," ").concat(o)})((null==e||null===(r=e.shadow)||void 0===r?void 0:r.boxShadow)||i,i,su(null==e||null===(o=e.shadow)||void 0===o?void 0:o.boxShadowColor,"shadow","boxShadowColor",t,n))}function fu(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 mu="#FFF",gu="#000",bu=1.5,yu=3,vu=(e,t)=>{let n=!1;const r=new Yc(e),o=new Yc(t);if(!(o.isInvalid()||r.isInvalid()||o.getAlpha()<1||r.getAlpha()<1)){try{n=Yc.getContrast(r,o)}catch(e){n=void 0}return n}};function Su(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:gu,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:mu;const o=new Yc(r),i=new Yc(e),a=new Yc(t);if(i.isInvalid()||a.isInvalid()||i.getAlpha()<1||a.getAlpha()<1)return t;const s=vu(o,i),l=vu(a,i),c=s>l||s>yu;let u;return u=t&&l>bu&&!c?t:c?r:n,u}const xu=["theme","selections"];function Eu(e){var t,n,r,o,i,a,s,l;let{app:c,themeApi:u,theme:d,components:p=[],checkboxes:h=!1}=e;const f=function(){const e={};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((t=>{const n=null==t?void 0:t.key;xu.includes(n)&&(e[n]=t)})),e}(p),m=(e,t)=>u.getStyle("object.listBox",e,t),g=e=>(null==e?void 0:e.index)>0||null!=e&&e.color?u.getColorPickerColor(e,!1):void 0,b=function(e){var t,n,r,o,i,a,s,l,c,u,d,p,h,f,m;let{getColorPickerColor:g,theme:b,getListboxStyle:y,overrides:v,checkboxes:S}=e;const x=g(null===(t=v.theme)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.fontColor)||y("content","color")||(null===(n=b.palette)||void 0===n?void 0:n.text.primary),E=!S&&(null===(r=null===(o=v.theme)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.useContrastColor)||void 0===r||r),C=(null===(i=v.selections)||void 0===i?void 0:i.colors)||{},w=g(C.selected)||(null===(a=b.palette)||void 0===a?void 0:a.selected.main)||"#009845",L=g(C.alternative)||(null===(s=b.palette)||void 0===s?void 0:s.selected.alternative)||"#E4E4E4",k=g(C.excluded)||(null===(l=b.palette)||void 0===l?void 0:l.selected.excluded)||"#A9A9A9",R=g(C.selectedExcluded)||(null===(c=b.palette)||void 0===c?void 0:c.selected.selectedExcluded)||"#A9A9A9",I=g(C.possible)||y("","backgroundColor")||(null===(u=b.palette)||void 0===u?void 0:u.selected.possible)||"#FFFFFF";let q=x||(null===(d=b.palette)||void 0===d?void 0:d.selected.selectedContrastText),_=x||(null===(p=b.palette)||void 0===p?void 0:p.selected.alternativeContrastText),O=x||(null===(h=b.palette)||void 0===h?void 0:h.selected.excludedContrastText),T=x||(null===(f=b.palette)||void 0===f?void 0:f.selected.selectedExcludedContrastText),A=x||(null===(m=b.palette)||void 0===m?void 0:m.selected.possibleContrastText);return E&&(q=Su(w,x),_=Su(L,x),O=Su(k,x),T=Su(R,x),A=Su(I,x)),{selected:w,alternative:L,excluded:k,selectedExcluded:R,possible:I,selectedContrast:q,alternativeContrast:_,excludedContrast:O,selectedExcludedContrast:T,possibleContrast:A}}({getColorPickerColor:g,theme:d,getListboxStyle:m,overrides:f,checkboxes:h}),y=f.theme||{},v=g(null===(t=y.header)||void 0===t?void 0:t.fontColor)||m("title.main","color"),S=function(e){let t,{themeApi:n,themeOverrides:r}=e;const o=null==r?void 0:r.background;return o?(t=null!=o&&o.useExpression?pu({bgColor:o},n,"listBox"):n.getColorPickerColor(null==o?void 0:o.color,!1),t):t}({themeApi:u,themeOverrides:y}),x=null!==(n=y.background)&&void 0!==n&&n.image?du({bgImage:y.background.image},c):void 0,E=S||m("","backgroundColor")||d.palette.background.default,C=function(e,t){const n=new Yc(t("","backgroundColor"));return n.setAlpha(.7),n.isInvalid()?e:n.toRGBA()}(E,m),w=function(e){return Su("#fff",e("content","color"))}(m),L=(null===(r=y.header)||void 0===r?void 0:r.fontStyle)||{},k=(null===(o=y.content)||void 0===o?void 0:o.fontStyle)||{},R=(e,t,n)=>!0===e&&t||!1===e&&n||void 0;return{background:{backgroundColor:E,backgroundImage:null==x||!x.url||null!=x&&x.url.startsWith("url(")?void 0:"url('".concat(x.url,"')"),backgroundRepeat:"no-repeat",backgroundSize:null==x?void 0:x.size,backgroundPosition:null==x?void 0:x.pos},header:{color:v,fontSize:(null===(i=y.header)||void 0===i?void 0:i.fontSize)||m("title.main","fontSize"),fontFamily:(null===(a=y.header)||void 0===a?void 0:a.fontFamily)||m("title.main","fontFamily"),fontWeight:R(L.bold,"bold","normal")||m("title.main","fontWeight")||"bold",textDecoration:L.underline?"underline":"initial",fontStyle:R(L.italic,"italic","normal")||m("title.main","fontStyle")||"initial"},content:{backgroundColor:h?void 0:b.possible,color:b.possibleContrast||m("content","color"),fontSize:(null===(s=y.content)||void 0===s?void 0:s.fontSize)||m("content","fontSize"),fontFamily:(null===(l=y.content)||void 0===l?void 0:l.fontFamily)||m("content","fontFamily"),fontWeight:R(k.bold,"bold","normal")||m("content","fontWeight")||"normal",textDecoration:k.underline?"underline":"initial",fontStyle:R(k.italic,"italic","normal")||m("content","fontStyle")||"initial"},search:{color:w,borderColor:d.palette.divider,highlightBorderColor:d.palette.custom.focusBorder,backgroundColor:C,backdropFilter:"blur(8px)"},selections:b}}function Cu(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,components:g,checkboxes:b}=e;const y=Boolean(null==h?void 0:h.qLibraryId),v=s&&Boolean(o.current),[S,x]=n(0),E=Ei(),w=d(),[L]=pa({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:y?void 0:[h]},qLibraryId:y?h.qLibraryId:void 0}},u,h,f),R=l((()=>{L.lock("/qListObjectDef")}),[L]),q=l((()=>{L.unlock("/qListObjectDef")}),[L]),{translator:_,themeApi:O}=p(ji),T=d(),A=d(),[D]=jc(u,L,A),[M]=ya(L),[P]=n((()=>Fc())),{checkboxes:N=b}=M||{},z=Eu({themeApi:O,theme:E,components:g,checkboxes:N});if(r((()=>{D&&v&&(D.isModal(L)||D.goModal("/qListObjectDef"))}),[D,v]),!L||!M||!_)return null;const j=!0===M.qListObject.qDimensionInfo.qLocked,F=(e,t)=>{const n="escapeKeyDown"!==t;D.noModal(n),c()},W=lc({layout:M,model:L,translator:_,selectionState:P}),B=Bc(M);return t.createElement(I,{open:v,onClose:F,anchorEl:o.current,anchorOrigin:i,transformOrigin:a,slotProps:{paper:{style:{minWidth:"250px"}}}},t.createElement(C,{container:!0,direction:"column",gap:0,ref:A},t.createElement(C,{item:!0,container:!0,style:{padding:E.spacing(1)}},t.createElement(C,{item:!0},j?t.createElement(k,{onClick:q,disabled:!j,size:"large"},t.createElement(wa,{title:_.get("Listbox.Unlock")})):t.createElement(k,{onClick:R,disabled:!B,size:"large"},t.createElement(ka,{title:_.get("Listbox.Lock")}))),t.createElement(C,{item:!0,xs:!0}),t.createElement(C,{item:!0},t.createElement(_c,{layout:M,more:{enabled:!j,actions:W,alignTo:T,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:D,onConfirm:F,onCancel:()=>F(0,"escapeKeyDown")}}))),t.createElement(C,{item:!0,xs:!0},t.createElement("div",{ref:T}),t.createElement(C,{item:!0,ref:w},t.createElement(Mc,{styles:z,visible:!0,model:L,listCount:S,selections:D,selectionState:P,keyboard:{enabled:!1},autoFocus:null==m||m})),t.createElement(rc,{model:L,app:u,layout:M,selections:D,selectionState:P,direction:"ltr",onSetListCount:e=>x(e),onCtrlF:()=>{const e=w.current.querySelector("input");null==e||e.focus()},styles:z}))))}function wu(e){let{field:r,api:o,stateIx:i=0,skipHandleShowListBoxPopover:a=!1,moreAlignTo:s=null,onClose:l=(()=>{})}=e;const{translator:c}=p(ji),u=s||d(),h=Ei(),[f,m]=n(!1),g=e=>{e.currentTarget.contains(e.target)&&m(!f)},b=()=>{m(!1),l()},y=r.selections[i];void 0===y.qTotal&&(y.qTotal=0);const v=y.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},x=(v.qSelected+v.qLocked)/y.qTotal,E=v.qAlternative/y.qTotal,w=(v.qExcluded+v.qLockedExcluded+v.qSelectedExcluded)/y.qTotal,L=v.qSelected+v.qSelectedExcluded+v.qLocked+v.qLockedExcluded,R=0===L&&0===y.qTotal;let I="";y.qTotal===L&&y.qTotal>1?I=c.get("CurrentSelections.All"):L>1&&y.qTotal?I=c.get("CurrentSelections.Of",[L,y.qTotal]):y.qSelectedFieldSelectionInfo&&(I=y.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==r.states[i]&&(I="".concat(r.states[i],": ").concat(I));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 _=null,O=null,T=null,A=null;return s||(_=t.createElement(C,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:y.qLocked?"0.3":""}},t.createElement(S,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},y.qField),t.createElement(S,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},I)),y.qLocked?O=t.createElement(C,{item:!0},t.createElement(k,{size:"large"},t.createElement(wa,null))):y.qOneAndOnlyOne||(O=t.createElement(C,{item:!0},t.createElement(k,{title:c.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),o.clearField(y.qField,r.states[i])},size:"large"},t.createElement(Ca,null)))),T=t.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===R&&q.map((e=>t.createElement("div",{key:e.color,style:{position:"absolute",background:e.color,height:"100%",top:0,width:"".concat(100*e.ratio,"%"),left:"".concat(100*e.offset,"%")}})))),A=t.createElement(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(Cu,{alignTo:u,show:f,close:b,app:o.model,fieldName:y.qField,stateName:r.states[i]}))),s?t.createElement(Cu,{alignTo:u,show:!0,close:b,app:o.model,fieldName:y.qField,stateName:r.states[i]}):A}var Lu=e=>Ea((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 ku={item:"".concat("MultiState","-item")},Ru=wi(C)((e=>{let{theme:t}=e;return{["&.".concat(ku.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"}}}));function Iu(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(ji),b=g.get("Selection.ClearAllStates"),y=()=>{u(-1),a()};let v=null;i||(v=t.createElement(t.Fragment,null,t.createElement(C,{item:!0,xs:!0,zeroMinWidth:!0},t.createElement(M,{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(k,{size:"large"},t.createElement(Lu,null)))));const x=t.createElement(P,{dense:!0},t.createElement(N,{title:b,onClick:()=>{r.states.forEach((e=>o.clearField(r.name,e)))}},t.createElement(z,{variant:"contained",fullWidth:!0},b)),r.states.map(((e,n)=>t.createElement(N,{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(wu,{field:r,api:o,stateIx:n,skipHandleShowListBoxPopover:!0})))))),w=t.createElement(I,{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(Ru,{container:!0,gap:0,className:ku.item,onClick:e=>{e.currentTarget.contains(e.target)&&(f(e.currentTarget),m.current=e.currentTarget,l(!s))}},v,s&&w,c>-1&&t.createElement(Cu,{alignTo:m,show:c>-1,close:y,app:o.model,fieldName:r.selections[c].qField,stateName:r.states[c]}));return i&&c>-1?t.createElement(Cu,{alignTo:m,show:c>-1,close:y,app:o.model,fieldName:r.selections[c].qField,stateName:r.states[c]}):L}const qu="More",_u={item:"".concat(qu,"-item"),badge:"".concat(qu,"-badge")},Ou=wi(C)((e=>{let{theme:t}=e;return{["&.".concat(_u.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(_u.badge)]:{padding:t.spacing(0,1)}}}));function Tu(e){let{items:r=[],api:o}=e;const i=Ei(),[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(Iu,{field:r[l],api:o,moreAlignTo:h,onClose:f}):t.createElement(wu,{field:r[l],api:o,skipHandleShowListBoxPopover:!0,moreAlignTo:h,onClose:f})),t.createElement(Ou,{container:!0,gap:0,className:_u.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(k,{size:"large"},t.createElement(Lu,null))),a&&t.createElement(I,{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(P,{dense:!0},r.map(((e,n)=>t.createElement(N,{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(Iu,{field:e,api:o}):t.createElement(wu,{field:e,api:o}))))))),m)}const Au=120,Du=72;function Mu(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 Pu(e){let{api:o,app:i}=e;const a=Ei(),[s]=fa(i),[l]=ya(s),[c,u]=n({items:[],more:[]}),[d]=Gi(),[p,h]=Sa(),[f,m]=n(0);return r((()=>{if(!h)return;const{width:e}=h,t=Math.floor(e)-Du,n=Math.floor(t/Au);m(n)}),[h]),r((()=>{if(!(i&&s&&l&&f))return;const e=function(e){if(!e)return[];const t={};return e.qSelectionObject&&Mu(e.qSelectionObject,t),e.alternateStates&&e.alternateStates.forEach((e=>Mu(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{model:e}=d.get(i.id)||{};return"njsListbox"===(null==e?void 0: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(Au,"px"),background:a.palette.background.paper,borderRight:"1px solid ".concat(a.palette.divider)}},e.states.length>1?t.createElement(Iu,{field:e,api:o}):t.createElement(wu,{field:e,api:o})))),c.more.length>0&&t.createElement(C,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(Du,"px"),background:a.palette.background.paper,borderRight:"1px solid ".concat(a.palette.divider)}},t.createElement(Tu,{items:c.more,api:o})))}var Nu=e=>Ea((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 zu=e=>Ea((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 ju=(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 Fu(e){let{api:o,app:i}=e;const{translator:a}=p(ji),[s]=function(e){const[t]=fa(e),[o]=ya(t),[i]=va(e),[a,s]=n(null);return r((()=>{i&&t&&o&&ju(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(k,{style:{marginRight:"8px"},disabled:!s||!s.canGoBack,title:a.get("Navigate.Back"),onClick:()=>o.back(),size:"large"},t.createElement(Nu,null))),t.createElement(C,{item:!0},t.createElement(k,{style:{marginRight:"8px"},disabled:!s||!s.canGoForward,title:a.get("Navigate.Forward"),onClick:()=>o.forward(),size:"large"},t.createElement(zu,null))),t.createElement(C,{item:!0},t.createElement(k,{disabled:!s||!s.canClear,title:a.get("Selection.ClearAll"),onClick:()=>o.clear(),size:"large"},t.createElement(mc,null))))}const Wu=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function Bu(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function Hu(){return Wu.map(Bu).join("")}function Uu(e){let{app:n}=e;const r=Ei(),[o]=Vi(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(Fu,{api:o,app:n})),t.createElement(C,{item:!0,xs:!0,style:{backgroundColor:r.palette.background.darker,overflow:"hidden"}},t.createElement(Pu,{api:o,app:n}))):null}let Gu;Gu="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;let $u=null,Vu=null;const Ku=Gu.clearTimeout,Zu=Gu.setTimeout,Ju=Gu.cancelAnimationFrame||Gu.mozCancelAnimationFrame||Gu.webkitCancelAnimationFrame,Xu=Gu.requestAnimationFrame||Gu.mozRequestAnimationFrame||Gu.webkitRequestAnimationFrame;function Yu(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__&&$u(this.__resizeRAF__),this.__resizeRAF__=Vu((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=Gu.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){}}}}}null==Ju||null==Xu?($u=Ku,Vu=function(e){return Zu(e,20)}):($u=function([e,t]){Ju(e),Ku(t)},Vu=function(e){const t=Xu((function(){Ku(n),e()})),n=Zu((function(){Ju(t),e()}),20);return[t,n]});class Qu extends f{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const r=window.getComputedStyle(this._parentNode)||{},o=parseFloat(r.paddingLeft||"0"),i=parseFloat(r.paddingRight||"0"),a=parseFloat(r.paddingTop||"0"),s=parseFloat(r.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-a-s,u=l.width-o-i,d=this._parentNode.offsetHeight-a-s,p=this._parentNode.offsetWidth-o-i;(e||this.state.height===d&&this.state.scaledHeight===c)&&(t||this.state.width===p&&this.state.scaledWidth===u)||(this.setState({height:d,width:p,scaledHeight:c,scaledWidth:u}),"function"==typeof n&&n({height:d,scaledHeight:c,scaledWidth:u,width:p}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props;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((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(this._parentNode)):(this._detectElementResize=Yu(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize)),this._onResize()))}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&(this._resizeObserver.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 b=!1;return r||(0===u&&(b=!0),m.height=0,g.height=u,g.scaledHeight=d),o||(0===f&&(b=!0),m.width=0,g.width=f,g.scaledWidth=p),h(l,{ref:this._setRef,style:{...m,...s},...c},!b&&e(g))}}function ed(e){null==e||e.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")}))}function td(e){return(null==e?void 0:e.closest(".njs-cell"))||(null==e?void 0:e.closest(".qv-gridcell"))}function nd(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 Ps.TAB:if(l)r?js(s)||zs(s):zs(s)||js(s);else{if(!r)break;t.blur(!0)}i();break;case Ps.ENTER:case Ps.SPACE:if(!e.target.classList.contains("listbox-container"))break;t.focus(),i();break;case Ps.ESCAPE:(e=>{const{currentTarget:n,target:r}=e,i=r.classList.contains("listbox-container"),a=td(n.closest(".listbox-container")),s=1===(null==a?void 0:a.querySelectorAll(".listbox-container").length);if(i||s)t.blur(!0);else{ed(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 Ps.ARROW_UP:r({up:1});break;case Ps.ARROW_DOWN:r({down:1});break;case Ps.PAGE_UP:r({up:i.stop-i.start});break;case Ps.PAGE_DOWN:r({down:i.stop-i.start});break;case Ps.HOME:r({scrollPosition:o&&a?"overflowStart":"start"});break;case Ps.END:r({scrollPosition:o&&a?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const rd=wi("div")((()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"})));function od(e){let{text:n}=e;const{translator:r}=p(ji);return t.createElement(rd,null,r.get(n))}var id=e=>Ea((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));const ad={fontSize:"12px"},sd=wi(j)((e=>{let{theme:t,isLoading:n}=e;return{position:"absolute",top:0,left:0,height:48,zIndex:2,background:t.palette.custom.disabledBackground,opacity:1,color:t.palette.custom.disabledContrastText,width:"100%",display:"flex",justifyContent:n?"center":"flex-start",paddingLeft:16,paddingRight:16,borderRadius:0,"& *, & p":{color:t.palette.custom.disabledContrastText},"& i":{padding:"".concat(Va,"px")}}})),ld=wi(C,{shouldForwardProp:e=>!["styles","isRtl"].includes(e)})((e=>{let{styles:t,isRtl:n}=e;return $($({flexDirection:n?"row-reverse":"row",wrap:"nowrap",minHeight:32,alignContent:"center"},t.header),{},{"& *":{color:t.header.color}})})),cd=wi(S)((e=>{let{styles:t}=e;return $($({},t.header),{},{display:"block",alignItems:"center",paddingRight:"1px"})}));function ud(e){let{translator:n,toggleLock:r,keyboard:o,isLoading:i}=e;const a=n.get("SelectionToolbar.ClickToUnlock");return t.createElement(sd,{title:a,tabIndex:o.enabled?0:-1,onClick:r,"data-testid":"listbox-unlock-button",id:"listbox-unlock-button",isLoading:i},i?t.createElement(F,{size:16,variant:"indeterminate",color:"primary"}):t.createElement(wa,{disableRipple:!0,style:ad}),!i&&t.createElement(S,{fontSize:"14px"},a))}const dd=500;let pd=0;function hd(e){var o,i;let{layout:a,translator:s,styles:l,isRtl:c,showLock:u,selectDisabled:p,showSearchIcon:h,isDrillDown:f,constraints:m,onShowSearch:g,classes:b,containerRect:y,isPopover:v,showToolbar:S,showDetachedToolbarOnly:x,containerRef:E,model:w,selectionState:L,isDirectQuery:R,selections:I,keyboard:q,autoConfirm:_}=e;const[O,T]=n(x),[A,D]=n(null==a||null===(o=a.qListObject)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o?void 0:o.qLocked),[M,P]=n(!1);r((()=>{var e;D(null==a||null===(e=a.qListObject)||void 0===e||null===(e=e.qDimensionInfo)||void 0===e?void 0:e.qLocked)}),[null==a||null===(i=a.qListObject)||void 0===i||null===(i=i.qDimensionInfo)||void 0===i?void 0:i.qLocked]);const N=d(null),z=u&&A,j=!u&&A,F=h||j||f,W=Ga-(F?Va:0),B=c?Ga-(F?Va:0):$a,H=(h?Ka:0)+(j?Ka:0)+(f?Ka:0),U=function(e){let{isLocked:t,setLocked:n,settingLockedState:r,model:o,setSettingLockedState:i}=e;return()=>{const e=new Date;if(e-pd<dd)return Promise.resolve();if(r)return()=>{};i(!0),pd=e;const a=t?o.unlock:o.lock;return n(!t),a.call(o,"/qListObjectDef").catch((()=>{n(t)})).finally((()=>{setTimeout((()=>{i(!1)}),0)}))}}({isLocked:A,setLocked:D,settingLockedState:M,setSettingLockedState:P,model:w}),G=lc({layout:a,model:w,translator:s,selectionState:L,isDirectQuery:R}),V=A||!u?void 0:[{key:"lock",type:void 0,label:s.get("SelectionToolbar.ClickToLock"),getSvgIconShape:La,enabled:()=>!M&&!p()&&Bc(a),action:U}],K=null!=m&&m.active?t.createElement(Oc,{title:s.get("Listbox.Search"),size:"large",style:$($({},ad),{},{padding:"".concat(Va,"px")})}):t.createElement(k,{onClick:g,tabIndex:-1,title:s.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},t.createElement(Oc,{style:ad}));r((()=>{if(!N.current||!y)return;const e=function(e){var t,n,r,o;let{containerRect:i,titleRef:a,iconsWidth:s,paddingLeft:l,paddingRight: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:y,titleRef:N,iconsWidth:H,paddingLeft:W,paddingRight:B});T(x||e)}),[H,W,B,N.current,x,Object.entries(y||{}).sort().join(",")]);const J=function(e){let{isDetached:t,showToolbar:n,containerRef:r,isLocked:o,listboxSelectionToolbarItems:i,extraItems:a,selections:s,keyboard:l}=e;return{isDetached:t,show:n&&!t,popover:{show:n&&t,anchorEl:r.current},extraItems:a,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:s,onConfirm:()=>{null==l||l.focus()},onCancel:()=>{null==l||l.focus()}}}}({isDetached:!v&&O,showToolbar:S,containerRef:E,isLocked:A,extraItems:V,listboxSelectionToolbarItems:G,selections:I,keyboard:q,autoConfirm:_}),X=t.createElement(_c,Z({isRtl:c,layout:a},J));if(x)return X;const Y=j?t.createElement(wa,{size:"large",style:$($({},ad),{},{padding:"".concat(Va,"px")})}):void 0;return t.createElement(ld,{item:!0,container:!0,styles:l,isRtl:c,marginY:1,paddingLeft:"".concat(W,"px"),paddingRight:"".concat(B,"px"),className:"header-container"},z&&t.createElement(ud,{isLoading:M,translator:s,toggleLock:U,keyboard:q}),F&&t.createElement(C,{item:!0,container:!0,alignItems:"center",width:H,className:"header-action-container"},Y||h&&K,f&&t.createElement(id,{tabIndex:-1,title:s.get("Listbox.DrillDown"),style:$($({},ad),{},{padding:"".concat(Va,"px")})})),t.createElement(C,{item:!0,xs:!0,minWidth:0,justifyContent:c?"flex-end":"flex-start",className:b.listBoxHeader},t.createElement(cd,{variant:"h6",noWrap:!0,ref:N,title:a.title,styles:l},a.title)),t.createElement(C,{item:!0,display:"flex"},X))}const fd="ListBoxInline",md={listBoxHeader:"".concat(fd,"-listBoxHeader"),screenReaderOnly:"".concat(fd,"-screenReaderOnly"),listboxWrapper:"".concat(fd,"-listboxWrapper")},gd=wi(C,{shouldForwardProp:e=>!["containerPadding","isGridMode","styles"].includes(e)})((e=>{let{theme:t,containerPadding:n,isGridMode:r,styles:o}=e;return $($({},o.background),{},{["& .".concat(md.listBoxHeader)]:{alignSelf:"center",display:"flex"},["& .".concat(md.screenReaderOnly)]:{position:"absolute",height:0,width:0,overflow:"hidden"},["& .".concat(md.listboxWrapper)]:{padding:n},"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus ::-webkit-scrollbar-track":{boxShadow:r?void 0:"inset -2px -2px 0px #3F8AB3"},"&:focus-visible":{outline:"none"}})}));const bd=t.memo((function(e){var o,a,s,c,u;let{options:h,layout:f}=e;const{app:m,direction:g,frequencyMode:b,checkboxes:y,search:v=!0,focusSearch:S=!1,rangeSelect:x=!0,model:E,selections:w,update:L,fetchStart:k,selectDisabled:R=(()=>!1),postProcessPages:I,calculatePagesHeight:q,showGray:_=!0,scrollState:O,renderedCallback:T,toolbar:A=!0,isPopover:D=!1,showLock:M=!1,components:P}=h,N=Ei(),{translator:z,keyboardNavigation:j,themeApi:F,constraints:W}=p(ji),{checkboxes:B=y}=f||{},H=Eu({app:m,themeApi:F,theme:N,components:P,checkboxes:B}),U=function(e){let{appLayout:t}=e;return!(null==t||!t.qIsDirectQueryMode)}({appLayout:null==m?void 0:m.layout}),G=d(),[V,K]=Sa(),[Z,J]=(()=>{const[e,t]=n({}),r=l((e=>{t({current:e})}),[t]);return[e,r]})(),[X,Y]=n(!1),[Q,ee]=n(!1),te=d(!1),[ne,re]=n({down:0,up:0,scrollPosition:""}),oe=e=>re((t=>$($({},t),e))),[ie,ae]=n({start:0,stop:0}),[se]=Vi(m),[le]=n((()=>Fc())),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=td(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)})),ed(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=null==e?void 0:e.querySelector("#listbox-unlock-button"),c=n||o||a||l||s;null==c||c.setAttribute("tabIndex",0),null==c||c.focus()},focusSelection(){const e=document.querySelector("#listbox-unlock-button"),t=document.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),n=e||t;null==n||n.setAttribute("tabIndex",0),null==n||n.focus()}}}({containerRef:G,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:se})),[m,se]),de=null==f?void 0:f.qListObject.qDimensionInfo.qError,pe=de&&W.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",{handleKeyDown:he,handleOnMouseEnter:fe,handleOnMouseLeave:me,globalKeyDown:ge}=i((()=>nd({keyboard:ce,hovering:te,updateKeyScroll:oe,containerRef:G,currentScrollIndex:ie,app:m,appSelections:se,constraints:W,isModal:ue})),[ce,te,oe,G,ie,m,se,W,ue]);r((()=>(document.addEventListener("keydown",ge),()=>{document.removeEventListener("keydown",ge)})),[ge]),r((()=>{!0===v&&ee(!0);const e=()=>{Y(!0)},t=()=>{Y(!1),"toggle"===v&&ee(!1)};return D&&(w.isActive()||(w.begin("/qListObjectDef"),w.on("activated",e),w.on("deactivated",t)),Y(D)),A&&w&&(w.isModal()||(w.on("activated",e),w.on("deactivated",t)),Y(w.isActive())),()=>{w&&w.removeListener&&(w.removeListener("activated",e),w.removeListener("deactivated",t))}}),[A,w,D]),r((()=>{if(Z&&Z.current&&(v&&S||"toggle"===v&&Q)){const e=Z.current.querySelector("input");e&&e.focus()}}),[Z&&Z.current,Q,v,S]);const{wildCardSearch:be,searchEnabled:ye,autoConfirm:ve=!1,layoutOptions:Se={}}=null!=f?f:{},xe=null==f||null===(o=f.qListObject)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o?void 0:o.qLocked,Ee=!1!==ye&&"toggle"===v&&!xe,Ce="H"===(null==f||null===(a=f.qListObject)||void 0===a||null===(a=a.qDimensionInfo)||void 0===a?void 0:a.qGrouping),we=(null==f||null===(s=f.title)||void 0===s?void 0:s.length)&&!1!==(null==f?void 0:f.showTitle),Le=A&&!we&&!D,ke=A&&we||D,Re="rtl"===g;if(!E||!f||!z)return null;const Ie=!0===v||"toggle"===v&&Q&&!R()&&!1!==ye,qe=null!==(c=Se.dense)&&void 0!==c&&c,_e=()=>{ee(!Q)},Oe=()=>{if("toggle"===v)_e();else{const e=Z.current.querySelector("input");null==e||e.focus()}},Te=Ie&&"toggle"===v,Ae="grid"===(null==Se?void 0:Se.dataLayout),De=function(e){let t,{isGridMode:n,dense:r,height:o,layoutOrder:i}=e;if(n){let e;e=yl({isGridMode:n,dense:r})>o?"0px":"2px",t="row"===i?"".concat(e," 4px"):"".concat(e," 6px ").concat(e," 4px")}else t=void 0;return t}({isGridMode:Ae,dense:qe,height:null===(u=G.current)||void 0===u?void 0:u.clientHeight,layoutOrder:Se.layoutOrder});de&&(null==T||T());const Me=ke?rs+Ja:0,Pe=t.createElement(hd,{selectDisabled:R,showSearchIcon:Ee,isDrillDown:Ce,onShowSearch:_e,isPopover:D,showToolbar:X,isDirectQuery:U,autoConfirm:ve,showDetachedToolbarOnly:Le,layout:f,translator:z,styles:H,isRtl:Re,showLock:M,constraints:W,classes:md,containerRect:K,containerRef:G,model:E,selectionState:le,selections:w,keyboard:ce});return t.createElement(t.Fragment,null,Le&&Pe,t.createElement(gd,{className:"listbox-container",container:!0,tabIndex:ce.enabled?-1:void 0,direction:"column",gap:0,containerPadding:De,styles:H,style:{height:"100%",flexFlow:"column nowrap"},onKeyDown:he,onMouseEnter:fe,onMouseLeave:me,ref:e=>{G.current=e,V(e)},isGridMode:Ae,"aria-label":ce.active?z.get("Listbox.ScreenReaderInstructions"):""},ke&&Pe,t.createElement(C,{item:!0,container:!0,direction:"column",height:"100%",minHeight:Me,role:"region","aria-label":z.get("Listbox.ResultFilterLabel")},t.createElement(C,{item:!0,ref:J},t.createElement(Mc,{selections:w,selectionState:le,model:E,dense:qe,keyboard:ce,visible:Ie,search:v,autoFocus:Te,wildCardSearch:be,searchEnabled:ye,direction:g,hide:Ee&&_e,styles:H})),t.createElement(C,{item:!0,xs:!0,className:md.listboxWrapper},de?t.createElement(od,{text:pe}):t.createElement(Qu,null,(e=>{let{height:n,width:r}=e;return t.createElement(rc,{model:E,app:m,constraints:W,layout:f,selections:w,selectionState:le,direction:g,frequencyMode:b,rangeSelect:x,checkboxes:B,height:n,width:r,update:L,fetchStart:k,postProcessPages:I,calculatePagesHeight:q,selectDisabled:R,keyboard:ce,showGray:_,scrollState:O,keyScroll:{state:ne,reset:()=>re({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:ie,set:ae},renderedCallback:T,onCtrlF:Oe,isModal:ue,styles:H})}))))))}));function yd(e){let{options:n={}}=e;const{model:r}=n,[o]=ya(r);return t.createElement(bd,{options:n,layout:o})}function vd(e){let{app:t,qId:o,options:i={}}=e;const[a,s]=n(),[l]=ca(),{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((()=>{Promise.resolve(c||async function(e){return l.get(e)||await t.getObject(e)}(o)).then((e=>{!function(e){l.get(e.id)||(l.set(e.id,e),e.once("closed",(()=>{l.clear(e.id)})))}(e),s(e)}))}),[]),a}const Sd={qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:"",qShowAlternatives:!0,frequencyEnabled:!1,qFrequencyMode:"N",qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},histogram:!1,frequencyMax:void 0,checkboxes:!1,searchEnabled:!0,showTitle:!0,wildCardSearch:!1,autoConfirm:!1,layoutOptions:{dense:!1,dataLayout:"singleColumn",layoutOrder:"row",maxVisibleColumns:{auto:!0,maxColumns:3},maxVisibleRows:{auto:!0,maxRows:3}},title:""};function xd(e){let t;switch(!0){case["none","N","NX_FREQUENCY_NONE"].includes(e):t="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(e):t="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(e):t="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(e):t="R";break;default:t="N"}return t}const Ed=["__DO_NOT_USE__"],Cd=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 $($($({},J(e,Ed)),n),t)};function wd(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});h||Object.assign(u,{frequencyMode:xd(u.frequencyMode)});const[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 b=h?vd({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(),b=null!==(t=s.title)&&void 0!==t?t:m;let{histogram:y=!1,frequencyMode:v="N"}=s;l&&l.failedToFetchFieldDef&&(y=!1,v="N"),r((()=>{const e=y||"N"!==v;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:S,checkboxes:x,listLayout:E,properties:C={}}=s,w={dense:S};"horizontal"===E&&(w.dataLayout="grid",w.layoutOrder="column",w.maxVisibleColumns={auto:!0},w.maxVisibleRows={auto:!1,maxRows:1});const L=d();L.current||(L.current=Hu());const k=Ve(!0,{},Sd,{qInfo:{qId:L.current},qListObjectDef:{qStateName:a,qFrequencyMode:y&&"N"===v?"V":v},histogram:y,checkboxes:x,layoutOptions:w,title:b});let R;if(Ve(!0,k,C),i.qLibraryId?(k.qListObjectDef.qLibraryId=i.qLibraryId,R=i.qLibraryId):(k.qListObjectDef.qDef.qFieldDefs=[i],R=i),"P"!==v&&y)if(null!=l&&l.multiFieldDim)k.frequencyMax="fetch";else{const e=i.qLibraryId?l:R;k.frequencyMax={qValueExpression:Yl(e)}}const[I]=pa(k,u?null:o,R,a);return r((()=>{I&&f(I)}),[I]),h}({app:o,fieldIdentifier:a,stateName:l,options:u}),y=d(c),v=f?u.selectionsApi:jc(o,b,[y,".njs-action-toolbar-more",".njs-action-toolbar-popover"],u)[0],S=i((()=>$($({},u),{},{selections:v,model:b,app:o,renderedCallback:p})),[u,v,b,o]);return v&&b?t.createElement(yd,{options:S}):null}const Ld={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function kd(e){let{app:r,fieldIdentifier:o,stateName:i,element:a,options:s={}}=e;const[l,c]=n(!!s.show);return t.createElement(Cu,{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,components:s.components})}function Rd(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function Id(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 qd=e=>({qDef:{qFieldDefs:[e]}}),_d=e=>({qDef:{qDef:e}});function Od(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?qd(e):$($({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||Hu(),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),Rd(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 Id(t.qInterColumnSortOrder,e),n.dimensions.removed(r,o,e),r},addMeasure(e){const r="string"==typeof e?_d(e):$($({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||Hu(),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),Rd(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];Id(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 Td=e=>({qDef:{qFieldDefs:[e]}});function Ad(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?Td(e):$($({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||Hu(),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 Dd=e=>({qDef:{qFieldDefs:[e]}}),Md=e=>{let t;return t="string"==typeof e?Ve(!0,{},Sd,{qListObjectDef:Dd(e)}):e.qListObjectDef?Ve(!0,{},Sd,e):Ve(!0,{},Sd,{qListObjectDef:e}),t};function Pd(e){let{children:t,halo:n}=e;return{async addDimension(e){const r=Md(e),o=r.qListObjectDef;if(o.qDef.cId=o.qDef.cId||Hu(),!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 Nd(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 zd(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")?Ad:e.match("/qChildListDef")?Pd:Od}(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"===Nd(t)?await d.addMeasure(t):await d.addDimension(t)}}var jd={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 Fd={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 Wd=2**53-1;function Bd(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function Hd(e,t){const n=Ve(!0,{},t,e);return jd.getValue(n,"qOtherTotalSpec.qOtherCounted")||jd.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),jd.getValue(n,"qOtherTotalSpec.qOtherLimit")||jd.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function Ud(e,t){return Ve(!0,{},t,e)}function Gd(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var $d={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===jd.getValue(e,t)&&jd.setValue(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:Bd,importCommonProperties:function(e,t,n){const r="masterobject"===jd.getValue(t,"properties.qInfo.qType")?"masterobject":jd.getValue(n,"qInfo.qType");jd.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:Hd,createDefaultMeasure:Ud,resolveValue:Gd,getHypercubePath:function(e){const t=jd.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?(Fd.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,Fd.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=Ve(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?jd.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||Bd(e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),o=Ve(!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=Gd(i.max,r.dimensions.length,Wd),s=Gd(i.min,r.dimensions.length,0);return{maxDimensions:Gd(o.max,a,Wd),minDimensions:Gd(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(Hd(a.dimensions[s],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(Hd(a.dimensions[s],i));else if(a.dimensions.length)for(s=0;s<a.dimensions.length;++s)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(Hd(a.dimensions[s],i));if(a.excludedDimensions.length)for(s=0;s<a.excludedDimensions.length;++s)o.qDimensions.length<r?o.qDimensions.push(Hd(a.excludedDimensions[s],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(Hd(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(Ud(a.measures[s],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(Ud(a.measures[s],i));else if(a.measures.length)for(s=0;s<a.measures.length;++s)o.qLayoutExclude.qHyperCubeDef.qMeasures.push(Ud(a.measures[s],i));if(a.excludedMeasures.length)for(s=0;s<a.excludedMeasures.length;++s)o.qMeasures.length<r?o.qMeasures.push(Ud(a.excludedMeasures[s],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(Ud(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=jd.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=jd.getValue(t,r||"").qHyperCubeDef,o=[...e.qMeasures];e.qMeasures=[],o.forEach((r=>{e.qMeasures.push(r),n.measures.added(r,t)}))}}};var Vd={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=jd.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();Fd.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&&($d.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!jd.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=$d.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:i}),l=jd.getValue(n,i||"").qHyperCubeDef,c=jd.getValue(s,i||"").qHyperCubeDef,{maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:h}=$d.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:f=$d.getDefaultDimension(),defaultMeasure:m=$d.getDefaultMeasure()}=o;return c.qDimensions.length=0,c.qMeasures.length=0,$d.shouldInitLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:h})&&$d.initLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:h,newHyperCubeDef:c}),$d.addDefaultDimensions({exportFormat:t,maxDimensions:u,minDimensions:d,newHyperCubeDef:c,defaultDimension:f}),$d.addDefaultMeasures({exportFormat:t,maxMeasures:p,minMeasures:h,newHyperCubeDef:c,defaultMeasure:m}),$d.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:c}),$d.copyPropertyIfExist("qMaxStackedCells",l,c),$d.copyPropertyIfExist("qNoOfLeftDims",l,c),$d.copyPropertyOrSetDefault("qInitialDataFetch",l,c,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),$d.copyPropertyOrSetDefault("qMode",l,c,"S"),$d.copyPropertyOrSetDefault("qReductionMode",l,c,"N"),$d.copyPropertyOrSetDefault("qSortbyYValue",l,c),$d.copyPropertyOrSetDefault("qIndentMode",l,c),$d.copyPropertyOrSetDefault("qShowTotalsAbove",l,c),$d.importCommonProperties(s,t,n),$d.updateDimensionsOnAdded({newProperties:s,dataDefinition:r,hypercubePath:i}),$d.updateMeasuresOnAdded({newProperties:s,dataDefinition:r,hypercubePath:i}),a.qProperty=s,a}(e)};const Kd=e=>jd.getValue(e,"data.targets.0.propertyPath"),Zd=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return Vd.exportProperties})(Kd(e))},Jd=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return Vd.importProperties})(Kd(e))},Xd=async e=>{let{halo:t,model:n,cellRef:r,newType:o,properties:i,viewDataMode:a=!1}=e;const s=i?{qProperty:i}:await n.getFullPropertyTree(),l=r.current.getQae(),c=Zd(l);if(!c)throw new Error("Source chart does not support conversion");const u=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}),d=u.qae,p=Jd(d);if(!p)throw new Error("Target chart does not support conversion");return p({exportFormat:c({propertyTree:s,hypercubePath:$d.getHypercubePath(l),viewDataMode:a}),initialProperties:$({qInfo:{qType:o},visualization:o},jd.getValue(d,"properties.initial",{})),dataDefinition:jd.getValue(d,"data.targets.0.",{}),hypercubePath:$d.getHypercubePath(d),viewDataMode:a})},Yd={hypercube:Vd};var Qd=e=>Ea((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 ep(e){let{d:n}=e;const r=Ei();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(W,null,n.missing||n.error?t.createElement(Qd,{style:a}):t.createElement(Fa,{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 tp(e){let{data:n}=e;const r=Ei();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(ep,{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 np(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(Qd,{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(tp,{data:o}))}const rp=["size"],op="Progress",ip={root:"".concat(op,"-root"),front:"".concat(op,"-front"),back:"".concat(op,"-back")},ap=wi("div")((e=>{let{theme:t}=e;return{["&.".concat(ip.root)]:{position:"relative",display:"inline-block"},["& .".concat(ip.front)]:{color:t.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(ip.back)]:{color:t.palette.divider}}})),sp={small:16,medium:32,large:64,xlarge:128};function lp(e){let{size:n="medium"}=e,r=J(e,rp);const o=sp[n];return t.createElement(ap,{className:ip.root},t.createElement(F,Z({variant:"determinate",value:100,className:ip.back,size:o,thickness:3},r)),t.createElement(F,Z({variant:"indeterminate",disableShrink:!0,className:ip.front,size:o,thickness:3},r)))}const cp=["cancel","translator"],up=["retry","translator"],dp={stripes:"".concat("LongRunningQuery","-stripes")},pp=wi(C)((()=>({["& .".concat(dp.stripes)]:{"&::before":{position:"absolute",height:"100%",width:"100%",top:0,left:0,content:'""',backgroundSize:"14.14px 14.14px",backgroundImage:"linear-gradient(135deg, currentColor 10%, rgba(0,0,0,0) 10%, rgba(0,0,0,0) 50%, currentColor 50%, currentColor 59%, rgba(0,0,0,0) 60%, rgba(0,0,0,0) 103%)",opacity:.1}}})));function hp(e){let{cancel:n,translator:r}=e,o=J(e,cp);return t.createElement(t.Fragment,null,t.createElement(pp,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},t.createElement(C,{item:!0},t.createElement(lp,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,Z({item:!0},o),t.createElement(z,{variant:"contained",onClick:n},r.get("Cancel"))))}function fp(e){let{retry:n,translator:r}=e,o=J(e,up);return t.createElement(t.Fragment,null,t.createElement(C,{item:!0},t.createElement(Qd,{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,Z({variant:"contained",onClick:n},o),r.get("Retry"))))}function mp(e){let{canCancel:n,canRetry:r,api:o}=e;const{translator:i}=p(ji);return t.createElement(C,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:dp.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},n&&t.createElement(hp,{cancel:o.cancel,translator:i,className:dp.cancel}),r&&t.createElement(fp,{retry:o.retry,translator:i,className:dp.retry}))}function gp(){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(lp,{size:"large"}))}const bp="Header",yp={containerStyle:"".concat(bp,"-containerStyle"),containerTitleStyle:"".concat(bp,"-containerTitleStyle")},vp=wi(C)((e=>{let{theme:t}=e;return{["&.".concat(yp.containerStyle)]:{flexGrow:0},["&.".concat(yp.containerTitleStyle)]:{paddingBottom:t.spacing(1)}}})),Sp="njs-cell-title",xp="njs-cell-sub-title";function Ep(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]=Sa(),[b,y]=n(!1);r((()=>{i&&i.component&&i.component.isHooked&&i.component.observeActions((e=>{f([...e,...i&&i.selectionToolbar&&i.selectionToolbar.items||[]])}))}),[i]),r((()=>{if(!g)return;const{width:e}=g;y(e<221)}),[g]);const v=u||d,x=[yp.containerStyle,...v?[yp.containerTitleStyle]:[]],E=(s||p)&&(b||!v),w=v&&!E&&!b,L=t.createElement(_c,{show:w,selections:{show:p,api:i.component.selections,onKeyDeactivate:l.refocusContent},actions:h,popover:{show:E,anchorEl:a},focusHandler:l,layout:o});return t.createElement(vp,{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:Sp,style:c.main},o.title),d&&t.createElement(S,{variant:"body2",noWrap:!0,className:xp,style:c.subTitle},o.subtitle))),t.createElement(C,{item:!0},L))}const Cp={itemStyle:"".concat("Footer","-itemStyle")},wp=wi(C)((e=>{let{theme:t}=e;return{["& .".concat(Cp.itemStyle)]:{minWidth:0,paddingTop:t.spacing(1)}}})),Lp="njs-cell-footer";function kp(e){let{layout:n,titleStyles:r={}}=e;return n&&n.showTitles&&n.footnote?t.createElement(wp,{container:!0},t.createElement(C,{item:!0,className:Cp.itemStyle},t.createElement(S,{noWrap:!0,variant:"body2",className:Lp,style:r.footer},n.footnote))):null}class Rp{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 Ip="njs-viz";function qp(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:b}=p(ji),[y]=n((()=>new Rp)),[v,S]=n(!1),[x,E]=n(0),[C,w,L]=Sa(),[k,R]=n(null),I=l((e=>{e&&R(e)}),[]);return r((()=>{if(k)return d.created({options:i}),d.mounted(k),S(!0),()=>{y.stop(),d.willUnmount()}}),[k,d]),r((()=>{v&&k&&w&&(!d.isHooked&&s&&s.qSelectionInfo&&s.qSelectionInfo.qInSelections||y.schedule((()=>{const e=[];return m.passive||e.push("passive"),m.active||e.push("interact"),m.select||e.push("select"),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:b},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,k,L,s,c,h,f,m,g,v,b]),t.createElement("div",{ref:C,"data-render-count":x,style:{position:"relative",height:"100%"},className:Ip},t.createElement("div",{ref:I,style:{position:"absolute",width:"100%",height:"100%"}}))}const _p=(e,t,n,r)=>{const o=i((()=>{if(e&&t){const r=e.components?e.components.find((e=>"general"===e.key)):null,o={main:fu(r,"main",t,e.visualization),footer:fu(r,"footer",t,e.visualization),subTitle:fu(r,"subTitle",t,e.visualization)},i=pu(r,t,e.visualization),a=du(r,n),s=function(e,t,n){const r=su(null==e?void 0:e.borderColor,"","borderColor",t,n),o=(null==e?void 0:e.borderWidth)||iu("","borderWidth",t,n);return o&&r?"".concat(o," solid ").concat(r):void 0}(r,t,e.visualization),l=function(e,t,n){return(null==e?void 0:e.borderRadius)||iu("","borderRadius",t,n)}(r,t,e.visualization);return{titleStyles:o,bgColor:i,bgImage:a,border:s,borderRadius:l,boxShadow:hu(r,t,e.visualization)}}return{}}),[e,t,n,r]);return o},Op="njs-cell",Tp=(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 Ap(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(gp,null):null}const Dp=e=>!e.qError||7005===e.qError.qErrorCode,Mp=(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}})),Pp=e=>e&&(Array.isArray(e)?e:[e])||[],Np=(e,t,n,r)=>{const o=r.dimensions.min(),i=r.measures.min(),a=r.resolveLayout(t);return{reqDimErrors:Mp(o,Pp(a.qDimensionInfo||a.qItems),(e=>r.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:Mp(i,Pp(a.qMeasureInfo),(e=>r.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},zp=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=Pp(h.qDimensionInfo||h.qItems).filter(Dp),m=Pp(h.qMeasureInfo).filter(Dp);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=Np(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]),b=[{title:f,descriptions:[...u]},{title:g,descriptions:[...d]}],y=l?c:b;return[l||i,{title:l?c[0].title:e.get("Visualization.Incomplete"),data:y}]},jp=o(((e,o)=>{let{halo:i,model:l,initialSnOptions:c,initialSnPlugins:u,initialError:h,onMount:f,currentId:m,emitter:g}=e;const{app:b,types:y}=i,{nebbie:v}=i.public,{theme:S,translator:x,language:E,keyboardNavigation:w,disableCellPadding:k=!1}=p(ji),R=Ei(),[I,q,_]=Sa(),[O,T]=s(Tp,{loading:!1,loaded:!1,longRunningQuery:!1,error:(A=h)?{title:A.message}:null,sn:null,visualization:null});var A;const[D,M]=n(l),[P,{validating:N,canCancel:z,canRetry:j},F]=ya(D),[W]=va(b),[B,H,U]=Sa(),[G,V]=n(c),[K,Z]=n(u),J="njs-cell-".concat(m),[X]=jc(b,D,["#".concat(J),".njs-action-toolbar-popover"]),[Y,Q]=n(!1),ee=d({enter:null,leave:null}),{titleStyles:te,bgColor:ne,bgImage:re,border:oe,borderRadius:ie,boxShadow:ae}=_p(P,i.public.theme,i.app,S),se=d({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});r((()=>{Pc(se.current)}),[]),se.current.blurCallback=e=>{i.root.toggleFocusOfCells(),e&&U&&U.focus()},se.current.refocusContent=()=>{O.sn.component&&"function"==typeof O.sn.component.focus&&O.sn.component.focus()};r((()=>{if(h)return void f();if(!W||!P)return;if(O.visualization===P.visualization&&O.sn)return void(async e=>{const[t,n]=await zp(x,P,e.generator.qae.data,D);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:O.sn,layout:P,model:D})})(O.sn);const e=y.getSupportedVersion(P.visualization,P.version);return(async(e,t)=>{T({type:"LOADING"}),await(async e=>{let{dispatch:t,types:n,visualization:r,version:o,model:i,app:a,selections:s,nebbie:l,focusHandler:c,emitter:u,onMount:d}=e;try{const e=await(async e=>{let{types:t,name:n,version:r}=e;return await t.get({name:n,version:r}).supernova()})({types:n,name:r,version:o}),p=e.create({model:i,app:a,selections:s,nebbie:l,focusHandler:c,emitter:u});p&&(t({type:"LOADED",sn:p,visualization:r}),d())}catch(e){t(o?{type:"ERROR",error:{title:e.message}}:{type:"ERROR",error:{title:"Could not find a version of '".concat(r,"' that supports current object version. Did you forget to register ").concat(r,"?")}}),d()}})({dispatch:T,types:y,visualization:e,version:t,model:D,app:b,selections:X,nebbie:v,focusHandler:se.current,emitter:g,onMount:f})})(P.visualization,e),()=>{}}),[y,O.sn,D,X,P,W,E]),r((()=>{if(!N)return;const e=setTimeout((()=>T({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[N]),a(o,(()=>({getQae:()=>O.sn.generator.qae,toggleFocus(e){"function"==typeof O.sn.component.focus&&(e?O.sn.component.focus():O.sn.component.blur())},setSnOptions:V,setSnPlugins:Z,setModel:M,getImperativeHandle(){var e;return null!==(e=O.sn)&&void 0!==e&&e.component&&"function"==typeof O.sn.component.getImperativeHandle?O.sn.component.getImperativeHandle():{}},async takeSnapshot(){const{width:e,height:t}=q;let n=JSON.parse(JSON.stringify(P));return"function"==typeof O.sn.component.setSnapshotData&&(n=await O.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:x.language(),theme:R.name,appLayout:W,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)}})),[O.sn,H,q,P,R.name,W]);let le=null;return O.loading&&!O.longRunningQuery?le=t.createElement(Ap,null):O.error?le=t.createElement(np,O.error):O.loaded&&(le=t.createElement(qp,{key:P.visualization,sn:O.sn,halo:i,snOptions:G,snPlugins:K,layout:P,appLayout:W})),t.createElement(L,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:ne||"unset",backgroundImage:re&&re.url?"url(".concat(re.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:re&&re.size,backgroundPosition:re&&re.pos,border:oe,borderRadius:ie,boxShadow:ae,boxSizing:"border-box"},elevation:0,square:!0,className:Op,ref:I,id:J,onMouseEnter:()=>{ee.current.leave&&clearTimeout(ee.current.leave),ee.enter||(ee.current.enter=setTimeout((()=>{Q(!0),ee.current.enter=null}),250))},onMouseLeave:()=>{ee.current.enter&&clearTimeout(ee.current.enter),ee.current.leave||(ee.current.leave=setTimeout((()=>{Q(!1),ee.current.leave=null}),750))}},t.createElement(C,{container:!0,direction:"column",gap:0,style:$($({position:"relative",width:"100%",height:"100%"},k?{}:{padding:R.spacing(1)}),O.longRunningQuery?{opacity:"0.3"}:{})},_&&P&&O.sn&&t.createElement(Ep,{layout:P,sn:O.sn,anchorEl:_,hovering:Y,focusHandler:se.current,titleStyles:te}," "),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:B},le),_&&P&&O.sn&&t.createElement(kp,{layout:P,titleStyles:te})),O.longRunningQuery&&t.createElement(mp,{canCancel:z,canRetry:j,api:F}))}));function Fp(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Wp(){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],(Fp(a)&&Fp(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(...Wp("".concat(e).concat(o,"/"),t[o],n[o]))})),r}function Bp(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 Hp=e=>{var t;return!(!e||e.qHasSoftPatches||e.qExtendsId||!(((null===(t=e.qMeta)||void 0===t?void 0:t.privileges)||[]).indexOf("update")>-1))},Up=(e,t)=>e.__snInterceptor?e.__snInterceptor.setProperties.call(e,t):e.setProperties(t),Gp=Ve.bind(null,!0),$p={},{isArray:Vp}=Array;function Kp(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Zp(e){return void 0===e}function Jp(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function Xp(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]=Zp(e[r||t])?i:e[t],e=e[r||t]})),e}function Yp(e,t){let n=!0;if(Kp(e)&&Kp(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{Yp(e[r],t[r])||(n=!1)})),n);if(Vp(e)&&Vp(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!Yp(e[n],t[n]))return!1;return!0}return e===t}$p.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const i=function(e){return e?Gp({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(n,"/").concat(o);Yp(i,a)||Jp(t,o)||(Zp(a)?r.push({op:"add",path:s,value:i}):Kp(i)&&Kp(a)?r=r.concat($p.generate(a,i,s)):Vp(i)&&Vp(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]&&Zp(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(Yp(t,o))return r;if(!Zp(t[0])&&Zp(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($p.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=>{Zp(t[o])&&!Jp(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},$p.apply=function(e,t){t.forEach((t=>{let n=Xp(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(Vp(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(Vp(o)&&Vp(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(Kp(o)&&Kp(t.value))a=o,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!Jp(a,e)&&delete a[e]})),Gp(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=Xp(e,t.from);Vp(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(Vp(n)?n.splice(+r,1):delete n[r]);var a}))},$p.clone=function(e){return Gp({},e)},$p.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},$p.updateObject=function(e,t){Object.keys(e).length?$p.apply(e,$p.generate(e,t)):Gp(e,t)};const Qp=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(re.prototype).forEach((e=>{r[e]=re.prototype[e]})),re.init(r),r);var r;return n};let eh,th;function nh(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 rh(e){let{explicitResize:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.__hooks={obsolete:!1,error:!1,waitForData:!1,chain:{promise:null,resolve:()=>{}},list:[],snaps:[],menus:[],actions:{list:[]},pendingEffects:[],pendingLayoutEffects:[],pendingPromises:[],resizer:{setters:[],explicitResize:t},accessibility:{setter:null},contraintsWarning:!0}}function oh(e){ah(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 ih(e){if(e.__hooks.obsolete)return Promise.resolve();th=-1,eh=e,eh.__hooks.initiated&&eh.__hooks.list.length;try{eh.fn.call(null)}catch(e){console.error(e)}eh.__hooks.initiated=!0;const t=eh.__hooks;return uh(eh),th=void 0,eh=void 0,t.chain.promise||(t.chain.promise=new Promise((e=>{t.chain.resolve=e}))),function(e){ah(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame((()=>{!function(e){ah(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 ah(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 sh(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 lh(e,t,n,r){try{return Promise.all(e.__hooks.menus.map((e=>Promise.resolve(e.fn(t,n,r))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function ch(e){return e.__hooks.imperativeHandle}function uh(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function dh(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,uh(e))}function ph(e){if(void 0===eh)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=eh.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function hh(e){ph(++th);return eh.context[e]}function fh(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function mh(e){return{__hooked:!0,fn:e,initiate:rh,run:ih,teardown:oh,runSnaps:sh,runMenu:lh,focus:Gh,blur:$h,observeActions:dh,getImperativeHandle:ch,updateRectOnNextRun:fh}}function gh(e){const t=ph(++th);if(!t.value){t.component=eh;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,ih(r)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function bh(e,t){const n=ph(++th);nh(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===eh.__hooks.pendingEffects.indexOf(n)&&eh.__hooks.pendingEffects.push(n))}function yh(e,t){const n=ph(++th);nh(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],eh.__hooks.pendingLayoutEffects.push(n))}function vh(e,t){const n=ph(++th);return nh(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function Sh(e,t){const[n,r]=gh((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=ph(++th);return o.component||(o.component=eh),yh((()=>{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 xh(){return hh("element")}function Eh(){const e=xh(),t=eh.__hooks.resizer,[n,r]=gh((()=>{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()),yh((()=>{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 Ch(){return hh("layout")}function wh(){const e=hh("layout"),[t]=gh({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current}function Lh(){return hh("appLayout")}function kh(){const e=hh("model");return e&&e.session?e:void 0}function Rh(){const e=hh("app");return e&&e.session?e:void 0}function Ih(){const e=hh("global");return e&&e.session?e:void 0}function qh(){return hh("selections")}function _h(){return hh("theme")}function Oh(){return hh("nebbie")}function Th(){return hh("translator")}function Ah(){return hh("deviceType")}function Dh(){return hh("plugins")}function Mh(e,t){const[n]=gh({action(){n._config.action.call(null)}});return n.component||(n.component=eh,eh.__hooks.actions.list.push(n)),vh((()=>{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 Ph(){return hh("constraints")}function Nh(){return hh("interactions")}function zh(){return hh("options")}function jh(e,t){const n=ph(++th);if(n.imperative||(n.imperative=!0),nh(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],eh.__hooks.imperativeHandle=r}}function Fh(e){const t=ph(++th);t.value||(t.value=1,eh.__hooks.snaps.push(t)),t.fn=e}function Wh(e){const t=ph(++th);t.value||(t.value=1,eh.__hooks.menus.push(t)),t.fn=e}function Bh(){ph(++th);const e=eh.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}}function Hh(){return hh("emitter")}function Uh(){const e=hh("keyboardNavigation"),t=hh("focusHandler");if(!eh.__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&&($h(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(eh);eh.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),Gh(this))}.bind(eh);eh.__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(eh);eh.__hooks.accessibility.focusSelectionFunction=r}const n=eh.__hooks.accessibility.focusFunction,r=eh.__hooks.accessibility.exitFunction,o=eh.__hooks.accessibility.focusSelectionFunction,[i,a]=gh({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return eh.__hooks.accessibility.setter=a,eh.__hooks.accessibility.enabled=e,bh((()=>a({active:!1,enabled:e,blur:r,focus:n,focusSelection:o})),[e]),i}function Gh(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 $h(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 Vh={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},Kh=Object.keys(Vh),Zh=e=>(Object.keys(re.prototype).forEach((t=>{e[t]=re.prototype[t]})),re.init(e),e);function Jh(e,t){const n=$({},Vh);Zh(n);const r={emit(){n.emit(...arguments)}};Object.keys(e.component||{}).forEach((t=>{-1!==Kh.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=Qp(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 Xh(e,t,n){"function"==typeof e.component&&(e.component=mh(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,r){return e.component.runMenu(this,t,n,r)},focus(){e.component.focus(this)},blur(){e.component.blur(this)},getImperativeHandle(){return e.component.getImperativeHandle(this)},destroy(){},observeActions(t){e.component.observeActions(this,t)},isHooked:!0};return 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):Jh(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=$p.clone(o),a=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));$p.apply(o,a),e.qae.properties.onChange.call({model:t.model},o);const s=$p.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 Yh=()=>{};function Qh(e,t){return void 0===e?()=>t:()=>e}function ef(e){const t=e||{};return{min:"function"==typeof t.min?t.min:Qh(t.min,0),max:"function"==typeof t.max?t.max:Qh(t.max,1e3),added:t.added||t.add||Yh,description:t.description||Yh,moved:t.moved||t.move||Yh,removed:t.removed||t.remove||Yh,replaced:t.replaced||t.replace||Yh,isDefined:()=>!!e}}const tf=(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 nf(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=>tf(e,n,{}),dimensions:ef(e.dimensions),measures:ef(e.measures)}}function rf(){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(nf)},exportProperties:t.exportProperties,importProperties:t.importProperties}}function of(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:rf(n.qae),component:n.component||{},create:e=>Xh(r,e,t),definition:{}};return Object.keys(n).forEach((e=>{r[e]||(r.definition[e]=n[e])})),r}const af=(e,t,n)=>{if(!e)return Promise.resolve();let r=$p.generate(t,n);return Ve(!0,t,n),r&&r.length?(r=r.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.__snInterceptor?e.__snInterceptor.applyPatches.call(e,r,!0):e.applyPatches(r,!0)):Promise.resolve()},sf=()=>{};function lf(){let e,{model:n,halo:r,initialError:o,onDestroy:i=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=sf,s=null,l=null,c=null,u=null;const d=new Promise((e=>{c=e})),p=new Promise((e=>{u=e})),h=e=>()=>{e&&e(),u()};let f={},g=[];const b=new re,y={id:n.id,model:n,async destroy(){await i(),a(),a=sf},async convertTo(e){let t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]){const o=await n.getLayout();if(Hp(o)&&!t){const t=await Xd({halo:r,model:n,cellRef:s,newType:e});return await Up(n,t.qProperty),t}const i=await n.getEffectiveProperties(),a=await Xd({halo:r,model:n,cellRef:s,newType:e,properties:i}),l=a.qProperty;return await af(n,i,l),a}return await Xd({halo:r,model:n,cellRef:s,newType:e})},async toggleDataView(t){let o;if(e||!1===t)e&&!0!==t&&(o=n,await r.app.destroySessionObject(e),e=void 0);else{let t=r.config.context.dataViewType;const i=await n.getEffectiveProperties();if(!r.types.getSupportedVersion(t)){if(!r.types.getSupportedVersion("table"))throw new Error("No data view type registered");t="table"}const a=await Xd({halo:r,model:n,cellRef:s,newType:t,properties:i,viewDataMode:!0});o=await r.app.createSessionObject(a.qProperty),e=o.id}o&&s.current.setModel(o)},addListener(e,t){b.addListener(e,t)},removeListener(e,t){b.removeListener(e,t)},getImperativeHandle:async()=>(await p,s.current.getImperativeHandle()),__DO_NOT_USE__:{mount(e){if(l)throw new Error("Already mounted");if(!(e instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return l=e,[a,s]=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=Hu(),h=m.createPortal(t.createElement(jp,{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:r,element:e,model:n,initialSnOptions:f,initialSnPlugins:g,initialError:o,onMount:c,emitter:b}),d},async applyProperties(e){const t=Wp("/",e,await n.getEffectiveProperties());if(t.length)return n.applyPatches(t,!0)},options(e){(async e=>{const t=e.onInitialRender;l?(async()=>{await d,s.current.setSnOptions($($($({},f),e),{onInitialRender:h(t)}))})():f=$($($({},f),e),{onInitialRender:h(t)})})(e)},plugins(e){(async e=>{Bp(e),l?(async()=>{await d,s.current.setSnPlugins(e)})():g=e})(e)},exportImage:()=>s.current.exportImage(),takeSnapshot:()=>s.current.takeSnapshot(),getModel:()=>n,convert:{async toType(e){const t=await n.getEffectiveProperties(),o=await Xd({halo:r,model:n,cellRef:s,newType:e,properties:t}),i=o.qProperty;return await af(n,t,i),o},async revert(){await n.clearSoftPatches()}}}};return y}async function cf(e,t,n,r){const o=lf({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 uf(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 zd({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}),ua.set(e.id,e),e}return l}const df={className:"njs-sheet"};function pf(e,t,n){return e.bounds?e.bounds:{y:e.row/n*100,x:e.col/t*100,width:e.colspan/t*100,height:e.rowspan/n*100}}function hf(e){let{model:o,halo:a,initialSnOptions:s,initialSnPlugins:l,initialError:c,onMount:u}=e;const{root:d}=a,[h]=ya(o),{theme:f}=p(ji),[m,g]=n([]),[b,y]=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,{columns:n,rows:r}=h,o=await Promise.all(e.map((async e=>{let o;const i=new Promise((e=>{o=e})),s=m.find((t=>t.id===e.name));if(s)return s.bounds=pf(e,n,r),delete s.mountedPromise,s;const l=await async function(e,t){let{id:n,options:r,plugins:o,element:i}=e;const a="".concat(n);let s=oa.get(a);s||(s=t.app.getObject(n),oa.set(a,s));const l=await s;return ua.set(a,l),cf(l,{options:r,plugins:o,element:i},t)}({id:e.name},a);return{model:l.model,id:e.name,bounds:pf(e,n,r),cellRef:t.createRef(),currentId:Hu(),mounted:o,mountedPromise:i}})));o.forEach((e=>d.addCell(e.currentId,e.cellRef))),g(o)};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(jp,{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;y(pu(e,a.public.theme)),S(du(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)),k=L.filter((e=>!!e));return k.length&&Promise.all(L).then((()=>{u()})),t.createElement("div",{className:df.className,style:{width:"100%",height:w,position:"relative",backgroundColor:b,backgroundImage:v&&v.url?"url(".concat(v.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:v&&v.size,backgroundPosition:v&&v.pos}},C)}const ff=()=>{};function mf(){let{model:e,halo:n,initialError:r,onDestroy:o=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=ff,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=ff},__DO_NOT_USE__:{mount(o){if(s)throw new Error("Already mounted");if(!(o instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");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(hf,{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=Wp("/",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=>{Bp(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 gf(e,t){let{id:n,options:r,plugins:o,element:i}=e;const a="".concat(n);let s=oa.get(a);s||(s=t.app.getObject(n),oa.set(a,s));const l=await s;return ua.set(a,l),"sheet"===l.genericType?async function(e,t,n,r){const o=mf({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):cf(l,{options:r,plugins:o,element:i},t)}function bf(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}var yf,vf;var Sf=xf;function xf(e){var t=this;if(t instanceof xf||(t=new xf),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var n=0,r=arguments.length;n<r;n++)t.push(arguments[n]);return t}function Ef(e,t,n){var r=t===e.head?new Lf(n,null,t,e):new Lf(n,t,t.next,e);return null===r.next&&(e.tail=r),null===r.prev&&(e.head=r),e.length++,r}function Cf(e,t){e.tail=new Lf(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function wf(e,t){e.head=new Lf(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function Lf(e,t,n,r){if(!(this instanceof Lf))return new Lf(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}xf.Node=Lf,xf.create=xf,xf.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},xf.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},xf.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},xf.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)Cf(this,arguments[e]);return this.length},xf.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)wf(this,arguments[e]);return this.length},xf.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},xf.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},xf.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;null!==n;r++)e.call(t,n.value,r,this),n=n.next},xf.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;null!==n;r--)e.call(t,n.value,r,this),n=n.prev},xf.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},xf.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},xf.prototype.map=function(e,t){t=t||this;for(var n=new xf,r=this.head;null!==r;)n.push(e.call(t,r.value,this)),r=r.next;return n},xf.prototype.mapReverse=function(e,t){t=t||this;for(var n=new xf,r=this.tail;null!==r;)n.push(e.call(t,r.value,this)),r=r.prev;return n},xf.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var o=0;null!==r;o++)n=e(n,r.value,o),r=r.next;return n},xf.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var o=this.length-1;null!==r;o--)n=e(n,r.value,o),r=r.prev;return n},xf.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},xf.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},xf.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new xf;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=0,o=this.head;null!==o&&r<e;r++)o=o.next;for(;null!==o&&r<t;r++,o=o.next)n.push(o.value);return n},xf.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new xf;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=this.length,o=this.tail;null!==o&&r>t;r--)o=o.prev;for(;null!==o&&r>e;r--,o=o.prev)n.push(o.value);return n},xf.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,o=this.head;null!==o&&r<e;r++)o=o.next;var i=[];for(r=0;o&&r<t;r++)i.push(o.value),o=this.removeNode(o);null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(r=0;r<n.length;r++)o=Ef(this,o,n[r]);return i},xf.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};try{(vf||(vf=1,yf=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}),yf)(xf)}catch(e){}const kf=Sf,Rf=Symbol("max"),If=Symbol("length"),qf=Symbol("lengthCalculator"),_f=Symbol("allowStale"),Of=Symbol("maxAge"),Tf=Symbol("dispose"),Af=Symbol("noDisposeOnSet"),Df=Symbol("lruList"),Mf=Symbol("cache"),Pf=Symbol("updateAgeOnGet"),Nf=()=>1;const zf=(e,t,n)=>{const r=e[Mf].get(t);if(r){const t=r.value;if(jf(e,t)){if(Wf(e,r),!e[_f])return}else n&&(e[Pf]&&(r.value.now=Date.now()),e[Df].unshiftNode(r));return t.value}},jf=(e,t)=>{if(!t||!t.maxAge&&!e[Of])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[Of]&&n>e[Of]},Ff=e=>{if(e[If]>e[Rf])for(let t=e[Df].tail;e[If]>e[Rf]&&null!==t;){const n=t.prev;Wf(e,t),t=n}},Wf=(e,t)=>{if(t){const n=t.value;e[Tf]&&e[Tf](n.key,n.value),e[If]-=n.length,e[Mf].delete(n.key),e[Df].removeNode(t)}};class Bf{constructor(e,t,n,r,o){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=o||0}}const Hf=(e,t,n,r)=>{let o=n.value;jf(e,o)&&(Wf(e,n),e[_f]||(o=void 0)),o&&t.call(r,o.value,o.key,e)};var Uf=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[Rf]=e.max||1/0;const t=e.length||Nf;if(this[qf]="function"!=typeof t?Nf:t,this[_f]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[Of]=e.maxAge||0,this[Tf]=e.dispose,this[Af]=e.noDisposeOnSet||!1,this[Pf]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[Rf]=e||1/0,Ff(this)}get max(){return this[Rf]}set allowStale(e){this[_f]=!!e}get allowStale(){return this[_f]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[Of]=e,Ff(this)}get maxAge(){return this[Of]}set lengthCalculator(e){"function"!=typeof e&&(e=Nf),e!==this[qf]&&(this[qf]=e,this[If]=0,this[Df].forEach((e=>{e.length=this[qf](e.value,e.key),this[If]+=e.length}))),Ff(this)}get lengthCalculator(){return this[qf]}get length(){return this[If]}get itemCount(){return this[Df].length}rforEach(e,t){t=t||this;for(let n=this[Df].tail;null!==n;){const r=n.prev;Hf(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[Df].head;null!==n;){const r=n.next;Hf(this,e,n,t),n=r}}keys(){return this[Df].toArray().map((e=>e.key))}values(){return this[Df].toArray().map((e=>e.value))}reset(){this[Tf]&&this[Df]&&this[Df].length&&this[Df].forEach((e=>this[Tf](e.key,e.value))),this[Mf]=new Map,this[Df]=new kf,this[If]=0}dump(){return this[Df].map((e=>!jf(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[Df]}set(e,t,n){if((n=n||this[Of])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const r=n?Date.now():0,o=this[qf](t,e);if(this[Mf].has(e)){if(o>this[Rf])return Wf(this,this[Mf].get(e)),!1;const i=this[Mf].get(e).value;return this[Tf]&&(this[Af]||this[Tf](e,i.value)),i.now=r,i.maxAge=n,i.value=t,this[If]+=o-i.length,i.length=o,this.get(e),Ff(this),!0}const i=new Bf(e,t,o,r,n);return i.length>this[Rf]?(this[Tf]&&this[Tf](e,t),!1):(this[If]+=i.length,this[Df].unshift(i),this[Mf].set(e,this[Df].head),Ff(this),!0)}has(e){if(!this[Mf].has(e))return!1;const t=this[Mf].get(e).value;return!jf(this,t)}get(e){return zf(this,e,!0)}peek(e){return zf(this,e,!1)}pop(){const e=this[Df].tail;return e?(Wf(this,e),e.value):null}del(e){Wf(this,this[Mf].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const r=e[n],o=r.e||0;if(0===o)this.set(r.k,r.v);else{const e=o-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[Mf].forEach(((e,t)=>zf(this,t,!1)))}};const Gf=Object.freeze({loose:!0}),$f=Object.freeze({});var Vf=e=>e?"object"!=typeof e?Gf:e:$f,Kf={exports:{}};var Zf={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};var Jf="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error("SEMVER",...t)}:()=>{};!function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=Zf,i=Jf,a=(t=e.exports={}).re=[],s=t.safeRe=[],l=t.src=[],c=t.t={};let u=0;const d="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",o],[d,r]],h=(e,t,n)=>{const r=(e=>{for(const[t,n]of p)e=e.split("".concat(t,"*")).join("".concat(t,"{0,").concat(n,"}")).split("".concat(t,"+")).join("".concat(t,"{1,").concat(n,"}"));return e})(t),o=u++;i(e,o,t),c[e]=o,l[o]=t,a[o]=new RegExp(t,n?"g":void 0),s[o]=new RegExp(r,n?"g":void 0)};h("NUMERICIDENTIFIER","0|[1-9]\\d*"),h("NUMERICIDENTIFIERLOOSE","\\d+"),h("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-]".concat(d,"*")),h("MAINVERSION","(".concat(l[c.NUMERICIDENTIFIER],")\\.")+"(".concat(l[c.NUMERICIDENTIFIER],")\\.")+"(".concat(l[c.NUMERICIDENTIFIER],")")),h("MAINVERSIONLOOSE","(".concat(l[c.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(l[c.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(l[c.NUMERICIDENTIFIERLOOSE],")")),h("PRERELEASEIDENTIFIER","(?:".concat(l[c.NUMERICIDENTIFIER],"|").concat(l[c.NONNUMERICIDENTIFIER],")")),h("PRERELEASEIDENTIFIERLOOSE","(?:".concat(l[c.NUMERICIDENTIFIERLOOSE],"|").concat(l[c.NONNUMERICIDENTIFIER],")")),h("PRERELEASE","(?:-(".concat(l[c.PRERELEASEIDENTIFIER],"(?:\\.").concat(l[c.PRERELEASEIDENTIFIER],")*))")),h("PRERELEASELOOSE","(?:-?(".concat(l[c.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(l[c.PRERELEASEIDENTIFIERLOOSE],")*))")),h("BUILDIDENTIFIER","".concat(d,"+")),h("BUILD","(?:\\+(".concat(l[c.BUILDIDENTIFIER],"(?:\\.").concat(l[c.BUILDIDENTIFIER],")*))")),h("FULLPLAIN","v?".concat(l[c.MAINVERSION]).concat(l[c.PRERELEASE],"?").concat(l[c.BUILD],"?")),h("FULL","^".concat(l[c.FULLPLAIN],"$")),h("LOOSEPLAIN","[v=\\s]*".concat(l[c.MAINVERSIONLOOSE]).concat(l[c.PRERELEASELOOSE],"?").concat(l[c.BUILD],"?")),h("LOOSE","^".concat(l[c.LOOSEPLAIN],"$")),h("GTLT","((?:<|>)?=?)"),h("XRANGEIDENTIFIERLOOSE","".concat(l[c.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),h("XRANGEIDENTIFIER","".concat(l[c.NUMERICIDENTIFIER],"|x|X|\\*")),h("XRANGEPLAIN","[v=\\s]*(".concat(l[c.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(l[c.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(l[c.XRANGEIDENTIFIER],")")+"(?:".concat(l[c.PRERELEASE],")?").concat(l[c.BUILD],"?")+")?)?"),h("XRANGEPLAINLOOSE","[v=\\s]*(".concat(l[c.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(l[c.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(l[c.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(l[c.PRERELEASELOOSE],")?").concat(l[c.BUILD],"?")+")?)?"),h("XRANGE","^".concat(l[c.GTLT],"\\s*").concat(l[c.XRANGEPLAIN],"$")),h("XRANGELOOSE","^".concat(l[c.GTLT],"\\s*").concat(l[c.XRANGEPLAINLOOSE],"$")),h("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(n,"})")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:$|[^\\d])"),h("COERCERTL",l[c.COERCE],!0),h("LONETILDE","(?:~>?)"),h("TILDETRIM","(\\s*)".concat(l[c.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",h("TILDE","^".concat(l[c.LONETILDE]).concat(l[c.XRANGEPLAIN],"$")),h("TILDELOOSE","^".concat(l[c.LONETILDE]).concat(l[c.XRANGEPLAINLOOSE],"$")),h("LONECARET","(?:\\^)"),h("CARETTRIM","(\\s*)".concat(l[c.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",h("CARET","^".concat(l[c.LONECARET]).concat(l[c.XRANGEPLAIN],"$")),h("CARETLOOSE","^".concat(l[c.LONECARET]).concat(l[c.XRANGEPLAINLOOSE],"$")),h("COMPARATORLOOSE","^".concat(l[c.GTLT],"\\s*(").concat(l[c.LOOSEPLAIN],")$|^$")),h("COMPARATOR","^".concat(l[c.GTLT],"\\s*(").concat(l[c.FULLPLAIN],")$|^$")),h("COMPARATORTRIM","(\\s*)".concat(l[c.GTLT],"\\s*(").concat(l[c.LOOSEPLAIN],"|").concat(l[c.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",h("HYPHENRANGE","^\\s*(".concat(l[c.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(l[c.XRANGEPLAIN],")")+"\\s*$"),h("HYPHENRANGELOOSE","^\\s*(".concat(l[c.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(l[c.XRANGEPLAINLOOSE],")")+"\\s*$"),h("STAR","(<|>)?=?\\s*\\*"),h("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),h("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(Kf,Kf.exports);var Xf=Kf.exports;const Yf=/^[0-9]+$/,Qf=(e,t)=>{const n=Yf.test(e),r=Yf.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1};var em={compareIdentifiers:Qf,rcompareIdentifiers:(e,t)=>Qf(t,e)};const tm=Jf,{MAX_LENGTH:nm,MAX_SAFE_INTEGER:rm}=Zf,{safeRe:om,t:im}=Xf,am=Vf,{compareIdentifiers:sm}=em;var lm=class e{constructor(t,n){if(n=am(n),t instanceof e){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError('Invalid version. Must be a string. Got type "'.concat(typeof t,'".'));if(t.length>nm)throw new TypeError("version is longer than ".concat(nm," characters"));tm("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?om[im.LOOSE]:om[im.FULL]);if(!r)throw new TypeError("Invalid Version: ".concat(t));if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>rm||this.major<0)throw new TypeError("Invalid major version");if(this.minor>rm||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>rm||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<rm)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}toString(){return this.version}compare(t){if(tm("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if("string"==typeof t&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),sm(this.major,t.major)||sm(this.minor,t.minor)||sm(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const e=this.prerelease[n],r=t.prerelease[n];if(tm("prerelease compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return sm(e,r)}while(++n)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let n=0;do{const e=this.build[n],r=t.build[n];if(tm("prerelease compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return sm(e,r)}while(++n)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===sm(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error("invalid increment argument: ".concat(e))}return this.raw=this.format(),this.build.length&&(this.raw+="+".concat(this.build.join("."))),this}};const cm=lm;var um=(e,t,n)=>new cm(e,n).compare(new cm(t,n));const dm=um;const pm=um;const hm=um;const fm=um;const mm=um;const gm=um;const bm=(e,t,n)=>0===dm(e,t,n),ym=(e,t,n)=>0!==pm(e,t,n),vm=(e,t,n)=>hm(e,t,n)>0,Sm=(e,t,n)=>fm(e,t,n)>=0,xm=(e,t,n)=>mm(e,t,n)<0,Em=(e,t,n)=>gm(e,t,n)<=0;var Cm,wm,Lm,km,Rm=(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 bm(e,n,r);case"!=":return ym(e,n,r);case">":return vm(e,n,r);case">=":return Sm(e,n,r);case"<":return xm(e,n,r);case"<=":return Em(e,n,r);default:throw new TypeError("Invalid operator: ".concat(t))}};function Im(){if(km)return Lm;km=1;class e{constructor(t,o){if(o=n(o),t instanceof e)return t.loose===!!o.loose&&t.includePrerelease===!!o.includePrerelease?t:new e(t.raw,o);if(t instanceof r)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=o,this.loose=!!o.loose,this.includePrerelease=!!o.includePrerelease,this.raw=t.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError("Invalid SemVer Range: ".concat(this.raw));if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!h(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&f(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const n=((this.options.includePrerelease&&d)|(this.options.loose&&p))+":"+e,i=t.get(n);if(i)return i;const f=this.options.loose,m=f?a[s.HYPHENRANGELOOSE]:a[s.HYPHENRANGE];e=e.replace(m,k(this.options.includePrerelease)),o("hyphen replace",e),e=e.replace(a[s.COMPARATORTRIM],l),o("comparator trim",e),e=e.replace(a[s.TILDETRIM],c),o("tilde trim",e),e=e.replace(a[s.CARETTRIM],u),o("caret trim",e);let b=e.split(" ").map((e=>g(e,this.options))).join(" ").split(/\s+/).map((e=>L(e,this.options)));f&&(b=b.filter((e=>(o("loose invalid filter",e,this.options),!!e.match(a[s.COMPARATORLOOSE]))))),o("range list",b);const y=new Map,v=b.map((e=>new r(e,this.options)));for(const e of v){if(h(e))return[e];y.set(e.value,e)}y.size>1&&y.has("")&&y.delete("");const S=[...y.values()];return t.set(n,S),S}intersects(t,n){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some((e=>m(e,n)&&t.set.some((t=>m(t,n)&&e.every((e=>t.every((t=>e.intersects(t,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new i(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(R(this.set[t],e,this.options))return!0;return!1}}Lm=e;const t=new Uf({max:1e3}),n=Vf,r=function(){if(wm)return Cm;wm=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(r,o){if(o=n(o),r instanceof t){if(r.loose===!!o.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),a("comparator",r,o),this.options=o,this.loose=!!o.loose,this.parse(r),this.semver===e?this.value="":this.value=this.operator+this.semver.version,a("comp",this)}parse(t){const n=this.options.loose?r[o.COMPARATORLOOSE]:r[o.COMPARATOR],i=t.match(n);if(!i)throw new TypeError("Invalid comparator: ".concat(t));this.operator=void 0!==i[1]?i[1]:"","="===this.operator&&(this.operator=""),i[2]?this.semver=new s(i[2],this.options.loose):this.semver=e}toString(){return this.value}test(t){if(a("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;if("string"==typeof t)try{t=new s(t,this.options)}catch(e){return!1}return i(t,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new l(e.value,r).test(this.value):""===e.operator?""===e.value||new l(this.value,r).test(e.semver):!((r=n(r)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(i(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(i(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}Cm=t;const n=Vf,{safeRe:r,t:o}=Xf,i=Rm,a=Jf,s=lm,l=Im();return Cm}(),o=Jf,i=lm,{safeRe:a,t:s,comparatorTrimReplace:l,tildeTrimReplace:c,caretTrimReplace:u}=Xf,{FLAG_INCLUDE_PRERELEASE:d,FLAG_LOOSE:p}=Zf,h=e=>"<0.0.0-0"===e.value,f=e=>""===e.value,m=(e,t)=>{let n=!0;const r=e.slice();let o=r.pop();for(;n&&r.length;)n=r.every((e=>o.intersects(e,t))),o=r.pop();return n},g=(e,t)=>(o("comp",e,t),e=S(e,t),o("caret",e),e=y(e,t),o("tildes",e),e=E(e,t),o("xrange",e),e=w(e,t),o("stars",e),e),b=e=>!e||"x"===e.toLowerCase()||"*"===e,y=(e,t)=>e.trim().split(/\s+/).map((e=>v(e,t))).join(" "),v=(e,t)=>{const n=t.loose?a[s.TILDELOOSE]:a[s.TILDE];return e.replace(n,((t,n,r,i,a)=>{let s;return o("tilde",e,t,n,r,i,a),b(n)?s="":b(r)?s=">=".concat(n,".0.0 <").concat(+n+1,".0.0-0"):b(i)?s=">=".concat(n,".").concat(r,".0 <").concat(n,".").concat(+r+1,".0-0"):a?(o("replaceTilde pr",a),s=">=".concat(n,".").concat(r,".").concat(i,"-").concat(a," <").concat(n,".").concat(+r+1,".0-0")):s=">=".concat(n,".").concat(r,".").concat(i," <").concat(n,".").concat(+r+1,".0-0"),o("tilde return",s),s}))},S=(e,t)=>e.trim().split(/\s+/).map((e=>x(e,t))).join(" "),x=(e,t)=>{o("caret",e,t);const n=t.loose?a[s.CARETLOOSE]:a[s.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,a,s)=>{let l;return o("caret",e,t,n,i,a,s),b(n)?l="":b(i)?l=">=".concat(n,".0.0").concat(r," <").concat(+n+1,".0.0-0"):b(a)?l="0"===n?">=".concat(n,".").concat(i,".0").concat(r," <").concat(n,".").concat(+i+1,".0-0"):">=".concat(n,".").concat(i,".0").concat(r," <").concat(+n+1,".0.0-0"):s?(o("replaceCaret pr",s),l="0"===n?"0"===i?">=".concat(n,".").concat(i,".").concat(a,"-").concat(s," <").concat(n,".").concat(i,".").concat(+a+1,"-0"):">=".concat(n,".").concat(i,".").concat(a,"-").concat(s," <").concat(n,".").concat(+i+1,".0-0"):">=".concat(n,".").concat(i,".").concat(a,"-").concat(s," <").concat(+n+1,".0.0-0")):(o("no pr"),l="0"===n?"0"===i?">=".concat(n,".").concat(i,".").concat(a).concat(r," <").concat(n,".").concat(i,".").concat(+a+1,"-0"):">=".concat(n,".").concat(i,".").concat(a).concat(r," <").concat(n,".").concat(+i+1,".0-0"):">=".concat(n,".").concat(i,".").concat(a," <").concat(+n+1,".0.0-0")),o("caret return",l),l}))},E=(e,t)=>(o("replaceXRanges",e,t),e.split(/\s+/).map((e=>C(e,t))).join(" ")),C=(e,t)=>{e=e.trim();const n=t.loose?a[s.XRANGELOOSE]:a[s.XRANGE];return e.replace(n,((n,r,i,a,s,l)=>{o("xRange",e,n,r,i,a,s,l);const c=b(i),u=c||b(a),d=u||b(s),p=d;return"="===r&&p&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&p?(u&&(a=0),s=0,">"===r?(r=">=",u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):"<="===r&&(r="<",u?i=+i+1:a=+a+1),"<"===r&&(l="-0"),n="".concat(r+i,".").concat(a,".").concat(s).concat(l)):u?n=">=".concat(i,".0.0").concat(l," <").concat(+i+1,".0.0-0"):d&&(n=">=".concat(i,".").concat(a,".0").concat(l," <").concat(i,".").concat(+a+1,".0-0")),o("xRange return",n),n}))},w=(e,t)=>(o("replaceStars",e,t),e.trim().replace(a[s.STAR],"")),L=(e,t)=>(o("replaceGTE0",e,t),e.trim().replace(a[t.includePrerelease?s.GTE0PRE:s.GTE0],"")),k=e=>(t,n,r,o,i,a,s,l,c,u,d,p,h)=>(n=b(r)?"":b(o)?">=".concat(r,".0.0").concat(e?"-0":""):b(i)?">=".concat(r,".").concat(o,".0").concat(e?"-0":""):a?">=".concat(n):">=".concat(n).concat(e?"-0":""),l=b(c)?"":b(u)?"<".concat(+c+1,".0.0-0"):b(d)?"<".concat(c,".").concat(+u+1,".0-0"):p?"<=".concat(c,".").concat(u,".").concat(d,"-").concat(p):e?"<".concat(c,".").concat(u,".").concat(+d+1,"-0"):"<=".concat(l),"".concat(n," ").concat(l).trim()),R=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(o(e[n].semver),e[n].semver!==r.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return Lm}const qm=Im();var _m=(e,t,n)=>{try{t=new qm(t,n)}catch(e){return!1}return t.test(e)},Om=H(_m);const Tm={};function Am(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)||Om(e,i.deps.properties),supernova:()=>async function(e,t,n,r){let{config:o}=n;const i="".concat(e,"__").concat(t);if(!Tm[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);Tm[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 Tm[i]}(a.name,a.version,t,o.load).then((e=>(n=n||of(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?(Ve(!0,n,e),n):$($({},n),e)}))}};return a}function Dm(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]=Am({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 Mm(e){let{halo:t,parent:n}=e;const r={},o=n||{get:()=>{}};return{register:(e,n)=>{r[e.name]||(r[e.name]=Dm(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(Tm).forEach((t=>{t.split("__")[0]===e&&(Tm[t]=void 0)}))}(e)}}}const Pm={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()))}};Pm.context={theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1,dataViewType:"sn-table"};const Nm=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return $($({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),e)},zm=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 jm=function e(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=Q(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.11.0"),s.setAttribute("data-app-id",r.id),document.body.appendChild(s),o&&Zi(o),mt.createRoot(s).render(t.createElement(Ji,{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&&Zi(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=dt();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),pt(ht,{__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:bf(n.flags),deviceType:ft(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=Mm({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?gf(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 zd({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}),ua.set(h.id,h);const f=da(h);return cf(h,{options:a,plugins:s,element:l},t,p,(async()=>{await t.app.destroySessionObject(h.id),f()}))}(e,u)),create:async e=>uf(e,u,!1),generateProperties:async e=>uf(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(Uu,{app:r}),n,Hu())}({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(wd,{app:r,element:n,fieldIdentifier:o,qId:i,stateName:a,options:s,renderedCallback:l}),n,Hu())}({element:a,app:e,fieldIdentifier:n,qId:r,options:Cd($({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 Pc(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=$({},Ld);return Ve(!0,t,e),t}($({onPopoverClose:()=>g.emit("fieldPopoverClose")},o));g._popoverInstance=t.createElement(kd,{element:n,key:Hu(),app:e,fieldIdentifier:r,options:i,stateName:o.stateName||"$"}),s.add(g._popoverInstance)}}};return u.public.nebbie=g,u.types=d,Pc(g),g}return o.createConfiguration=t=>e(((e,t)=>({context:Nm(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:$({},t.snapshot||e.snapshot),types:zm(e.types,t.types),themes:zm(e.themes,t.themes),flags:Nm(e.flags,t.flags),anything:Nm(e.anything,t.anything)}))(n,t)),o.config=n,o}(Pm);function Fm(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}const Wm=globalThis.crypto||{getRandomValues:()=>123456};function Bm(e){return t=>{const n=Ve({},t);n.qInfo=n.qInfo||{},n.qInfo.qId=n.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^Wm.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))));const r=n._mock;let o=n;return r&&(delete n._mock,o=Ve({},n,r)),Promise.resolve({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(o),getProperties:()=>Promise.resolve(n),getEffectiveProperties:()=>Promise.resolve(n),removeListener:()=>{},id:n.qInfo.qId,properties:n,session:e})}}const Hm=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},Um=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=Hm(e,{defaultValue:t,args:i});return n?new Promise((e=>{setTimeout((()=>e(s)),r)})):s}},Gm=["id","session"],$m=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function Vm(e){return!$m.includes(e)}function Km(e){const t=Hm(e.getLayout);return t.qInfo&&t.qInfo.qId}function Zm(e,t){return e.reduce(((e,n)=>$($({},e),function(e,t){let n=Km(e);const{delay:r}=t,{id:o,session:i}=e,a=J(e,Gm);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:Hm(i,{defaultValue:!0}),on:()=>{},once:()=>{}},Object.entries(a).reduce(((e,t)=>{let[n,o]=t;return $($({},e),{},{[n]:Um(o,{async:Vm(n),delay:r})})}),{})),{},{genericType:e.type})}}(n,t))),{})}function Jm(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!Km(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function Xm(){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(Jm);const n=Zm(e,t);return async e=>Promise.resolve(n[e])}function Ym(){return()=>Promise.resolve({id:"app-layout"})}const Qm={fromGenericObjects(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new Fm,r=new Bm(n),o=new Xm(e,t),i=new Ym,a={id:"app - ".concat(+Date.now()),session:n,createSessionObject:r,destroySessionObject:async()=>{},getObject:o,getAppLayout:i};return Promise.resolve(a)}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}},eg={generator:of,hook:mh,theme:dt,locale:X};export{Qm as EnigmaMocker,eg as __DO_NOT_USE__,Yd as conversion,jm as embed,Wh as onContextMenu,Fh as onTakeSnapshot,Mh as useAction,Rh as useApp,Lh as useAppLayout,Ph as useConstraints,Ah as useDeviceType,bh as useEffect,xh as useElement,Oh as useEmbed,Hh as useEmitter,Ih as useGlobal,jh as useImperativeHandle,Nh as useInteractionState,Uh as useKeyboard,Ch as useLayout,vh as useMemo,kh as useModel,zh as useOptions,Dh as usePlugins,Sh as usePromise,Eh as useRect,Bh as useRenderState,qh as useSelections,wh as useStaleLayout,gh as useState,_h as useTheme,Th as useTranslator};
14
+ */,StyledEngineProvider:Wn,ThemeContext:y,css:v,default:function(e,t){return $(e,t)},internal_processStyles:(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},keyframes:S});function Hn(){return Hn=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},Hn.apply(this,arguments)}function Un(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function $n(){return $n=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},$n.apply(this,arguments)}function Gn(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function Vn(e){if(!Gn(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=Vn(e[n])})),t}function Kn(e,t,n={clone:!0}){const r=n.clone?$n({},e):e;return Gn(e)&&Gn(t)&&Object.keys(t).forEach((o=>{"__proto__"!==o&&(Gn(t[o])&&o in e&&Gn(e[o])?r[o]=Kn(e[o],t[o],n):n.clone?r[o]=Gn(t[o])?Vn(t[o]):t[o]:r[o]=t[o])})),r}var Zn=Object.freeze({__proto__:null,default:Kn,isPlainObject:Gn});const Jn=["values","unit","step"],Xn=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)=>Hn({},e,{[t.key]:t.val})),{})};function Yn(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=Un(e,Jn),i=Xn(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 Hn({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 Qn={borderRadius:4};function er(e,t){return t?Kn(e,t,{clone:!1}):e}const tr={xs:0,sm:600,md:900,lg:1200,xl:1536},nr={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${tr[e]}px)`};function rr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||nr;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||nr;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||tr).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function or(e){if("string"!=typeof e)throw new Error(St(7));return e.charAt(0).toUpperCase()+e.slice(1)}var ir=Object.freeze({__proto__:null,default:or});function ar(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 sr(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:ar(e,n)||r,t&&(o=t(o,r,e)),o}function lr(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=ar(e.theme,r)||{};return rr(e,i,(e=>{let r=sr(a,o,e);return e===r&&"string"==typeof e&&(r=sr(a,o,`${t}${"default"===e?"":or(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const cr={m:"margin",p:"padding"},ur={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},dr={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},pr=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!dr[e])return[e];e=dr[e]}const[t,n]=e.split(""),r=cr[t],o=ur[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),hr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],fr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function mr(e,t,n,r){var o;const i=null!=(o=ar(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 gr(e){return mr(e,"spacing",8)}function br(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 yr(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=br(t,n),e)),{})}(pr(n),r);return rr(e,e[n],o)}function vr(e,t){const n=gr(e.theme);return Object.keys(e).map((r=>yr(e,t,r,n))).reduce(er,{})}function Sr(e){return vr(e,hr)}function xr(e){return vr(e,fr)}function Er(e=8){if(e.mui)return e;const t=gr({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 Cr(...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]?er(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function wr(e){return"number"!=typeof e?e:`${e}px solid`}function Lr(e,t){return lr({prop:e,themeKey:"borders",transform:t})}Sr.propTypes={},Sr.filterProps=hr,xr.propTypes={},xr.filterProps=fr;const kr=Lr("border",wr),Rr=Lr("borderTop",wr),_r=Lr("borderRight",wr),Ir=Lr("borderBottom",wr),qr=Lr("borderLeft",wr),Or=Lr("borderColor"),Tr=Lr("borderTopColor"),Ar=Lr("borderRightColor"),Dr=Lr("borderBottomColor"),Pr=Lr("borderLeftColor"),Mr=Lr("outline",wr),Nr=Lr("outlineColor"),zr=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=mr(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:br(t,e)});return rr(e,e.borderRadius,n)}return null};zr.propTypes={},zr.filterProps=["borderRadius"],Cr(kr,Rr,_r,Ir,qr,Or,Tr,Ar,Dr,Pr,zr,Mr,Nr);const jr=e=>{if(void 0!==e.gap&&null!==e.gap){const t=mr(e.theme,"spacing",8),n=e=>({gap:br(t,e)});return rr(e,e.gap,n)}return null};jr.propTypes={},jr.filterProps=["gap"];const Fr=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=mr(e.theme,"spacing",8),n=e=>({columnGap:br(t,e)});return rr(e,e.columnGap,n)}return null};Fr.propTypes={},Fr.filterProps=["columnGap"];const Wr=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=mr(e.theme,"spacing",8),n=e=>({rowGap:br(t,e)});return rr(e,e.rowGap,n)}return null};Wr.propTypes={},Wr.filterProps=["rowGap"];function Br(e,t){return"grey"===t?t:e}Cr(jr,Fr,Wr,lr({prop:"gridColumn"}),lr({prop:"gridRow"}),lr({prop:"gridAutoFlow"}),lr({prop:"gridAutoColumns"}),lr({prop:"gridAutoRows"}),lr({prop:"gridTemplateColumns"}),lr({prop:"gridTemplateRows"}),lr({prop:"gridTemplateAreas"}),lr({prop:"gridArea"}));function Hr(e){return e<=1&&0!==e?100*e+"%":e}Cr(lr({prop:"color",themeKey:"palette",transform:Br}),lr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Br}),lr({prop:"backgroundColor",themeKey:"palette",transform:Br}));const Ur=lr({prop:"width",transform:Hr}),$r=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||tr[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Hr(t)}};return rr(e,e.maxWidth,t)}return null};$r.filterProps=["maxWidth"];const Gr=lr({prop:"minWidth",transform:Hr}),Vr=lr({prop:"height",transform:Hr}),Kr=lr({prop:"maxHeight",transform:Hr}),Zr=lr({prop:"minHeight",transform:Hr});lr({prop:"size",cssProperty:"width",transform:Hr}),lr({prop:"size",cssProperty:"height",transform:Hr});Cr(Ur,$r,Gr,Vr,Kr,Zr,lr({prop:"boxSizing"}));var Jr={border:{themeKey:"borders",transform:wr},borderTop:{themeKey:"borders",transform:wr},borderRight:{themeKey:"borders",transform:wr},borderBottom:{themeKey:"borders",transform:wr},borderLeft:{themeKey:"borders",transform:wr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:wr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:zr},color:{themeKey:"palette",transform:Br},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Br},backgroundColor:{themeKey:"palette",transform:Br},p:{style:xr},pt:{style:xr},pr:{style:xr},pb:{style:xr},pl:{style:xr},px:{style:xr},py:{style:xr},padding:{style:xr},paddingTop:{style:xr},paddingRight:{style:xr},paddingBottom:{style:xr},paddingLeft:{style:xr},paddingX:{style:xr},paddingY:{style:xr},paddingInline:{style:xr},paddingInlineStart:{style:xr},paddingInlineEnd:{style:xr},paddingBlock:{style:xr},paddingBlockStart:{style:xr},paddingBlockEnd:{style:xr},m:{style:Sr},mt:{style:Sr},mr:{style:Sr},mb:{style:Sr},ml:{style:Sr},mx:{style:Sr},my:{style:Sr},margin:{style:Sr},marginTop:{style:Sr},marginRight:{style:Sr},marginBottom:{style:Sr},marginLeft:{style:Sr},marginX:{style:Sr},marginY:{style:Sr},marginInline:{style:Sr},marginInlineStart:{style:Sr},marginInlineEnd:{style:Sr},marginBlock:{style:Sr},marginBlockStart:{style:Sr},marginBlockEnd:{style:Sr},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:jr},rowGap:{style:Wr},columnGap:{style:Fr},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:$r},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"}};function Xr(){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=ar(n,s)||{};if(c)return c(o);return rr(o,t,(t=>{let n=sr(u,l,t);return t===n&&"string"==typeof t&&(n=sr(u,l,`${e}${"default"===t?"":or(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:Jr;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=er(l,e(n,o,i,a));else{const e=rr({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=er(l,e):l[n]=t({sx:o,theme:i})}else l=er(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)}}const Yr=Xr();function Qr(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){return{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}}return n.palette.mode===e?t:{}}Yr.filterProps=["sx"];const eo=["breakpoints","palette","spacing","shape"];function to(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=Un(e,eo),s=Yn(n),l=Er(o);let c=Kn({breakpoints:s,direction:"ltr",components:{},palette:Hn({mode:"light"},r),spacing:l,shape:Hn({},Qn,i)},a);return c.applyStyles=Qr,c=t.reduce(((e,t)=>Kn(e,t)),c),c.unstable_sxConfig=Hn({},Jr,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return Yr({sx:e,theme:this})},c}var no=Object.freeze({__proto__:null,default:to,private_createBreakpoints:Yn,unstable_applyStyles:Qr});function ro(t=null){const n=e.useContext(y);return n&&(r=n,0!==Object.keys(r).length)?n:t;var r}const oo=to();function io(e=oo){return ro(e)}const ao=["sx"];var so=Object.freeze({__proto__:null,default:Yr,extendSxProp:function(e){const{sx:t}=e,n=Un(e,ao),{systemProps:r,otherProps:o}=(e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Jr;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r})(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Gn(n)?Hn({},r,n):r}:Hn({},r,t),Hn({},o,{sx:i})},unstable_createStyleFunctionSx:Xr,unstable_defaultSxConfig:Jr});const lo=e=>e,co=(()=>{let e=lo;return{configure(t){e=t},generate:t=>e(t),reset(){e=lo}}})();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)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=uo(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function po(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=uo(e))&&(r&&(r+=" "),r+=t);return r}const ho={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function fo(e,t,n="Mui"){const r=ho[t];return r?`${n}-${r}`:`${co.generate(e)}-${t}`}function mo(e,t,n="Mui"){const r={};return t.forEach((t=>{r[t]=fo(e,t,n)})),r}var go,bo={exports:{}},yo={},vo=Symbol.for("react.element"),So=Symbol.for("react.portal"),xo=Symbol.for("react.fragment"),Eo=Symbol.for("react.strict_mode"),Co=Symbol.for("react.profiler"),wo=Symbol.for("react.provider"),Lo=Symbol.for("react.context"),ko=Symbol.for("react.server_context"),Ro=Symbol.for("react.forward_ref"),_o=Symbol.for("react.suspense"),Io=Symbol.for("react.suspense_list"),qo=Symbol.for("react.memo"),Oo=Symbol.for("react.lazy"),To=Symbol.for("react.offscreen");function Ao(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case vo:switch(e=e.type){case xo:case Co:case Eo:case _o:case Io:return e;default:switch(e=e&&e.$$typeof){case ko:case Lo:case Ro:case Oo:case qo:case wo:return e;default:return t}}case So:return t}}}go=Symbol.for("react.module.reference"),yo.ContextConsumer=Lo,yo.ContextProvider=wo,yo.Element=vo,yo.ForwardRef=Ro,yo.Fragment=xo,yo.Lazy=Oo,yo.Memo=qo,yo.Portal=So,yo.Profiler=Co,yo.StrictMode=Eo,yo.Suspense=_o,yo.SuspenseList=Io,yo.isAsyncMode=function(){return!1},yo.isConcurrentMode=function(){return!1},yo.isContextConsumer=function(e){return Ao(e)===Lo},yo.isContextProvider=function(e){return Ao(e)===wo},yo.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===vo},yo.isForwardRef=function(e){return Ao(e)===Ro},yo.isFragment=function(e){return Ao(e)===xo},yo.isLazy=function(e){return Ao(e)===Oo},yo.isMemo=function(e){return Ao(e)===qo},yo.isPortal=function(e){return Ao(e)===So},yo.isProfiler=function(e){return Ao(e)===Co},yo.isStrictMode=function(e){return Ao(e)===Eo},yo.isSuspense=function(e){return Ao(e)===_o},yo.isSuspenseList=function(e){return Ao(e)===Io},yo.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===xo||e===Co||e===Eo||e===_o||e===Io||e===To||"object"==typeof e&&null!==e&&(e.$$typeof===Oo||e.$$typeof===qo||e.$$typeof===wo||e.$$typeof===Lo||e.$$typeof===Ro||e.$$typeof===go||void 0!==e.getModuleId)},yo.typeOf=Ao,bo.exports=yo;var Do=bo.exports;const Po=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Mo(e){const t=`${e}`.match(Po);return t&&t[1]||""}function No(e,t=""){return e.displayName||e.name||Mo(e)||t}function zo(e,t,n){const r=No(t);return e.displayName||(""!==r?`${n}(${r})`:n)}var jo=Object.freeze({__proto__:null,default:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return No(e,"Component");if("object"==typeof e)switch(e.$$typeof){case Do.ForwardRef:return zo(e,e.render,"ForwardRef");case Do.Memo:return zo(e,e.type,"memo");default:return}}},getFunctionName:Mo});function Fo(e,t){const n=$n({},t);return Object.keys(e).forEach((r=>{if(r.toString().match(/^(components|slots)$/))n[r]=$n({},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]=$n({},i),Object.keys(o).forEach((e=>{n[r][e]=Fo(o[e],i[e])}))):n[r]=i:n[r]=o}else void 0===n[r]&&(n[r]=e[r])})),n}function Wo(e){const{theme:t,name:n,props:r}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?Fo(t.components[n].defaultProps,r):r}var Bo="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;var Ho=Object.freeze({__proto__:null,default:function(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}});function Uo(){return Uo=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},Uo.apply(this,arguments)}function $o(e){return e&&e.ownerDocument||document}function Go(e,t){"function"==typeof e?e(t):e&&(e.current=t)}let Vo=0;const Ko=e["useId".toString()];class Zo{constructor(){this.currentId=0,this.clear=()=>{0!==this.currentId&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new Zo}start(e,t){this.clear(),this.currentId=setTimeout((()=>{this.currentId=0,t()}),e)}}let Jo=!0,Xo=!1;const Yo=new Zo,Qo={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 ei(e){e.metaKey||e.altKey||e.ctrlKey||(Jo=!0)}function ti(){Jo=!1}function ni(){"hidden"===this.visibilityState&&Xo&&(Jo=!0)}function ri(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return Jo||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!Qo[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}var oi=e.createContext(null);function ii(){return e.useContext(oi)}var ai="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function si(t){const{children:n,theme:r}=t,o=ii(),i=e.useMemo((()=>{const e=null===o?r:function(e,t){if("function"==typeof t)return t(e);return Uo({},e,t)}(o,r);return null!=e&&(e[ai]=null!==o),e}),[r,o]);return jn.jsx(oi.Provider,{value:i,children:n})}const li={};function ci(t,n,r,o=!1){return e.useMemo((()=>{const e=t&&n[t]||n;if("function"==typeof r){const i=r(e),a=t?Hn({},n,{[t]:i}):i;return o?()=>a:a}return Hn({},n,t?{[t]:r}:r)}),[t,n,r,o])}function ui(e){const{children:t,theme:n,themeId:r}=e,o=ro(li),i=ii()||li,a=ci(r,o,n),s=ci(r,i,n,!0);return jn.jsx(si,{theme:s,children:jn.jsx(y.Provider,{value:a,children:t})})}const di=["defaultProps","mixins","overrides","palette","props","styleOverrides"],pi=["type","mode"];var hi,fi={},mi={exports:{}};(hi=mi).exports=function(e){return e&&e.__esModule?e:{default:e}},hi.exports.__esModule=!0,hi.exports.default=hi.exports;var gi=mi.exports,bi=V(xt),yi=V(Ho),vi=gi;Object.defineProperty(fi,"__esModule",{value:!0}),fi.alpha=Ti,fi.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=Ri(e),a=Ri(t),s=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return Ii({type:"rgb",values:s})},fi.colorChannel=void 0;var Si=fi.darken=Ai;fi.decomposeColor=Ri,fi.emphasize=function(e,t=.15){return Oi(e)>.5?Ai(e,t):Di(e,t)};var xi=fi.getContrastRatio=function(e,t){const n=Oi(e),r=Oi(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};fi.getLuminance=Oi,fi.hexToRgb=ki,fi.hslToRgb=qi;var Ei=fi.lighten=Di;fi.private_safeAlpha=function(e,t,n){try{return Ti(e,t)}catch(t){return e}},fi.private_safeColorChannel=void 0,fi.private_safeDarken=function(e,t,n){try{return Ai(e,t)}catch(t){return e}},fi.private_safeEmphasize=function e(t,n,r){try{return e(t,n)}catch(e){return t}},fi.private_safeLighten=function(e,t,n){try{return Di(e,t)}catch(t){return e}},fi.recomposeColor=Ii,fi.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=Ri(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var Ci=vi(bi),wi=vi(yi);function Li(e,t=0,n=1){return(0,wi.default)(e,t,n)}function ki(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function Ri(e){if(e.type)return e;if("#"===e.charAt(0))return Ri(ki(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,Ci.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,Ci.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const _i=e=>{const t=Ri(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};fi.colorChannel=_i;function Ii(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 qi(e){e=Ri(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])),Ii({type:s,values:l})}function Oi(e){let t="hsl"===(e=Ri(e)).type||"hsla"===e.type?Ri(qi(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Ti(e,t){return e=Ri(e),t=Li(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Ii(e)}function Ai(e,t){if(e=Ri(e),t=Li(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 Ii(e)}function Di(e,t){if(e=Ri(e),t=Li(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 Ii(e)}fi.private_safeColorChannel=(e,t)=>{try{return _i(e)}catch(t){return e}};var Pi={black:"#000",white:"#fff"};var Mi={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 Ni={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 zi={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 ji={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 Fi={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 Wi={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 Bi={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 Hi=["mode","contrastThreshold","tonalOffset"],Ui={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:Pi.white,default:Pi.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}},$i={text:{primary:Pi.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:Pi.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 Gi(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=Ei(e.main,o):"dark"===t&&(e.dark=Si(e.main,i)))}function Vi(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=wt(e,Hi),i=e.primary||function(e="light"){return"dark"===e?{main:Fi[200],light:Fi[50],dark:Fi[400]}:{main:Fi[700],light:Fi[400],dark:Fi[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:Ni[200],light:Ni[50],dark:Ni[400]}:{main:Ni[500],light:Ni[300],dark:Ni[700]}}(t),s=e.error||function(e="light"){return"dark"===e?{main:zi[500],light:zi[300],dark:zi[700]}:{main:zi[700],light:zi[400],dark:zi[800]}}(t),l=e.info||function(e="light"){return"dark"===e?{main:Wi[400],light:Wi[300],dark:Wi[700]}:{main:Wi[700],light:Wi[500],dark:Wi[900]}}(t),c=e.success||function(e="light"){return"dark"===e?{main:Bi[400],light:Bi[300],dark:Bi[700]}:{main:Bi[800],light:Bi[500],dark:Bi[900]}}(t),u=e.warning||function(e="light"){return"dark"===e?{main:ji[400],light:ji[300],dark:ji[700]}:{main:"#ed6c02",light:ji[500],dark:ji[900]}}(t);function d(e){return xi(e,$i.text.primary)>=n?$i.text.primary:Ui.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Ct({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(St(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(St(12,t?` (${t})`:"",JSON.stringify(e.main)));return Gi(e,"light",o,r),Gi(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},h={dark:$i,light:Ui};return Kn(Ct({common:Ct({},Pi),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:Mi,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},h[t]),o)}const Ki=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const Zi={textTransform:"uppercase"},Ji='"Roboto", "Helvetica", "Arial", sans-serif';function Xi(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=Ji,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,Ki),h=o/14,f=d||(e=>e/c*h+"rem"),m=(e,t,n,o,i)=>{return Ct({fontFamily:r,fontWeight:e,fontSize:f(t),lineHeight:n},r===Ji?{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,Zi),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Zi),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Kn(Ct({htmlFontSize:c,pxToRem:f,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},g),p,{clone:!1})}function Yi(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}const Qi=["none",Yi(0,2,1,-1,0,1,1,0,0,1,3,0),Yi(0,3,1,-2,0,2,2,0,0,1,5,0),Yi(0,3,3,-2,0,3,4,0,0,1,8,0),Yi(0,2,4,-1,0,4,5,0,0,1,10,0),Yi(0,3,5,-1,0,5,8,0,0,1,14,0),Yi(0,3,5,-1,0,6,10,0,0,1,18,0),Yi(0,4,5,-2,0,7,10,1,0,2,16,1),Yi(0,5,5,-3,0,8,10,1,0,3,14,2),Yi(0,5,6,-3,0,9,12,1,0,3,16,2),Yi(0,6,6,-3,0,10,14,1,0,4,18,3),Yi(0,6,7,-4,0,11,15,1,0,4,20,3),Yi(0,7,8,-4,0,12,17,2,0,5,22,4),Yi(0,7,8,-4,0,13,19,2,0,5,24,4),Yi(0,7,9,-4,0,14,21,2,0,5,26,4),Yi(0,8,9,-5,0,15,22,2,0,6,28,5),Yi(0,8,10,-5,0,16,24,2,0,6,30,5),Yi(0,8,11,-5,0,17,26,2,0,6,32,5),Yi(0,9,11,-5,0,18,28,2,0,7,34,6),Yi(0,9,12,-6,0,19,29,2,0,7,36,6),Yi(0,10,13,-6,0,20,31,3,0,8,38,7),Yi(0,10,13,-6,0,21,33,3,0,8,40,7),Yi(0,10,14,-6,0,22,35,3,0,8,42,7),Yi(0,11,14,-7,0,23,36,3,0,9,44,8),Yi(0,11,15,-7,0,24,38,3,0,9,46,8)],ea=["duration","easing","delay"],ta={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},na={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ra(e){return`${Math.round(e)}ms`}function oa(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function ia(e){const t=Ct({},ta,e.easing),n=Ct({},na,e.duration);return Ct({getAutoHeightDuration:oa,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return wt(r,ea),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:ra(o)} ${i} ${"string"==typeof a?a:ra(a)}`)).join(",")}},e,{easing:t,duration:n})}var aa={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const sa=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function la(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=wt(e,sa);if(e.vars)throw new Error(St(18));const s=Vi(r),l=to(e);let c=Kn(l,{mixins:(u=l.breakpoints,d=n,Ct({toolbar:{minHeight:56,[u.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[u.up("sm")]:{minHeight:64}}},d)),palette:s,shadows:Qi.slice(),typography:Xi(s,i),transitions:ia(o),zIndex:Ct({},aa)});var u,d;return c=Kn(c,a),c=t.reduce(((e,t)=>Kn(e,t)),c),c.unstable_sxConfig=Ct({},Jr,null==a?void 0:a.unstable_sxConfig),c.unstable_sx=function(e){return Yr({sx:e,theme:this})},c}var ca=la();function ua(){const e=io(ca);return e[Et]||e}function da({props:e,name:t}){return function({props:e,name:t,defaultTheme:n,themeId:r}){let o=io(n);return r&&(o=o[r]||o),Wo({theme:o,name:t,props:e})}({props:e,name:t,defaultTheme:ca,themeId:Et})}var pa,ha={},fa={exports:{}};var ma,ga={exports:{}};var ba=V(Bn),ya=V(Zn),va=V(ir),Sa=V(jo),xa=V(no),Ea=V(so),Ca=gi;Object.defineProperty(ha,"__esModule",{value:!0});var wa=ha.default=function(e={}){const{themeId:t,defaultTheme:n=Na,rootShouldForwardProp:r=Ma,slotShouldForwardProp:o=Ma}=e,i=e=>(0,Oa.default)((0,ka.default)({},e,{theme:ja((0,ka.default)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,_a.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:s,slot:l,skipVariantsResolver:c,skipSx:u,overridesResolver:d=Fa(za(l))}=a,p=(0,Ra.default)(a,Da),h=void 0!==c?c:l&&"Root"!==l&&"root"!==l||!1,f=u||!1;let m=Ma;"Root"===l||"root"===l?m=r:l?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,_a.default)(e,(0,ka.default)({shouldForwardProp:m,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,Ia.isPlainObject)(e)?r=>Wa(e,(0,ka.default)({},r,{theme:ja({theme:r.theme,defaultTheme:n,themeId:t})})):e,y=(r,...o)=>{let a=b(r);const l=o?o.map(b):[];s&&d&&l.push((e=>{const r=ja((0,ka.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[s]||!r.components[s].styleOverrides)return null;const o=r.components[s].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=Wa(n,(0,ka.default)({},e,{theme:r}))})),d(e,i)})),s&&!h&&l.push((e=>{var r;const o=ja((0,ka.default)({},e,{defaultTheme:n,themeId:t}));return Wa({variants:null==o||null==(r=o.components)||null==(r=r[s])?void 0:r.variants},(0,ka.default)({},e,{theme:o}))})),f||l.push(i);const c=l.length-o.length;if(Array.isArray(r)&&c>0){const e=new Array(c).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const u=g(a,...l);return e.muiName&&(u.muiName=e.muiName),u};return g.withConfig&&(y.withConfig=g.withConfig),y}},La=ha.shouldForwardProp=Ma;ha.systemDefaultTheme=void 0;var ka=Ca((pa||(pa=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(fa)),fa.exports)),Ra=Ca((ma||(ma=1,function(e){e.exports=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.exports.__esModule=!0,e.exports.default=e.exports}(ga)),ga.exports)),_a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=Pa(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(ba),Ia=ya;Ca(va),Ca(Sa);var qa=Ca(xa),Oa=Ca(Ea);const Ta=["ownerState"],Aa=["variants"],Da=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Pa(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(Pa=function(e){return e?n:t})(e)}function Ma(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Na=ha.systemDefaultTheme=(0,qa.default)(),za=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function ja({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function Fa(e){return e?(t,n)=>n[e]:null}function Wa(e,t){let{ownerState:n}=t,r=(0,Ra.default)(t,Ta);const o="function"==typeof e?e((0,ka.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>Wa(e,(0,ka.default)({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,Ra.default)(o,Aa);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,ka.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,ka.default)({ownerState:n},r,n)):e.style))})),t}return o}const Ba=wa({themeId:Et,defaultTheme:ca,rootShouldForwardProp:e=>La(e)&&"classes"!==e}),Ha=["theme"];function Ua(e){let{theme:t}=e,n=wt(e,Ha);const r=t[Et];return jn.jsx(ui,Ct({},n,{themeId:r?Et:void 0,theme:r||t}))}function $a(){return $a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$a.apply(this,arguments)}function Ga(e,t){return Ga=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ga(e,t)}function Va(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ga(e,t)}function Ka(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Za=mo("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"]),Ja={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 Xa={green:"#009845",greenPale:"#0AAF54",red:"#DC423F",redPale:"#F05551",blue:"#3F8AB3",bluePale:"#469DCD",grey100:"#ffffff",grey98:"#FBFBFB",grey95:"#F2F2F2",grey90:"#E6E6E6",grey85:"#D9D9D9",grey55:"#8C8C8C",grey45:"#737373",grey30:"#4D4D4D",grey25:"#404040",grey20:"#333333",grey15:"#262626",grey10:"#1A1A1A",grey5:"#0E0E0E",grey0:"#000000"},Ya={mode:"light",palette:{primary:{main:Xa.grey25,contrastText:Xa.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:Xa.grey25,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)",light:Xa.grey100,dark:Xa.grey0},action:{active:"#545454",hover:"rgba(0, 0, 0, 0.03)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.05)",disabled:"rgba(0, 0, 0, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},background:{paper:Xa.grey100,default:Xa.grey100,lightest:Xa.grey100,lighter:Xa.grey98,darker:Xa.grey95,darkest:Xa.grey90},custom:{focusBorder:Xa.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)",disabledBackground:Xa.grey45,disabledContrastText:Xa.grey100},selected:{main:Xa.green,alternative:"#E4E4E4",excluded:"#BEBEBE",selectedExcluded:"#BEBEBE",possible:Xa.grey100,selectedContrastText:Xa.grey100,mainContrastText:Xa.grey100,alternativeContrastText:Xa.grey25,excludedContrastText:Xa.grey25,selectedExcludedContrastText:Xa.grey100,possibleContrastText:Xa.grey0},btn:{normal:"rgba(255, 255, 255, 0.6)",hover:"rgba(0, 0, 0, 0.03)",active:"rgba(0, 0, 0, 0.1)",disabled:"rgba(255, 255, 255, 0.6)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.15)"}}},Qa={mode:"dark",palette:{primary:{main:Xa.grey20,contrastText:Xa.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:Xa.grey100,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)",light:Xa.grey100,dark:Xa.grey0},action:{active:Xa.grey100,hover:"rgba(255, 255, 255, 0.05)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.03)",disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},divider:"rgba(0,0,0,0.3)",background:{default:"#323232",paper:"#323232",lightest:Xa.grey25,lighter:Xa.grey20,darker:Xa.grey15,darkest:Xa.grey10},custom:{focusBorder:Xa.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)",disabledBackground:Xa.grey45,disabledContrastText:Xa.grey100},selected:{main:Xa.green,alternative:Xa.grey20,excluded:Xa.grey10,selectedExcluded:Xa.grey10,possible:Xa.grey80,selectedContrastText:Xa.grey100,mainContrastText:Xa.grey100,alternativeContrastText:Xa.grey100,excludedContrastText:Xa.grey100,selectedExcludedContrastText:Xa.grey100,possibleContrastText:Xa.grey0},btn:{normal:"rgba(255, 255, 255, 0.15)",hover:"rgba(255, 255, 255, 0.25)",active:"rgba(0, 0, 0, 0.6)",disabled:"rgba(255, 255, 255, 0.15)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.30)"}}},es={},ts=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(Za.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(Za.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(Za.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(Za.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function ns(e){let t=Ya,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=Qa));const r=JSON.stringify(t);if(es[r])return es[r];const o={palette:Z(Z({type:t.mode},Ja.palette),t.palette),typography:Z({},Ja.typography),shadows:Ja.shadows,props:Z({},Ja.props),shape:Z({},Ja.shape)};return es[r]=la(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:i={},styleOverrides:a={}}=e,s=Ct({},wt(e,di),{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=Er(e.spacing);const l=Yn(e.breakpoints||{}),c=s.spacing;s.mixins=Ct({gutters:(e={})=>Ct({paddingLeft:c(2),paddingRight:c(2)},e,{[l.up("sm")]:Ct({paddingLeft:c(3),paddingRight:c(3)},e[l.up("sm")])})},n);const{type:u,mode:d}=o,p=wt(o,pi),h=d||u||"light";return s.palette=Ct({text:{hint:"dark"===h?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:h,type:h},p),s}(Z(Z({},o),{},{overrides:ts(o)}))),es[r].name=n,es[r]}co.configure((e=>"njs-".concat("3ebc","-").concat(e.replace("Mui",""))));var rs=t.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null}),os=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[is,as]=os({}),[ss,ls]=os({}),[cs,us]=os({});function ds(e){if(!e.session)return[];const[t]=is(),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{model:t,objectSelections:r}=us.get(n)||{};t&&(await t.endSelections(e),us.clear(n),r.emit("deactivated"))},o={begin:async e=>{var o;let{model:i,paths:a,accept:s=!0,objectSelections:l}=e;if(l===(null===(o=us.get(n))||void 0===o?void 0:o.objectSelections))return;r(s),us.set(n,{model:i,objectSelections:l});const c=Array.isArray(a)?a:[a],u=async e=>{try{await i.beginSelections(c),us.set(n,{model:i,objectSelections:l})}catch(r){6003!==r.code||e?us.clear(n):(await t.abortModal(s),u(!0))}};await u()},end:r};ls.set(n,o);const i={model:t,isInModal:()=>!!us.get(n),isModal(e){var t;return e?(null===(t=us.get(n))||void 0===t?void 0:t.objectSelections)===e:!!us.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 ps={active:!0,select:!0,passive:!0,edit:!1};function hs(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(ps).forEach((e=>{void 0!==r[e]?(t[e]=r[e],n[e]=!r[e]):(t[e]=ps[e],n[e]=!ps[e])})),e.constraints=n,e.interactions=t}const fs=o(((e,o)=>{let{initialContext:s,app:l,renderCallback:c}=e;const[u]=ds(l),[d,p]=n(s),[h,f]=n(),{theme:m}=i((()=>({theme:ns(h)})),[h]),[g,b]=n([]);return r((()=>{c&&c()}),[]),a(o,(()=>({setComps(e){b([...e])},setMuiThemeName:f,setContext:e=>p((t=>JSON.stringify(t)!==JSON.stringify(e)?e:t)),getAppSelections:()=>u})),[]),t.createElement(Wn,{injectFirst:!0},t.createElement(Ua,{theme:m},t.createElement(rs.Provider,{value:d},g)))}));const[ms,gs]=os({}),[bs,ys]=os({}),[vs,Ss]=os({}),[xs,Es]=os({}),[Cs,ws]=os({}),[,Ls]=os({}),ks=e=>{let{type:t,value:n}=e;const r=Ls.get(n.id);Ls.set(n.id,{});const o=()=>{ys.clear(n.id),ws.set(n.id,{}),ws.dispatch(!0)},i=()=>{n.removeListener("changed",o),gs.clear(n.id),ys.clear(n.id),Ss.clear(n.id),Es.clear(n.id),ws.clear(n.id),Ls.clear(n.id)};if("SET"===t)r||(n.on("changed",o),n.once("closed",(()=>{i()})));return i},[Rs,_s]=os({},ks),Is=e=>{const t=ks({type:"SET",value:e});return()=>{t(),_s.clear(e.id)}};function qs(e,t){const o=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[i]=Rs(),[a]=vs(),[s,l]=n();for(var c=arguments.length,u=new Array(c>2?c-2:0),d=2;d<c;d++)u[d-2]=arguments[d];return r((()=>{if(!t)return;(async()=>{let n=a.get(o);n||(n=t.createSessionObject(e),a.set(o,n));const r=await n;i.set(o,r),l(r)})()}),[t,...u]),[s]}const Os={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function Ts(e){return qs(Os,e)}const As=e=>new Promise((t=>{setTimeout(t,e)})),Ds=(e,t)=>{const{rpcResultStore:n,key:r,method:o}=t;let i;switch(t.type){case"INVALID":i=Z(Z({},e),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":i={result:Z({},t.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":i=Z(Z({},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 Ps(e,t){const n=e?"".concat(e.id):null,[o]=ms(),[i,a]=s(Ds,n?o.get(n):null),[l]=Cs(),[c]=bs();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{await As(0);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 Ms(e){return Ps(e,"getLayout")}function Ns(e){return Ps(e,"getAppLayout")}function zs(){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 js(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function Fs(e){let{size:n,style:r={},viewBox:o="0 0 16 16",shapes:i=[]}=e;const a=Z({fontSize:js(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,Y({key:n},o))}))))}var Ws=e=>Fs((e=>Z(Z({},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 Bs=e=>Fs((e=>Z(Z({},e),{},{shapes:[{type:"path",attrs:{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10ZM3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0v1.652ZM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9Zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0Z"}}]}))(e));const Hs=e=>Z(Z({},e),{},{viewBox:"0 0 12 16",shapes:[{type:"path",attrs:{d:"M2.5,7 L11,7 C11.5522847,7 12,7.44771525 12,8 L12,15 C12,15.5522847 11.5522847,16 11,16 L1,16 C0.44771525,16 0,15.5522847 0,15 L0,8 C0,7.44771525 0.44771525,7 1,7 L1,4.98151367 C1,2.23029964 3.23857625,0 6,0 C8.4241995,0 10.4454541,1.71883353 10.9029715,4 L9.34209114,4 C8.9671727,2.54028848 7.9088888,1.5 6,1.5 C3.54860291,1.5 2.5,3.21561511 2.5,5.33193359 L2.5,7 Z"}}]});var Us=e=>Fs(Hs(e));var $s=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}}(),Gs=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},Vs=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=Gs(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},Gs(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),$s(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 Ks=["S","XS"],Zs=e=>e.reduce(((e,t)=>e.concat(t)));function Js(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[t]=e;return n=t.qState,!!Ks.includes(n)&&t.qElemNumber;var n}));return t.filter((e=>!1!==e))}));return Zs(t)}async function Xs(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 Ys="RowColumn",Qs={row:"".concat(Ys,"-row"),rowBorderBottom:"".concat(Ys,"-rowBorderBottom"),column:"".concat(Ys,"-column"),fieldRoot:"".concat(Ys,"-fieldRoot"),cell:"".concat(Ys,"-cell"),labelText:"".concat(Ys,"-labelText"),labelDense:"".concat(Ys,"-labelDense"),highlighted:"".concat(Ys,"-highlighted"),checkboxLabel:"".concat(Ys,"-checkboxLabel"),icon:"".concat(Ys,"-icon"),S:"".concat(Ys,"-S"),XS:"".concat(Ys,"-XS"),A:"".concat(Ys,"-A"),X:"".concat(Ys,"-X"),frequencyCount:"".concat(Ys,"-frequencyCount"),barContainer:"".concat(Ys,"-barContainer"),bar:"".concat(Ys,"-bar"),barSelected:"".concat(Ys,"-barSelected"),barWithCheckbox:"".concat(Ys,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(Ys,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(Ys,"-excludedTextWithCheckbox")},el=".".concat(Qs.fieldRoot),tl=e=>!(null!=e&&e.metaKey||null!=e&&e.ctrlKey);function nl(e){var t;let{selectionState:n,selections:o,checkboxes:i=!1,doc:a=document,loaderRef:s}=e;const c=d({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});r((()=>{var e;if(null===(e=s.current)||void 0===e||null===(e=e._listRef)||void 0===e||!e._outerRef)return;const t=e=>e.preventDefault(),n=e=>e.preventDefault(),r=e=>e.preventDefault(),o=s.current._listRef._outerRef;return o.addEventListener("gesturestart",t),o.addEventListener("gesturechange",n),o.addEventListener("gestureend",r),()=>{o.removeEventListener("gesturestart",t),o.removeEventListener("gesturechange",n),o.removeEventListener("gestureend",r)}}),[null===(t=s.current)||void 0===t||null===(t=t._listRef)||void 0===t?void 0:t._outerRef]);const u=async()=>{var e;return(null===(e=n.selectDisabled)||void 0===e||!e.call(n))&&(n.setSelectableValuesUpdating(),Xs({selections:o,elemNumbers:c.current.elemNumbers,isSingleSelect:n.isSingleSelect,toggle:c.current.toggle}))},p=(e,t)=>{const r=function(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[{qElemNumber:t}]=e;return t}));return t}));return Zs(t)}(n.enginePages);return function(e,t){if(!e)return[];if(e.length<=1)return e;const{min:n,max:r}=function(e,t){let n=1/0,r=-1/0;return e.forEach((e=>{const o=t.indexOf(e);n=o<n?o:n,r=o>r?o:r})),{min:n,max:r}}(e,t);return t.slice(n,r+1)}([e,t],r)},h=e=>{const{startElemNumber:t}=c.current;if(t===e)return;const r=p(c.current.startElemNumber,e);n.updateItems(r,!0,c.current.elemNumbers)},f=l((e=>{if(n.selectDisabled())return;const t=+e.target.getAttribute("data-n"),r=!n.isSingleSelect&&tl(e.nativeEvent);c.current.elemNumbers=[t],c.current.toggle=r,r||n.clearItemStates(!0),n.updateItem(t),c.current.active=!1,u()}),[]),m=l((e=>{if(0!==e.button||n.selectDisabled())return;const t=+e.currentTarget.getAttribute("data-n"),r=!n.isSingleSelect&&tl(e);c.current.isRange=!1,c.current.startElemNumber=t,c.current.elemNumbers=[t],c.current.toggle=r,c.current.active=!0,r||n.clearItemStates(!0),n.updateItem(t),n.isSingleSelect&&(c.current.active=!1,u()),((e,t)=>{(e.ctrlKey||e.metaKey)&&(t.focus(),e.preventDefault())})(e,e.currentTarget)}),[]),g=l((e=>{if(0===e.button&&c.current.active){if(c.current.active=!1,c.current.isRange){const t=+e.currentTarget.getAttribute("data-n");h(t)}u()}}),[]),b=l((e=>{0===e.button&&c.current.active&&(c.current.active=!1,u())}),[]),y=l((e=>{if(!c.current.active)return;c.current.isRange||(c.current.isRange=!0,n.isSelected(c.current.startElemNumber)||(n.updateItem(c.current.startElemNumber,!0),c.current.elemNumbers=[]));const t=+e.currentTarget.getAttribute("data-n");h(t)}),[]),v=l((e=>{var t,r;if(c.current.active||c.current.isRange||n.isSingleSelect||e.touches.length<=1)return;if(e.touches.length>2)return void u();const o=Number(null===(t=e.touches[0].target)||void 0===t||null===(t=t.closest(el))||void 0===t?void 0:t.getAttribute("data-n")),i=Number(null===(r=e.touches[1].target)||void 0===r||null===(r=r.closest(el))||void 0===r?void 0:r.getAttribute("data-n"));if(Number.isNaN(o)||Number.isNaN(o))return void u();c.current.active=!0;p(o,i).length<7&&(c.current.touchRangeSmall=!0),c.current.elemNumbers=[],c.current.touchElemNumbers=[o,i]}),[]),S=l((()=>{if(2!==c.current.touchElemNumbers.length)return;if(c.current.touchRangeSmall)return c.current.touchRangeSmall=!1,c.current.touchElemNumbers=[],void(c.current.active=!1);const[e,t]=c.current.touchElemNumbers;c.current.startElemNumber=e,h(t),c.current.touchElemNumbers=[],c.current.active=!1,c.current.toggle=!0,u()}),[]);r((()=>(a.addEventListener("mouseup",b),()=>{a.removeEventListener("mouseup",b)})),[b]),r((()=>{const e=()=>{n.clearItemStates(!1)},t=()=>{n.clearItemStates(!0),n.triggerStateChanged()};return o.on("clearItemStates",e),o.on("deactivated",e),o.on("cleared",t),()=>{o.removeListener("clearItemStates",e),o.removeListener("deactivated",e),o.removeListener("cleared",t)}}),[o]);const x={};return i?Object.assign(x,{onChange:f}):Object.assign(x,{onMouseUp:g,onMouseDown:m,onMouseEnter:y,onTouchStart:v,onTouchEnd:S}),{interactionEvents:x,select:async function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(null!==(e=n.selectDisabled)&&void 0!==e&&e.call(n))return!1;const a=!n.isSingleSelect&&tl(null==i?void 0:i.nativeEvent);a||n.clearItemStates(!0);const s=[];return n.updateItems(t,r,s),n.setSelectableValuesUpdating(),Xs({selections:o,elemNumbers:r?s:t,isSingleSelect:n.isSingleSelect,toggle:a})}}}const rl=e=>Z(Z({},e),{},{shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]});var ol=e=>Fs(rl(e));const il=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,al=e=>e?"A"===e.qState:null,sl=e=>{let{cell:t,checkboxes:n}=e;return(al(t)||il(t))&&n},ll=e=>{let{column:t,histogram:n,checkboxes:r,cell:o,showGray:i}=e;const a=[t?Qs.column:Qs.row];return n||a.push(Qs.rowBorderBottom),o?(r||("XS"===o.qState?a.push(i?Qs.XS:Qs.S):"S"===o.qState||"L"===o.qState?a.push(Qs.S):i&&al(o)?a.push(Qs.A):i&&il(o)&&a.push(Qs.X)),a):[]},cl=9,ul=4,dl=7,pl=12+2*(dl+1),hl=80,fl=10,ml=150,gl=56,bl=20,yl="-",vl=32,Sl=29,xl=20,El=4,Cl=e=>e.filter((e=>!!e)).join(" ").trim(),wl=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,"%")},Ll=e=>e||yl,kl=["backgroundColor"],Rl=e=>{let{sizes:t,frequencyMode:n,isGridMode:r,freqHitsValue:o}=e;if("P"===n)return"".concat(t.freqMinWidth,"px");return r&&!o?"max-content":"25%"},_l=e=>{let{sizes:t,frequencyMode:n,isGridMode:r}=e;return r?"max-content":"P"===n?t.freqMinWidth:t.freqMaxWidth},Il=e=>{let{theme:t,styles:n,selectedState:r}=e;const o=n.selections,i=o[r],a=o["".concat(r,"Contrast")];return{background:i,color:a,"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder),outline:"none"},"& $cell":{paddingRight:0},["& .".concat(Qs.labelText)]:{color:a},["& .".concat(Qs.icon)]:{color:a}}},ql={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},Ol=Ba("div",{shouldForwardProp:e=>!["checkboxes","isGridMode","isGridCol","dense","direction","sizes","frequencyMode","freqHitsValue","layout","styles"].includes(e)})((e=>{let{theme:t,checkboxes:n,isGridMode:r,isGridCol:o,dense:i,direction:a,sizes:s,frequencyMode:l,freqHitsValue:c,styles:u}=e;const d=Q(u.content,kl),p=Il({theme:t,styles:u,selectedState:"selected"}),h=Il({theme:t,styles:u,selectedState:"excluded"});return{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"},"& .value":{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"}},["& .".concat(Qs.row)]:Z({flexWrap:"nowrap"},u.content),["& .".concat(Qs.rowBorderBottom)]:{borderBottom:o?"none":"1px solid ".concat(t.palette.divider),borderLeft:o?"1px solid ".concat(t.palette.divider):"none"},["& .".concat(Qs.column)]:Z({flexWrap:"nowrap",borderRight:"1px solid ".concat(t.palette.divider)},u.content),["& .".concat(Qs.cell)]:{zIndex:2,display:"flex",alignItems:"center",flexGrow:1,minWidth:n?"52px":"26px",flexBasis:n?"auto":"max-content",paddingLeft:"".concat(cl,"px"),paddingRight:0},["& .".concat(Qs.labelText)]:Z(Z({lineHeight:"16px",userSelect:"none",paddingRight:"1px"},ql),d),["& .".concat(Qs.labelDense)]:{fontSize:12},["& .".concat(Qs.highlighted)]:{backgroundColor:"#FFC72A"},["& .".concat(Qs.checkboxLabel)]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":Z(Z({},ql),{},{display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"})},["& .".concat(Qs.icon)]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24,color:d.color},["& .".concat(Qs.S)]:Z(Z({},p),{},{border:r?"none":void 0}),["& .".concat(Qs.XS)]:Z(Z({},Il({theme:t,styles:u,selectedState:"selectedExcluded"})),{},{border:r?"none":void 0}),["& .".concat(Qs.A)]:Z(Z({},Il({theme:t,styles:u,selectedState:"alternative"})),{},{border:r?"none":void 0}),["& .".concat(Qs.X)]:Z(Z({},h),{},{border:r?"none":void 0}),["& .".concat(Qs.frequencyCount)]:Z(Z({zIndex:3,justifyContent:"flex-end"},ql),{},{flex:"0 0 ".concat(Rl({sizes:s,frequencyMode:l,isGridMode:r,freqHitsValue:c})),minWidth:!r&&"P"!==l&&c?s.freqMinWidth:"max-content",maxWidth:_l({sizes:s,frequencyMode:l,isGridMode:r}),textAlign:"rtl"===a?"left":"right",paddingLeft:"rtl"!==a?"8px":0}),["&.".concat(Qs.barContainer)]:{height:"100%",display:"flex",alignItems:"center"},["& .".concat(Qs.bar)]:{height:i?"16px":"20px",position:"absolute",zIndex:1,alignSelf:"center",left:4,width:"calc(100% - ".concat(8,"px)"),display:"flex",alignItems:"center","& .bar-filled":{border:"".concat(1,"px solid"),borderColor:"#D9D9D9",transition:"width 0.2s",backgroundColor:"#FAFAFA",height:"100%"}},["& .".concat(Qs.barSelected)]:{"& .bar-filled":{opacity:"30%",background:t.palette.background.lighter}},["& .".concat(Qs.barWithCheckbox)]:{left:"rtl"===a?4:29,width:"calc(100% - ".concat(33,"px)")},["& .".concat(Qs.barSelectedWithCheckbox)]:{"& .bar-filled":{opacity:"30%",background:p.background||"#BFE5D0",borderColor:p.background||"#BFE5D0"}},["& .".concat(Qs.excludedTextWithCheckbox)]:{color:"#828282",fontStyle:"italic"}}}));var Tl=t.memo(Ol);const Al="ListBoxCheckbox",Dl={cbIcon:"".concat(Al,"-cbIcon"),cbIconChecked:"".concat(Al,"-cbIconChecked"),cbIconExcluded:"".concat(Al,"-cbIconExcluded"),cbIconAlternative:"".concat(Al,"-cbIconAlternative"),checkbox:"".concat(Al,"-checkbox"),dense:"".concat(Al,"-dense")},Pl=Ba(x,{shouldForwardProp:e=>"styles"!==e})((e=>{let{styles:t}=e;return{["& .".concat(Dl.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(Dl.cbIconChecked)]:{borderRadius:3,backgroundColor:t.selections.selected,backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))","&:before":{display:"block",width:16,height:16,backgroundImage:"url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23fff'/%3E%3C/svg%3E\")",content:'""'}},["& .".concat(Dl.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:t.selections.excluded},["& .".concat(Dl.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:t.selections.alternative},["&.".concat(Dl.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(Dl.dense)]:{padding:"4px 8px"}}})),Ml=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 Nl(e){let{onChange:n,checked:r,label:o,dense:i,excluded:a,styles:s,showGray:l=!0,dataN:c}=e;return t.createElement(Pl,{edge:"start",onChange:n,checked:r,disableRipple:!0,className:[Dl.checkbox,i&&Dl.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":o,"data-n":c},name:o,icon:Ml(Dl,l,a),checkedIcon:t.createElement("span",{className:Dl.cbIconChecked}),styles:s})}const zl={radioButton:"".concat("ListBoxRadioButton","-radioButton")},jl=Ba(E,{shouldForwardProp:e=>!["dense","styles"].includes(e)})((e=>{let{checked:t,styles:n,dense:r}=e;return{["&.".concat(zl.radioButton)]:{right:"5px",color:t?n.selections.selected:n.content.color,padding:r?"0px 0px 0px 12px":void 0,backgroundColor:"transparent"}}}));function Fl(e){let{onChange:n,checked:r,label:o,dense:i,dataN:a,styles:s}=e;return t.createElement(jl,{checked:r,onChange:n,value:o,name:o,className:zl.radioButton,inputProps:{"data-n":a},disableRipple:!0,size:i?"small":"medium",dense:i,styles:s})}function Wl(e){let{label:n,dense:r,showGray:o=!0,checkboxes:i,cell:a,valueTextAlign:s}=e;return t.createElement(C,{component:"span",variant:"body2",className:Cl([Qs.labelText,r&&Qs.labelDense,o&&sl({cell:a,checkboxes:i})&&Qs.excludedTextWithCheckbox]),align:s,dir:"auto"},t.createElement("span",null,n))}function Bl(e){let{label:n,color:r,dense:o,showGray:i,checkboxes:a,cell:s,valueTextAlign:l}=e;return"string"==typeof n?t.createElement(Wl,{label:n,color:r,dense:o,showGray:i,checkboxes:a,cell:s,valueTextAlign:l}):n}function Hl(e){let{onChange:n,label:r,qElemNumber:o,isSelected:i,dense:a,cell:s,isGridCol:l,showGray:c,isSingleSelect:u,checkboxes:d,valueTextAlign:p,styles:h}=e;const f=t.createElement(Nl,{onChange:n,label:r,checked:i,dense:a,excluded:il(s),isGridCol:l,showGray:c,dataN:o,styles:h}),m=t.createElement(Fl,{onChange:n,label:r,checked:i,dense:a,dataN:o,styles:h});return t.createElement(w,{control:u?m:f,className:Qs.checkboxLabel,label:t.createElement(Bl,{label:r,dense:a,showGray:c,checkboxes:d,cell:s,valueTextAlign:p}),key:o})}function Ul(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?Qs.highlighted:""},r)}));return t.createElement(Wl,{label:a,dense:r,showGray:o,checkboxes:i})}function $l(e){let{onChange:n,labels:r,checkboxes:o,dense:i,showGray:a,qElemNumber:s,isSelected:l,cell:c,isGridCol:u,isSingleSelect:d,valueTextAlign:p,styles:h}=e;const f=t.createElement(Ul,{labels:r,dense:i,showGray:a,checkboxes:o});return o?t.createElement(Hl,{onChange:n,label:f,qElemNumber:s,isSelected:l,dense:i,cell:c,isGridCol:u,showGray:a,isSingleSelect:d,checkboxes:o,valueTextAlign:p,styles:h}):f}var Gl=t.memo((function(e){let{onChange:n,label:r,qElemNumber:o,isSelected:i,dense:a,cell:s,isGridCol:l,showGray:c,isSingleSelect:u,checkboxes:d,valueTextAlign:p,styles:h}=e;return d?t.createElement(Hl,{onChange:n,label:r,qElemNumber:o,isSelected:i,dense:a,cell:s,isGridCol:l,showGray:c,isSingleSelect:u,checkboxes:d,valueTextAlign:p,styles:h}):t.createElement(Wl,{label:r,dense:a,showGray:!0,checkboxes:d,cell:s,valueTextAlign:p})}));function Vl(e){let{qFrequency:n,histogram:r,checkboxes:o,isSelected:i,frequencyMax:a}=e;if(!(n&&r&&Ll(n)!==yl))return;const s=wl({qFrequency:n,checkboxes:o,frequencyMax:a});return t.createElement(L,{className:Cl([Qs.bar,o&&Qs.barWithCheckbox,i&&(o?Qs.barSelectedWithCheckbox:Qs.barSelected)])},t.createElement(L,{className:"bar-filled",width:s}))}function Kl(e){let{cell:n,checkboxes:r,dense:o,showGray:i}=e;const a=Ll(null==n?void 0:n.qFrequency);return t.createElement(k,{item:!0,style:{display:"flex",alignItems:"center"},className:Qs.frequencyCount,"aria-label":a,title:a},t.createElement(C,{noWrap:!0,color:"inherit",variant:"body2",className:Cl([o&&Qs.labelDense,Qs.labelText,i&&sl({cell:n,checkboxes:r})&&Qs.excludedTextWithCheckbox])},a))}function Zl(e){let{dataLayout:t,layoutOrder:n,itemPadding:r,fillHeight:o}=e;if("singleColumn"===t)return{height:"100%",width:"100%"};switch(n){case"row":case"column":return{height:o?"100%":"calc(100% - ".concat(r,"px)"),width:"calc(100% - ".concat(2*r,"px)"),position:"absolute",left:4};default:return{}}}const Jl=Ba(k,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction","fillHeight"].includes(e)})((e=>{let{dataLayout:t,layoutOrder:n,itemPadding:r,cellPaddingRight:o,direction:i,fillHeight:a}=e;const s="padding".concat("rtl"===i?"Left":"Right");return{["&.".concat(Qs.fieldRoot)]:Z(Z({},Zl({dataLayout:t,layoutOrder:n,itemPadding:r,fillHeight:a})),{},{[s]:o?"8px":void 0})}}));const Xl={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 Yl(e){var n;let{layout:r}=e;const{translator:o}=p(rs),{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 Ql=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===Ql.ARROW_UP||e===Ql.ARROW_DOWN||e===Ql.ARROW_LEFT||e===Ql.ARROW_RIGHT}),ec=e=>+e.getAttribute("data-n"),tc=e=>{const t=null==e?void 0:e.querySelector(".search input");return null==t||t.focus(),t},nc=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},rc=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===Ql.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 oc(e){var o,a;let{index:s,rowIndex:c,columnIndex:u,style:d,data:p}=e;const{onChange:h,onClick:f,onMouseDown:m,onMouseUp:g,onMouseEnter:b,onTouchStart:y,onTouchEnd:v,pages:S,isLocked:x,column:E=!1,checkboxes:C=!1,textAlign:w,direction:L,layoutOptions:R={},freqIsAllowed:_,isSingleSelect:I,actions:q,frequencyMax:O="",histogram:T=!1,keyboard:A,showGray:D=!0,showTick:P=!0,columnCount:M=1,rowCount:N=1,dataOffset:z,deducedFrequencyMode:j,focusListItems:F,listCount:W,sizes:B,translator:H,showSearch:U,isModal:$,contentFontStyle:G,styles:V,fillHeight:K}=p,{dense:J=!1,dataLayout:X="singleColumn",layoutOrder:Y}=R,{itemPadding:Q}=B;let ee,te;const ne={max:null,currentIndex:null};if("number"==typeof c&&"number"==typeof u){"row"===Y?(ee=c*M+u,ne.max=N,ne.currentIndex=c):(ee=u*N+c,ne.max=M,ne.currentIndex=u);const e=0;te=Z(Z({},d),{},{height:K?"100%":d.height,left:e+(0===u?d.left:Number(d.left)+u*e),top:0===c?d.top:Number(d.top)+c*e})}else ee=s,ne.max=W,ne.currentIndex=s,te=Z({},d);ee+=z;const[re,oe]=n(null);r((()=>{null!==re&&(0===ne.currentIndex&&F.first&&(re.focus(),F.setFirst(!1)),ne.currentIndex===ne.max-1&&F.last&&(re.focus(),F.setLast(!1)))}),[re,F.first,F.last]);const ie=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===Ql.ARROW_LEFT||e===Ql.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=rc({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 b=e=>{g=e};return e=>{let u;const{currentTarget:d,nativeEvent:p}=e,{keyCode:h,shiftKey:f=!1,ctrlKey:y=!1,metaKey:v=!1}=p;switch(h){case Ql.TAB:{const e=d.closest(".listbox-container"),t=c();if(d.classList.add("last-focused"),f){tc(e)||(t?l.focusSelection():l.blur(!0));break}t?l.focusSelection():(d.blur(),l.blur());break}case Ql.SHIFT:b(!0);break;case Ql.SPACE:t([ec(d)],!1,e);break;case Ql.ARROW_DOWN:case Ql.ARROW_RIGHT:u=m(h,d,!0),f&&u&&(g&&(t([ec(d)],!0),b(!1)),t([ec(u)],!0));break;case Ql.ARROW_UP:case Ql.ARROW_LEFT:u=m(h,d,!1),f&&u&&(g&&(t([ec(d)],!0),b(!1)),t([ec(u)],!0));break;case Ql.ENTER:o();break;case Ql.ESCAPE:if(!c())return;i();break;case Ql.HOME:if(s.setFirst(!0),y){null==a||a("overflowStart");break}null==a||a("start");break;case Ql.END:if(s.setLast(!0),y){null==a||a("overflowEnd");break}null==a||a("end");break;case Ql.A:if(y||v){n();break}return;case Ql.F:if(y||v){r();break}return;default:return}u&&u.focus(),e.preventDefault(),e.stopPropagation()}}(Z(Z({},q),{},{focusListItems:F,keyboard:A,isModal:$,rowCount:N,columnCount:M,rowIndex:c,columnIndex:u,layoutOrder:Y})),[q,null==A?void 0:A.innerTabStops,N,M,c,u,Y]),ae=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:S,cellIndex:ee})),[S,ee]),se="S"===(null==ae?void 0:ae.qState)||"XS"===(null==ae?void 0:ae.qState)||"L"===(null==ae?void 0:ae.qState)||"XL"===(null==ae?void 0:ae.qState),le=i((()=>ll({column:E,histogram:T,checkboxes:C,cell:ae,showGray:D})),[null==ae?void 0:ae.qState,T,J,C]),ce=l((e=>{e.preventDefault()}),[C]),ue=i((()=>ae&&function(e){let{direction:t,cell:n,textAlign:r}=e;const o=!["NaN",void 0].includes(null==n?void 0:n.qNum);let i;return i=!r||r.auto?o?"rtl"===t?"left":"right":{rtl:"right",ltr:"left"}[t]:(null==r?void 0:r.align)||"left",["left","center","right"].includes(i)?i:"left"}({direction:L,cell:ae,textAlign:w})),[L,ae,w]);if(!ae)return null;const de="grid"===X&&"column"===Y,pe=null!==(o=null==ae?void 0:ae.qText)&&void 0!==o?o:"";let he;if(null!==(a=ae.qHighlightRanges)&&void 0!==a&&null!==(a=a.qRanges)&&void 0!==a&&a.length){const e=ae.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[];he=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}(pe,e)}const fe={alignItems:"center",display:"flex",fontSize:"8px"},me="rtl"===L,ge={display:"flex",alignItems:"center",flexGrow:1,paddingLeft:me?8:C?0:void 0,paddingRight:C?0:me?8:0,justifyContent:ue,textAlign:ue},be=0===s,ye=se&&x,ve=!C&&se&&!x,Se=!C&&P,xe=C||!P,Ee=function(e){let{translator:t,label:n,qState:r,isSelected:o,currentIndex:i,maxIndex:a,showSearch:s}=e;const l=Xl[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:pe,qState:ae.qState,currentIndex:ne.currentIndex,maxIndex:ne.max,showSearch:U}),Ce=!me&&"right"===ue||me&&"left"===ue;return t.createElement(Tl,{className:Qs.barContainer,checkboxes:C,style:te,styles:V,isGridCol:de,isGridMode:"grid"===X,dense:J,direction:L,sizes:B,frequencyMode:j,freqHitsValue:Ce,contentFontStyle:G,"data-testid":"listbox.item"},t.createElement(Jl,{role:"row","aria-label":Ee,"aria-selected":se,"aria-setsize":ne.max,"aria-rowindex":ne.currentIndex,ref:oe,container:!0,dataLayout:X,cellPaddingRight:xe,layoutOrder:Y,itemPadding:Q,gap:0,className:Cl(["value",...le]),classes:{root:Qs.fieldRoot},onClick:f,onMouseDown:m,onMouseUp:g,onMouseEnter:b,onKeyDown:ie,onTouchStart:y,onTouchEnd:v,onContextMenu:ce,tabIndex:be&&A.innerTabStops?0:-1,"data-n":null==ae?void 0:ae.qElemNumber,direction:L,fillHeight:K},(null==ae?void 0:ae.qFrequency)&&t.createElement(Vl,{qFrequency:null==ae?void 0:ae.qFrequency,histogram:T,checkboxes:C,isSelected:se,frequencyMax:O}),t.createElement(k,{item:!0,style:ge,className:Cl([Qs.cell,Qs.selectedCell]),title:"".concat(pe)},he?t.createElement($l,{onChange:h,labels:he,checkboxes:C,dense:J,showGray:D,qElemNumber:ae.qElemNumber,isSelected:se,cell:ae,isGridCol:de,isSingleSelect:I,valueTextAlign:ue,styles:V}):t.createElement(Gl,{onChange:h,label:pe,qElemNumber:ae.qElemNumber,isSelected:se,dense:J,cell:ae,isGridCol:de,showGray:D,isSingleSelect:I,checkboxes:C,valueTextAlign:ue,styles:V})),_&&t.createElement(Kl,{cell:ae,checkboxes:C,dense:J,showGray:D}),Se&&t.createElement(k,{item:!0,className:Qs.icon},ye&&t.createElement(Bs,{style:fe,size:"small"}),ve&&t.createElement(ol,{style:fe,size:"small"}))))}var ic=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function ac(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||ic(r)&&ic(o)))return!1;var r,o;return!0}function sc(e,t){var n;void 0===t&&(t=ac);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 lc="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function cc(e){cancelAnimationFrame(e.id)}function uc(e,t){var n=lc();var r={id:requestAnimationFrame((function o(){lc()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var dc=-1;function pc(e){if(void 0===e&&(e=!1),-1===dc||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),dc=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return dc}var hc=null;function fc(e){if(void 0===e&&(e=!1),null===hc||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?hc="positive-descending":(t.scrollLeft=1,hc=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),hc}return hc}var mc=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function gc(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,b=e.shouldResetStyleCacheOnItemSizeChange,y=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=g(r.props,Ka(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:Ka(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=sc((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=sc((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(b&&s,b&&l,b&&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=sc((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(fc()){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&&cc(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=uc(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}Va(t,e),t.getDerivedStateFromProps=function(e,t){return bc(e,t),y(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,b=pc();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 y=a(this.props,this._instanceProps),v=s(this.props,this._instanceProps)>h?b:0,S=y>d?b: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(fc()){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&&cc(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?mc:p,m=e.outerElementType,g=e.outerTagName,b=e.rowCount,y=e.style,v=e.useIsScrolling,S=e.width,x=this.state.isScrolling,E=this._getHorizontalRangeToRender(),C=E[0],w=E[1],L=this._getVerticalRangeToRender(),k=L[0],R=L[1],_=[];if(r>0&&b)for(var I=k;I<=R;I++)for(var q=C;q<=w;q++)_.push(h(t,{columnIndex:q,data:d,isScrolling:v?x:void 0,key:f({columnIndex:q,data:d,rowIndex:I}),rowIndex:I,style:this._getItemStyle(I,q)}));var O=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:$a({position:"relative",height:i,width:S,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},y)},h(c||u||"div",{children:_,ref:l,style:{height:O,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,b=m.scrollLeft,y=m.scrollTop,v=m.scrollUpdateWasRequested,S=m.verticalScrollDirection;this._callOnScroll(b,y,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 bc=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},yc=function(e,t){return e};function vc(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,Ka(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Ka(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=sc((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=sc((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=sc((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(fc()){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<a?"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&&cc(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=uc(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}Va(t,e),t.getDerivedStateFromProps=function(e,t){return Sc(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?pc():0:l.scrollHeight>l.clientHeight?pc():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(fc()){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&&cc(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?yc:d,f=e.layout,m=e.outerElementType,g=e.outerTagName,b=e.style,y=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],k=[];if(c>0)for(var R=w;R<=L;R++)k.push(h(t,{data:u,key:p(R,u),index:R,isScrolling:y?S:void 0,style:this._getItemStyle(R)}));var _=r(this.props,this._instanceProps);return h(m||g||"div",{className:n,onScroll:E,ref:this._outerRefSetter,style:$a({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},h(s||l||"div",{children:k,ref:a,style:{height:x?"100%":_,pointerEvents:S?"none":void 0,width:x?_:"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 Sc=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},xc=gc({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}}),Ec=vc({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 Cc="#BBB",wc="#f1f1f1",Lc={styledScrollbars:"".concat("ListBox","-styledScrollbars")};const kc=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStopIndex)||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex,Rc=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStartIndex)||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex,_c=(e,t,n,r)=>e===t*n+r+n;function Ic(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=kc(t,c),d=c?r.column:r.row,p=(c?o:i)>=d,h=_c(s,u,c?i:o,l),f=!!l&&Rc(t,c),m=p&&!h&&u>=d-1||f||a.state.show;a.set(m)}const{StyledFixedSizeList:qc,StyledFixedSizeGrid:Oc}=function(){const e=e=>({scrollbarColor:"".concat(Cc," ").concat(wc),overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:wc},"&::-webkit-scrollbar-thumb":{backgroundColor:Cc,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:$(Ec,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(Lc.styledScrollbars)]:e(n)}})),StyledFixedSizeGrid:$(xc,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(Lc.styledScrollbars)]:e(n)}}))}}();const Tc=(e,t)=>{const n=(()=>{const e=document.createDocumentFragment(),t=document.createElement("canvas");return e.appendChild(t),t.getContext("2d")})();if(n.font=t,Array.isArray(e))return Math.max(...e.map((e=>n.measureText(e).width)));const r=n.measureText(e);return Math.ceil(r.width||0)},Ac=e=>{const t=i((()=>"text"in e?e:{}),[e]);return i((()=>Tc(t.text,t.font||"12px Source Sans Pro")),[t.text,t.font])};function Dc(e){if(!e)return"";const t="number"==typeof e?e:e.qListObject.qDimensionInfo.qApprMaxGlyphCount;return Array(t).fill("M").join("")}function Pc(e){let{isGridMode:t,dense:n}=e;let r=n?xl:t?vl:Sl;return t&&(r+=El),r}function Mc(e){let{layout:t,width:n,height:r,listCount:o,count:i,freqIsAllowed:a,checkboxes:s,styles:l}=e;const{layoutOptions:c={}}=t||{},{layoutOrder:u,maxVisibleRows:d={},maxVisibleColumns:p,dense:h,dataLayout:f}=c,{fontSize:m="12px",fontFamily:g="Source sans pro"}=(null==l?void 0:l.content)||{},b="".concat(m," ").concat(g),y=Ac({text:Dc(t),font:b}),v=Ac({text:Dc(5),font:b}),S=Ac({text:Dc(8),font:b}),x=a?v:0,E=s?bl:0;let C=gl+x+E;!s&&C>=hl&&(C+=bl);let w,L,k,R,_=y+18+x+E;!s&&_>=hl&&(_+=bl),_=Math.min(ml,Math.max(_,C));const I=Pc({isGridMode:"grid"===f,dense:h}),q=null!=r?r:8*I;if(u){let e=n;"row"===u?(w={overflowX:"hidden"},e+=2*El,({rowCount:R,columnWidth:k,columnCount:L}=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-fl;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),l=Math.max(l,1);const u=s/l;return{rowCount:Math.ceil(n/l),columnWidth:u,columnCount:l}}({maxVisibleColumns:p,listCount:o,containerWidth:e,columnAutoWidth:_,itemMinWidth:C}))):(w={overflowY:"hidden"},({rowCount:R,columnWidth:k,columnCount:L}=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),t=Math.max(t,1);const d=Math.ceil(o/t);return{columnWidth:Math.max(a,s/d,l),columnCount:d,rowCount:t}}({maxVisibleRows:d,itemHeight:I,listCount:o,listHeight:q,columnAutoWidth:_,containerWidth:e,itemMinWidth:C})))}L=("singleColumn"===f?1:L)||1,R=("singleColumn"===f?i:R)||o;const O=c.dense?838e3:577e3;R=Math.min(R,O);const T=Math.floor(3355e4/k);L=Math.min(L,T)||1;const A=R*L,D=Math.min(o,A);return{columnCount:L,columnWidth:k,rowCount:R,overflowStyling:w,itemHeight:I,listHeight:q,listWidth:n,scrollBarWidth:fl,count:i,listCount:D,maxCount:{row:O,column:T},itemPadding:El,textWidth:y,freqMinWidth:v,freqMaxWidth:S}}const Nc=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[zc,jc]=os({});function Fc(e){const t="".concat(e.id),[n]=zc();return{setStoreValue:(e,r)=>n.set("".concat(t,"/").concat(e),r),getStoreValue:e=>n.get("".concat(t,"/").concat(e))}}const Wc=Ba(C,{shouldForwardProp:e=>!["width","dense"].includes(e)})((e=>{let{width:t,dense:n}=e;return Z({minWidth:"".concat(t,"px"),textAlign:"center",fontSize:"".concat(n?"12px":"14px")},n&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:t})}));function Bc(e){let{width:n,text:r,dense:o,tooltip:i}=e;const{translator:a}=p(rs);return t.createElement(R,{title:i?a.get(r):""},t.createElement(Wc,{width:n,dense:o,component:"div",variant:"body1",py:"12px"},a.get(r)))}var Hc={},Uc={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(Uc);var $c=Uc.exports,Gc={};function Vc(e){return fo("MuiSvgIcon",e)}mo("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Kc=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Zc=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${or(t)}`,`fontSize${or(n)}`]},Vc,r)},Jc=Ba("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${or(n.color)}`],t[`fontSize${or(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,c,u,d,p,h,f;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(o=o.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(a=i.pxToRem)?void 0:a.call(i,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(c=e.typography)||null==(u=c.pxToRem)?void 0:u.call(c,35))||"2.1875rem"}[t.fontSize],color:null!=(d=null==(p=(e.vars||e).palette)||null==(p=p[t.color])?void 0:p.main)?d:{action:null==(h=(e.vars||e).palette)||null==(h=h.action)?void 0:h.active,disabled:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.disabled,inherit:void 0}[t.color]}})),Xc=e.forwardRef((function(t,n){const r=da({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewBox:p="0 0 24 24"}=r,h=wt(r,Kc),f=e.isValidElement(o)&&"svg"===o.type,m=Ct({},r,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:f}),g={};u||(g.viewBox=p);const b=Zc(m);return jn.jsxs(Jc,Ct({as:s,className:po(b.root,i),focusable:"false",color:c,"aria-hidden":!d||void 0,role:d?"img":void 0,ref:n},g,h,f&&o.props,{ownerState:m,children:[f?o.props.children:o,d?jn.jsx("title",{children:d}):null]}))}));Xc.muiName="SvgIcon";const Yc={configure:e=>{co.configure(e)}};var Qc,eu=Object.freeze({__proto__:null,capitalize:or,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 jn.jsx(Xc,Ct({"data-testid":`${n}Icon`,ref:r},e,{children:t}))}return r.muiName=Xc.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){var r,o;return e.isValidElement(t)&&-1!==n.indexOf(null!=(r=t.type.muiName)?r:null==(o=t.type)||null==(o=o._payload)||null==(o=o.value)?void 0:o.muiName)},ownerDocument:$o,ownerWindow:function(e){return $o(e).defaultView||window},requirePropFactory:function(e,t){return()=>null},setRef:Go,unstable_ClassNameGenerator:Yc,unstable_useEnhancedEffect:Bo,unstable_useId:function(t){if(void 0!==Ko){const e=Ko();return null!=t?t:e}return function(t){const[n,r]=e.useState(t),o=t||n;return e.useEffect((()=>{null==n&&(Vo+=1,r(`mui-${Vo}`))}),[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 Bo((()=>{n.current=t})),e.useRef(((...e)=>(0,n.current)(...e))).current},useForkRef:function(...t){return e.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{Go(t,e)}))}),t)},useIsFocusVisible:function(){const t=e.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",ei,!0),t.addEventListener("mousedown",ti,!0),t.addEventListener("pointerdown",ti,!0),t.addEventListener("touchstart",ti,!0),t.addEventListener("visibilitychange",ni,!0))}),[]),n=e.useRef(!1);return{isFocusVisibleRef:n,onFocus:function(e){return!!ri(e)&&(n.current=!0,!0)},onBlur:function(){return!!n.current&&(Xo=!0,Yo.start(100,(()=>{Xo=!1})),n.current=!1,!0)},ref:t}}}),tu=V(eu);var nu=$c;Object.defineProperty(Hc,"__esModule",{value:!0});var ru=Hc.default=void 0,ou=nu((Qc||(Qc=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=tu}(Gc)),Gc)),iu=jn;ru=Hc.default=(0,ou.default)((0,iu.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");const au=Ba(_)((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}})),su=Ba("div")((()=>({paddingLeft:"6px",flexGrow:1}))),lu=Ba("div")((e=>{let{dense:t}=e;return{display:"flex",alignItems:"".concat(t?"center":"flex-start")}})),cu=Ba(ru)((()=>({fontSize:"14px"})));function uu(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(au,{left:l,style:{maxWidth:s}},t.createElement(su,null,t.createElement(Bc,{text:n,dense:o,width:c,tooltip:u})),t.createElement(lu,{dense:o},a&&t.createElement(I,{"aria-label":"close",onClick:()=>r()},t.createElement(cu,null))))}const du=(e,t)=>e.qListObject.qDimensionInfo.qCardinal-t;const pu=80;function hu(e){let{itemWidth:t,layout:n,frequencyMode:r}=e;const o=t>pu,{frequencyEnabled:i=!1}=(null==n?void 0:n.qListObject)||{},a=!["N",void 0].includes(r);return!(!o||!a&&!i)}const fu=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,"))")},mu=(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=fu(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}};const gu=["isLoadingData"],bu=100,yu=q("div")((()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}})));function vu(e){var o,i;let{model:a,app:s,constraints:c,layout:u,selections:h,selectionState:f,direction:m,checkboxes:g,height:b,width:y,frequencyMode:v,update:S,fetchStart:x,postProcessPages:E,calculatePagesHeight:C=!1,keyboard:w={},showGray:L=!0,scrollState:k,keyScroll:R={state:{},reset:()=>{}},currentScrollIndex:_={set:()=>{}},renderedCallback:I,onCtrlF:q,showSearch:O,isModal:T,styles:A}=e;const{translator:D}=p(rs),[P,M]=n(!1),N=!(!u||!u.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:z=g,histogram:j}=null!=u?u:{},[F,W]=n(""),B=d(null),H=d({queue:[],validPages:!1,dataOffset:0}),U=d({pages:[]}),{frequencyMax:$,awaitingFrequencyMax:G}=mu(s,u),V=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:a,fetchStart:x,scrollTimeout:0,postProcessPages:E,listData:U}),K=Q(V,gu),{getStoreValue:J,setStoreValue:X}=Fc(a),ee=l(K.loadMoreItems,[u]),[te,ne]=n({show:!1,dismissed:!1}),[re,oe]=n([]);null!=K&&K.pages&&f.update({setPages:oe,pages:K.pages,isSingleSelect:N,layout:u});const ie=null==u?void 0:u.qListObject.qDimensionInfo.qCardinal;(null!=K&&K.pages.length&&!G||0===ie)&&(null==I||I());const ae=l((e=>{if(null==re||!re.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=re.filter((e=>t(e)))[0];return n&&t(n)}),[u,re]),{interactionEvents:se,select:le}=nl({selectionState:f,selections:h,checkboxes:z,doc:document,loaderRef:B}),{layoutOptions:ce={}}=u||{};let ue=!0;ce.dataLayout&&(ue="singleColumn"===ce.dataLayout||"row"===(null==ce?void 0:ce.layoutOrder));const de="grid"===(null==ce?void 0:ce.dataLayout),pe=e=>{const t=Z({},ue?{rowIndex:e}:{columnIndex:e}),n=de?t:e;B.current._listRef.scrollToItem(n)},he=()=>{if(H.current.queue=[],H.current.validPages=!1,B.current){B.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===R.state.scrollPosition;if(u&&u.qSelectionInfo.qInSelections||e)return void(e&&R.reset());H.current.dataOffset=0,pe(0)}};S&&S.call(null,he),r((()=>{k&&!P&&B.current&&(B.current._listRef.scrollToItem(k.initScrollPos),M(!0))}),[B.current]),r((()=>{he()}),[u,H.current.dataOffset]);let fe=bu;const me="grid"!==ce.dataLayout,ge=null==u||null===(o=u.qListObject.qSize)||void 0===o?void 0:o.qcy,be=function(e){let{pages:t,minimumBatchSize:n,count:r,calculatePagesHeight:o=!1}=e;return(null!=t&&t.length&&o?Nc({pages:t,minimumBatchSize:n,count:r}):r)||0}({pages:re,minimumBatchSize:fe,count:ge,calculatePagesHeight:C,layoutOptions:ce,model:a});let ye=hu({itemWidth:y,layout:u,frequencyMode:v});const ve=function(e){return e.some((e=>{let{qMatrix:t}=e;return t.some((e=>{var t;let[n]=e;return!(null===(t=n.qFrequency)||void 0===t||!t.match("%"))}))}))?"P":"-"}(re),Se=Mc({layout:u,width:y,height:b,listCount:be,count:ge,freqIsAllowed:ye,checkboxes:z,styles:A});Se.columnWidth&&(ye=hu({itemWidth:Se.columnWidth,layout:u,frequencyMode:v}));const{listCount:xe}=Se;X("listCount",xe);const Ee=J("inputText");r((()=>{if(Ee){const e=function(e){let t;switch(e){case 0:t="Listbox.NoMatchesForYourTerms";break;case 1:t="ScreenReader.OneSearchResult";break;default:t="ScreenReader.ManySearchResults"}return t}(xe),t=D.get(e,[xe]);W(t)}}),[Ee,xe]);const Ce=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=du(i,o.listCount),t=i.qListObject.qDimensionInfo.qCardinal,s=!0}return{scrollIndex:t,offset:l,triggerRerender:s}}({position:e,isRow:ue,sizes:Se,layout:u,offset:H.current.dataOffset});H.current.dataOffset=n,r&&f.triggerStateChanged(),pe(t)};r((()=>{const e=R.state;e.up?pe(_.state.start-e.up):e.down?pe(_.state.stop+e.down):e.scrollPosition&&Ce(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&R.reset()}),[R.state.up,R.state.down,R.state.scrollPosition]);const{textAlign:we}=(null==u?void 0:u.qListObject.qDimensionInfo)||{},[Le,ke]=n({first:!1,last:!1}),{List:Re,Grid:_e}=function(e){let{layout:n,width:r,checkboxes:o,local:i,isVertical:a,pages:s,selectionState:l,interactionEvents:c,deducedFrequencyMode:u,histogram:d,isSingleSelect:p,select:h,selectAll:f,onCtrlF:m,textAlign:g,selections:b,keyboard:y,showGray:v,scrollState:S,direction:x,sizes:E,listCount:C,overflowDisclaimer:w,setScrollPosition:L,focusListItems:k,setCurrentScrollIndex:R,constraints:_,frequencyMax:I,freqIsAllowed:q,translator:O,showSearch:T,isModal:A,styles:D}=e;const{layoutOptions:P={}}=n||{},{columnWidth:M,listHeight:N,itemHeight:z,rowCount:j,columnCount:F}=E||{},W=("grid"===P.dataLayout?M:r)>hl,B={direction:"rtl"===x?"rtl":"ltr",useIsScrolling:!0,className:Lc.styledScrollbars},H=null==n?void 0:n.qListObject.qDimensionInfo.qLocked,U=N<=z,$=Z(Z({isLocked:H,column:!a,pages:s},H||l.selectDisabled()?{}:c),{},{checkboxes:o,layoutOptions:P,deducedFrequencyMode:u,freqIsAllowed:q,isSingleSelect:p,textAlign:g,sizes:E,actions:{select:h,confirm:()=>null==b?void 0:b.confirm.call(b),cancel:()=>null==b?void 0:b.cancel.call(b),setScrollPosition:L,selectAll:f,onCtrlF:m},frequencyMax:I,histogram:d,keyboard:y,showGray:v,showTick:W,dataOffset:i.current.dataOffset,focusListItems:k,direction:x,translator:O,showSearch:T,isModal:A,styles:D,fillHeight:U});return{List:e=>{let{onItemsRendered:o,ref:a}=e;return i.current.listRef=a,t.createElement(qc,Y({},B,{dataTestid:"fixed-size-list",scrollDisabled:null==_?void 0:_.active,height:N,width:r,itemCount:C,itemData:Z(Z({},$),{},{listCount:C}),itemSize:z,onItemsRendered:e=>{var t;R({start:e.visibleStartIndex,stop:e.visibleStopIndex}),S&&S.setScrollPos(e.visibleStopIndex),Ic({renderProps:e,layoutOptions:P,maxCount:E.maxCount,columnCount:F,rowCount:j,overflowDisclaimer:w,qCardinal:null==n||null===(t=n.qListObject)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.qCardinal,dataOffset:i.current.dataOffset}),o(Z({},e))},ref:a}),oc)},Grid:e=>{let{onItemsRendered:o,ref:a}=e;const{overflowStyling:s,scrollBarWidth:l}=E,{layoutOrder:c}=P||{},u=Math.min(N,j*z+l);return i.current.listRef=a,t.createElement(Oc,Y({},B,{dataTestid:"fixed-size-grid",scrollDisabled:null==_?void 0:_.active,height:u,width:r,columnCount:F,columnWidth:M,rowCount:j,rowHeight:z,style:Z({},s),itemData:Z(Z({},$),{},{column:void 0,columnCount:F,rowCount:j}),onItemsRendered:e=>{var t;const r="row"===c;R({start:r?e.visibleRowStartIndex:e.visibleColumnStartIndex,stop:r?e.visibleRowStopIndex:e.visibleColumnStopIndex});const a=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});Ic({renderProps:e,layoutOptions:P,maxCount:E.maxCount,columnCount:F,rowCount:j,overflowDisclaimer:w,qCardinal:null==n||null===(t=n.qListObject)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.qCardinal,dataOffset:i.current.dataOffset}),o(a)},ref:a}),oc)}}}({direction:m,layout:u,height:b,width:y,checkboxes:z,deducedFrequencyMode:ve,histogram:j,keyboard:w,showGray:L,interactionEvents:se,select:le,selectAll:()=>{f.clearItemStates(!1),a.selectListObjectAll("/qListObjectDef")},onCtrlF:q,textAlign:we,isVertical:me,pages:re,selectionState:f,isSingleSelect:N,selections:h,scrollState:k,local:H,sizes:Se,listCount:xe,overflowDisclaimer:{state:te,set:e=>ne((t=>Z(Z({},t),{},{show:e})))},setScrollPosition:Ce,focusListItems:{first:Le.first,setFirst:e=>ke((t=>Z(Z({},t),{},{first:e}))),last:Le.last,setLast:e=>ke((t=>Z(Z({},t),{},{last:e})))},setCurrentScrollIndex:_.set,constraints:c,frequencyMax:$,freqIsAllowed:ye,translator:D,showSearch:O,isModal:T,styles:A}),{columnWidth:Ie,listHeight:qe,itemHeight:Oe}=Se||{};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:y,columnWidth:Ie,listHeight:qe,itemHeight:Oe})),t.createElement(yu,null,t.createElement(Yl,{className:"screenReaderOnly",layout:u}),t.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},F),!xe&&ie>0&&t.createElement(Bc,{width:y,text:"Listbox.NoMatchesForYourTerms"}),t.createElement(Vs,{isItemLoaded:ae,itemCount:xe||1,loadMoreItems:ee.with({minimumBatchSize:fe}),threshold:0,minimumBatchSize:fe,ref:B,role:"grid"},me?Re:_e),te.show&&!te.dismissed&&t.createElement(uu,{text:"Listbox.ItemsOverflow",dismiss:()=>ne((e=>Z(Z({},e),{},{dismissed:!0}))),parentWidth:null==B||null===(i=B.current)||void 0===i||null===(i=i._listRef)||void 0===i||null===(i=i.props)||void 0===i?void 0:i.width,dense:null==ce?void 0:ce.dense}))}const Su=e=>Z(Z({},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"}}]}),xu=e=>Z(Z({},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"}}]}),Eu=e=>Z(Z({},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"}}]}),Cu=e=>Z(Z({},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 wu=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:Su,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:Eu,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:xu,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:Cu,enabled:()=>["qAlternative","qExcluded"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectExcluded("/qListObjectDef")}}].filter(Boolean)};const Lu=e=>Z(Z({},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 ku(e){const t=ua(),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 Ru={className:"njs-cell-action"},_u=t.forwardRef(((e,n)=>{let{ariaExpanded:r=!1,item:o,addAnchor:i=!1}=e;const a=ua(),{hidden:s,disabled:l,style:c,hasSvgIconShape:u}=ku(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(I,{ref:i?null:n,title:o.label,onClick:o.action,onKeyDown:h,onKeyUp:f,disabled:l,style:c,className:[Ru.className,m].join(" "),size:"large",disableRipple:!0,"aria-expanded":r,"aria-controls":"moreMenuList","data-testid":m},u&&Fs(o.getSvgIconShape()),i&&t.createElement("div",{ref:n,style:{bottom:-d,right:0,position:"absolute",width:"100%",height:0}}))})),Iu=e=>Z(Z({},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"}}]}),qu=e=>Z(Z({},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 Ou=e=>Fs(qu(e));const Tu="njs-action-toolbar-more",Au={icon:"".concat("More","-icon")},Du=Ba(O)((e=>{let{theme:t}=e;return{pointerEvents:"none",["& .".concat(Au.icon," *")]:{color:t.palette.text.primary}}}));function Pu(e){let{item:n,autoFocus:r,onActionClick:o=(()=>{})}=e;const{hidden:i,disabled:a,hasSvgIconShape:s}=ku(n);return i?null:t.createElement(A,{autoFocus:r,title:n.label,onClick:()=>{n.action(),o()},disabled:a,tabindex:"0"},s&&t.createElement(D,{className:Au.icon},Fs(n.getSvgIconShape())),t.createElement(C,{noWrap:!0},n.label))}const Mu=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(Du,Y({},a,{onClose:l,ref:n,open:o,anchorEl:i.current,getContentAnchorEl:null,container:i.current,disablePortal:!0,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:Tu},paper:{style:Z({pointerEvents:"auto",maxWidth:"250px"},s)}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"}}),t.createElement(T,{id:"moreMenuList"},r.map(((e,n)=>t.createElement(Pu,{key:n,item:e,autoFocus:n===u,onActionClick:l})))))})),Nu=e=>{const t=e.closest("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");return Array.from(n).indexOf(e)},zu=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 ju="ActionsToolbar",Fu={item:"".concat(ju,"-item"),itemSpacing:"".concat(ju,"-itemSpacing")},Wu=Ba(O)((e=>{let{theme:t}=e;return{["& .".concat(Fu.itemSpacing)]:{padding:t.spacing(0,.25)}}})),Bu={className:"njs-action-toolbar-popover"},Hu=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(k,{item:!0,container:!0,gap:0,flexDirection:s?"row-reverse":"row",wrap:"nowrap",className:r},i.map(((e,r)=>t.createElement(k,{item:!0,key:e.key,className:"".concat(Fu.itemSpacing," ").concat(Fu.item)},t.createElement(_u,{ariaExpanded:o,key:e.key,item:e,ref:0===r?n:null,addAnchor:a}))))):null})),Uu={pointerEvents:"none"},$u={vertical:"bottom",horizontal:"right"};function Gu(e){var o,a;let{show:s=!0,actions:l=[],maxItems:c=3,selections:u={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},extraItems:h,more:f={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{}},popover:m={show:!1,anchorEl:null},focusHandler:g=null,actionsRefMock:b=null,isRtl:y,autoConfirm:v=!1,layout:S}=e;const x=function(e){let{api:t,layout:n,onConfirm:r=(()=>{}),onCancel:o=(()=>{}),onKeyDeactivate:i=(()=>{})}=e;const{translator:a}=p(rs);return[{key:"clear",type:"icon-button",label:a.get("Selection.Clear"),enabled:()=>t.canClear(n),action:()=>t.clear(),getSvgIconShape:qu},{key:"cancel",type:"icon-button",label:a.get("Selection.Cancel"),enabled:()=>t.canCancel(n),action:()=>{o(),t.cancel()},keyboardAction:()=>{i(),o(),t.cancel()},getSvgIconShape:Iu},{key:"confirm",type:"icon-button",label:a.get("Selection.Confirm"),enabled:()=>t.canConfirm(n),action:()=>{r(),t.confirm()},keyboardAction:()=>{i(),r(),t.confirm()},getSvgIconShape:rl}]}(Z(Z({},u),{},{layout:S})),{translator:E,keyboardNavigation:C}=p(rs),[w,L]=n(!1),R={vertical:12,horizontal:(null!==(o=null===(a=m.anchorEl)||void 0===a?void 0:a.clientWidth)&&void 0!==o?o:0)-7},_=d(),I=d(),q=ua(),O=i((()=>({margin:q.spacing(.5,0)}))),T=e=>{const t=_.current||b;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]},A=i((()=>function(e){let{keyboardNavigation:t,focusHandler:n,getEnabledButton:r,selections:o,isRtl:i}=e;return e=>{const{target:a,nativeEvent:s}=e,{keyCode:l}=s;switch(l){case Ql.ARROW_LEFT:case Ql.ARROW_DOWN:case Ql.ARROW_RIGHT:case Ql.ARROW_UP:if(a.classList.contains("njs-cell-action")){const e=Nu(a);let t=[Ql.ARROW_LEFT,Ql.ARROW_DOWN].includes(l);t=i?!t:t,zu(t?e-1:e+1)}e.stopPropagation(),e.preventDefault();break;case Ql.SPACE:e.preventDefault();break;case Ql.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 Ql.ESCAPE:o&&(o.onCancel(),o.api.cancel(),e.preventDefault(),e.stopPropagation())}}}({keyboardNavigation:C,focusHandler:g,getEnabledButton:T,selections:u,isRtl:y})),[C,g,T,u,y]);if(r((()=>()=>{L(!1)}),[m.show,s,u.show]),r((()=>{if(!g)return;g.on("focus_toolbar_first",(()=>{const e=T(!1);null==e||e.focus()})),g.on("focus_toolbar_last",(()=>{const e=T(!0);null==e||e.focus()}))}),[]),v)return;let D=f.enabled,M=f.actions;const N=f.alignTo||I,z=l.filter((e=>!e.hidden));if(z.length>c){const e=z.splice(-(z.length-c)-1);D=!0,M=[...e,...f.actions]}if(!u.show&&0===z.length)return null;const j={key:"more",label:E.get("Menu.More"),getSvgIconShape:Lu,hidden:!1,active:w,enabled:()=>D,action:()=>L(!w)},F=z.length>0,W=M.length>0,B=F&&u.show||W&&u.show,H=t.createElement(k,{ref:_,onKeyDown:A,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:y?"row-reverse":"row"}},(null==h?void 0:h.length)&&t.createElement(Hu,{className:"actions-toolbar-extra-actions",actions:h,isRtl:y}),F&&t.createElement(Hu,{actions:z}),W&&t.createElement(Hu,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:I,ariaExpanded:w,actions:[j],addAnchor:!0}),B&&t.createElement(k,{item:!0,className:Fu.itemSpacing,style:O},t.createElement(P,{orientation:"vertical"})),u.show&&t.createElement(Hu,{className:"actions-toolbar-default-actions",actions:x,isRtl:y}),w&&t.createElement(Mu,{show:w,actions:M,alignTo:N,popoverProps:f.popoverProps,popoverPaperStyle:f.popoverPaperStyle,onCloseOrActionClick:()=>{L(!1)}}));return m.show?t.createElement(Wu,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:m.show,anchorEl:m.anchorEl,anchorOrigin:R,transformOrigin:$u,hideBackdrop:!0,style:Uu,onMouseDown:e=>{e.stopPropagation()},slotProps:{paper:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:Bu.className,style:{pointerEvents:"auto",padding:q.spacing(.5,.25)}}}},H):s&&H}var Vu=e=>Fs((e=>Z(Z({},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 Ku="/qListObjectDef",Zu="**",Ju=Ba(M,{shouldForwardProp:e=>!["styles","dense","isRtl"].includes(e)})((e=>{let{theme:t,styles:n,dense:r,isRtl:o}=e,i={};return r&&(i={fontSize:12,paddingLeft:t.spacing(1),"& input":{paddingTop:"5px",paddingBottom:"5px"}}),Z({display:"flex",border:"none",fontSize:14,borderRadius:0,backgroundColor:n.search.backgroundColor,backdropFilter:n.background.backgroundImage?n.search.backdropFilter:void 0,paddingLeft:"".concat(cl,"px"),flexDirection:o?"row-reverse":"row","& fieldset":{borderColor:"".concat(n.search.borderColor),borderWidth:"1px 0 1px 0",borderRadius:0},"&.Mui-focused fieldset":{borderColor:"".concat(n.search.highlightBorderColor," !important")},"& .MuiInputBase-root":Z({},n.search),"& *":{color:n.search.color},"& input":{color:n.search.color,textAlign:o?"right":"left"}},i)}));function Xu(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,styles:b}=e;const{translator:y}=p(rs),[v,S]=n(""),[x,E]=n(!1),C=d(),{getStoreValue:w,setStoreValue:L}=Fc(a),k="rtl"===m,R=async()=>{if(!(!i.selectDisabled()&&!o.isModal()))try{await a.abortListObjectSearch(Ku)}finally{S("")}};r((()=>{c||R()}),[c]),r((()=>(o.on("deactivated",R),()=>{o.removeListener&&o.removeListener("deactivated",R)})),[]),r((()=>{if(x&&C.current){const e=v.length-1;C.current.setSelectionRange(e,e),E(!1)}}),[x,C.current]),r((()=>{L("inputText",v)}),[v]);const _=async()=>{let e;const t=await a.searchListObjectFor(Ku,v);return i.selectDisabled()?t:(t&&v.length&&w("listCount")>0&&(e=a.acceptListObjectSearch(Ku,!0),o.selectionsMade=!0,i.clearItemStates(!1),S("")),e)};function I(e){const t=(null==e?void 0:e.querySelector(".last-focused"))||(null==e?void 0:e.querySelector('[role="row"]:first-child'));null==t||t.setAttribute("tabIndex",0),null==t||t.focus()}return c&&!1!==f?t.createElement(Ju,{styles:b,dense:l,isRtl:k,startAdornment:t.createElement(N,{position:"start"},t.createElement(Vu,{size:l?"small":"normal"})),className:"search",inputRef:C,size:"small",fullWidth:!0,placeholder:y.get("Listbox.Search"),value:v,onFocus:()=>{h&&(S(Zu),E(!0)),i.selectDisabled()||o.isModal()||o.begin(["/qListObjectDef"])},onChange:async e=>(S(e.target.value),e.target.value.length?a.searchListObjectFor(Ku,e.target.value):R()),onKeyDown:async e=>{const{currentTarget:t}=e,n=t.closest(".listbox-container");switch(e.key){case"Enter":_();break;case"Escape":I(n),o.isActive()&&o.cancel();break;case"Tab":e.shiftKey?s.focusSelection():(I(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(),I(n));break;default:return}e.preventDefault(),e.stopPropagation()},autoFocus:u,inputProps:{tabIndex:s.innerTabStops?0:-1,"data-testid":"search-input-field","aria-label":y.get("Listbox.Search.ScreenReaderInstructions")}}):null}function Yu(e){return Object.keys(ae.prototype).forEach((t=>{e[t]=ae.prototype[t]})),ae.init(e),e}const Qu=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({model:o,paths:e,accept:!0,objectSelections:s}))},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(s),goModal:e=>r.begin({model:o,paths:e,accept:!1,objectSelections:s}),noModal:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return r.end(e)}};return Yu(s),s},ed=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 td(e,t,o,i){const a=Array.isArray(o)?o:[o],[s]=ds(e),[l]=Ms(t),[c]=ss(),u=c.get(e.id),[d,p]=n();return r((()=>{s&&t&&!d&&p(Qu({appSelections:s,appModal:u,model:t}))}),[s,t]),r((()=>{if(!d)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=ed({elements:a,objectSelections:d,options:i});return d.addListener("activated",e),d.addListener("deactivated",t),()=>{d.isActive()&&d.confirm(),d.removeListener("activated",e),d.removeListener("deactivated",t)}}),[d]),r((()=>{d&&d.setLayout(l)}),[d,l]),[d]}function nd(){const e=Z(Z({itemStates:{},ignoreSelectionState:!1,selectedInEngine:[],enginePages:[],setPages:void 0,lastRowCount:void 0,lastApprMaxGlyphCount:void 0,selectDisabled:void 0},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),{},{update(t){var n,r;let{setPages:o,pages:i,isSingleSelect:a,selectDisabled:s,layout:l}=t;this.setPages=o;const c=this.lastRowCount===l.qListObject.qSize.qcy,u=this.lastApprMaxGlyphCount===l.qListObject.qDimensionInfo.qApprMaxGlyphCount;c&&u||(this.lastRowCount=l.qListObject.qSize.qcy,this.lastApprMaxGlyphCount=l.qListObject.qDimensionInfo.qApprMaxGlyphCount,this.clearItemStates(!1)),e.enginePages!==i&&void 0!==i&&(e.enginePages=null!=i?i:[],e.selectedInEngine=Js(i),e.selectableValuesUpdating=!1,e.triggerStateChanged()),e.isSingleSelect=a,e.selectDisabled=s||e.selectDisabled,e.isDimCalculated=null!==(n=null==l||null===(r=l.qListObject)||void 0===r||null===(r=r.qDimensionInfo)||void 0===r?void 0:r.qIsCalculated)&&void 0!==n&&n},allowedToSelect:()=>!e.selectDisabled()&&!(e.isDimCalculated&&e.selectableValuesUpdating),setSelectableValuesUpdating(){e.selectableValuesUpdating=!0},useClientItemState:t=>e.ignoreSelectionState||t in e.itemStates,isSelected:t=>e.useClientItemState(t)?!!e.itemStates[t]:e.selectedInEngine.includes(t),getState(t){const{qElemNumber:n,qState:r}=t;return e.useClientItemState(n)?e.itemStates[n]?"XS"===r?"XS":"S":"S"===r||"XS"===r?"A":r:r},updateItemNoEvents(t,n,r){const o=e.isSelected(t);o&&!n?e.itemStates[t]=!1:o||(null==r||r.push(t),e.itemStates[t]=!0)},triggerStateChanged(){if(this.setPages){const t=e.applySelectionsOnPages(e.enginePages);this.setPages(t)}},applySelectionsOnPages(t){const n=t.map((t=>{const n=t.qMatrix.map((t=>{const[n]=t,r=e.getState(n);return[Z(Z({},n),{},{qState:r}),...t.slice(1)]}));return Z(Z({},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 rd=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 od(e){const t=(null==e?void 0:e.qListObject.qDimensionInfo.qStateCounts)||{};return rd(t,"qSelected",0)+rd(t,"qSelectedExcluded",0)+rd(t,"qLocked",0)+rd(t,"qLockedExcluded",0)>0}const id={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},ad=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,sd=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,ld=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i,cd=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i,ud=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,dd=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,{floor:pd}=Math,{round:hd}=Math;class fd{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];let r,o,i,a,s,l,c,u,d,p,h,f,m=0,g=0,b=0,y=1;if(this._invalid=!1,t[0]instanceof fd)m=t[0]._r,g=t[0]._g,b=t[0]._b,y=t[0]._a,this._invalid=t[0]._invalid;else if(t.length<3)if("string"==typeof t[0])if(f=t[0],h=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(f))m=parseInt(h[1],10),g=parseInt(h[2],10),b=parseInt(h[3],10);else if(h=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(f))m=parseInt(h[1],10),g=parseInt(h[2],10),b=parseInt(h[3],10),y=parseFloat(h[4]);else if(h=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(f))y=parseInt(h[1],10)/255,m=parseInt(h[2],10),g=parseInt(h[3],10),b=parseInt(h[4],10);else if(h=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(f))m=parseInt(h[1],16),g=parseInt(h[2],16),b=parseInt(h[3],16),y=1;else if(h=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(f))m=parseInt(h[1]+h[1],16),g=parseInt(h[2]+h[2],16),b=parseInt(h[3]+h[3],16),y=1;else if(h=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(f)){switch(r=parseFloat(h[1]),o=parseFloat(h[3]),a=parseFloat(h[5]),r%=360,o/=100,a/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,a=a<0?0:a>1?1:a,l=a<=.5?2*a*o:(2-2*a)*o,c=r/60,u=l*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}p=a-.5*l,m=d[0]+p,g=d[1]+p,b=d[2]+p,m=hd(255*m),g=hd(255*g),b=hd(255*b),y=1}else if(h=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(f)){switch(r=parseFloat(h[1]),o=parseFloat(h[3]),a=parseFloat(h[5]),y=parseFloat(h[7]),r%=360,o/=100,a/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,a=a<0?0:a>1?1:a,l=a<=.5?2*a*o:(2-2*a)*o,c=r/60,u=l*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}p=a-.5*l,m=d[0]+p,g=d[1]+p,b=d[2]+p,m=hd(255*m),g=hd(255*g),b=hd(255*b)}else if(h=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(f)){switch(r=parseFloat(h[1]),o=parseFloat(h[3]),s=parseFloat(h[5]),r%=360,o/=100,s/=100,r=r<0?0:r>360?360:r,o=o<0?0:o>1?1:o,s=s<0?0:s>1?1:s,l=s*o,c=r/60,u=l*(1-Math.abs(c%2-1)),d=[],c=Math.floor(c),c){case 0:d=[l,u,0];break;case 1:d=[u,l,0];break;case 2:d=[0,l,u];break;case 3:d=[0,u,l];break;case 4:d=[u,0,l];break;case 5:d=[l,0,u];break;default:d=[0,0,0]}p=s-l,m=d[0]+p,g=d[1]+p,b=d[2]+p,m=hd(255*m),g=hd(255*g),b=hd(255*b),y=1}else id[f.toLowerCase()]?(i=f.toLowerCase(),m=id[i].r,g=id[i].g,b=id[i].b,y="number"==typeof id[i].a?id[i].a:1):this._invalid=!0;else"number"==typeof t[0]&&t[0]>=0&&"argb"===t[1]?(y=(4278190080&t[0])>>>24,y/=255,m=(16711680&t[0])>>16,g=(65280&t[0])>>8,b=255&t[0]):"number"==typeof t[0]&&t[0]>=0?(m=(16711680&t[0])>>16,g=(65280&t[0])>>8,b=255&t[0]):this._invalid=!0;else t.length>=3?(m=t[0],g=t[1],b=t[2],y=arguments.length>=4?t[3]:1):this._invalid=!0;Number.isNaN(+m+g+b+y)&&(this._invalid=!0),this._r=pd(m),this._g=pd(g),this._b=pd(b),this._a=y,this._spaces={}}isInvalid(){return this._invalid}setAlpha(e){this._a=e,this._spaces={}}getAlpha(){return this._a}toRGB(){return this._spaces.rgb||(this._spaces.rgb=fd.toRGB(this)),this._spaces.rgb}toRGBA(){return this._spaces.rgba||(this._spaces.rgba=fd.toRGBA(this)),this._spaces.rgba}toString(){return this._spaces.rgb||(this._spaces.rgb=fd.toRGB(this)),this._spaces.rgb}toHex(){return this._spaces.hex||(this._spaces.hex=fd.toHex(this)),this._spaces.hex}toHSL(e){return this._spaces.hsl||(this._spaces.hsl=fd.toHSL(this,e)),this._spaces.hsl}toHSLA(e){return this._spaces.hsla||(this._spaces.hsla=fd.toHSLA(this,e)),this._spaces.hsla}toHSV(){const e=this.toHSVComponents();return"hsv(".concat(e.h,",").concat(e.s,",").concat(e.v,")")}toHSVComponents(){return this._spaces.hsvComp||(this._spaces.hsvComp=fd.toHSVComponents(this)),this._spaces.hsvComp}toNumber(){return this._spaces.num||(this._spaces.num=fd.toNumber(this)),this._spaces.num}isDark(){return this.isInvalid()||this.getLuminance()<125}getLuminance(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}shiftLuminance(e){const t=this.toHSLA(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),r=parseFloat(n[1]),o=parseFloat(n[3]);let i=parseFloat(n[5]);const a=parseFloat(n[7]);return i+=e,i=Math.max(0,Math.min(i,100)),"hsla(".concat(r,",").concat(o,",").concat(i,",").concat(a,")")}isEqual(e){return e instanceof fd||(e=new fd(e)),this._r===e._r&&this._g===e._g&&this._b===e._b&&this._a===e._a}blend(e,t){const n=pd(this._r+(e._r-this._r)*t),r=pd(this._g+(e._g-this._g)*t),o=pd(this._b+(e._b-this._b)*t),i=pd(this._a+(e._a-this._a)*t);return"rgba(".concat([n,r,o,i].join(","),")")}createShiftedColor(e){(void 0===e||Number.isNaN(+e))&&(e=1);const t=this.getLuminance(),n=this._g<126?1:1+this._g/512,r=this.shiftLuminance(20*(t*n<220?.8+1/(t+1)*4:-(.8+t/255*1))*e);return new fd(r)}static toRGB(e){if(e instanceof fd)return"rgb(".concat([e._r,e._g,e._b].join(","),")");"string"==typeof e&&(e=fd.toNumber(e));const t=(65280&e)>>8,n=255&e;return"rgb(".concat((16711680&e)>>16,",").concat(t,",").concat(n,")")}static toRGBA(e,t){if(e instanceof fd)return"rgba(".concat([e._r,e._g,e._b,void 0!==t?t:e._a].join(","),")");"string"==typeof e&&(e=fd.toNumber(e));const n=(65280&e)>>8,r=255&e;return"rgba(".concat((16711680&e)>>16,",").concat(n,",").concat(r,",").concat(void 0!==t?t:e._a,")")}static toHex(e){let t,n,r;return e instanceof fd?(t=e._r.toString(16),n=e._g.toString(16),r=e._b.toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat([t,n,r].join(""))):("string"==typeof e&&(e=fd.toNumber(e)),t=((16711680&e)>>16).toString(16),n=((65280&e)>>8).toString(16),r=(255&e).toString(16),1===t.length&&(t="0".concat(t)),1===n.length&&(n="0".concat(n)),1===r.length&&(r="0".concat(r)),"#".concat(t).concat(n).concat(r))}static toHSL(e,t){let n,r,o,i=0;"string"==typeof e&&(e=new fd(e));const a=e._r/255,s=e._g/255,l=e._b/255,c=Math.max(a,s,l),u=Math.min(a,s,l);if(r=t?.21*a+.72*s+.07*l:(c+u)/2,c===u)n=0,i=0;else{switch(o=c-u,n=r>.5?o/(2-c-u):o/(c+u),c){case a:i=(s-l)/o+(s<l?6:0);break;case s:i=(l-a)/o+2;break;case l:i=(a-s)/o+4}i/=6}return"hsl(".concat(360*i,",").concat(100*n,",").concat(100*r,")")}static toHSLA(e,t){let n,r,o,i=0;"string"==typeof e&&(e=new fd(e));const a=e._r/255,s=e._g/255,l=e._b/255,c=e._a,u=Math.max(a,s,l),d=Math.min(a,s,l);if(r=t?.21*a+.72*s+.07*l:(u+d)/2,u===d)n=0,i=0;else{switch(o=u-d,n=r>.5?o/(2-u-d):o/(u+d),u){case a:i=(s-l)/o+(s<l?6:0);break;case s:i=(l-a)/o+2;break;case l:i=(a-s)/o+4}i/=6}return"hsla(".concat(360*i,",").concat(100*n,",").concat(100*r,",").concat(c,")")}static toHSVComponents(e){let t,n,r=0;"string"==typeof e&&(e=new fd(e));const o=e._r/255,i=e._g/255,a=e._b/255,s=Math.max(o,i,a),l=Math.min(o,i,a),c=s;if(s===l)t=0,r=0;else{switch(n=s-l,t=0===n?0:n/c,s){case o:r=(i-a)/n+(i<a?6:0);break;case i:r=(a-o)/n+2;break;case a:r=(o-i)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*c}}static toNumber(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length&&t[0]instanceof fd)return(t[0]._r<<16)+(t[0]._g<<8)+t[0]._b;let r,o,i=0,a=0,s=0;return 1===t.length&&"string"==typeof t[0]&&(o=t[0],(r=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(o))?(i=parseInt(r[1],10),a=parseInt(r[2],10),s=parseInt(r[3],10)):(r=/^#([A-f0-9]{2})([A-f0-9]{2})([A-f0-9]{2})$/i.exec(o))?(i=parseInt(r[1],16),a=parseInt(r[2],16),s=parseInt(r[3],16)):(r=/^#([A-f0-9])([A-f0-9])([A-f0-9])$/i.exec(o))&&(i=parseInt(r[1]+r[1],16),a=parseInt(r[2]+r[2],16),s=parseInt(r[3]+r[3],16))),(i<<16)+(a<<8)+s}static blend(e,t,n){const r=(16711680&(e=fd.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=fd.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(i+((255&t)-i)*n)}static getBlend(e,t,n){const r=e._r+(t._r-e._r)*n,o=e._g+(t._g-e._g)*n,i=e._b+(t._b-e._b)*n,a=e._a+(t._a-e._a)*n;return new fd(r,o,i,a)}static isCSSColor(e){return!(arguments.length>1||"string"!=typeof e)&&(ad.test(e)||sd.test(e)||ld.test(e)||cd.test(e)||ud.test(e)||dd.test(e)||id[e.toLowerCase()])}static getBestContrast(e,t,n){const r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n}static getContrast(e,t){if(!e||!t)return;const n=e.getLuminance()/100,r=t.getLuminance()/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}static isDark(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new fd(...t).isDark(...t)}static useDarkLabel(e,t){return e._a>.5?!e.isDark():!t}}const md=/,(?![^(]*\))/,gd=/\s(?![^(]*\))/,bd=/^[0-9]+[a-zA-Z%]+?$/,yd=["none","inset","initial","inherit"],vd=e=>{if(!e)return;const t=e.split(gd).filter((e=>!yd.includes(e.toLowerCase()))).at(-1),n=!t||(e=>"0"===e||bd.test(e))(t)||yd.includes(t.toLowerCase())?void 0:t;return n},Sd=e=>e?e.split(md).map((e=>e.trim())):[];function xd(e,t,n,r){return n&&r?n.getStyle("object.".concat(r),e,t):n?n.getStyle("",e,t):void 0}const Ed=!0;function Cd(e,t,n,r,o){return e&&r?"none"!==e.color?r.getColorPickerColor(e,Ed):void 0:xd(t,n,r,o)}const wd={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},Ld={"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 kd(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 Rd(e,t){const n=null==e?void 0:e.bgImage;if(n){let r="";if("media"===n.mode||"media"===e.useImage){const e=null==n?void 0:n.mediaUrl,{qUrl:o}=(null==e?void 0:e.qStaticContentUrl)||{};r=o?decodeURIComponent(o):void 0,r=kd(t,r)}"expression"===n.mode&&(r=n.expressionUrl?decodeURIComponent(n.expressionUrl):void 0);const o=function(e){var t;let n="center center";return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.position&&(n=Ld[e.bgImage.position]),n}(e),i=function(e){var t;let n=wd.originalSize;const r=null==e||null===(t=e.bgImage)||void 0===t?void 0:t.sizing;return r&&(n=wd[r]),n}(e);return r?{url:r,pos:o,size:i}:void 0}}function _d(e,t,n){const r=null==e?void 0:e.bgColor;return r&&t&&(r.useExpression||r.useColorExpression)?t.validateColor(r.colorExpression):Cd(null==r?void 0:r.color,"","backgroundColor",t,n)}function Id(e,t,n){var r,o;const i=xd("shadow","boxShadow",t,n);return((e,t,n)=>{if(e&&yd.includes(e.toLowerCase()))return e.toLowerCase();const r=Sd(e);if(1!==r.length)return e;let o=n;if(!o){const n=Sd(t);if(1!==n.length)return e;o=vd(n[0])}if(!o)return e;const i=vd(r[0]);return i?e.replace(i,o):"".concat(e," ").concat(o)})((null==e||null===(r=e.shadow)||void 0===r?void 0:r.boxShadow)||i,i,Cd(null==e||null===(o=e.shadow)||void 0===o?void 0:o.boxShadowColor,"shadow","boxShadowColor",t,n))}function qd(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"),fontSize:i.fontSize||n.getStyle("object.".concat(r),"title.".concat(t),"fontSize"),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 Od="#FFF",Td="#000",Ad=1.5,Dd=3,Pd=(e,t)=>{let n=!1;const r=new fd(e),o=new fd(t);if(!(o.isInvalid()||r.isInvalid()||o.getAlpha()<1||r.getAlpha()<1)){try{n=fd.getContrast(r,o)}catch(e){n=void 0}return n}};function Md(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Td,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Od;const o=new fd(r),i=new fd(e),a=new fd(t);if(i.isInvalid()||a.isInvalid()||i.getAlpha()<1||a.getAlpha()<1)return t;const s=Pd(o,i),l=Pd(a,i),c=s>l||s>Dd;let u;return u=t&&l>Ad&&!c?t:c?r:n,u}const Nd=["theme","selections"];function zd(e){var t,n,r,o,i,a,s,l;let{app:c,themeApi:u,theme:d,components:p=[],checkboxes:h=!1}=e;const f=function(){const e={};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((t=>{const n=null==t?void 0:t.key;Nd.includes(n)&&(e[n]=t)})),e}(p),m=(e,t)=>u.getStyle("object.listBox",e,t),g=e=>(null==e?void 0:e.index)>0||null!=e&&e.color?u.getColorPickerColor(e,!1):void 0,b=function(e){var t,n,r,o,i,a,s,l,c,u,d,p,h,f,m;let{getColorPickerColor:g,theme:b,getListboxStyle:y,overrides:v,checkboxes:S}=e;const x=g(null===(t=v.theme)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.fontColor)||y("content","color")||(null===(n=b.palette)||void 0===n?void 0:n.text.primary),E=!S&&(null===(r=null===(o=v.theme)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.useContrastColor)||void 0===r||r),C=(null===(i=v.selections)||void 0===i?void 0:i.colors)||{},w=g(C.selected)||(null===(a=b.palette)||void 0===a?void 0:a.selected.main)||"#009845",L=g(C.alternative)||(null===(s=b.palette)||void 0===s?void 0:s.selected.alternative)||"#E4E4E4",k=g(C.excluded)||(null===(l=b.palette)||void 0===l?void 0:l.selected.excluded)||"#A9A9A9",R=g(C.selectedExcluded)||(null===(c=b.palette)||void 0===c?void 0:c.selected.selectedExcluded)||"#A9A9A9",_=g(C.possible)||y("","backgroundColor")||(null===(u=b.palette)||void 0===u?void 0:u.selected.possible)||"#FFFFFF";let I=x||(null===(d=b.palette)||void 0===d?void 0:d.selected.selectedContrastText),q=x||(null===(p=b.palette)||void 0===p?void 0:p.selected.alternativeContrastText),O=x||(null===(h=b.palette)||void 0===h?void 0:h.selected.excludedContrastText),T=x||(null===(f=b.palette)||void 0===f?void 0:f.selected.selectedExcludedContrastText),A=x||(null===(m=b.palette)||void 0===m?void 0:m.selected.possibleContrastText);return E&&(I=Md(w,x),q=Md(L,x),O=Md(k,x),T=Md(R,x),A=Md(_,x)),{selected:w,alternative:L,excluded:k,selectedExcluded:R,possible:_,selectedContrast:I,alternativeContrast:q,excludedContrast:O,selectedExcludedContrast:T,possibleContrast:A}}({getColorPickerColor:g,theme:d,getListboxStyle:m,overrides:f,checkboxes:h}),y=f.theme||{},v=g(null===(t=y.header)||void 0===t?void 0:t.fontColor)||m("title.main","color"),S=function(e){let t,{themeApi:n,themeOverrides:r}=e;const o=null==r?void 0:r.background;return o?(t=null!=o&&o.useExpression?_d({bgColor:o},n,"listBox"):n.getColorPickerColor(null==o?void 0:o.color,!1),t):t}({themeApi:u,themeOverrides:y}),x=null!==(n=y.background)&&void 0!==n&&n.image?Rd({bgImage:y.background.image},c):void 0,E=S||m("","backgroundColor")||d.palette.background.default,C=function(e,t){const n=new fd(t("","backgroundColor"));return n.setAlpha(.7),n.isInvalid()?e:n.toRGBA()}(E,m),w=function(e){return Md("#fff",e("content","color"))}(m),L=(null===(r=y.header)||void 0===r?void 0:r.fontStyle)||{},k=(null===(o=y.content)||void 0===o?void 0:o.fontStyle)||{},R=(e,t,n)=>!0===e&&t||!1===e&&n||void 0;return{background:{backgroundColor:E,backgroundImage:null==x||!x.url||null!=x&&x.url.startsWith("url(")?void 0:"url('".concat(x.url,"')"),backgroundRepeat:"no-repeat",backgroundSize:null==x?void 0:x.size,backgroundPosition:null==x?void 0:x.pos},header:{color:v,fontSize:(null===(i=y.header)||void 0===i?void 0:i.fontSize)||m("title.main","fontSize"),fontFamily:(null===(a=y.header)||void 0===a?void 0:a.fontFamily)||m("title.main","fontFamily"),fontWeight:R(L.bold,"bold","normal")||m("title.main","fontWeight")||"bold",textDecoration:L.underline?"underline":"initial",fontStyle:R(L.italic,"italic","normal")||m("title.main","fontStyle")||"initial"},content:{backgroundColor:h?void 0:b.possible,color:b.possibleContrast||m("content","color"),fontSize:(null===(s=y.content)||void 0===s?void 0:s.fontSize)||m("content","fontSize"),fontFamily:(null===(l=y.content)||void 0===l?void 0:l.fontFamily)||m("content","fontFamily"),fontWeight:R(k.bold,"bold","normal")||m("content","fontWeight")||"normal",textDecoration:k.underline?"underline":"initial",fontStyle:R(k.italic,"italic","normal")||m("content","fontStyle")||"initial"},search:{color:w,borderColor:d.palette.divider,highlightBorderColor:d.palette.custom.focusBorder,backgroundColor:C,backdropFilter:"blur(8px)"},selections:b}}function jd(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,components:g,checkboxes:b,selectDisabled:y=(()=>!1)}=e;const v=Boolean(null==h?void 0:h.qLibraryId),S=s&&Boolean(o.current),[x,E]=n(0),C=ua(),w=d(),[L]=qs({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:v?void 0:[h]},qLibraryId:v?h.qLibraryId:void 0}},u,h,f),R=l((()=>{L.lock("/qListObjectDef")}),[L]),_=l((()=>{L.unlock("/qListObjectDef")}),[L]),{translator:q,themeApi:T}=p(rs),A=d(),D=d(),[P]=td(u,L,D),[M]=Ms(L),[N]=n((()=>nd({selectDisabled:y}))),{checkboxes:z=b}=M||{},j=zd({themeApi:T,theme:C,components:g,checkboxes:z});if(r((()=>{P&&S&&(P.isModal(L)||P.goModal("/qListObjectDef"))}),[P,S]),!L||!M||!q)return null;const F=!0===M.qListObject.qDimensionInfo.qLocked,W=(e,t)=>{const n="escapeKeyDown"!==t;P.noModal(n),c()},B=wu({layout:M,model:L,translator:q,selectionState:N}),H=od(M);return t.createElement(O,{open:S,onClose:W,anchorEl:o.current,anchorOrigin:i,transformOrigin:a,slotProps:{paper:{style:{minWidth:"250px"}}}},t.createElement(k,{container:!0,direction:"column",gap:0,ref:D},t.createElement(k,{item:!0,container:!0,style:{padding:C.spacing(1)}},t.createElement(k,{item:!0},F?t.createElement(I,{onClick:_,disabled:!F,size:"large"},t.createElement(Bs,{title:q.get("Listbox.Unlock")})):t.createElement(I,{onClick:R,disabled:!H,size:"large"},t.createElement(Us,{title:q.get("Listbox.Lock")}))),t.createElement(k,{item:!0,xs:!0}),t.createElement(k,{item:!0},t.createElement(Gu,{layout:M,more:{enabled:!F,actions:B,alignTo:A,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:P,onConfirm:W,onCancel:()=>W(0,"escapeKeyDown")}}))),t.createElement(k,{item:!0,xs:!0},t.createElement("div",{ref:A}),t.createElement(k,{item:!0,ref:w},t.createElement(Xu,{styles:j,visible:!0,model:L,listCount:x,selections:P,selectionState:N,keyboard:{enabled:!1},autoFocus:null==m||m})),t.createElement(vu,{model:L,app:u,layout:M,selections:P,selectionState:N,direction:"ltr",onSetListCount:e=>E(e),onCtrlF:()=>{const e=w.current.querySelector("input");null==e||e.focus()},styles:j}))))}function Fd(e){let{field:r,api:o,stateIx:i=0,skipHandleShowListBoxPopover:a=!1,moreAlignTo:s=null,onClose:l=(()=>{})}=e;const{translator:c}=p(rs),u=s||d(),h=ua(),[f,m]=n(!1),g=e=>{e.currentTarget.contains(e.target)&&m(!f)},b=()=>{m(!1),l()},y=r.selections[i];void 0===y.qTotal&&(y.qTotal=0);const v=y.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},S=(v.qSelected+v.qLocked)/y.qTotal,x=v.qAlternative/y.qTotal,E=(v.qExcluded+v.qLockedExcluded+v.qSelectedExcluded)/y.qTotal,w=v.qSelected+v.qSelectedExcluded+v.qLocked+v.qLockedExcluded,L=0===w&&0===y.qTotal;let R="";y.qTotal===w&&y.qTotal>1?R=c.get("CurrentSelections.All"):w>1&&y.qTotal?R=c.get("CurrentSelections.Of",[w,y.qTotal]):y.qSelectedFieldSelectionInfo&&(R=y.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==r.states[i]&&(R="".concat(r.states[i],": ").concat(R));const _=[{color:h.palette.selected.main,ratio:S},{color:h.palette.selected.alternative,ratio:x},{color:h.palette.selected.excluded,ratio:E}];_.forEach(((e,t)=>{e.offset=t?_[t-1].offset+_[t-1].ratio:0}));let q=null,O=null,T=null,A=null;return s||(q=t.createElement(k,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:y.qLocked?"0.3":""}},t.createElement(C,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},y.qField),t.createElement(C,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},R)),y.qLocked?O=t.createElement(k,{item:!0},t.createElement(I,{size:"large"},t.createElement(Bs,null))):y.qOneAndOnlyOne||(O=t.createElement(k,{item:!0},t.createElement(I,{title:c.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),o.clearField(y.qField,r.states[i])},size:"large"},t.createElement(Ws,null)))),T=t.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===L&&_.map((e=>t.createElement("div",{key:e.color,style:{position:"absolute",background:e.color,height:"100%",top:0,width:"".concat(100*e.ratio,"%"),left:"".concat(100*e.offset,"%")}})))),A=t.createElement(k,{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},q,O,T,f&&t.createElement(jd,{alignTo:u,show:f,close:b,app:o.model,fieldName:y.qField,stateName:r.states[i]}))),s?t.createElement(jd,{alignTo:u,show:!0,close:b,app:o.model,fieldName:y.qField,stateName:r.states[i]}):A}var Wd=e=>Fs((e=>Z(Z({},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 Bd={item:"".concat("MultiState","-item")},Hd=Ba(k)((e=>{let{theme:t}=e;return{["&.".concat(Bd.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"}}}));function Ud(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(rs),b=g.get("Selection.ClearAllStates"),y=()=>{u(-1),a()};let v=null;i||(v=t.createElement(t.Fragment,null,t.createElement(k,{item:!0,xs:!0,zeroMinWidth:!0},t.createElement(z,{style:{padding:"0px 8px"},color:"secondary",badgeContent:r.states.length},t.createElement(C,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},r.name))),t.createElement(k,{item:!0},t.createElement("div",{style:{width:"12px"}})),t.createElement(k,{item:!0},t.createElement(I,{size:"large"},t.createElement(Wd,null)))));const S=t.createElement(j,{dense:!0},t.createElement(F,{title:b,onClick:()=>{r.states.forEach((e=>o.clearField(r.name,e)))}},t.createElement(W,{variant:"contained",fullWidth:!0},b)),r.states.map(((e,n)=>t.createElement(F,{key:n,title:r.name,onClick:e=>((e,t)=>{e.stopPropagation(),l(!1),u(t)})(e,n)},t.createElement(L,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},t.createElement(Fd,{field:r,api:o,stateIx:n,skipHandleShowListBoxPopover:!0})))))),x=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"}}},S),E=i?x:t.createElement(Hd,{container:!0,gap:0,className:Bd.item,onClick:e=>{e.currentTarget.contains(e.target)&&(f(e.currentTarget),m.current=e.currentTarget,l(!s))}},v,s&&x,c>-1&&t.createElement(jd,{alignTo:m,show:c>-1,close:y,app:o.model,fieldName:r.selections[c].qField,stateName:r.states[c]}));return i&&c>-1?t.createElement(jd,{alignTo:m,show:c>-1,close:y,app:o.model,fieldName:r.selections[c].qField,stateName:r.states[c]}):E}const $d="More",Gd={item:"".concat($d,"-item"),badge:"".concat($d,"-badge")},Vd=Ba(k)((e=>{let{theme:t}=e;return{["&.".concat(Gd.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(Gd.badge)]:{padding:t.spacing(0,1)}}}));function Kd(e){let{items:r=[],api:o}=e;const i=ua(),[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(Ud,{field:r[l],api:o,moreAlignTo:h,onClose:f}):t.createElement(Fd,{field:r[l],api:o,skipHandleShowListBoxPopover:!0,moreAlignTo:h,onClose:f})),t.createElement(Vd,{container:!0,gap:0,className:Gd.item,onClick:e=>{e.currentTarget.contains(e.target)&&(p(e.currentTarget),h.current=e.currentTarget,s(!a))}},t.createElement(k,{item:!0},t.createElement(L,{borderRadius:i.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:i.palette.selected.main,color:i.palette.selected.mainContrastText}},t.createElement(C,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",r.length))),t.createElement(k,{item:!0},t.createElement(I,{size:"large"},t.createElement(Wd,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(j,{dense:!0},r.map(((e,n)=>t.createElement(F,{key:n,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),s(!1),c(t)})(e,n)},t.createElement(L,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?t.createElement(Ud,{field:e,api:o}):t.createElement(Fd,{field:e,api:o}))))))),m)}const Zd=120,Jd=72;function Xd(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 Yd(e){let{api:o,app:i}=e;const a=ua(),[s]=Ts(i),[l]=Ms(s),[c,u]=n({items:[],more:[]}),[d]=cs(),[p,h]=zs(),[f,m]=n(0);return r((()=>{if(!h)return;const{width:e}=h,t=Math.floor(e)-Jd,n=Math.floor(t/Zd);m(n)}),[h]),r((()=>{if(!(i&&s&&l&&f))return;const e=function(e){if(!e)return[];const t={};return e.qSelectionObject&&Xd(e.qSelectionObject,t),e.alternateStates&&e.alternateStates.forEach((e=>Xd(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{model:e}=d.get(i.id)||{};return"njsListbox"===(null==e?void 0: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(k,{ref:p,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},c.items.map((e=>t.createElement(k,{item:!0,key:"".concat(e.states.join("::"),"::").concat(e.name),style:{position:"relative",maxWidth:"240px",minWidth:"".concat(Zd,"px"),background:a.palette.background.paper,borderRight:"1px solid ".concat(a.palette.divider)}},e.states.length>1?t.createElement(Ud,{field:e,api:o}):t.createElement(Fd,{field:e,api:o})))),c.more.length>0&&t.createElement(k,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(Jd,"px"),background:a.palette.background.paper,borderRight:"1px solid ".concat(a.palette.divider)}},t.createElement(Kd,{items:c.more,api:o})))}var Qd=e=>Fs((e=>Z(Z({},e),{},{shapes:[{type:"path",attrs:{d:"M10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 Z M16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,-5.07265313e-17 13.5,0 L15,0 C15.5522847,1.01453063e-16 16,0.44771525 16,1 L16,2.5 Z M10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 C6,0.223857625 6.22385763,-5.07265313e-17 6.5,0 L9.5,0 C9.77614237,5.07265313e-17 10,0.223857625 10,0.5 Z M1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 5.18696197e-13,2.77614237 5.18696197e-13,2.5 L5.18696197e-13,1 C5.18696197e-13,0.44771525 0.44771525,-1.01453063e-16 1,0 L2.5,0 C2.77614237,5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 5.18696197e-13,15.5522847 5.18696197e-13,15 L5.18696197e-13,13.5 C5.18696197e-13,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M4,7 C7.49095643,7 10,10.1337595 10,12.1872632 C10,12.1872632 8.16051135,9.86624054 4,10 L4,12 C4,12 2.66666667,10.8333333 -1.0658141e-14,8.5 C-2.59348099e-13,8.5 1.33333333,7.33333333 4,5 C4,5 4,5.66666667 4,7 Z"}}]}))(e));var ep=e=>Fs((e=>Z(Z({},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 tp=(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 np(e){let{api:o,app:i}=e;const{translator:a}=p(rs),[s]=function(e){const[t]=Ts(e),[o]=Ms(t),[i]=Ns(e),[a,s]=n(null);return r((()=>{i&&t&&o&&tp(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(k,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},t.createElement(k,{item:!0},t.createElement(I,{style:{marginRight:"8px"},disabled:!s||!s.canGoBack,title:a.get("Navigate.Back"),onClick:()=>o.back(),size:"large"},t.createElement(Qd,null))),t.createElement(k,{item:!0},t.createElement(I,{style:{marginRight:"8px"},disabled:!s||!s.canGoForward,title:a.get("Navigate.Forward"),onClick:()=>o.forward(),size:"large"},t.createElement(ep,null))),t.createElement(k,{item:!0},t.createElement(I,{disabled:!s||!s.canClear,title:a.get("Selection.ClearAll"),onClick:()=>o.clear(),size:"large"},t.createElement(Ou,null))))}const rp=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function op(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function ip(){return rp.map(op).join("")}function ap(e){let{app:n}=e;const r=ua(),[o]=ds(n);return o?t.createElement(k,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:r.palette.background.paper,minHeight:"40px"}},t.createElement(k,{item:!0,style:{borderRight:"1px solid ".concat(r.palette.divider)}},t.createElement(np,{api:o,app:n})),t.createElement(k,{item:!0,xs:!0,style:{backgroundColor:r.palette.background.darker,overflow:"hidden"}},t.createElement(Yd,{api:o,app:n}))):null}let sp;sp="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;let lp=null,cp=null;const up=sp.clearTimeout,dp=sp.setTimeout,pp=sp.cancelAnimationFrame||sp.mozCancelAnimationFrame||sp.webkitCancelAnimationFrame,hp=sp.requestAnimationFrame||sp.mozRequestAnimationFrame||sp.webkitRequestAnimationFrame;function fp(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__&&lp(this.__resizeRAF__),this.__resizeRAF__=cp((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=sp.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){}}}}}null==pp||null==hp?(lp=up,cp=function(e){return dp(e,20)}):(lp=function([e,t]){pp(e),up(t)},cp=function(e){const t=hp((function(){up(n),e()})),n=dp((function(){pp(t),e()}),20);return[t,n]});class mp extends f{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const r=window.getComputedStyle(this._parentNode)||{},o=parseFloat(r.paddingLeft||"0"),i=parseFloat(r.paddingRight||"0"),a=parseFloat(r.paddingTop||"0"),s=parseFloat(r.paddingBottom||"0"),l=this._parentNode.getBoundingClientRect(),c=l.height-a-s,u=l.width-o-i,d=this._parentNode.offsetHeight-a-s,p=this._parentNode.offsetWidth-o-i;(e||this.state.height===d&&this.state.scaledHeight===c)&&(t||this.state.width===p&&this.state.scaledWidth===u)||(this.setState({height:d,width:p,scaledHeight:c,scaledWidth:u}),"function"==typeof n&&n({height:d,scaledHeight:c,scaledWidth:u,width:p}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(t)):(this._detectElementResize=fp(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:r=!1,disableWidth:o=!1,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 b=!1;return r||(0===u&&(b=!0),m.height=0,g.height=u,g.scaledHeight=d),o||(0===f&&(b=!0),m.width=0,g.width=f,g.scaledWidth=p),h(l,{ref:this._setRef,style:{...m,...s},...c},!b&&e(g))}}function gp(e){null==e||e.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")}))}function bp(e){return(null==e?void 0:e.closest(".njs-cell"))||(null==e?void 0:e.closest(".qv-gridcell"))}function yp(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 Ql.TAB:if(l)r?nc(s)||tc(s):tc(s)||nc(s);else{if(!r)break;t.blur(!0)}i();break;case Ql.ENTER:case Ql.SPACE:if(!e.target.classList.contains("listbox-container"))break;t.focus(),i();break;case Ql.ESCAPE:(e=>{const{currentTarget:n,target:r}=e,i=r.classList.contains("listbox-container"),a=bp(n.closest(".listbox-container")),s=1===(null==a?void 0:a.querySelectorAll(".listbox-container").length);if(i||s)t.blur(!0);else{gp(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 Ql.ARROW_UP:r({up:1});break;case Ql.ARROW_DOWN:r({down:1});break;case Ql.PAGE_UP:r({up:i.stop-i.start});break;case Ql.PAGE_DOWN:r({down:i.stop-i.start});break;case Ql.HOME:r({scrollPosition:o&&a?"overflowStart":"start"});break;case Ql.END:r({scrollPosition:o&&a?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const vp=Ba("div")((()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"})));function Sp(e){let{text:n}=e;const{translator:r}=p(rs);return t.createElement(vp,null,r.get(n))}var xp=e=>Fs((e=>Z(Z({},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));const Ep={fontSize:"12px"},Cp=Ba(B)((e=>{let{theme:t,isLoading:n}=e;return{position:"absolute",top:0,left:0,height:48,zIndex:2,background:t.palette.custom.disabledBackground,opacity:1,color:t.palette.custom.disabledContrastText,width:"100%",display:"flex",justifyContent:n?"center":"flex-start",paddingLeft:16,paddingRight:16,borderRadius:0,"& *, & p":{color:t.palette.custom.disabledContrastText},"& i":{padding:"".concat(dl,"px")}}})),wp=Ba(k,{shouldForwardProp:e=>!["styles","isRtl"].includes(e)})((e=>{let{styles:t,isRtl:n}=e;return Z(Z({flexDirection:n?"row-reverse":"row",wrap:"nowrap",minHeight:32,alignContent:"center"},t.header),{},{"& *":{color:t.header.color}})})),Lp=Ba(C)((e=>{let{styles:t}=e;return Z(Z({},t.header),{},{display:"block",alignItems:"center",paddingRight:"1px"})}));function kp(e){let{translator:n,toggleLock:r,keyboard:o,isLoading:i}=e;const a=n.get("SelectionToolbar.ClickToUnlock");return t.createElement(Cp,{title:a,tabIndex:o.enabled?0:-1,onClick:r,"data-testid":"listbox-unlock-button",id:"listbox-unlock-button",isLoading:i},i?t.createElement(H,{size:16,variant:"indeterminate",color:"primary"}):t.createElement(Bs,{disableRipple:!0,style:Ep}),!i&&t.createElement(C,{fontSize:"14px"},a))}const Rp=500;let _p=0;function Ip(e){var o,i;let{layout:a,translator:s,styles:l,isRtl:c,showLock:u,showSearchIcon:p,isDrillDown:h,constraints:f,onShowSearch:m,classes:g,containerRect:b,isPopover:y,showToolbar:v,showDetachedToolbarOnly:S,containerRef:x,model:E,selectionState:C,isDirectQuery:w,selections:L,keyboard:R,autoConfirm:_}=e;const[q,O]=n(S),[T,A]=n(null==a||null===(o=a.qListObject)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o?void 0:o.qLocked),[D,P]=n(!1);r((()=>{var e;A(null==a||null===(e=a.qListObject)||void 0===e||null===(e=e.qDimensionInfo)||void 0===e?void 0:e.qLocked)}),[null==a||null===(i=a.qListObject)||void 0===i||null===(i=i.qDimensionInfo)||void 0===i?void 0:i.qLocked]);const M=d(null),N=u&&T,z=!u&&T,j=p||z||h,F=cl-(j?dl:0),W=c?cl-(j?dl:0):ul,B=(p?pl:0)+(z?pl:0)+(h?pl:0),H=function(e){let{isLocked:t,setLocked:n,settingLockedState:r,model:o,setSettingLockedState:i}=e;return()=>{const e=new Date;if(e-_p<Rp)return Promise.resolve();if(r)return()=>{};i(!0),_p=e;const a=t?o.unlock:o.lock;return n(!t),a.call(o,"/qListObjectDef").catch((()=>{n(t)})).finally((()=>{setTimeout((()=>{i(!1)}),0)}))}}({isLocked:T,setLocked:A,settingLockedState:D,setSettingLockedState:P,model:E}),U=wu({layout:a,model:E,translator:s,selectionState:C,isDirectQuery:w}),$=T||!u?void 0:[{key:"lock",type:void 0,label:s.get("SelectionToolbar.ClickToLock"),getSvgIconShape:Hs,enabled:()=>!D&&!C.selectDisabled()&&od(a),action:H}],G=null!=f&&f.active?t.createElement(Vu,{title:s.get("Listbox.Search"),size:"large",style:Z(Z({},Ep),{},{padding:"".concat(dl,"px")})}):t.createElement(I,{onClick:m,tabIndex:-1,title:s.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},t.createElement(Vu,{style:Ep}));r((()=>{if(!M.current||!b)return;const e=function(e){var t,n,r,o;let{containerRect:i,titleRef:a,iconsWidth:s,paddingLeft:l,paddingRight: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:b,titleRef:M,iconsWidth:B,paddingLeft:F,paddingRight:W});O(S||e)}),[B,F,W,M.current,S,Object.entries(b||{}).sort().join(",")]);const V=function(e){let{isDetached:t,showToolbar:n,containerRef:r,isLocked:o,listboxSelectionToolbarItems:i,extraItems:a,selections:s,keyboard:l,autoConfirm:c}=e;return{autoConfirm:c,isDetached:t,show:n&&!t,popover:{show:n&&t,anchorEl:r.current},extraItems:a,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:s,onConfirm:()=>{null==l||l.focus()},onCancel:()=>{null==l||l.focus()}}}}({isDetached:!y&&q,showToolbar:v,containerRef:x,isLocked:T,extraItems:$,listboxSelectionToolbarItems:U,selections:L,keyboard:R,autoConfirm:_}),K=t.createElement(Gu,Y({isRtl:c,layout:a},V));if(S)return K;const J=z?t.createElement(Bs,{size:"large",style:Z(Z({},Ep),{},{padding:"".concat(dl,"px")})}):void 0;return t.createElement(wp,{item:!0,container:!0,styles:l,isRtl:c,marginY:1,paddingLeft:"".concat(F,"px"),paddingRight:"".concat(W,"px"),className:"header-container"},N&&t.createElement(kp,{isLoading:D,translator:s,toggleLock:H,keyboard:R}),j&&t.createElement(k,{item:!0,container:!0,alignItems:"center",width:B,className:"header-action-container"},J||p&&G,h&&t.createElement(xp,{tabIndex:-1,title:s.get("Listbox.DrillDown"),style:Z(Z({},Ep),{},{padding:"".concat(dl,"px")})})),t.createElement(k,{item:!0,xs:!0,minWidth:0,justifyContent:c?"flex-end":"flex-start",className:g.listBoxHeader},t.createElement(Lp,{variant:"h6",noWrap:!0,ref:M,title:a.title,styles:l},a.title)),t.createElement(k,{item:!0,display:"flex"},K))}const qp="ListBoxInline",Op={listBoxHeader:"".concat(qp,"-listBoxHeader"),screenReaderOnly:"".concat(qp,"-screenReaderOnly"),listboxWrapper:"".concat(qp,"-listboxWrapper")},Tp=Ba(k,{shouldForwardProp:e=>!["containerPadding","isGridMode","styles"].includes(e)})((e=>{let{theme:t,containerPadding:n,isGridMode:r,styles:o}=e;return Z(Z({},o.background),{},{["& .".concat(Op.listBoxHeader)]:{alignSelf:"center",display:"flex"},["& .".concat(Op.screenReaderOnly)]:{position:"absolute",height:0,width:0,overflow:"hidden"},["& .".concat(Op.listboxWrapper)]:{padding:n},"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus ::-webkit-scrollbar-track":{boxShadow:r?void 0:"inset -2px -2px 0px #3F8AB3"},"&:focus-visible":{outline:"none"}})}));const Ap=t.memo((function(e){var o,a,s,c,u;let{options:h,layout:f}=e;const{app:m,direction:g,frequencyMode:b,checkboxes:y,search:v=!0,focusSearch:S=!1,rangeSelect:x=!0,model:E,selections:C,update:w,fetchStart:L,postProcessPages:R,calculatePagesHeight:_,showGray:I=!0,scrollState:q,renderedCallback:O,toolbar:T=!0,isPopover:A=!1,showLock:D=!1,components:P,selectDisabled:M=(()=>!1)}=h,N=ua(),{translator:z,keyboardNavigation:j,themeApi:F,constraints:W}=p(rs),{checkboxes:B=y}=f||{},H=zd({app:m,themeApi:F,theme:N,components:P,checkboxes:B}),U=function(e){let{appLayout:t}=e;return!(null==t||!t.qIsDirectQueryMode)}({appLayout:null==m?void 0:m.layout}),$=d(),[G,V]=zs(),[K,J]=(()=>{const[e,t]=n({}),r=l((e=>{t({current:e})}),[t]);return[e,r]})(),[X,Y]=n(!1),[Q,ee]=n(!1),te=d(!1),[ne,re]=n({down:0,up:0,scrollPosition:""}),oe=e=>re((t=>Z(Z({},t),e))),[ie,ae]=n({start:0,stop:0}),[se]=ds(m),[le]=n((()=>nd({selectDisabled:M}))),ce=function(e){let{containerRef:t,enabled:r}=e;const[o,i]=n(!1),a={enabled:r,active:o,innerTabStops:!r||o,blur(e){var n;if(!r)return;i(!1);const o=bp(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)})),gp(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=null==e?void 0:e.querySelector("#listbox-unlock-button"),c=n||o||a||l||s;null==c||c.setAttribute("tabIndex",0),null==c||c.focus()},focusSelection(){const e=document.querySelector("#listbox-unlock-button"),t=document.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),n=e||t;null==n||n.setAttribute("tabIndex",0),null==n||n.focus()}};return a}({containerRef:$,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:se})),[m,se]),de=null==f?void 0:f.qListObject.qDimensionInfo.qError,pe=de&&W.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",{handleKeyDown:he,handleOnMouseEnter:fe,handleOnMouseLeave:me,globalKeyDown:ge}=i((()=>yp({keyboard:ce,hovering:te,updateKeyScroll:oe,containerRef:$,currentScrollIndex:ie,app:m,appSelections:se,constraints:W,isModal:ue})),[ce,te,oe,$,ie,m,se,W,ue]);r((()=>(document.addEventListener("keydown",ge),()=>{document.removeEventListener("keydown",ge)})),[ge]),r((()=>{!0===v&&ee(!0);const e=()=>{Y(!0)},t=()=>{Y(!1),"toggle"===v&&ee(!1)};return A&&(C.isActive()||(C.begin("/qListObjectDef"),C.on("activated",e),C.on("deactivated",t)),Y(A)),T&&C&&(C.isModal()||(C.on("activated",e),C.on("deactivated",t)),Y(C.isActive())),()=>{C&&C.removeListener&&(C.removeListener("activated",e),C.removeListener("deactivated",t))}}),[T,C,A]),r((()=>{if(K&&K.current&&(v&&S||"toggle"===v&&Q)){const e=K.current.querySelector("input");e&&e.focus()}}),[K&&K.current,Q,v,S]);const{wildCardSearch:be,searchEnabled:ye,autoConfirm:ve=!1,layoutOptions:Se={}}=null!=f?f:{},xe=null==f||null===(o=f.qListObject)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o?void 0:o.qLocked,Ee=!1!==ye&&"toggle"===v&&!xe,Ce="H"===(null==f||null===(a=f.qListObject)||void 0===a||null===(a=a.qDimensionInfo)||void 0===a?void 0:a.qGrouping),we=(null==f||null===(s=f.title)||void 0===s?void 0:s.length)&&!1!==(null==f?void 0:f.showTitle),Le=T&&!we&&!A,ke=T&&we||A,Re="rtl"===g;if(!E||!f||!z)return null;const _e=!0===v||"toggle"===v&&Q&&!1!==ye,Ie=null!==(c=Se.dense)&&void 0!==c&&c,qe=()=>{ee(!Q)},Oe=()=>{if("toggle"===v)qe();else{const e=K.current.querySelector("input");null==e||e.focus()}},Te=_e&&"toggle"===v,Ae="grid"===(null==Se?void 0:Se.dataLayout),De=function(e){let t,{isGridMode:n,dense:r,height:o,layoutOrder:i}=e;if(n){let e;e=Pc({isGridMode:n,dense:r})>o?"0px":"2px",t="row"===i?"".concat(e," 4px"):"".concat(e," 6px ").concat(e," 4px")}else t=void 0;return t}({isGridMode:Ae,dense:Ie,height:null===(u=$.current)||void 0===u?void 0:u.clientHeight,layoutOrder:Se.layoutOrder});de&&(null==O||O());const Pe=ke?xl+fl:0,Me=t.createElement(Ip,{showSearchIcon:Ee,isDrillDown:Ce,onShowSearch:qe,isPopover:A,showToolbar:X,isDirectQuery:U,autoConfirm:ve,showDetachedToolbarOnly:Le,layout:f,translator:z,styles:H,isRtl:Re,showLock:D,constraints:W,classes:Op,containerRect:V,containerRef:$,model:E,selectionState:le,selections:C,keyboard:ce});return t.createElement(t.Fragment,null,Le&&Me,t.createElement(Tp,{className:"listbox-container",container:!0,tabIndex:ce.enabled?-1:void 0,direction:"column",gap:0,containerPadding:De,styles:H,style:{height:"100%",flexFlow:"column nowrap"},onKeyDown:he,onMouseEnter:fe,onMouseLeave:me,ref:e=>{$.current=e,G(e)},isGridMode:Ae,"aria-label":ce.active?z.get("Listbox.ScreenReaderInstructions"):""},ke&&Me,t.createElement(k,{item:!0,container:!0,direction:"column",height:"100%",minHeight:Pe,role:"region","aria-label":z.get("Listbox.ResultFilterLabel")},t.createElement(k,{item:!0,ref:J},t.createElement(Xu,{selections:C,selectionState:le,model:E,dense:Ie,keyboard:ce,visible:_e,search:v,autoFocus:Te,wildCardSearch:be,searchEnabled:ye,direction:g,hide:Ee&&qe,styles:H})),t.createElement(k,{item:!0,xs:!0,className:Op.listboxWrapper},de?t.createElement(Sp,{text:pe}):t.createElement(mp,null,(e=>{let{height:n,width:r}=e;return t.createElement(vu,{model:E,app:m,constraints:W,layout:f,selections:C,selectionState:le,direction:g,frequencyMode:b,rangeSelect:x,checkboxes:B,height:n,width:r,update:w,fetchStart:L,postProcessPages:R,calculatePagesHeight:_,keyboard:ce,showGray:I,scrollState:q,keyScroll:{state:ne,reset:()=>re({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:ie,set:ae},renderedCallback:O,onCtrlF:Oe,isModal:ue,styles:H})}))))))}));function Dp(e){let{options:n={}}=e;const{model:r}=n,[o]=Ms(r);return t.createElement(Ap,{options:n,layout:o})}function Pp(e){let{app:t,qId:o,options:i={}}=e;const[a,s]=n(),[l]=Rs(),{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((()=>{Promise.resolve(c||async function(e){return l.get(e)||await t.getObject(e)}(o)).then((e=>{!function(e){l.get(e.id)||(l.set(e.id,e),e.once("closed",(()=>{l.clear(e.id)})))}(e),s(e)}))}),[]),a}const Mp={qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:"",qShowAlternatives:!0,frequencyEnabled:!1,qFrequencyMode:"N",qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},histogram:!1,frequencyMax:void 0,checkboxes:!1,searchEnabled:!0,showTitle:!0,wildCardSearch:!1,autoConfirm:!1,layoutOptions:{dense:!1,dataLayout:"singleColumn",layoutOrder:"row",maxVisibleColumns:{auto:!0,maxColumns:3},maxVisibleRows:{auto:!0,maxRows:3}},title:""};function Np(e){let t;switch(!0){case["none","N","NX_FREQUENCY_NONE"].includes(e):t="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(e):t="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(e):t="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(e):t="R";break;default:t="N"}return t}const zp=["__DO_NOT_USE__"],jp=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 Z(Z(Z({},Q(e,zp)),n),t)};function Fp(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});h||Object.assign(u,{frequencyMode:Np(u.frequencyMode)});const[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 b=h?Pp({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(),b=null!==(t=s.title)&&void 0!==t?t:m;let{histogram:y=!1,frequencyMode:v="N"}=s;l&&l.failedToFetchFieldDef&&(y=!1,v="N"),r((()=>{const e=y||"N"!==v;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:S,checkboxes:x,listLayout:E,properties:C={}}=s,w={dense:S};"horizontal"===E&&(w.dataLayout="grid",w.layoutOrder="column",w.maxVisibleColumns={auto:!0},w.maxVisibleRows={auto:!1,maxRows:1});const L=d();L.current||(L.current=ip());const k=Je(!0,{},Mp,{qInfo:{qId:L.current},qListObjectDef:{qStateName:a,qFrequencyMode:y&&"N"===v?"V":v},histogram:y,checkboxes:x,layoutOptions:w,title:b});let R;if(Je(!0,k,C),i.qLibraryId?(k.qListObjectDef.qLibraryId=i.qLibraryId,R=i.qLibraryId):(k.qListObjectDef.qDef.qFieldDefs=[i],R=i),"P"!==v&&y)if(null!=l&&l.multiFieldDim)k.frequencyMax="fetch";else{const e=i.qLibraryId?l:R;k.frequencyMax={qValueExpression:fu(e)}}const[_]=qs(k,u?null:o,R,a);return r((()=>{_&&f(_)}),[_]),h}({app:o,fieldIdentifier:a,stateName:l,options:u}),y=d(c),v=f?u.selectionsApi:td(o,b,[y,".njs-action-toolbar-more",".njs-action-toolbar-popover"],u)[0],S=i((()=>Z(Z({},u),{},{selections:v,model:b,app:o,renderedCallback:p})),[u,v,b,o]);return v&&b?t.createElement(Dp,{options:S}):null}const Wp={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function Bp(e){let{app:r,fieldIdentifier:o,stateName:i,element:a,options:s={}}=e;const[l,c]=n(!!s.show);return t.createElement(jd,{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,components:s.components})}function Hp(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function Up(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 $p=e=>({qDef:{qFieldDefs:[e]}}),Gp=e=>({qDef:{qDef:e}});function Vp(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?$p(e):Z(Z({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||ip(),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),Hp(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 Up(t.qInterColumnSortOrder,e),n.dimensions.removed(r,o,e),r},addMeasure(e){const r="string"==typeof e?Gp(e):Z(Z({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||ip(),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),Hp(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];Up(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 Kp=e=>({qDef:{qFieldDefs:[e]}});function Zp(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?Kp(e):Z(Z({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||ip(),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 Jp=e=>({qDef:{qFieldDefs:[e]}}),Xp=e=>{let t;return t="string"==typeof e?Je(!0,{},Mp,{qListObjectDef:Jp(e)}):e.qListObjectDef?Je(!0,{},Mp,e):Je(!0,{},Mp,{qListObjectDef:e}),t};function Yp(e){let{children:t,halo:n}=e;const r={async addDimension(e){const r=Xp(e),o=r.qListObjectDef;if(o.qDef.cId=o.qDef.cId||ip(),!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(){}};return r}function Qp(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 eh(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")?Zp:e.match("/qChildListDef")?Yp:Vp}(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"===Qp(t)?await d.addMeasure(t):await d.addDimension(t)}}var th={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 nh={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 rh=2**53-1;function oh(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function ih(e,t){const n=Je(!0,{},t,e);return th.getValue(n,"qOtherTotalSpec.qOtherCounted")||th.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),th.getValue(n,"qOtherTotalSpec.qOtherLimit")||th.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function ah(e,t){return Je(!0,{},t,e)}function sh(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var lh={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===th.getValue(e,t)&&th.setValue(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:oh,importCommonProperties:function(e,t,n){const r="masterobject"===th.getValue(t,"properties.qInfo.qType")?"masterobject":th.getValue(n,"qInfo.qType");th.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:ih,createDefaultMeasure:ah,resolveValue:sh,getHypercubePath:function(e){const t=th.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?(nh.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,nh.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=Je(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?th.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||oh(e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),o=Je(!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=sh(i.max,r.dimensions.length,rh),s=sh(i.min,r.dimensions.length,0);return{maxDimensions:sh(o.max,a,rh),minDimensions:sh(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(ih(a.dimensions[s],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(ih(a.dimensions[s],i));else if(a.dimensions.length)for(s=0;s<a.dimensions.length;++s)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(ih(a.dimensions[s],i));if(a.excludedDimensions.length)for(s=0;s<a.excludedDimensions.length;++s)o.qDimensions.length<r?o.qDimensions.push(ih(a.excludedDimensions[s],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(ih(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(ah(a.measures[s],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(ah(a.measures[s],i));else if(a.measures.length)for(s=0;s<a.measures.length;++s)o.qLayoutExclude.qHyperCubeDef.qMeasures.push(ah(a.measures[s],i));if(a.excludedMeasures.length)for(s=0;s<a.excludedMeasures.length;++s)o.qMeasures.length<r?o.qMeasures.push(ah(a.excludedMeasures[s],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(ah(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=th.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=th.getValue(t,r||"").qHyperCubeDef,o=[...e.qMeasures];e.qMeasures=[],o.forEach((r=>{e.qMeasures.push(r),n.measures.added(r,t)}))}}};var ch={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=th.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();nh.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&&(lh.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!th.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=lh.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:i}),l=th.getValue(n,i||"").qHyperCubeDef,c=th.getValue(s,i||"").qHyperCubeDef,{maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:h}=lh.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:f=lh.getDefaultDimension(),defaultMeasure:m=lh.getDefaultMeasure()}=o;return c.qDimensions.length=0,c.qMeasures.length=0,lh.shouldInitLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:h})&&lh.initLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:h,newHyperCubeDef:c}),lh.addDefaultDimensions({exportFormat:t,maxDimensions:u,minDimensions:d,newHyperCubeDef:c,defaultDimension:f}),lh.addDefaultMeasures({exportFormat:t,maxMeasures:p,minMeasures:h,newHyperCubeDef:c,defaultMeasure:m}),lh.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:c}),lh.copyPropertyIfExist("qMaxStackedCells",l,c),lh.copyPropertyIfExist("qNoOfLeftDims",l,c),lh.copyPropertyOrSetDefault("qInitialDataFetch",l,c,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),lh.copyPropertyOrSetDefault("qMode",l,c,"S"),lh.copyPropertyOrSetDefault("qReductionMode",l,c,"N"),lh.copyPropertyOrSetDefault("qSortbyYValue",l,c),lh.copyPropertyOrSetDefault("qIndentMode",l,c),lh.copyPropertyOrSetDefault("qShowTotalsAbove",l,c),lh.importCommonProperties(s,t,n),lh.updateDimensionsOnAdded({newProperties:s,dataDefinition:r,hypercubePath:i}),lh.updateMeasuresOnAdded({newProperties:s,dataDefinition:r,hypercubePath:i}),a.qProperty=s,a}(e)};const uh=e=>th.getValue(e,"data.targets.0.propertyPath"),dh=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return ch.exportProperties})(uh(e))},ph=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return ch.importProperties})(uh(e))},hh=async e=>{let{halo:t,model:n,cellRef:r,newType:o,properties:i,viewDataMode:a=!1}=e;const s=i?{qProperty:i}:await n.getFullPropertyTree(),l=r.current.getQae(),c=dh(l);if(!c)throw new Error("Source chart does not support conversion");const u=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}),d=u.qae,p=ph(d);if(!p)throw new Error("Target chart does not support conversion");return p({exportFormat:c({propertyTree:s,hypercubePath:lh.getHypercubePath(l),viewDataMode:a}),initialProperties:Z({qInfo:{qType:o},visualization:o},th.getValue(d,"properties.initial",{})),dataDefinition:th.getValue(d,"data.targets.0.",{}),hypercubePath:lh.getHypercubePath(d),viewDataMode:a})},fh={hypercube:ch};var mh=e=>Fs((e=>Z(Z({},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 gh(e){let{d:n}=e;const r=ua();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(C,{style:{lineHeight:"30px",paddingRight:r.spacing(1)}},t.createElement(U,null,n.missing||n.error?t.createElement(mh,{style:a}):t.createElement(ol,{style:a})));return t.createElement(k,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},t.createElement(k,{item:!0},s),t.createElement(k,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},t.createElement(C,{noWrap:!0,component:"p"},t.createElement(C,{component:"span",variant:"subtitle2",color:o},n.description),t.createElement(C,{component:"span"}," "),t.createElement(C,{component:"span",variant:"subtitle2",color:n.error?"error":"inherit",style:{fontWeight:400}},n.label))))}function bh(e){let{data:n}=e;const r=ua();return t.createElement(k,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},n.map(((e,n)=>{const o=e.descriptions.map(((e,n)=>t.createElement(gh,{d:e,key:n})));return o.length>0&&t.createElement(k,{container:!0,item:!0,key:n,direction:"column",style:{paddingBottom:r.spacing(2)}},t.createElement(C,{noWrap:!0,key:n,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),o)})))}function yh(e){let{title:n="Error",message:r="",data:o=[]}=e;return t.createElement(k,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},t.createElement(k,{item:!0},t.createElement(mh,{style:{fontSize:"38px"}})),t.createElement(k,{item:!0},t.createElement(C,{variant:"h6",align:"center","data-tid":"error-title"},n)),t.createElement(k,{item:!0},t.createElement(C,{variant:"subtitle1",align:"center","data-tid":"error-message"},r)),t.createElement(bh,{data:o}))}const vh=["size"],Sh="Progress",xh={root:"".concat(Sh,"-root"),front:"".concat(Sh,"-front"),back:"".concat(Sh,"-back")},Eh=Ba("div")((e=>{let{theme:t}=e;return{["&.".concat(xh.root)]:{position:"relative",display:"inline-block"},["& .".concat(xh.front)]:{color:t.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(xh.back)]:{color:t.palette.divider}}})),Ch={small:16,medium:32,large:64,xlarge:128};function wh(e){let{size:n="medium"}=e,r=Q(e,vh);const o=Ch[n];return t.createElement(Eh,{className:xh.root},t.createElement(H,Y({variant:"determinate",value:100,className:xh.back,size:o,thickness:3},r)),t.createElement(H,Y({variant:"indeterminate",disableShrink:!0,className:xh.front,size:o,thickness:3},r)))}const Lh=["cancel","translator"],kh=["retry","translator"],Rh={stripes:"".concat("LongRunningQuery","-stripes")},_h=Ba(k)((()=>({["& .".concat(Rh.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 Ih(e){let{cancel:n,translator:r}=e,o=Q(e,Lh);return t.createElement(t.Fragment,null,t.createElement(_h,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},t.createElement(k,{item:!0},t.createElement(wh,null)),t.createElement(k,{item:!0},t.createElement(C,{variant:"h6",align:"center","data-tid":"update-active"},r.get("Object.Update.Active")))),t.createElement(k,Y({item:!0},o),t.createElement(W,{variant:"contained",onClick:n},r.get("Cancel"))))}function qh(e){let{retry:n,translator:r}=e,o=Q(e,kh);return t.createElement(t.Fragment,null,t.createElement(k,{item:!0},t.createElement(mh,{style:{fontSize:"38px"}})),t.createElement(k,{item:!0},t.createElement(C,{variant:"h6",align:"center","data-tid":"update-cancelled"},r.get("Object.Update.Cancelled"))),t.createElement(k,{item:!0},t.createElement(W,Y({variant:"contained",onClick:n},o),r.get("Retry"))))}function Oh(e){let{canCancel:n,canRetry:r,api:o}=e;const{translator:i}=p(rs);return t.createElement(k,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:Rh.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},n&&t.createElement(Ih,{cancel:o.cancel,translator:i,className:Rh.cancel}),r&&t.createElement(qh,{retry:o.retry,translator:i,className:Rh.retry}))}function Th(){return t.createElement(k,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t.createElement(wh,{size:"large"}))}const Ah="Header",Dh={containerStyle:"".concat(Ah,"-containerStyle"),containerTitleStyle:"".concat(Ah,"-containerTitleStyle")},Ph=Ba(k)((e=>{let{theme:t}=e;return{["&.".concat(Dh.containerStyle)]:{flexGrow:0},["&.".concat(Dh.containerTitleStyle)]:{paddingBottom:t.spacing(1)}}})),Mh="njs-cell-title",Nh="njs-cell-sub-title";function zh(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]=zs(),[b,y]=n(!1);r((()=>{i&&i.component&&i.component.isHooked&&i.component.observeActions((e=>{f([...e,...i&&i.selectionToolbar&&i.selectionToolbar.items||[]])}))}),[i]),r((()=>{if(!g)return;const{width:e}=g;y(e<221)}),[g]);const v=u||d,S=[Dh.containerStyle,...v?[Dh.containerTitleStyle]:[]],x=(s||p)&&(b||!v),E=v&&!x&&!b,w=t.createElement(Gu,{show:E,selections:{show:p,api:i.component.selections,onKeyDeactivate:l.refocusContent},actions:h,popover:{show:x,anchorEl:a},focusHandler:l,layout:o});return t.createElement(Ph,{ref:m,item:!0,container:!0,wrap:"nowrap",className:S.join(" ")},t.createElement(k,{item:!0,zeroMinWidth:!0,xs:!0},t.createElement(k,{container:!0,wrap:"nowrap",direction:"column"},u&&t.createElement(C,{variant:"h6",noWrap:!0,className:Mh,style:c.main},o.title),d&&t.createElement(C,{variant:"body2",noWrap:!0,className:Nh,style:c.subTitle},o.subtitle))),t.createElement(k,{item:!0},w))}const jh={itemStyle:"".concat("Footer","-itemStyle")},Fh=Ba(k)((e=>{let{theme:t}=e;return{["& .".concat(jh.itemStyle)]:{minWidth:0,paddingTop:t.spacing(1)}}})),Wh="njs-cell-footer";function Bh(e){let{layout:n,titleStyles:r={}}=e;return n&&n.showTitles&&n.footnote?t.createElement(Fh,{container:!0},t.createElement(k,{item:!0,className:jh.itemStyle},t.createElement(C,{noWrap:!0,variant:"body2",className:Wh,style:r.footer},n.footnote))):null}class Hh{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 Uh="njs-viz";function $h(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:b}=p(rs),[y]=n((()=>new Hh)),[v,S]=n(!1),[x,E]=n(0),[C,w,L]=zs(),[k,R]=n(null),_=l((e=>{e&&R(e)}),[]);return r((()=>{if(k)return d.created({options:i}),d.mounted(k),S(!0),()=>{y.stop(),d.willUnmount()}}),[k,d]),r((()=>{v&&k&&w&&(!d.isHooked&&s&&s.qSelectionInfo&&s.qSelectionInfo.qInSelections||y.schedule((()=>{const e=[];return m.passive||e.push("passive"),m.active||e.push("interact"),m.select||e.push("select"),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:Z({constraints:m,interactions:g,theme:u.public.theme,appLayout:c,keyboardNavigation:b},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,k,L,s,c,h,f,m,g,v,b]),t.createElement("div",{ref:C,"data-render-count":x,style:{position:"relative",height:"100%"},className:Uh},t.createElement("div",{ref:_,style:{position:"absolute",width:"100%",height:"100%"}}))}const Gh=(e,t,n,r)=>{const o=i((()=>{if(e&&t){const r=e.components?e.components.find((e=>"general"===e.key)):null,o={main:qd(r,"main",t,e.visualization),footer:qd(r,"footer",t,e.visualization),subTitle:qd(r,"subTitle",t,e.visualization)},i=_d(r,t,e.visualization),a=Rd(r,n),s=function(e,t,n){const r=Cd(null==e?void 0:e.borderColor,"","borderColor",t,n),o=(null==e?void 0:e.borderWidth)||xd("","borderWidth",t,n);return o&&r?"".concat(o," solid ").concat(r):void 0}(r,t,e.visualization),l=function(e,t,n){return(null==e?void 0:e.borderRadius)||xd("","borderRadius",t,n)}(r,t,e.visualization);return{titleStyles:o,bgColor:i,bgImage:a,border:s,borderRadius:l,boxShadow:Id(r,t,e.visualization)}}return{}}),[e,t,n,r]);return o},Vh="njs-cell",Kh=(e,t)=>{switch(t.type){case"LOADING":return Z(Z({},e),{},{loading:!0});case"LOADED":return Z(Z({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization});case"RENDER":return Z(Z({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null});case"LONG_RUNNING_QUERY":return Z(Z({},e),{},{longRunningQuery:!0});case"ERROR":return Z(Z({},e),{},{loading:!1,longRunningQuery:!1,error:t.error});default:throw new Error("Unhandled type: ".concat(t.type))}};function Zh(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(Th,null):null}const Jh=e=>!e.qError||7005===e.qError.qErrorCode,Xh=(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}})),Yh=e=>e&&(Array.isArray(e)?e:[e])||[],Qh=(e,t,n,r)=>{const o=r.dimensions.min(),i=r.measures.min(),a=r.resolveLayout(t);return{reqDimErrors:Xh(o,Yh(a.qDimensionInfo||a.qItems),(e=>r.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:Xh(i,Yh(a.qMeasureInfo),(e=>r.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},ef=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=Yh(h.qDimensionInfo||h.qItems).filter(Jh),m=Yh(h.qMeasureInfo).filter(Jh);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=Qh(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]),b=[{title:f,descriptions:[...u]},{title:g,descriptions:[...d]}],y=l?c:b;return[l||i,{title:l?c[0].title:e.get("Visualization.Incomplete"),data:y}]},tf=o(((e,o)=>{let{halo:i,model:l,initialSnOptions:c,initialSnPlugins:u,initialError:h,onMount:f,currentId:m,emitter:g}=e;const{app:b,types:y}=i,{nebbie:v}=i.public,{theme:S,translator:x,language:E,keyboardNavigation:C,disableCellPadding:w=!1}=p(rs),L=ua(),[R,I,q]=zs(),[O,T]=s(Kh,{loading:!1,loaded:!1,longRunningQuery:!1,error:(A=h)?{title:A.message}:null,sn:null,visualization:null});var A;const[D,P]=n(l),[M,{validating:N,canCancel:z,canRetry:j},F]=Ms(D),[W]=Ns(b),[B,H,U]=zs(),[$,G]=n(c),[V,K]=n(u),J="njs-cell-".concat(m),[X]=td(b,D,["#".concat(J),".njs-action-toolbar-popover"]),[Y,Q]=n(!1),ee=d({enter:null,leave:null}),{titleStyles:te,bgColor:ne,bgImage:re,border:oe,borderRadius:ie,boxShadow:ae}=Gh(M,i.public.theme,i.app,S),se=d({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});r((()=>{Yu(se.current)}),[]),se.current.blurCallback=e=>{i.root.toggleFocusOfCells(),e&&U&&U.focus()},se.current.refocusContent=()=>{O.sn.component&&"function"==typeof O.sn.component.focus&&O.sn.component.focus()};r((()=>{if(h)return void f();if(!W||!M)return;if(O.visualization===M.visualization&&O.sn)return void(async e=>{const[t,n]=await ef(x,M,e.generator.qae.data,D);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:O.sn,layout:M,model:D})})(O.sn);const e=y.getSupportedVersion(M.visualization,M.version);return(async(e,t)=>{T({type:"LOADING"}),await(async e=>{let{dispatch:t,types:n,visualization:r,version:o,model:i,app:a,selections:s,nebbie:l,focusHandler:c,emitter:u,onMount:d}=e;try{const e=await(async e=>{let{types:t,name:n,version:r}=e;return await t.get({name:n,version:r}).supernova()})({types:n,name:r,version:o}),p=e.create({model:i,app:a,selections:s,nebbie:l,focusHandler:c,emitter:u});p&&(t({type:"LOADED",sn:p,visualization:r}),d())}catch(e){t(o?{type:"ERROR",error:{title:e.message}}:{type:"ERROR",error:{title:"Could not find a version of '".concat(r,"' that supports current object version. Did you forget to register ").concat(r,"?")}}),d()}})({dispatch:T,types:y,visualization:e,version:t,model:D,app:b,selections:X,nebbie:v,focusHandler:se.current,emitter:g,onMount:f})})(M.visualization,e),()=>{}}),[y,O.sn,D,X,M,W,E]),r((()=>{if(!N)return;const e=setTimeout((()=>T({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[N]),a(o,(()=>({getQae:()=>O.sn.generator.qae,toggleFocus(e){"function"==typeof O.sn.component.focus&&(e?O.sn.component.focus():O.sn.component.blur())},setSnOptions:G,setSnPlugins:K,setModel:P,getImperativeHandle(){var e;return null!==(e=O.sn)&&void 0!==e&&e.component&&"function"==typeof O.sn.component.getImperativeHandle?O.sn.component.getImperativeHandle():{}},async takeSnapshot(){const{width:e,height:t}=I;let n=JSON.parse(JSON.stringify(M));return"function"==typeof O.sn.component.setSnapshotData&&(n=await O.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:x.language(),theme:L.name,appLayout:W,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)}})),[O.sn,H,I,M,L.name,W]);let le=null;return O.loading&&!O.longRunningQuery?le=t.createElement(Zh,null):O.error?le=t.createElement(yh,O.error):O.loaded&&(le=t.createElement($h,{key:M.visualization,sn:O.sn,halo:i,snOptions:$,snPlugins:V,layout:M,appLayout:W})),t.createElement(_,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:ne||"unset",backgroundImage:re&&re.url?"url(".concat(re.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:re&&re.size,backgroundPosition:re&&re.pos,border:oe,borderRadius:ie,boxShadow:ae,boxSizing:"border-box"},elevation:0,square:!0,className:Vh,ref:R,id:J,onMouseEnter:()=>{ee.current.leave&&clearTimeout(ee.current.leave),ee.enter||(ee.current.enter=setTimeout((()=>{Q(!0),ee.current.enter=null}),250))},onMouseLeave:()=>{ee.current.enter&&clearTimeout(ee.current.enter),ee.current.leave||(ee.current.leave=setTimeout((()=>{Q(!1),ee.current.leave=null}),750))}},t.createElement(k,{container:!0,direction:"column",gap:0,style:Z(Z({position:"relative",width:"100%",height:"100%"},w?{}:{padding:L.spacing(1)}),O.longRunningQuery?{opacity:"0.3"}:{})},q&&M&&O.sn&&t.createElement(zh,{layout:M,sn:O.sn,anchorEl:q,hovering:Y,focusHandler:se.current,titleStyles:te}," "),t.createElement(k,{tabIndex:C?0:-1,onKeyDown:C?e=>{["Enter"," ","Spacebar"].includes(e.key)&&i.root.toggleFocusOfCells(m)}:null,item:!0,xs:!0,style:{height:"100%"},ref:B},le),q&&M&&O.sn&&t.createElement(Bh,{layout:M,titleStyles:te})),O.longRunningQuery&&t.createElement(Oh,{canCancel:z,canRetry:j,api:F}))}));function nf(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function rf(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;const r=[];return Object.keys(t).forEach((o=>{const i=t[o];"object"!=typeof n[o]||"object"!=typeof i||Array.isArray(i)?function(e,t){return nf(e)&&nf(t)?JSON.stringify(e)===JSON.stringify(t):!Array.isArray(e)&&!Array.isArray(t)&&e===t}(i,n[o])||r.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])}):r.push(...rf("".concat(e).concat(o,"/"),t[o],n[o]))})),r}function of(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 af=e=>{var t;return!(!e||e.qHasSoftPatches||e.qExtendsId||!(((null===(t=e.qMeta)||void 0===t?void 0:t.privileges)||[]).indexOf("update")>-1))},sf=(e,t)=>e.__snInterceptor?e.__snInterceptor.setProperties.call(e,t):e.setProperties(t),lf=Je.bind(null,!0),cf={},{isArray:uf}=Array;function df(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function pf(e){return void 0===e}function hf(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function ff(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]=pf(e[r||t])?i:e[t],e=e[r||t]})),e}function mf(e,t){let n=!0;if(df(e)&&df(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{mf(e[r],t[r])||(n=!1)})),n);if(uf(e)&&uf(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!mf(e[n],t[n]))return!1;return!0}return e===t}cf.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const i=function(e){return e?lf({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(n,"/").concat(o);mf(i,a)||hf(t,o)||(pf(a)?r.push({op:"add",path:s,value:i}):df(i)&&df(a)?r=r.concat(cf.generate(a,i,s)):uf(i)&&uf(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]&&pf(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(mf(t,o))return r;if(!pf(t[0])&&pf(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(cf.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=>{pf(t[o])&&!hf(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},cf.apply=function(e,t){t.forEach((t=>{let n=ff(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(uf(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(uf(o)&&uf(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(df(o)&&df(t.value))a=o,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!hf(a,e)&&delete a[e]})),lf(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=ff(e,t.from);uf(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(uf(n)?n.splice(+r,1):delete n[r]);var a}))},cf.clone=function(e){return lf({},e)},cf.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},cf.updateObject=function(e,t){Object.keys(e).length?cf.apply(e,cf.generate(e,t)):lf(e,t)};const gf=e=>t=>{const n=(r=Z(Z({},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(ae.prototype).forEach((e=>{r[e]=ae.prototype[e]})),ae.init(r),r);var r;return n};let bf,yf;function vf(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 Sf(e){let{explicitResize:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.__hooks={obsolete:!1,error:!1,waitForData:!1,chain:{promise:null,resolve:()=>{}},list:[],snaps:[],menus:[],actions:{list:[]},pendingEffects:[],pendingLayoutEffects:[],pendingPromises:[],resizer:{setters:[],explicitResize:t},accessibility:{setter:null},contraintsWarning:!0}}function xf(e){Cf(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 Ef(e){if(e.__hooks.obsolete)return Promise.resolve();yf=-1,bf=e,bf.__hooks.initiated&&bf.__hooks.list.length;try{bf.fn.call(null)}catch(e){console.error(e)}bf.__hooks.initiated=!0;const t=bf.__hooks;return Rf(bf),yf=void 0,bf=void 0,t.chain.promise||(t.chain.promise=new Promise((e=>{t.chain.resolve=e}))),function(e){Cf(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame((()=>{!function(e){Cf(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 Cf(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 wf(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 Lf(e,t,n,r){try{return Promise.all(e.__hooks.menus.map((e=>Promise.resolve(e.fn(t,n,r))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function kf(e){return e.__hooks.imperativeHandle}function Rf(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function _f(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,Rf(e))}function If(e){if(void 0===bf)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=bf.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function qf(e){If(++yf);return bf.context[e]}function Of(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function Tf(e){return{__hooked:!0,fn:e,initiate:Sf,run:Ef,teardown:xf,runSnaps:wf,runMenu:Lf,focus:lm,blur:cm,observeActions:_f,getImperativeHandle:kf,updateRectOnNextRun:Of}}function Af(e){const t=If(++yf);if(!t.value){t.component=bf;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,Ef(r)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function Df(e,t){const n=If(++yf);vf(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===bf.__hooks.pendingEffects.indexOf(n)&&bf.__hooks.pendingEffects.push(n))}function Pf(e,t){const n=If(++yf);vf(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],bf.__hooks.pendingLayoutEffects.push(n))}function Mf(e,t){const n=If(++yf);return vf(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function Nf(e,t){const[n,r]=Af((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=If(++yf);return o.component||(o.component=bf),Pf((()=>{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 zf(){return qf("element")}function jf(){const e=zf(),t=bf.__hooks.resizer,[n,r]=Af((()=>{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()),Pf((()=>{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 Ff(){return qf("layout")}function Wf(){const e=qf("layout"),[t]=Af({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current}function Bf(){return qf("appLayout")}function Hf(){const e=qf("model");return e&&e.session?e:void 0}function Uf(){const e=qf("app");return e&&e.session?e:void 0}function $f(){const e=qf("global");return e&&e.session?e:void 0}function Gf(){return qf("selections")}function Vf(){return qf("theme")}function Kf(){return qf("nebbie")}function Zf(){return qf("translator")}function Jf(){return qf("deviceType")}function Xf(){return qf("plugins")}function Yf(e,t){const[n]=Af({action(){n._config.action.call(null)}});return n.component||(n.component=bf,bf.__hooks.actions.list.push(n)),Mf((()=>{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 Qf(){return qf("constraints")}function em(){return qf("interactions")}function tm(){return qf("options")}function nm(e,t){const n=If(++yf);if(n.imperative||(n.imperative=!0),vf(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],bf.__hooks.imperativeHandle=r}}function rm(e){const t=If(++yf);t.value||(t.value=1,bf.__hooks.snaps.push(t)),t.fn=e}function om(e){const t=If(++yf);t.value||(t.value=1,bf.__hooks.menus.push(t)),t.fn=e}function im(){If(++yf);const e=bf.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}}function am(){return qf("emitter")}function sm(){const e=qf("keyboardNavigation"),t=qf("focusHandler");if(!bf.__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&&(cm(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(bf);bf.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),lm(this))}.bind(bf);bf.__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(bf);bf.__hooks.accessibility.focusSelectionFunction=r}const n=bf.__hooks.accessibility.focusFunction,r=bf.__hooks.accessibility.exitFunction,o=bf.__hooks.accessibility.focusSelectionFunction,[i,a]=Af({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return bf.__hooks.accessibility.setter=a,bf.__hooks.accessibility.enabled=e,Df((()=>a({active:!1,enabled:e,blur:r,focus:n,focusSelection:o})),[e]),i}function lm(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 cm(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 um={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},dm=Object.keys(um),pm=e=>(Object.keys(ae.prototype).forEach((t=>{e[t]=ae.prototype[t]})),ae.init(e),e);function hm(e,t){const n=Z({},um);pm(n);const r={emit(){n.emit(...arguments)}};Object.keys(e.component||{}).forEach((t=>{-1!==dm.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=gf(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 fm(e,t,n){"function"==typeof e.component&&(e.component=Tf(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(Z(Z({},r[e]),s))),"interactions"===e&&(t=JSON.stringify(Z(Z({},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,r){return e.component.runMenu(this,t,n,r)},focus(){e.component.focus(this)},blur(){e.component.blur(this)},getImperativeHandle(){return e.component.getImperativeHandle(this)},destroy(){},observeActions(t){e.component.observeActions(this,t)},isHooked:!0};return 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):hm(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=cf.clone(o),a=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));cf.apply(o,a),e.qae.properties.onChange.call({model:t.model},o);const s=cf.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 mm=()=>{};function gm(e,t){return void 0===e?()=>t:()=>e}function bm(e){const t=e||{};return{min:"function"==typeof t.min?t.min:gm(t.min,0),max:"function"==typeof t.max?t.max:gm(t.max,1e3),added:t.added||t.add||mm,description:t.description||mm,moved:t.moved||t.move||mm,removed:t.removed||t.remove||mm,replaced:t.replaced||t.replace||mm,isDefined:()=>!!e}}const ym=(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 vm(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=>ym(e,n,{}),dimensions:bm(e.dimensions),measures:bm(e.measures)}}function Sm(){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(vm)},exportProperties:t.exportProperties,importProperties:t.importProperties}}function xm(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:Sm(n.qae),component:n.component||{},create:e=>fm(r,e,t),definition:{}};return Object.keys(n).forEach((e=>{r[e]||(r.definition[e]=n[e])})),r}const Em=(e,t,n)=>{if(!e)return Promise.resolve();let r=cf.generate(t,n);return Je(!0,t,n),r&&r.length?(r=r.map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}))),e.__snInterceptor?e.__snInterceptor.applyPatches.call(e,r,!0):e.applyPatches(r,!0)):Promise.resolve()},Cm=()=>{};function wm(){let e,{model:n,halo:r,initialError:o,onDestroy:i=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=Cm,s=null,l=null,c=null,u=null;const d=new Promise((e=>{c=e})),p=new Promise((e=>{u=e})),h=e=>()=>{e&&e(),u()};let f={},g=[];const b=new ae,y={id:n.id,model:n,async destroy(){await i(),a(),a=Cm},async convertTo(e){let t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]){const o=await n.getLayout();if(af(o)&&!t){const t=await hh({halo:r,model:n,cellRef:s,newType:e});return await sf(n,t.qProperty),t}const i=await n.getEffectiveProperties(),a=await hh({halo:r,model:n,cellRef:s,newType:e,properties:i}),l=a.qProperty;return await Em(n,i,l),a}return await hh({halo:r,model:n,cellRef:s,newType:e})},async toggleDataView(t){let o;if(e||!1===t)e&&!0!==t&&(o=n,await r.app.destroySessionObject(e),e=void 0);else{let t=r.config.context.dataViewType;const i=await n.getEffectiveProperties();if(!r.types.getSupportedVersion(t)){if(!r.types.getSupportedVersion("table"))throw new Error("No data view type registered");t="table"}const a=await hh({halo:r,model:n,cellRef:s,newType:t,properties:i,viewDataMode:!0});o=await r.app.createSessionObject(a.qProperty),e=o.id}o&&s.current.setModel(o)},addListener(e,t){b.addListener(e,t)},removeListener(e,t){b.removeListener(e,t)},getImperativeHandle:async()=>(await p,s.current.getImperativeHandle()),__DO_NOT_USE__:{mount(e){if(l)throw new Error("Already mounted");if(!(e instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return l=e,[a,s]=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=ip(),h=m.createPortal(t.createElement(tf,{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:r,element:e,model:n,initialSnOptions:f,initialSnPlugins:g,initialError:o,onMount:c,emitter:b}),d},async applyProperties(e){const t=rf("/",e,await n.getEffectiveProperties());if(t.length)return n.applyPatches(t,!0)},options(e){(async e=>{const t=e.onInitialRender;l?(async()=>{await d,s.current.setSnOptions(Z(Z(Z({},f),e),{onInitialRender:h(t)}))})():f=Z(Z(Z({},f),e),{onInitialRender:h(t)})})(e)},plugins(e){(async e=>{of(e),l?(async()=>{await d,s.current.setSnPlugins(e)})():g=e})(e)},exportImage:()=>s.current.exportImage(),takeSnapshot:()=>s.current.takeSnapshot(),getModel:()=>n,convert:{async toType(e){const t=await n.getEffectiveProperties(),o=await hh({halo:r,model:n,cellRef:s,newType:e,properties:t}),i=o.qProperty;return await Em(n,t,i),o},async revert(){await n.clearSoftPatches()}}}};return y}async function Lm(e,t,n,r){const o=wm({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 km(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 eh({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}),_s.set(e.id,e),e}return l}const Rm={className:"njs-sheet"};function _m(e,t,n){return e.bounds?e.bounds:{y:e.row/n*100,x:e.col/t*100,width:e.colspan/t*100,height:e.rowspan/n*100}}function Im(e){let{model:o,halo:a,initialSnOptions:s,initialSnPlugins:l,initialError:c,onMount:u}=e;const{root:d}=a,[h]=Ms(o),{theme:f}=p(rs),[m,g]=n([]),[b,y]=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,{columns:n,rows:r}=h,o=await Promise.all(e.map((async e=>{let o;const i=new Promise((e=>{o=e})),s=m.find((t=>t.id===e.name));if(s)return s.bounds=_m(e,n,r),delete s.mountedPromise,s;const l=await async function(e,t){let{id:n,options:r,plugins:o,element:i}=e;const a="".concat(n);let s=Es.get(a);s||(s=t.app.getObject(n),Es.set(a,s));const l=await s;return _s.set(a,l),Lm(l,{options:r,plugins:o,element:i},t)}({id:e.name},a);return{model:l.model,id:e.name,bounds:_m(e,n,r),cellRef:t.createRef(),currentId:ip(),mounted:o,mountedPromise:i}})));o.forEach((e=>d.addCell(e.currentId,e.cellRef))),g(o)};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(tf,{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;y(_d(e,a.public.theme)),S(Rd(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)),k=L.filter((e=>!!e));return k.length&&Promise.all(L).then((()=>{u()})),t.createElement("div",{className:Rm.className,style:{width:"100%",height:w,position:"relative",backgroundColor:b,backgroundImage:v&&v.url?"url(".concat(v.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:v&&v.size,backgroundPosition:v&&v.pos}},C)}const qm=()=>{};function Om(){let{model:e,halo:n,initialError:r,onDestroy:o=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=qm,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=qm},__DO_NOT_USE__:{mount(o){if(s)throw new Error("Already mounted");if(!(o instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");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(Im,{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=rf("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{s?(async()=>{await c,a.current.setSnOptions(Z(Z({},u),e))})():u=Z(Z({},u),e)})(e)},plugins(e){(async e=>{of(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 Tm(e,t){let{id:n,options:r,plugins:o,element:i}=e;const a="".concat(n);let s=Es.get(a);s||(s=t.app.getObject(n),Es.set(a,s));const l=await s;return _s.set(a,l),"sheet"===l.genericType?async function(e,t,n,r){const o=Om({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):Lm(l,{options:r,plugins:o,element:i},t)}function Am(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}var Dm,Pm;var Mm=Nm;function Nm(e){var t=this;if(t instanceof Nm||(t=new Nm),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var n=0,r=arguments.length;n<r;n++)t.push(arguments[n]);return t}function zm(e,t,n){var r=t===e.head?new Wm(n,null,t,e):new Wm(n,t,t.next,e);return null===r.next&&(e.tail=r),null===r.prev&&(e.head=r),e.length++,r}function jm(e,t){e.tail=new Wm(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function Fm(e,t){e.head=new Wm(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function Wm(e,t,n,r){if(!(this instanceof Wm))return new Wm(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}Nm.Node=Wm,Nm.create=Nm,Nm.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},Nm.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},Nm.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},Nm.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)jm(this,arguments[e]);return this.length},Nm.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)Fm(this,arguments[e]);return this.length},Nm.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},Nm.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},Nm.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;null!==n;r++)e.call(t,n.value,r,this),n=n.next},Nm.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;null!==n;r--)e.call(t,n.value,r,this),n=n.prev},Nm.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},Nm.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},Nm.prototype.map=function(e,t){t=t||this;for(var n=new Nm,r=this.head;null!==r;)n.push(e.call(t,r.value,this)),r=r.next;return n},Nm.prototype.mapReverse=function(e,t){t=t||this;for(var n=new Nm,r=this.tail;null!==r;)n.push(e.call(t,r.value,this)),r=r.prev;return n},Nm.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var o=0;null!==r;o++)n=e(n,r.value,o),r=r.next;return n},Nm.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var o=this.length-1;null!==r;o--)n=e(n,r.value,o),r=r.prev;return n},Nm.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},Nm.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},Nm.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new Nm;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=0,o=this.head;null!==o&&r<e;r++)o=o.next;for(;null!==o&&r<t;r++,o=o.next)n.push(o.value);return n},Nm.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new Nm;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var r=this.length,o=this.tail;null!==o&&r>t;r--)o=o.prev;for(;null!==o&&r>e;r--,o=o.prev)n.push(o.value);return n},Nm.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,o=this.head;null!==o&&r<e;r++)o=o.next;var i=[];for(r=0;o&&r<t;r++)i.push(o.value),o=this.removeNode(o);null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(r=0;r<n.length;r++)o=zm(this,o,n[r]);return i},Nm.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};try{(Pm||(Pm=1,Dm=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}),Dm)(Nm)}catch(e){}const Bm=Mm,Hm=Symbol("max"),Um=Symbol("length"),$m=Symbol("lengthCalculator"),Gm=Symbol("allowStale"),Vm=Symbol("maxAge"),Km=Symbol("dispose"),Zm=Symbol("noDisposeOnSet"),Jm=Symbol("lruList"),Xm=Symbol("cache"),Ym=Symbol("updateAgeOnGet"),Qm=()=>1;const eg=(e,t,n)=>{const r=e[Xm].get(t);if(r){const t=r.value;if(tg(e,t)){if(rg(e,r),!e[Gm])return}else n&&(e[Ym]&&(r.value.now=Date.now()),e[Jm].unshiftNode(r));return t.value}},tg=(e,t)=>{if(!t||!t.maxAge&&!e[Vm])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[Vm]&&n>e[Vm]},ng=e=>{if(e[Um]>e[Hm])for(let t=e[Jm].tail;e[Um]>e[Hm]&&null!==t;){const n=t.prev;rg(e,t),t=n}},rg=(e,t)=>{if(t){const n=t.value;e[Km]&&e[Km](n.key,n.value),e[Um]-=n.length,e[Xm].delete(n.key),e[Jm].removeNode(t)}};class og{constructor(e,t,n,r,o){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=o||0}}const ig=(e,t,n,r)=>{let o=n.value;tg(e,o)&&(rg(e,n),e[Gm]||(o=void 0)),o&&t.call(r,o.value,o.key,e)};var ag=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[Hm]=e.max||1/0;const t=e.length||Qm;if(this[$m]="function"!=typeof t?Qm:t,this[Gm]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[Vm]=e.maxAge||0,this[Km]=e.dispose,this[Zm]=e.noDisposeOnSet||!1,this[Ym]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[Hm]=e||1/0,ng(this)}get max(){return this[Hm]}set allowStale(e){this[Gm]=!!e}get allowStale(){return this[Gm]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[Vm]=e,ng(this)}get maxAge(){return this[Vm]}set lengthCalculator(e){"function"!=typeof e&&(e=Qm),e!==this[$m]&&(this[$m]=e,this[Um]=0,this[Jm].forEach((e=>{e.length=this[$m](e.value,e.key),this[Um]+=e.length}))),ng(this)}get lengthCalculator(){return this[$m]}get length(){return this[Um]}get itemCount(){return this[Jm].length}rforEach(e,t){t=t||this;for(let n=this[Jm].tail;null!==n;){const r=n.prev;ig(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[Jm].head;null!==n;){const r=n.next;ig(this,e,n,t),n=r}}keys(){return this[Jm].toArray().map((e=>e.key))}values(){return this[Jm].toArray().map((e=>e.value))}reset(){this[Km]&&this[Jm]&&this[Jm].length&&this[Jm].forEach((e=>this[Km](e.key,e.value))),this[Xm]=new Map,this[Jm]=new Bm,this[Um]=0}dump(){return this[Jm].map((e=>!tg(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[Jm]}set(e,t,n){if((n=n||this[Vm])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const r=n?Date.now():0,o=this[$m](t,e);if(this[Xm].has(e)){if(o>this[Hm])return rg(this,this[Xm].get(e)),!1;const i=this[Xm].get(e).value;return this[Km]&&(this[Zm]||this[Km](e,i.value)),i.now=r,i.maxAge=n,i.value=t,this[Um]+=o-i.length,i.length=o,this.get(e),ng(this),!0}const i=new og(e,t,o,r,n);return i.length>this[Hm]?(this[Km]&&this[Km](e,t),!1):(this[Um]+=i.length,this[Jm].unshift(i),this[Xm].set(e,this[Jm].head),ng(this),!0)}has(e){if(!this[Xm].has(e))return!1;const t=this[Xm].get(e).value;return!tg(this,t)}get(e){return eg(this,e,!0)}peek(e){return eg(this,e,!1)}pop(){const e=this[Jm].tail;return e?(rg(this,e),e.value):null}del(e){rg(this,this[Xm].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const r=e[n],o=r.e||0;if(0===o)this.set(r.k,r.v);else{const e=o-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[Xm].forEach(((e,t)=>eg(this,t,!1)))}};const sg=Object.freeze({loose:!0}),lg=Object.freeze({});var cg=e=>e?"object"!=typeof e?sg:e:lg,ug={exports:{}};var dg={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};var pg="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error("SEMVER",...t)}:()=>{};!function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=dg,i=pg,a=(t=e.exports={}).re=[],s=t.safeRe=[],l=t.src=[],c=t.t={};let u=0;const d="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",o],[d,r]],h=(e,t,n)=>{const r=(e=>{for(const[t,n]of p)e=e.split("".concat(t,"*")).join("".concat(t,"{0,").concat(n,"}")).split("".concat(t,"+")).join("".concat(t,"{1,").concat(n,"}"));return e})(t),o=u++;i(e,o,t),c[e]=o,l[o]=t,a[o]=new RegExp(t,n?"g":void 0),s[o]=new RegExp(r,n?"g":void 0)};h("NUMERICIDENTIFIER","0|[1-9]\\d*"),h("NUMERICIDENTIFIERLOOSE","\\d+"),h("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-]".concat(d,"*")),h("MAINVERSION","(".concat(l[c.NUMERICIDENTIFIER],")\\.")+"(".concat(l[c.NUMERICIDENTIFIER],")\\.")+"(".concat(l[c.NUMERICIDENTIFIER],")")),h("MAINVERSIONLOOSE","(".concat(l[c.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(l[c.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(l[c.NUMERICIDENTIFIERLOOSE],")")),h("PRERELEASEIDENTIFIER","(?:".concat(l[c.NUMERICIDENTIFIER],"|").concat(l[c.NONNUMERICIDENTIFIER],")")),h("PRERELEASEIDENTIFIERLOOSE","(?:".concat(l[c.NUMERICIDENTIFIERLOOSE],"|").concat(l[c.NONNUMERICIDENTIFIER],")")),h("PRERELEASE","(?:-(".concat(l[c.PRERELEASEIDENTIFIER],"(?:\\.").concat(l[c.PRERELEASEIDENTIFIER],")*))")),h("PRERELEASELOOSE","(?:-?(".concat(l[c.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(l[c.PRERELEASEIDENTIFIERLOOSE],")*))")),h("BUILDIDENTIFIER","".concat(d,"+")),h("BUILD","(?:\\+(".concat(l[c.BUILDIDENTIFIER],"(?:\\.").concat(l[c.BUILDIDENTIFIER],")*))")),h("FULLPLAIN","v?".concat(l[c.MAINVERSION]).concat(l[c.PRERELEASE],"?").concat(l[c.BUILD],"?")),h("FULL","^".concat(l[c.FULLPLAIN],"$")),h("LOOSEPLAIN","[v=\\s]*".concat(l[c.MAINVERSIONLOOSE]).concat(l[c.PRERELEASELOOSE],"?").concat(l[c.BUILD],"?")),h("LOOSE","^".concat(l[c.LOOSEPLAIN],"$")),h("GTLT","((?:<|>)?=?)"),h("XRANGEIDENTIFIERLOOSE","".concat(l[c.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),h("XRANGEIDENTIFIER","".concat(l[c.NUMERICIDENTIFIER],"|x|X|\\*")),h("XRANGEPLAIN","[v=\\s]*(".concat(l[c.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(l[c.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(l[c.XRANGEIDENTIFIER],")")+"(?:".concat(l[c.PRERELEASE],")?").concat(l[c.BUILD],"?")+")?)?"),h("XRANGEPLAINLOOSE","[v=\\s]*(".concat(l[c.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(l[c.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(l[c.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(l[c.PRERELEASELOOSE],")?").concat(l[c.BUILD],"?")+")?)?"),h("XRANGE","^".concat(l[c.GTLT],"\\s*").concat(l[c.XRANGEPLAIN],"$")),h("XRANGELOOSE","^".concat(l[c.GTLT],"\\s*").concat(l[c.XRANGEPLAINLOOSE],"$")),h("COERCEPLAIN","".concat("(^|[^\\d])(\\d{1,").concat(n,"})")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:\\.(\\d{1,".concat(n,"}))?")),h("COERCE","".concat(l[c.COERCEPLAIN],"(?:$|[^\\d])")),h("COERCEFULL",l[c.COERCEPLAIN]+"(?:".concat(l[c.PRERELEASE],")?")+"(?:".concat(l[c.BUILD],")?")+"(?:$|[^\\d])"),h("COERCERTL",l[c.COERCE],!0),h("COERCERTLFULL",l[c.COERCEFULL],!0),h("LONETILDE","(?:~>?)"),h("TILDETRIM","(\\s*)".concat(l[c.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",h("TILDE","^".concat(l[c.LONETILDE]).concat(l[c.XRANGEPLAIN],"$")),h("TILDELOOSE","^".concat(l[c.LONETILDE]).concat(l[c.XRANGEPLAINLOOSE],"$")),h("LONECARET","(?:\\^)"),h("CARETTRIM","(\\s*)".concat(l[c.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",h("CARET","^".concat(l[c.LONECARET]).concat(l[c.XRANGEPLAIN],"$")),h("CARETLOOSE","^".concat(l[c.LONECARET]).concat(l[c.XRANGEPLAINLOOSE],"$")),h("COMPARATORLOOSE","^".concat(l[c.GTLT],"\\s*(").concat(l[c.LOOSEPLAIN],")$|^$")),h("COMPARATOR","^".concat(l[c.GTLT],"\\s*(").concat(l[c.FULLPLAIN],")$|^$")),h("COMPARATORTRIM","(\\s*)".concat(l[c.GTLT],"\\s*(").concat(l[c.LOOSEPLAIN],"|").concat(l[c.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",h("HYPHENRANGE","^\\s*(".concat(l[c.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(l[c.XRANGEPLAIN],")")+"\\s*$"),h("HYPHENRANGELOOSE","^\\s*(".concat(l[c.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(l[c.XRANGEPLAINLOOSE],")")+"\\s*$"),h("STAR","(<|>)?=?\\s*\\*"),h("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),h("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(ug,ug.exports);var hg=ug.exports;const fg=/^[0-9]+$/,mg=(e,t)=>{const n=fg.test(e),r=fg.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1};var gg={compareIdentifiers:mg,rcompareIdentifiers:(e,t)=>mg(t,e)};const bg=pg,{MAX_LENGTH:yg,MAX_SAFE_INTEGER:vg}=dg,{safeRe:Sg,t:xg}=hg,Eg=cg,{compareIdentifiers:Cg}=gg;var wg=class e{constructor(t,n){if(n=Eg(n),t instanceof e){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if("string"!=typeof t)throw new TypeError('Invalid version. Must be a string. Got type "'.concat(typeof t,'".'));if(t.length>yg)throw new TypeError("version is longer than ".concat(yg," characters"));bg("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=t.trim().match(n.loose?Sg[xg.LOOSE]:Sg[xg.FULL]);if(!r)throw new TypeError("Invalid Version: ".concat(t));if(this.raw=t,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>vg||this.major<0)throw new TypeError("Invalid major version");if(this.minor>vg||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>vg||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<vg)return t}return e})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}toString(){return this.version}compare(t){if(bg("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if("string"==typeof t&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),Cg(this.major,t.major)||Cg(this.minor,t.minor)||Cg(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const e=this.prerelease[n],r=t.prerelease[n];if(bg("prerelease compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return Cg(e,r)}while(++n)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let n=0;do{const e=this.build[n],r=t.build[n];if(bg("prerelease compare",n,e,r),void 0===e&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===e)return-1;if(e!==r)return Cg(e,r)}while(++n)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===Cg(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error("invalid increment argument: ".concat(e))}return this.raw=this.format(),this.build.length&&(this.raw+="+".concat(this.build.join("."))),this}};const Lg=wg;var kg=(e,t,n)=>new Lg(e,n).compare(new Lg(t,n));const Rg=kg;var _g=(e,t,n)=>0===Rg(e,t,n);const Ig=kg;var qg=(e,t,n)=>0!==Ig(e,t,n);const Og=kg;var Tg=(e,t,n)=>Og(e,t,n)>0;const Ag=kg;var Dg=(e,t,n)=>Ag(e,t,n)>=0;const Pg=kg;var Mg=(e,t,n)=>Pg(e,t,n)<0;const Ng=kg;var zg=(e,t,n)=>Ng(e,t,n)<=0;const jg=_g,Fg=qg,Wg=Tg,Bg=Dg,Hg=Mg,Ug=zg;var $g,Gg,Vg,Kg,Zg=(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 jg(e,n,r);case"!=":return Fg(e,n,r);case">":return Wg(e,n,r);case">=":return Bg(e,n,r);case"<":return Hg(e,n,r);case"<=":return Ug(e,n,r);default:throw new TypeError("Invalid operator: ".concat(t))}};function Jg(){if(Kg)return Vg;Kg=1;class e{constructor(t,o){if(o=n(o),t instanceof e)return t.loose===!!o.loose&&t.includePrerelease===!!o.includePrerelease?t:new e(t.raw,o);if(t instanceof r)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=o,this.loose=!!o.loose,this.includePrerelease=!!o.includePrerelease,this.raw=t.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError("Invalid SemVer Range: ".concat(this.raw));if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!h(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&f(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const n=((this.options.includePrerelease&&d)|(this.options.loose&&p))+":"+e,i=t.get(n);if(i)return i;const f=this.options.loose,m=f?a[s.HYPHENRANGELOOSE]:a[s.HYPHENRANGE];e=e.replace(m,k(this.options.includePrerelease)),o("hyphen replace",e),e=e.replace(a[s.COMPARATORTRIM],l),o("comparator trim",e),e=e.replace(a[s.TILDETRIM],c),o("tilde trim",e),e=e.replace(a[s.CARETTRIM],u),o("caret trim",e);let b=e.split(" ").map((e=>g(e,this.options))).join(" ").split(/\s+/).map((e=>L(e,this.options)));f&&(b=b.filter((e=>(o("loose invalid filter",e,this.options),!!e.match(a[s.COMPARATORLOOSE]))))),o("range list",b);const y=new Map,v=b.map((e=>new r(e,this.options)));for(const e of v){if(h(e))return[e];y.set(e.value,e)}y.size>1&&y.has("")&&y.delete("");const S=[...y.values()];return t.set(n,S),S}intersects(t,n){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some((e=>m(e,n)&&t.set.some((t=>m(t,n)&&e.every((e=>t.every((t=>e.intersects(t,n)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new i(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(R(this.set[t],e,this.options))return!0;return!1}}Vg=e;const t=new ag({max:1e3}),n=cg,r=function(){if(Gg)return $g;Gg=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(r,o){if(o=n(o),r instanceof t){if(r.loose===!!o.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),a("comparator",r,o),this.options=o,this.loose=!!o.loose,this.parse(r),this.semver===e?this.value="":this.value=this.operator+this.semver.version,a("comp",this)}parse(t){const n=this.options.loose?r[o.COMPARATORLOOSE]:r[o.COMPARATOR],i=t.match(n);if(!i)throw new TypeError("Invalid comparator: ".concat(t));this.operator=void 0!==i[1]?i[1]:"","="===this.operator&&(this.operator=""),i[2]?this.semver=new s(i[2],this.options.loose):this.semver=e}toString(){return this.value}test(t){if(a("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;if("string"==typeof t)try{t=new s(t,this.options)}catch(e){return!1}return i(t,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new l(e.value,r).test(this.value):""===e.operator?""===e.value||new l(this.value,r).test(e.semver):!((r=n(r)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(i(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(i(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}$g=t;const n=cg,{safeRe:r,t:o}=hg,i=Zg,a=pg,s=wg,l=Jg();return $g}(),o=pg,i=wg,{safeRe:a,t:s,comparatorTrimReplace:l,tildeTrimReplace:c,caretTrimReplace:u}=hg,{FLAG_INCLUDE_PRERELEASE:d,FLAG_LOOSE:p}=dg,h=e=>"<0.0.0-0"===e.value,f=e=>""===e.value,m=(e,t)=>{let n=!0;const r=e.slice();let o=r.pop();for(;n&&r.length;)n=r.every((e=>o.intersects(e,t))),o=r.pop();return n},g=(e,t)=>(o("comp",e,t),e=S(e,t),o("caret",e),e=y(e,t),o("tildes",e),e=E(e,t),o("xrange",e),e=w(e,t),o("stars",e),e),b=e=>!e||"x"===e.toLowerCase()||"*"===e,y=(e,t)=>e.trim().split(/\s+/).map((e=>v(e,t))).join(" "),v=(e,t)=>{const n=t.loose?a[s.TILDELOOSE]:a[s.TILDE];return e.replace(n,((t,n,r,i,a)=>{let s;return o("tilde",e,t,n,r,i,a),b(n)?s="":b(r)?s=">=".concat(n,".0.0 <").concat(+n+1,".0.0-0"):b(i)?s=">=".concat(n,".").concat(r,".0 <").concat(n,".").concat(+r+1,".0-0"):a?(o("replaceTilde pr",a),s=">=".concat(n,".").concat(r,".").concat(i,"-").concat(a," <").concat(n,".").concat(+r+1,".0-0")):s=">=".concat(n,".").concat(r,".").concat(i," <").concat(n,".").concat(+r+1,".0-0"),o("tilde return",s),s}))},S=(e,t)=>e.trim().split(/\s+/).map((e=>x(e,t))).join(" "),x=(e,t)=>{o("caret",e,t);const n=t.loose?a[s.CARETLOOSE]:a[s.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,a,s)=>{let l;return o("caret",e,t,n,i,a,s),b(n)?l="":b(i)?l=">=".concat(n,".0.0").concat(r," <").concat(+n+1,".0.0-0"):b(a)?l="0"===n?">=".concat(n,".").concat(i,".0").concat(r," <").concat(n,".").concat(+i+1,".0-0"):">=".concat(n,".").concat(i,".0").concat(r," <").concat(+n+1,".0.0-0"):s?(o("replaceCaret pr",s),l="0"===n?"0"===i?">=".concat(n,".").concat(i,".").concat(a,"-").concat(s," <").concat(n,".").concat(i,".").concat(+a+1,"-0"):">=".concat(n,".").concat(i,".").concat(a,"-").concat(s," <").concat(n,".").concat(+i+1,".0-0"):">=".concat(n,".").concat(i,".").concat(a,"-").concat(s," <").concat(+n+1,".0.0-0")):(o("no pr"),l="0"===n?"0"===i?">=".concat(n,".").concat(i,".").concat(a).concat(r," <").concat(n,".").concat(i,".").concat(+a+1,"-0"):">=".concat(n,".").concat(i,".").concat(a).concat(r," <").concat(n,".").concat(+i+1,".0-0"):">=".concat(n,".").concat(i,".").concat(a," <").concat(+n+1,".0.0-0")),o("caret return",l),l}))},E=(e,t)=>(o("replaceXRanges",e,t),e.split(/\s+/).map((e=>C(e,t))).join(" ")),C=(e,t)=>{e=e.trim();const n=t.loose?a[s.XRANGELOOSE]:a[s.XRANGE];return e.replace(n,((n,r,i,a,s,l)=>{o("xRange",e,n,r,i,a,s,l);const c=b(i),u=c||b(a),d=u||b(s),p=d;return"="===r&&p&&(r=""),l=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&p?(u&&(a=0),s=0,">"===r?(r=">=",u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):"<="===r&&(r="<",u?i=+i+1:a=+a+1),"<"===r&&(l="-0"),n="".concat(r+i,".").concat(a,".").concat(s).concat(l)):u?n=">=".concat(i,".0.0").concat(l," <").concat(+i+1,".0.0-0"):d&&(n=">=".concat(i,".").concat(a,".0").concat(l," <").concat(i,".").concat(+a+1,".0-0")),o("xRange return",n),n}))},w=(e,t)=>(o("replaceStars",e,t),e.trim().replace(a[s.STAR],"")),L=(e,t)=>(o("replaceGTE0",e,t),e.trim().replace(a[t.includePrerelease?s.GTE0PRE:s.GTE0],"")),k=e=>(t,n,r,o,i,a,s,l,c,u,d,p,h)=>(n=b(r)?"":b(o)?">=".concat(r,".0.0").concat(e?"-0":""):b(i)?">=".concat(r,".").concat(o,".0").concat(e?"-0":""):a?">=".concat(n):">=".concat(n).concat(e?"-0":""),l=b(c)?"":b(u)?"<".concat(+c+1,".0.0-0"):b(d)?"<".concat(c,".").concat(+u+1,".0-0"):p?"<=".concat(c,".").concat(u,".").concat(d,"-").concat(p):e?"<".concat(c,".").concat(u,".").concat(+d+1,"-0"):"<=".concat(l),"".concat(n," ").concat(l).trim()),R=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(o(e[n].semver),e[n].semver!==r.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return Vg}const Xg=Jg();var Yg=(e,t,n)=>{try{t=new Xg(t,n)}catch(e){return!1}return t.test(e)},Qg=G(Yg);const eb={};function tb(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)||Qg(e,i.deps.properties),supernova:()=>async function(e,t,n,r){let{config:o}=n;const i="".concat(e,"__").concat(t);if(!eb[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);eb[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 eb[i]}(a.name,a.version,t,o.load).then((e=>(n=n||xm(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=Z({qInfo:{qType:a.name},visualization:a.name,version:a.version,showTitles:!0},JSON.parse(r));return t?(Je(!0,n,e),n):Z(Z({},n),e)}))}};return a}function nb(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]=tb({name:e,version:o},t,i),r=null},getMatchingVersionFromProperties:e=>{r||(r=function(e){const t=e.filter((e=>"undefined"===e));return[...t,...e.filter((e=>"undefined"!==e)).map((e=>e.split(".").map((e=>parseInt(e,10))))).sort(((e,t)=>e[0]-t[0]||e[1]-t[1]||e[2]-t[2])).map((e=>e.join(".")))]}(Object.keys(n)));for(let t=r.length-1;t>=0;t--){if(n[r[t]].supportsPropertiesVersion(e))return r[t]}return null},versions:n}}function rb(e){let{halo:t,parent:n}=e;const r={},o=n||{get:()=>{}};return{register:(e,n)=>{r[e.name]||(r[e.name]=nb(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(eb).forEach((t=>{t.split("__")[0]===e&&(eb[t]=void 0)}))}(e)}}}const ob={context:{},load:()=>{},types:[],themes:[],anything:{},flags:{KPI_REACTCOLORPICKER:!0},snapshot:{get:async e=>{const t=await fetch("/njs/snapshot/".concat(e));if(!t.ok)throw new Error(t.statusText);return t.json()},capture:e=>fetch("/njs/capture",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then((e=>e.json()))}};ob.context={theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1,dataViewType:"sn-table"};const ib=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Z(Z({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),e)},ab=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 sb=function e(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=ne(n.context.language);function o(e,i){if(i)return o.createConfiguration(i)(e);let a=Z(Z({},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.13.0"),s.setAttribute("data-app-id",r.id),document.body.appendChild(s),o&&hs(o),yt.createRoot(s).render(t.createElement(fs,{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&&hs(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=ft();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),mt(gt,{__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:Am(n.flags),deviceType:bt(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=rb({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?Tm(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 eh({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}),_s.set(h.id,h);const f=Is(h);return Lm(h,{options:a,plugins:s,element:l},t,p,(async()=>{await t.app.destroySessionObject(h.id),f()}))}(e,u)),create:async e=>km(e,u,!1),generateProperties:async e=>km(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=Z(Z(Z({},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(ap,{app:r}),n,ip())}({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(Fp,{app:r,element:n,fieldIdentifier:o,qId:i,stateName:a,options:s,renderedCallback:l}),n,ip())}({element:a,app:e,fieldIdentifier:n,qId:r,options:jp(Z({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 Yu(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=Z({},Wp);return Je(!0,t,e),t}(Z({onPopoverClose:()=>g.emit("fieldPopoverClose")},o));g._popoverInstance=t.createElement(Bp,{element:n,key:ip(),app:e,fieldIdentifier:r,options:i,stateName:o.stateName||"$"}),s.add(g._popoverInstance)}}};return u.public.nebbie=g,u.types=d,Yu(g),g}return o.createConfiguration=t=>e(((e,t)=>({context:ib(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:Z({},t.snapshot||e.snapshot),types:ab(e.types,t.types),themes:ab(e.themes,t.themes),flags:ib(e.flags,t.flags),anything:ib(e.anything,t.anything)}))(n,t)),o.config=n,o}(ob);function lb(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}const cb=globalThis.crypto||{getRandomValues:()=>123456};function ub(e){return t=>{const n=Je({},t);n.qInfo=n.qInfo||{},n.qInfo.qId=n.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^cb.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))));const r=n._mock;let o=n;return r&&(delete n._mock,o=Je({},n,r)),Promise.resolve({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(o),getProperties:()=>Promise.resolve(n),getEffectiveProperties:()=>Promise.resolve(n),removeListener:()=>{},id:n.qInfo.qId,properties:n,session:e})}}const db=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},pb=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=db(e,{defaultValue:t,args:i});return n?new Promise((e=>{setTimeout((()=>e(s)),r)})):s}},hb=["id","session"],fb=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function mb(e){return!fb.includes(e)}function gb(e){const t=db(e.getLayout);return t.qInfo&&t.qInfo.qId}function bb(e,t){return e.reduce(((e,n)=>Z(Z({},e),function(e,t){let n=gb(e);const{delay:r}=t,{id:o,session:i}=e,a=Q(e,hb);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]:Z(Z({id:n,session:db(i,{defaultValue:!0}),on:()=>{},once:()=>{}},Object.entries(a).reduce(((e,t)=>{let[n,o]=t;return Z(Z({},e),{},{[n]:pb(o,{async:mb(n),delay:r})})}),{})),{},{genericType:e.type})}}(n,t))),{})}function yb(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!gb(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function vb(){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(yb);const n=bb(e,t);return async e=>Promise.resolve(n[e])}function Sb(){return()=>Promise.resolve({id:"app-layout"})}const xb={fromGenericObjects(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new lb,r=new ub(n),o=new vb(e,t),i=new Sb,a={id:"app - ".concat(+Date.now()),session:n,createSessionObject:r,destroySessionObject:async()=>{},getObject:o,getAppLayout:i};return Promise.resolve(a)}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}},Eb={generator:xm,hook:Tf,theme:ft,locale:ee};export{xb as EnigmaMocker,Eb as __DO_NOT_USE__,fh as conversion,sb as embed,om as onContextMenu,rm as onTakeSnapshot,Yf as useAction,Uf as useApp,Bf as useAppLayout,Qf as useConstraints,Jf as useDeviceType,Df as useEffect,zf as useElement,Kf as useEmbed,am as useEmitter,$f as useGlobal,nm as useImperativeHandle,em as useInteractionState,sm as useKeyboard,Ff as useLayout,Mf as useMemo,Hf as useModel,tm as useOptions,Xf as usePlugins,Nf as usePromise,jf as useRect,im as useRenderState,Gf as useSelections,Wf as useStaleLayout,Af as useState,Vf as useTheme,Zf as useTranslator};
15
15
  //# sourceMappingURL=index.js.map